package ῲ.ῲ.㴹;

import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.TypedValue;
import ῲ.ᨨ.ῲ.ῲ.AbstractC1799;
import ῲ.ῲ.ῲ.K.C1940;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ῲ.㴹.ᑾ  reason: contains not printable characters */
/* compiled from: TintTypedArray */
public class C2019 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public TypedValue f6845;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final TypedArray f6846;

    /* renamed from: K  reason: contains not printable characters */
    public final Context f6847;

    public C2019(Context context, TypedArray typedArray) {
        this.f6847 = context;
        this.f6846 = typedArray;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C2019 m5222(Context context, AttributeSet attributeSet, int[] iArr) {
        return new C2019(context, context.obtainStyledAttributes(attributeSet, iArr));
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public Drawable m5225(int i) {
        int resourceId;
        if (!this.f6846.hasValue(i) || (resourceId = this.f6846.getResourceId(i, 0)) == 0) {
            return null;
        }
        return C2044.m5313().m5317(this.f6847, resourceId, true);
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public CharSequence m5227(int i) {
        return this.f6846.getText(i);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public Drawable m5229(int i) {
        int resourceId;
        if (!this.f6846.hasValue(i) || (resourceId = this.f6846.getResourceId(i, 0)) == 0) {
            return this.f6846.getDrawable(i);
        }
        return C1940.m5017(this.f6847, resourceId);
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public int m5230(int i, int i2) {
        return this.f6846.getResourceId(i, i2);
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public int m5236(int i, int i2) {
        return this.f6846.getLayoutDimension(i, i2);
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public String m5239(int i) {
        return this.f6846.getString(i);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C2019 m5223(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2) {
        return new C2019(context, context.obtainStyledAttributes(attributeSet, iArr, i, i2));
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public int m5226(int i, int i2) {
        return this.f6846.getInteger(i, i2);
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean m5237(int i) {
        return this.f6846.hasValue(i);
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public int m5238(int i, int i2) {
        return this.f6846.getInt(i, i2);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public int m5224(int i, int i2) {
        return this.f6846.getDimensionPixelSize(i, i2);
    }

    /* renamed from: K  reason: contains not printable characters */
    public Typeface m5234(int i, int i2, AbstractC1799 r13) {
        int resourceId = this.f6846.getResourceId(i, 0);
        if (resourceId == 0) {
            return null;
        }
        if (this.f6845 == null) {
            this.f6845 = new TypedValue();
        }
        Context context = this.f6847;
        TypedValue typedValue = this.f6845;
        if (context.isRestricted()) {
            return null;
        }
        return C2369.m6306(context, resourceId, typedValue, i2, r13, null, true, false);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public int m5228(int i, int i2) {
        return this.f6846.getDimensionPixelOffset(i, i2);
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m5235(int i, boolean z) {
        return this.f6846.getBoolean(i, z);
    }

    /* renamed from: K  reason: contains not printable characters */
    public int m5232(int i, int i2) {
        return this.f6846.getColor(i, i2);
    }

    /* renamed from: K  reason: contains not printable characters */
    public ColorStateList m5233(int i) {
        int resourceId;
        ColorStateList r0;
        if (!this.f6846.hasValue(i) || (resourceId = this.f6846.getResourceId(i, 0)) == 0 || (r0 = C1940.m5018(this.f6847, resourceId)) == null) {
            return this.f6846.getColorStateList(i);
        }
        return r0;
    }

    /* renamed from: K  reason: contains not printable characters */
    public float m5231(int i, float f) {
        return this.f6846.getDimension(i, f);
    }
}
