package f; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Outline; import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.os.Build; import android.util.SparseArray; /* loaded from: classes.dex */ abstract class b extends Drawable implements Drawable.Callback { /* renamed from: a, reason: collision with root package name */ private d f9440a; /* renamed from: b, reason: collision with root package name */ private Rect f9441b; /* renamed from: c, reason: collision with root package name */ private Drawable f9442c; /* renamed from: d, reason: collision with root package name */ private Drawable f9443d; /* renamed from: f, reason: collision with root package name */ private boolean f9445f; /* renamed from: h, reason: collision with root package name */ private boolean f9447h; /* renamed from: i, reason: collision with root package name */ private Runnable f9448i; /* renamed from: j, reason: collision with root package name */ private long f9449j; /* renamed from: k, reason: collision with root package name */ private long f9450k; /* renamed from: l, reason: collision with root package name */ private c f9451l; /* renamed from: e, reason: collision with root package name */ private int f9444e = 255; /* renamed from: g, reason: collision with root package name */ private int f9446g = -1; class a implements Runnable { a() { } @Override // java.lang.Runnable public void run() { b.this.a(true); b.this.invalidateSelf(); } } /* renamed from: f.b$b, reason: collision with other inner class name */ private static class C0140b { public static boolean a(Drawable.ConstantState constantState) { return constantState.canApplyTheme(); } public static void b(Drawable drawable, Outline outline) { drawable.getOutline(outline); } public static Resources c(Resources.Theme theme) { return theme.getResources(); } } static class c implements Drawable.Callback { /* renamed from: a, reason: collision with root package name */ private Drawable.Callback f9453a; c() { } public Drawable.Callback a() { Drawable.Callback callback = this.f9453a; this.f9453a = null; return callback; } public c b(Drawable.Callback callback) { this.f9453a = callback; return this; } @Override // android.graphics.drawable.Drawable.Callback public void invalidateDrawable(Drawable drawable) { } @Override // android.graphics.drawable.Drawable.Callback public void scheduleDrawable(Drawable drawable, Runnable runnable, long j10) { Drawable.Callback callback = this.f9453a; if (callback != null) { callback.scheduleDrawable(drawable, runnable, j10); } } @Override // android.graphics.drawable.Drawable.Callback public void unscheduleDrawable(Drawable drawable, Runnable runnable) { Drawable.Callback callback = this.f9453a; if (callback != null) { callback.unscheduleDrawable(drawable, runnable); } } } static abstract class d extends Drawable.ConstantState { int A; int B; boolean C; ColorFilter D; boolean E; ColorStateList F; PorterDuff.Mode G; boolean H; boolean I; /* renamed from: a, reason: collision with root package name */ final b f9454a; /* renamed from: b, reason: collision with root package name */ Resources f9455b; /* renamed from: c, reason: collision with root package name */ int f9456c; /* renamed from: d, reason: collision with root package name */ int f9457d; /* renamed from: e, reason: collision with root package name */ int f9458e; /* renamed from: f, reason: collision with root package name */ SparseArray f9459f; /* renamed from: g, reason: collision with root package name */ Drawable[] f9460g; /* renamed from: h, reason: collision with root package name */ int f9461h; /* renamed from: i, reason: collision with root package name */ boolean f9462i; /* renamed from: j, reason: collision with root package name */ boolean f9463j; /* renamed from: k, reason: collision with root package name */ Rect f9464k; /* renamed from: l, reason: collision with root package name */ boolean f9465l; /* renamed from: m, reason: collision with root package name */ boolean f9466m; /* renamed from: n, reason: collision with root package name */ int f9467n; /* renamed from: o, reason: collision with root package name */ int f9468o; /* renamed from: p, reason: collision with root package name */ int f9469p; /* renamed from: q, reason: collision with root package name */ int f9470q; /* renamed from: r, reason: collision with root package name */ boolean f9471r; /* renamed from: s, reason: collision with root package name */ int f9472s; /* renamed from: t, reason: collision with root package name */ boolean f9473t; /* renamed from: u, reason: collision with root package name */ boolean f9474u; /* renamed from: v, reason: collision with root package name */ boolean f9475v; /* renamed from: w, reason: collision with root package name */ boolean f9476w; /* renamed from: x, reason: collision with root package name */ boolean f9477x; /* renamed from: y, reason: collision with root package name */ boolean f9478y; /* renamed from: z, reason: collision with root package name */ int f9479z; d(d dVar, b bVar, Resources resources) { this.f9462i = false; this.f9465l = false; this.f9477x = true; this.A = 0; this.B = 0; this.f9454a = bVar; this.f9455b = resources != null ? resources : dVar != null ? dVar.f9455b : null; int f10 = b.f(resources, dVar != null ? dVar.f9456c : 0); this.f9456c = f10; if (dVar == null) { this.f9460g = new Drawable[10]; this.f9461h = 0; return; } this.f9457d = dVar.f9457d; this.f9458e = dVar.f9458e; this.f9475v = true; this.f9476w = true; this.f9462i = dVar.f9462i; this.f9465l = dVar.f9465l; this.f9477x = dVar.f9477x; this.f9478y = dVar.f9478y; this.f9479z = dVar.f9479z; this.A = dVar.A; this.B = dVar.B; this.C = dVar.C; this.D = dVar.D; this.E = dVar.E; this.F = dVar.F; this.G = dVar.G; this.H = dVar.H; this.I = dVar.I; if (dVar.f9456c == f10) { if (dVar.f9463j) { this.f9464k = dVar.f9464k != null ? new Rect(dVar.f9464k) : null; this.f9463j = true; } if (dVar.f9466m) { this.f9467n = dVar.f9467n; this.f9468o = dVar.f9468o; this.f9469p = dVar.f9469p; this.f9470q = dVar.f9470q; this.f9466m = true; } } if (dVar.f9471r) { this.f9472s = dVar.f9472s; this.f9471r = true; } if (dVar.f9473t) { this.f9474u = dVar.f9474u; this.f9473t = true; } Drawable[] drawableArr = dVar.f9460g; this.f9460g = new Drawable[drawableArr.length]; this.f9461h = dVar.f9461h; SparseArray sparseArray = dVar.f9459f; if (sparseArray != null) { this.f9459f = sparseArray.clone(); } else { this.f9459f = new SparseArray(this.f9461h); } int i10 = this.f9461h; for (int i11 = 0; i11 < i10; i11++) { Drawable drawable = drawableArr[i11]; if (drawable != null) { Drawable.ConstantState constantState = drawable.getConstantState(); if (constantState != null) { this.f9459f.put(i11, constantState); } else { this.f9460g[i11] = drawableArr[i11]; } } } } private void e() { SparseArray sparseArray = this.f9459f; if (sparseArray != null) { int size = sparseArray.size(); for (int i10 = 0; i10 < size; i10++) { this.f9460g[this.f9459f.keyAt(i10)] = s(((Drawable.ConstantState) this.f9459f.valueAt(i10)).newDrawable(this.f9455b)); } this.f9459f = null; } } private Drawable s(Drawable drawable) { if (Build.VERSION.SDK_INT >= 23) { r.c.m(drawable, this.f9479z); } Drawable mutate = drawable.mutate(); mutate.setCallback(this.f9454a); return mutate; } public final int a(Drawable drawable) { int i10 = this.f9461h; if (i10 >= this.f9460g.length) { o(i10, i10 + 10); } drawable.mutate(); drawable.setVisible(false, true); drawable.setCallback(this.f9454a); this.f9460g[i10] = drawable; this.f9461h++; this.f9458e = drawable.getChangingConfigurations() | this.f9458e; p(); this.f9464k = null; this.f9463j = false; this.f9466m = false; this.f9475v = false; return i10; } final void b(Resources.Theme theme) { if (theme != null) { e(); int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; for (int i11 = 0; i11 < i10; i11++) { Drawable drawable = drawableArr[i11]; if (drawable != null && r.c.b(drawable)) { r.c.a(drawableArr[i11], theme); this.f9458e |= drawableArr[i11].getChangingConfigurations(); } } y(C0140b.c(theme)); } } public boolean c() { if (this.f9475v) { return this.f9476w; } e(); this.f9475v = true; int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; for (int i11 = 0; i11 < i10; i11++) { if (drawableArr[i11].getConstantState() == null) { this.f9476w = false; return false; } } this.f9476w = true; return true; } @Override // android.graphics.drawable.Drawable.ConstantState public boolean canApplyTheme() { int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; for (int i11 = 0; i11 < i10; i11++) { Drawable drawable = drawableArr[i11]; if (drawable == null) { Drawable.ConstantState constantState = (Drawable.ConstantState) this.f9459f.get(i11); if (constantState != null && C0140b.a(constantState)) { return true; } } else if (r.c.b(drawable)) { return true; } } return false; } protected void d() { this.f9466m = true; e(); int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; this.f9468o = -1; this.f9467n = -1; this.f9470q = 0; this.f9469p = 0; for (int i11 = 0; i11 < i10; i11++) { Drawable drawable = drawableArr[i11]; int intrinsicWidth = drawable.getIntrinsicWidth(); if (intrinsicWidth > this.f9467n) { this.f9467n = intrinsicWidth; } int intrinsicHeight = drawable.getIntrinsicHeight(); if (intrinsicHeight > this.f9468o) { this.f9468o = intrinsicHeight; } int minimumWidth = drawable.getMinimumWidth(); if (minimumWidth > this.f9469p) { this.f9469p = minimumWidth; } int minimumHeight = drawable.getMinimumHeight(); if (minimumHeight > this.f9470q) { this.f9470q = minimumHeight; } } } final int f() { return this.f9460g.length; } public final Drawable g(int i10) { int indexOfKey; Drawable drawable = this.f9460g[i10]; if (drawable != null) { return drawable; } SparseArray sparseArray = this.f9459f; if (sparseArray == null || (indexOfKey = sparseArray.indexOfKey(i10)) < 0) { return null; } Drawable s10 = s(((Drawable.ConstantState) this.f9459f.valueAt(indexOfKey)).newDrawable(this.f9455b)); this.f9460g[i10] = s10; this.f9459f.removeAt(indexOfKey); if (this.f9459f.size() == 0) { this.f9459f = null; } return s10; } @Override // android.graphics.drawable.Drawable.ConstantState public int getChangingConfigurations() { return this.f9457d | this.f9458e; } public final int h() { return this.f9461h; } public final int i() { if (!this.f9466m) { d(); } return this.f9468o; } public final int j() { if (!this.f9466m) { d(); } return this.f9470q; } public final int k() { if (!this.f9466m) { d(); } return this.f9469p; } public final Rect l() { Rect rect = null; if (this.f9462i) { return null; } Rect rect2 = this.f9464k; if (rect2 != null || this.f9463j) { return rect2; } e(); Rect rect3 = new Rect(); int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; for (int i11 = 0; i11 < i10; i11++) { if (drawableArr[i11].getPadding(rect3)) { if (rect == null) { rect = new Rect(0, 0, 0, 0); } int i12 = rect3.left; if (i12 > rect.left) { rect.left = i12; } int i13 = rect3.top; if (i13 > rect.top) { rect.top = i13; } int i14 = rect3.right; if (i14 > rect.right) { rect.right = i14; } int i15 = rect3.bottom; if (i15 > rect.bottom) { rect.bottom = i15; } } } this.f9463j = true; this.f9464k = rect; return rect; } public final int m() { if (!this.f9466m) { d(); } return this.f9467n; } public final int n() { if (this.f9471r) { return this.f9472s; } e(); int i10 = this.f9461h; Drawable[] drawableArr = this.f9460g; int opacity = i10 > 0 ? drawableArr[0].getOpacity() : -2; for (int i11 = 1; i11 < i10; i11++) { opacity = Drawable.resolveOpacity(opacity, drawableArr[i11].getOpacity()); } this.f9472s = opacity; this.f9471r = true; return opacity; } public void o(int i10, int i11) { Drawable[] drawableArr = new Drawable[i11]; Drawable[] drawableArr2 = this.f9460g; if (drawableArr2 != null) { System.arraycopy(drawableArr2, 0, drawableArr, 0, i10); } this.f9460g = drawableArr; } void p() { this.f9471r = false; this.f9473t = false; } public final boolean q() { return this.f9465l; } abstract void r(); public final void t(boolean z10) { this.f9465l = z10; } public final void u(int i10) { this.A = i10; } public final void v(int i10) { this.B = i10; } final boolean w(int i10, int i11) { int i12 = this.f9461h; Drawable[] drawableArr = this.f9460g; boolean z10 = false; for (int i13 = 0; i13 < i12; i13++) { Drawable drawable = drawableArr[i13]; if (drawable != null) { boolean m10 = Build.VERSION.SDK_INT >= 23 ? r.c.m(drawable, i10) : false; if (i13 == i11) { z10 = m10; } } } this.f9479z = i10; return z10; } public final void x(boolean z10) { this.f9462i = z10; } final void y(Resources resources) { if (resources != null) { this.f9455b = resources; int f10 = b.f(resources, this.f9456c); int i10 = this.f9456c; this.f9456c = f10; if (i10 != f10) { this.f9466m = false; this.f9463j = false; } } } } b() { } private void d(Drawable drawable) { if (this.f9451l == null) { this.f9451l = new c(); } drawable.setCallback(this.f9451l.b(drawable.getCallback())); try { if (this.f9440a.A <= 0 && this.f9445f) { drawable.setAlpha(this.f9444e); } d dVar = this.f9440a; if (dVar.E) { drawable.setColorFilter(dVar.D); } else { if (dVar.H) { r.c.o(drawable, dVar.F); } d dVar2 = this.f9440a; if (dVar2.I) { r.c.p(drawable, dVar2.G); } } drawable.setVisible(isVisible(), true); drawable.setDither(this.f9440a.f9477x); drawable.setState(getState()); drawable.setLevel(getLevel()); drawable.setBounds(getBounds()); if (Build.VERSION.SDK_INT >= 23) { r.c.m(drawable, r.c.f(this)); } r.c.j(drawable, this.f9440a.C); Rect rect = this.f9441b; if (rect != null) { r.c.l(drawable, rect.left, rect.top, rect.right, rect.bottom); } } finally { drawable.setCallback(this.f9451l.a()); } } private boolean e() { return isAutoMirrored() && r.c.f(this) == 1; } static int f(Resources resources, int i10) { if (resources != null) { i10 = resources.getDisplayMetrics().densityDpi; } if (i10 == 0) { return 160; } return i10; } /* JADX WARN: Removed duplicated region for block: B:11:0x003f */ /* JADX WARN: Removed duplicated region for block: B:18:0x006a A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:23:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:25:0x0065 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ void a(boolean r14) { /* r13 = this; r0 = 1 r13.f9445f = r0 long r1 = android.os.SystemClock.uptimeMillis() android.graphics.drawable.Drawable r3 = r13.f9442c r4 = 255(0xff, double:1.26E-321) r6 = 0 r8 = 0 if (r3 == 0) goto L38 long r9 = r13.f9449j int r11 = (r9 > r6 ? 1 : (r9 == r6 ? 0 : -1)) if (r11 == 0) goto L3a int r11 = (r9 > r1 ? 1 : (r9 == r1 ? 0 : -1)) if (r11 > 0) goto L22 int r9 = r13.f9444e r3.setAlpha(r9) r13.f9449j = r6 goto L3a L22: long r9 = r9 - r1 long r9 = r9 * r4 int r10 = (int) r9 f.b$d r9 = r13.f9440a int r9 = r9.A int r10 = r10 / r9 int r9 = 255 - r10 int r10 = r13.f9444e int r9 = r9 * r10 int r9 = r9 / 255 r3.setAlpha(r9) r3 = 1 goto L3b L38: r13.f9449j = r6 L3a: r3 = 0 L3b: android.graphics.drawable.Drawable r9 = r13.f9443d if (r9 == 0) goto L65 long r10 = r13.f9450k int r12 = (r10 > r6 ? 1 : (r10 == r6 ? 0 : -1)) if (r12 == 0) goto L67 int r12 = (r10 > r1 ? 1 : (r10 == r1 ? 0 : -1)) if (r12 > 0) goto L52 r9.setVisible(r8, r8) r0 = 0 r13.f9443d = r0 r13.f9450k = r6 goto L67 L52: long r10 = r10 - r1 long r10 = r10 * r4 int r3 = (int) r10 f.b$d r4 = r13.f9440a int r4 = r4.B int r3 = r3 / r4 int r4 = r13.f9444e int r3 = r3 * r4 int r3 = r3 / 255 r9.setAlpha(r3) goto L68 L65: r13.f9450k = r6 L67: r0 = r3 L68: if (r14 == 0) goto L74 if (r0 == 0) goto L74 java.lang.Runnable r14 = r13.f9448i r3 = 16 long r1 = r1 + r3 r13.scheduleSelf(r14, r1) L74: return */ throw new UnsupportedOperationException("Method not decompiled: f.b.a(boolean):void"); } @Override // android.graphics.drawable.Drawable public void applyTheme(Resources.Theme theme) { this.f9440a.b(theme); } abstract d b(); int c() { return this.f9446g; } @Override // android.graphics.drawable.Drawable public boolean canApplyTheme() { return this.f9440a.canApplyTheme(); } @Override // android.graphics.drawable.Drawable public void draw(Canvas canvas) { Drawable drawable = this.f9442c; if (drawable != null) { drawable.draw(canvas); } Drawable drawable2 = this.f9443d; if (drawable2 != null) { drawable2.draw(canvas); } } /* JADX WARN: Removed duplicated region for block: B:30:0x006b */ /* JADX WARN: Removed duplicated region for block: B:32:0x0073 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ boolean g(int r10) { /* r9 = this; int r0 = r9.f9446g r1 = 0 if (r10 != r0) goto L6 return r1 L6: long r2 = android.os.SystemClock.uptimeMillis() f.b$d r0 = r9.f9440a int r0 = r0.B r4 = 0 r5 = 0 if (r0 <= 0) goto L2e android.graphics.drawable.Drawable r0 = r9.f9443d if (r0 == 0) goto L1a r0.setVisible(r1, r1) L1a: android.graphics.drawable.Drawable r0 = r9.f9442c if (r0 == 0) goto L29 r9.f9443d = r0 f.b$d r0 = r9.f9440a int r0 = r0.B long r0 = (long) r0 long r0 = r0 + r2 r9.f9450k = r0 goto L35 L29: r9.f9443d = r4 r9.f9450k = r5 goto L35 L2e: android.graphics.drawable.Drawable r0 = r9.f9442c if (r0 == 0) goto L35 r0.setVisible(r1, r1) L35: if (r10 < 0) goto L55 f.b$d r0 = r9.f9440a int r1 = r0.f9461h if (r10 >= r1) goto L55 android.graphics.drawable.Drawable r0 = r0.g(r10) r9.f9442c = r0 r9.f9446g = r10 if (r0 == 0) goto L5a f.b$d r10 = r9.f9440a int r10 = r10.A if (r10 <= 0) goto L51 long r7 = (long) r10 long r2 = r2 + r7 r9.f9449j = r2 L51: r9.d(r0) goto L5a L55: r9.f9442c = r4 r10 = -1 r9.f9446g = r10 L5a: long r0 = r9.f9449j r10 = 1 int r2 = (r0 > r5 ? 1 : (r0 == r5 ? 0 : -1)) if (r2 != 0) goto L67 long r0 = r9.f9450k int r2 = (r0 > r5 ? 1 : (r0 == r5 ? 0 : -1)) if (r2 == 0) goto L79 L67: java.lang.Runnable r0 = r9.f9448i if (r0 != 0) goto L73 f.b$a r0 = new f.b$a r0.() r9.f9448i = r0 goto L76 L73: r9.unscheduleSelf(r0) L76: r9.a(r10) L79: r9.invalidateSelf() return r10 */ throw new UnsupportedOperationException("Method not decompiled: f.b.g(int):boolean"); } @Override // android.graphics.drawable.Drawable public int getAlpha() { return this.f9444e; } @Override // android.graphics.drawable.Drawable public int getChangingConfigurations() { return super.getChangingConfigurations() | this.f9440a.getChangingConfigurations(); } @Override // android.graphics.drawable.Drawable public final Drawable.ConstantState getConstantState() { if (!this.f9440a.c()) { return null; } this.f9440a.f9457d = getChangingConfigurations(); return this.f9440a; } @Override // android.graphics.drawable.Drawable public Drawable getCurrent() { return this.f9442c; } @Override // android.graphics.drawable.Drawable public void getHotspotBounds(Rect rect) { Rect rect2 = this.f9441b; if (rect2 != null) { rect.set(rect2); } else { super.getHotspotBounds(rect); } } @Override // android.graphics.drawable.Drawable public int getIntrinsicHeight() { if (this.f9440a.q()) { return this.f9440a.i(); } Drawable drawable = this.f9442c; if (drawable != null) { return drawable.getIntrinsicHeight(); } return -1; } @Override // android.graphics.drawable.Drawable public int getIntrinsicWidth() { if (this.f9440a.q()) { return this.f9440a.m(); } Drawable drawable = this.f9442c; if (drawable != null) { return drawable.getIntrinsicWidth(); } return -1; } @Override // android.graphics.drawable.Drawable public int getMinimumHeight() { if (this.f9440a.q()) { return this.f9440a.j(); } Drawable drawable = this.f9442c; if (drawable != null) { return drawable.getMinimumHeight(); } return 0; } @Override // android.graphics.drawable.Drawable public int getMinimumWidth() { if (this.f9440a.q()) { return this.f9440a.k(); } Drawable drawable = this.f9442c; if (drawable != null) { return drawable.getMinimumWidth(); } return 0; } @Override // android.graphics.drawable.Drawable public int getOpacity() { Drawable drawable = this.f9442c; if (drawable == null || !drawable.isVisible()) { return -2; } return this.f9440a.n(); } @Override // android.graphics.drawable.Drawable public void getOutline(Outline outline) { Drawable drawable = this.f9442c; if (drawable != null) { C0140b.b(drawable, outline); } } @Override // android.graphics.drawable.Drawable public boolean getPadding(Rect rect) { boolean padding; Rect l10 = this.f9440a.l(); if (l10 != null) { rect.set(l10); padding = (l10.right | ((l10.left | l10.top) | l10.bottom)) != 0; } else { Drawable drawable = this.f9442c; padding = drawable != null ? drawable.getPadding(rect) : super.getPadding(rect); } if (e()) { int i10 = rect.left; rect.left = rect.right; rect.right = i10; } return padding; } void h(d dVar) { this.f9440a = dVar; int i10 = this.f9446g; if (i10 >= 0) { Drawable g10 = dVar.g(i10); this.f9442c = g10; if (g10 != null) { d(g10); } } this.f9443d = null; } final void i(Resources resources) { this.f9440a.y(resources); } public void invalidateDrawable(Drawable drawable) { d dVar = this.f9440a; if (dVar != null) { dVar.p(); } if (drawable != this.f9442c || getCallback() == null) { return; } getCallback().invalidateDrawable(this); } @Override // android.graphics.drawable.Drawable public boolean isAutoMirrored() { return this.f9440a.C; } @Override // android.graphics.drawable.Drawable public void jumpToCurrentState() { boolean z10; Drawable drawable = this.f9443d; boolean z11 = true; if (drawable != null) { drawable.jumpToCurrentState(); this.f9443d = null; z10 = true; } else { z10 = false; } Drawable drawable2 = this.f9442c; if (drawable2 != null) { drawable2.jumpToCurrentState(); if (this.f9445f) { this.f9442c.setAlpha(this.f9444e); } } if (this.f9450k != 0) { this.f9450k = 0L; z10 = true; } if (this.f9449j != 0) { this.f9449j = 0L; } else { z11 = z10; } if (z11) { invalidateSelf(); } } @Override // android.graphics.drawable.Drawable public Drawable mutate() { if (!this.f9447h && super.mutate() == this) { d b10 = b(); b10.r(); h(b10); this.f9447h = true; } return this; } @Override // android.graphics.drawable.Drawable protected void onBoundsChange(Rect rect) { Drawable drawable = this.f9443d; if (drawable != null) { drawable.setBounds(rect); } Drawable drawable2 = this.f9442c; if (drawable2 != null) { drawable2.setBounds(rect); } } @Override // android.graphics.drawable.Drawable public boolean onLayoutDirectionChanged(int i10) { return this.f9440a.w(i10, c()); } @Override // android.graphics.drawable.Drawable protected boolean onLevelChange(int i10) { Drawable drawable = this.f9443d; if (drawable != null) { return drawable.setLevel(i10); } Drawable drawable2 = this.f9442c; if (drawable2 != null) { return drawable2.setLevel(i10); } return false; } public void scheduleDrawable(Drawable drawable, Runnable runnable, long j10) { if (drawable != this.f9442c || getCallback() == null) { return; } getCallback().scheduleDrawable(this, runnable, j10); } @Override // android.graphics.drawable.Drawable public void setAlpha(int i10) { if (this.f9445f && this.f9444e == i10) { return; } this.f9445f = true; this.f9444e = i10; Drawable drawable = this.f9442c; if (drawable != null) { if (this.f9449j == 0) { drawable.setAlpha(i10); } else { a(false); } } } @Override // android.graphics.drawable.Drawable public void setAutoMirrored(boolean z10) { d dVar = this.f9440a; if (dVar.C != z10) { dVar.C = z10; Drawable drawable = this.f9442c; if (drawable != null) { r.c.j(drawable, z10); } } } @Override // android.graphics.drawable.Drawable public void setColorFilter(ColorFilter colorFilter) { d dVar = this.f9440a; dVar.E = true; if (dVar.D != colorFilter) { dVar.D = colorFilter; Drawable drawable = this.f9442c; if (drawable != null) { drawable.setColorFilter(colorFilter); } } } @Override // android.graphics.drawable.Drawable public void setDither(boolean z10) { d dVar = this.f9440a; if (dVar.f9477x != z10) { dVar.f9477x = z10; Drawable drawable = this.f9442c; if (drawable != null) { drawable.setDither(z10); } } } @Override // android.graphics.drawable.Drawable public void setHotspot(float f10, float f11) { Drawable drawable = this.f9442c; if (drawable != null) { r.c.k(drawable, f10, f11); } } @Override // android.graphics.drawable.Drawable public void setHotspotBounds(int i10, int i11, int i12, int i13) { Rect rect = this.f9441b; if (rect == null) { this.f9441b = new Rect(i10, i11, i12, i13); } else { rect.set(i10, i11, i12, i13); } Drawable drawable = this.f9442c; if (drawable != null) { r.c.l(drawable, i10, i11, i12, i13); } } @Override // android.graphics.drawable.Drawable public void setTintList(ColorStateList colorStateList) { d dVar = this.f9440a; dVar.H = true; if (dVar.F != colorStateList) { dVar.F = colorStateList; r.c.o(this.f9442c, colorStateList); } } @Override // android.graphics.drawable.Drawable public void setTintMode(PorterDuff.Mode mode) { d dVar = this.f9440a; dVar.I = true; if (dVar.G != mode) { dVar.G = mode; r.c.p(this.f9442c, mode); } } @Override // android.graphics.drawable.Drawable public boolean setVisible(boolean z10, boolean z11) { boolean visible = super.setVisible(z10, z11); Drawable drawable = this.f9443d; if (drawable != null) { drawable.setVisible(z10, z11); } Drawable drawable2 = this.f9442c; if (drawable2 != null) { drawable2.setVisible(z10, z11); } return visible; } public void unscheduleDrawable(Drawable drawable, Runnable runnable) { if (drawable != this.f9442c || getCallback() == null) { return; } getCallback().unscheduleDrawable(this, runnable); } }