package c.e.g;

import android.annotation.SuppressLint;
import android.os.Build;
import android.text.PrecomputedText;
import android.text.Spannable;
import android.text.TextDirectionHeuristic;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.style.MetricAffectingSpan;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public class a implements Spannable {

    /* JADX INFO: renamed from: c.e.g.a$a, reason: collision with other inner class name */
    public static final class C0067a {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public final TextPaint f5247a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final TextDirectionHeuristic f5248b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public final int f5249c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public final int f5250d;

        public C0067a(PrecomputedText.Params params) {
            this.f5247a = params.getTextPaint();
            this.f5248b = params.getTextDirection();
            this.f5249c = params.getBreakStrategy();
            this.f5250d = params.getHyphenationFrequency();
            int i2 = Build.VERSION.SDK_INT;
        }

        @SuppressLint({"NewApi"})
        public C0067a(TextPaint textPaint, TextDirectionHeuristic textDirectionHeuristic, int i2, int i3) {
            if (Build.VERSION.SDK_INT >= 29) {
                new PrecomputedText.Params.Builder(textPaint).setBreakStrategy(i2).setHyphenationFrequency(i3).setTextDirection(textDirectionHeuristic).build();
            }
            this.f5247a = textPaint;
            this.f5248b = textDirectionHeuristic;
            this.f5249c = i2;
            this.f5250d = i3;
        }

        public boolean a(C0067a c0067a) {
            if (this.f5249c == c0067a.f5249c && this.f5250d == c0067a.f5250d && this.f5247a.getTextSize() == c0067a.f5247a.getTextSize() && this.f5247a.getTextScaleX() == c0067a.f5247a.getTextScaleX() && this.f5247a.getTextSkewX() == c0067a.f5247a.getTextSkewX() && this.f5247a.getLetterSpacing() == c0067a.f5247a.getLetterSpacing() && TextUtils.equals(this.f5247a.getFontFeatureSettings(), c0067a.f5247a.getFontFeatureSettings()) && this.f5247a.getFlags() == c0067a.f5247a.getFlags() && this.f5247a.getTextLocales().equals(c0067a.f5247a.getTextLocales())) {
                return this.f5247a.getTypeface() == null ? c0067a.f5247a.getTypeface() == null : this.f5247a.getTypeface().equals(c0067a.f5247a.getTypeface());
            }
            return false;
        }

        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof C0067a)) {
                return false;
            }
            C0067a c0067a = (C0067a) obj;
            return a(c0067a) && this.f5248b == c0067a.f5248b;
        }

        public int hashCode() {
            return Objects.hash(Float.valueOf(this.f5247a.getTextSize()), Float.valueOf(this.f5247a.getTextScaleX()), Float.valueOf(this.f5247a.getTextSkewX()), Float.valueOf(this.f5247a.getLetterSpacing()), Integer.valueOf(this.f5247a.getFlags()), this.f5247a.getTextLocales(), this.f5247a.getTypeface(), Boolean.valueOf(this.f5247a.isElegantTextHeight()), this.f5248b, Integer.valueOf(this.f5249c), Integer.valueOf(this.f5250d));
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("{");
            StringBuilder sbC = a.b.c.a.a.C("textSize=");
            sbC.append(this.f5247a.getTextSize());
            sb.append(sbC.toString());
            sb.append(", textScaleX=" + this.f5247a.getTextScaleX());
            sb.append(", textSkewX=" + this.f5247a.getTextSkewX());
            sb.append(", letterSpacing=" + this.f5247a.getLetterSpacing());
            sb.append(", elegantTextHeight=" + this.f5247a.isElegantTextHeight());
            sb.append(", textLocale=" + this.f5247a.getTextLocales());
            sb.append(", typeface=" + this.f5247a.getTypeface());
            sb.append(", variationSettings=" + this.f5247a.getFontVariationSettings());
            sb.append(", textDir=" + this.f5248b);
            sb.append(", breakStrategy=" + this.f5249c);
            sb.append(", hyphenationFrequency=" + this.f5250d);
            sb.append("}");
            return sb.toString();
        }
    }

    @Override // java.lang.CharSequence
    public char charAt(int i2) {
        throw null;
    }

    @Override // android.text.Spanned
    public int getSpanEnd(Object obj) {
        throw null;
    }

    @Override // android.text.Spanned
    public int getSpanFlags(Object obj) {
        throw null;
    }

    @Override // android.text.Spanned
    public int getSpanStart(Object obj) {
        throw null;
    }

    @Override // android.text.Spanned
    @SuppressLint({"NewApi"})
    public <T> T[] getSpans(int i2, int i3, Class<T> cls) {
        int i4 = Build.VERSION.SDK_INT;
        throw null;
    }

    @Override // java.lang.CharSequence
    public int length() {
        throw null;
    }

    @Override // android.text.Spanned
    public int nextSpanTransition(int i2, int i3, Class cls) {
        throw null;
    }

    @Override // android.text.Spannable
    @SuppressLint({"NewApi"})
    public void removeSpan(Object obj) {
        if (obj instanceof MetricAffectingSpan) {
            throw new IllegalArgumentException("MetricAffectingSpan can not be removed from PrecomputedText.");
        }
        int i2 = Build.VERSION.SDK_INT;
        throw null;
    }

    @Override // android.text.Spannable
    @SuppressLint({"NewApi"})
    public void setSpan(Object obj, int i2, int i3, int i4) {
        if (obj instanceof MetricAffectingSpan) {
            throw new IllegalArgumentException("MetricAffectingSpan can not be set to PrecomputedText.");
        }
        int i5 = Build.VERSION.SDK_INT;
        throw null;
    }

    @Override // java.lang.CharSequence
    public CharSequence subSequence(int i2, int i3) {
        throw null;
    }

    @Override // java.lang.CharSequence
    public String toString() {
        throw null;
    }
}
