You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
154 lines
4.3 KiB
154 lines
4.3 KiB
package p028j;
|
|
|
|
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 p013e.C0640a;
|
|
import p071y.C1821i;
|
|
|
|
/* renamed from: j.g3 */
|
|
/* loaded from: classes.dex */
|
|
public class C1106g3 {
|
|
|
|
/* renamed from: a */
|
|
public final Context f2700a;
|
|
|
|
/* renamed from: b */
|
|
public final TypedArray f2701b;
|
|
|
|
/* renamed from: c */
|
|
public TypedValue f2702c;
|
|
|
|
public C1106g3(Context context, TypedArray typedArray) {
|
|
this.f2700a = context;
|
|
this.f2701b = typedArray;
|
|
}
|
|
|
|
/* renamed from: s */
|
|
public static C1106g3 m2162s(Context context, int i, int[] iArr) {
|
|
return new C1106g3(context, context.obtainStyledAttributes(i, iArr));
|
|
}
|
|
|
|
/* renamed from: t */
|
|
public static C1106g3 m2161t(Context context, AttributeSet attributeSet, int[] iArr) {
|
|
return new C1106g3(context, context.obtainStyledAttributes(attributeSet, iArr));
|
|
}
|
|
|
|
/* renamed from: u */
|
|
public static C1106g3 m2160u(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2) {
|
|
return new C1106g3(context, context.obtainStyledAttributes(attributeSet, iArr, i, i2));
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public boolean m2180a(int i, boolean z) {
|
|
return this.f2701b.getBoolean(i, z);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public int m2179b(int i, int i2) {
|
|
return this.f2701b.getColor(i, i2);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public ColorStateList m2178c(int i) {
|
|
int resourceId;
|
|
ColorStateList m3230a;
|
|
return (!this.f2701b.hasValue(i) || (resourceId = this.f2701b.getResourceId(i, 0)) == 0 || (m3230a = C0640a.m3230a(this.f2700a, resourceId)) == null) ? this.f2701b.getColorStateList(i) : m3230a;
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public int m2177d(int i, int i2) {
|
|
return this.f2701b.getDimensionPixelOffset(i, i2);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public int m2176e(int i, int i2) {
|
|
return this.f2701b.getDimensionPixelSize(i, i2);
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public Drawable m2175f(int i) {
|
|
int resourceId;
|
|
return (!this.f2701b.hasValue(i) || (resourceId = this.f2701b.getResourceId(i, 0)) == 0) ? this.f2701b.getDrawable(i) : C0640a.m3229b(this.f2700a, resourceId);
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public Drawable m2174g(int i) {
|
|
int resourceId;
|
|
if (!this.f2701b.hasValue(i) || (resourceId = this.f2701b.getResourceId(i, 0)) == 0) {
|
|
return null;
|
|
}
|
|
return C1117j.m2113b().m2111d(this.f2700a, resourceId, true);
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public float m2173h(int i, float f) {
|
|
return this.f2701b.getFloat(i, f);
|
|
}
|
|
|
|
/* renamed from: i */
|
|
public Typeface m2172i(int i, int i2, C1821i.AbstractC1827f abstractC1827f) {
|
|
int resourceId = this.f2701b.getResourceId(i, 0);
|
|
if (resourceId == 0) {
|
|
return null;
|
|
}
|
|
if (this.f2702c == null) {
|
|
this.f2702c = new TypedValue();
|
|
}
|
|
return C1821i.m286f(this.f2700a, resourceId, this.f2702c, i2, abstractC1827f);
|
|
}
|
|
|
|
/* renamed from: j */
|
|
public int m2171j(int i, int i2) {
|
|
return this.f2701b.getInt(i, i2);
|
|
}
|
|
|
|
/* renamed from: k */
|
|
public int m2170k(int i, int i2) {
|
|
return this.f2701b.getInteger(i, i2);
|
|
}
|
|
|
|
/* renamed from: l */
|
|
public int m2169l(int i, int i2) {
|
|
return this.f2701b.getLayoutDimension(i, i2);
|
|
}
|
|
|
|
/* renamed from: m */
|
|
public int m2168m(int i, int i2) {
|
|
return this.f2701b.getResourceId(i, i2);
|
|
}
|
|
|
|
/* renamed from: n */
|
|
public String m2167n(int i) {
|
|
return this.f2701b.getString(i);
|
|
}
|
|
|
|
/* renamed from: o */
|
|
public CharSequence m2166o(int i) {
|
|
return this.f2701b.getText(i);
|
|
}
|
|
|
|
/* renamed from: p */
|
|
public CharSequence[] m2165p(int i) {
|
|
return this.f2701b.getTextArray(i);
|
|
}
|
|
|
|
/* renamed from: q */
|
|
public TypedArray m2164q() {
|
|
return this.f2701b;
|
|
}
|
|
|
|
/* renamed from: r */
|
|
public boolean m2163r(int i) {
|
|
return this.f2701b.hasValue(i);
|
|
}
|
|
|
|
/* renamed from: v */
|
|
public void m2159v() {
|
|
this.f2701b.recycle();
|
|
}
|
|
} |