package c.f.h;

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;

/* JADX INFO: compiled from: PrecomputedTextCompat.java */
/* JADX INFO: loaded from: classes.dex */
public class b implements Spannable {
    @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
    public <T> T[] getSpans(int i2, int i3, Class<T> cls) {
        if (Build.VERSION.SDK_INT >= 29) {
            throw null;
        }
        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
    public void removeSpan(Object obj) {
        if (obj instanceof MetricAffectingSpan) {
            throw new IllegalArgumentException("MetricAffectingSpan can not be removed from PrecomputedText.");
        }
        if (Build.VERSION.SDK_INT < 29) {
            throw null;
        }
        throw null;
    }

    @Override // android.text.Spannable
    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.");
        }
        if (Build.VERSION.SDK_INT < 29) {
            throw null;
        }
        throw null;
    }

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

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

    /* JADX INFO: compiled from: PrecomputedTextCompat.java */
    public static final class a {
        public final TextPaint a;

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

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

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

        public a(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.a = textPaint;
            this.f1386b = textDirectionHeuristic;
            this.f1387c = i2;
            this.f1388d = i3;
        }

        public boolean a(a aVar) {
            if (this.f1387c == aVar.f1387c && this.f1388d == aVar.f1388d && this.a.getTextSize() == aVar.a.getTextSize() && this.a.getTextScaleX() == aVar.a.getTextScaleX() && this.a.getTextSkewX() == aVar.a.getTextSkewX() && this.a.getLetterSpacing() == aVar.a.getLetterSpacing() && TextUtils.equals(this.a.getFontFeatureSettings(), aVar.a.getFontFeatureSettings()) && this.a.getFlags() == aVar.a.getFlags() && this.a.getTextLocales().equals(aVar.a.getTextLocales())) {
                return this.a.getTypeface() == null ? aVar.a.getTypeface() == null : this.a.getTypeface().equals(aVar.a.getTypeface());
            }
            return false;
        }

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

        public int hashCode() {
            return c.f.i.b.b(Float.valueOf(this.a.getTextSize()), Float.valueOf(this.a.getTextScaleX()), Float.valueOf(this.a.getTextSkewX()), Float.valueOf(this.a.getLetterSpacing()), Integer.valueOf(this.a.getFlags()), this.a.getTextLocales(), this.a.getTypeface(), Boolean.valueOf(this.a.isElegantTextHeight()), this.f1386b, Integer.valueOf(this.f1387c), Integer.valueOf(this.f1388d));
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("{");
            StringBuilder sbB = d.b.a.a.a.B("textSize=");
            sbB.append(this.a.getTextSize());
            sb.append(sbB.toString());
            sb.append(", textScaleX=" + this.a.getTextScaleX());
            sb.append(", textSkewX=" + this.a.getTextSkewX());
            sb.append(", letterSpacing=" + this.a.getLetterSpacing());
            sb.append(", elegantTextHeight=" + this.a.isElegantTextHeight());
            sb.append(", textLocale=" + this.a.getTextLocales());
            sb.append(", typeface=" + this.a.getTypeface());
            sb.append(", variationSettings=" + this.a.getFontVariationSettings());
            sb.append(", textDir=" + this.f1386b);
            sb.append(", breakStrategy=" + this.f1387c);
            sb.append(", hyphenationFrequency=" + this.f1388d);
            sb.append("}");
            return sb.toString();
        }

        public a(PrecomputedText.Params params) {
            this.a = params.getTextPaint();
            this.f1386b = params.getTextDirection();
            this.f1387c = params.getBreakStrategy();
            this.f1388d = params.getHyphenationFrequency();
            int i2 = Build.VERSION.SDK_INT;
        }
    }
}
