package X6FRs_4.KQgRr5e_0.LGe8pk_15;

import X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IFxWkV_5;
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;
/* compiled from: TintTypedArray.java */
/* loaded from: classes.dex */
public class NzhupJ_29 {
    public final Context KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final TypedArray f735KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public TypedValue f736KQgRr5e_0;

    public NzhupJ_29(Context context, TypedArray typedArray) {
        this.KQgRr5e_0 = context;
        this.f735KQgRr5e_0 = typedArray;
    }

    public static NzhupJ_29 KQgRr5e_0(Context context, AttributeSet attributeSet, int[] iArr) {
        return new NzhupJ_29(context, context.obtainStyledAttributes(attributeSet, iArr));
    }

    public int IFxWkV_5(int i, int i2) {
        return this.f735KQgRr5e_0.getLayoutDimension(i, i2);
    }

    public int IMuAHx_6(int i, int i2) {
        return this.f735KQgRr5e_0.getResourceId(i, i2);
    }

    public int Mqv2r_3(int i, int i2) {
        return this.f735KQgRr5e_0.getInt(i, i2);
    }

    public int PGPF6hQ_2(int i, int i2) {
        return this.f735KQgRr5e_0.getDimensionPixelSize(i, i2);
    }

    public Drawable QxJ9d_1(int i) {
        int resourceId;
        if (!this.f735KQgRr5e_0.hasValue(i) || (resourceId = this.f735KQgRr5e_0.getResourceId(i, 0)) == 0) {
            return null;
        }
        return IFxWkV_5.KQgRr5e_0().KQgRr5e_0(this.KQgRr5e_0, resourceId, true);
    }

    public int X6FRs_4(int i, int i2) {
        return this.f735KQgRr5e_0.getInteger(i, i2);
    }

    public static NzhupJ_29 KQgRr5e_0(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2) {
        return new NzhupJ_29(context, context.obtainStyledAttributes(attributeSet, iArr, i, i2));
    }

    public static NzhupJ_29 KQgRr5e_0(Context context, int i, int[] iArr) {
        return new NzhupJ_29(context, context.obtainStyledAttributes(i, iArr));
    }

    public float QxJ9d_1(int i, float f) {
        return this.f735KQgRr5e_0.getFloat(i, f);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public Drawable m416KQgRr5e_0(int i) {
        int resourceId;
        if (this.f735KQgRr5e_0.hasValue(i) && (resourceId = this.f735KQgRr5e_0.getResourceId(i, 0)) != 0) {
            return X6FRs_4.KQgRr5e_0.KNBe_11.KQgRr5e_0.KQgRr5e_0.m380KQgRr5e_0(this.KQgRr5e_0, resourceId);
        }
        return this.f735KQgRr5e_0.getDrawable(i);
    }

    public int QxJ9d_1(int i, int i2) {
        return this.f735KQgRr5e_0.getDimensionPixelOffset(i, i2);
    }

    public Typeface KQgRr5e_0(int i, int i2, IFxWkV_5.KQgRr5e_0 kQgRr5e_0) {
        int resourceId = this.f735KQgRr5e_0.getResourceId(i, 0);
        if (resourceId == 0) {
            return null;
        }
        if (this.f736KQgRr5e_0 == null) {
            this.f736KQgRr5e_0 = new TypedValue();
        }
        return X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IFxWkV_5.KQgRr5e_0(this.KQgRr5e_0, resourceId, this.f736KQgRr5e_0, i2, kQgRr5e_0);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public CharSequence m417KQgRr5e_0(int i) {
        return this.f735KQgRr5e_0.getText(i);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public String m418KQgRr5e_0(int i) {
        return this.f735KQgRr5e_0.getString(i);
    }

    public boolean KQgRr5e_0(int i, boolean z) {
        return this.f735KQgRr5e_0.getBoolean(i, z);
    }

    public int KQgRr5e_0(int i, int i2) {
        return this.f735KQgRr5e_0.getColor(i, i2);
    }

    public ColorStateList KQgRr5e_0(int i) {
        int resourceId;
        ColorStateList QxJ9d_1;
        return (!this.f735KQgRr5e_0.hasValue(i) || (resourceId = this.f735KQgRr5e_0.getResourceId(i, 0)) == 0 || (QxJ9d_1 = X6FRs_4.KQgRr5e_0.KNBe_11.KQgRr5e_0.KQgRr5e_0.QxJ9d_1(this.KQgRr5e_0, resourceId)) == null) ? this.f735KQgRr5e_0.getColorStateList(i) : QxJ9d_1;
    }

    public float KQgRr5e_0(int i, float f) {
        return this.f735KQgRr5e_0.getDimension(i, f);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public CharSequence[] m420KQgRr5e_0(int i) {
        return this.f735KQgRr5e_0.getTextArray(i);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public boolean m419KQgRr5e_0(int i) {
        return this.f735KQgRr5e_0.hasValue(i);
    }

    public void KQgRr5e_0() {
        this.f735KQgRr5e_0.recycle();
    }
}
