package c1;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Outline;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Looper;
import android.util.AttributeSet;
import android.util.Log;
import c1.k;
import c1.l;
import c1.m;
import java.util.BitSet;

/* JADX INFO: compiled from: MaterialShapeDrawable.java */
/* JADX INFO: loaded from: classes.dex */
public class g extends Drawable implements androidx.core.graphics.drawable.b, n {
    private static final String B = g.class.getSimpleName();
    private static final Paint C;
    private boolean A;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private c f3382e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private final m.g[] f3383f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private final m.g[] f3384g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private final BitSet f3385h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private boolean f3386i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private final Matrix f3387j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private final Path f3388k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private final Path f3389l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private final RectF f3390m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    private final RectF f3391n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    private final Region f3392o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    private final Region f3393p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    private k f3394q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    private final Paint f3395r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    private final Paint f3396s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    private final b1.a f3397t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    private final l.b f3398u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    private final l f3399v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    private PorterDuffColorFilter f3400w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    private PorterDuffColorFilter f3401x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    private int f3402y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    private final RectF f3403z;

    /* JADX INFO: compiled from: MaterialShapeDrawable.java */
    class a implements l.b {
        a() {
        }

        @Override // c1.l.b
        public void a(m mVar, Matrix matrix, int i3) {
            g.this.f3385h.set(i3 + 4, mVar.e());
            g.this.f3384g[i3] = mVar.f(matrix);
        }

        @Override // c1.l.b
        public void b(m mVar, Matrix matrix, int i3) {
            g.this.f3385h.set(i3, mVar.e());
            g.this.f3383f[i3] = mVar.f(matrix);
        }
    }

    /* JADX INFO: compiled from: MaterialShapeDrawable.java */
    class b implements k.c {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        final /* synthetic */ float f3405a;

        b(g gVar, float f3) {
            this.f3405a = f3;
        }

        @Override // c1.k.c
        public c1.c a(c1.c cVar) {
            return cVar instanceof i ? cVar : new c1.b(this.f3405a, cVar);
        }
    }

    static {
        Paint paint = new Paint(1);
        C = paint;
        paint.setColor(-1);
        paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
    }

    /* synthetic */ g(c cVar, a aVar) {
        this(cVar);
    }

    private float E() {
        if (M()) {
            return this.f3396s.getStrokeWidth() / 2.0f;
        }
        return 0.0f;
    }

    private boolean K() {
        c cVar = this.f3382e;
        int i3 = cVar.f3422q;
        return i3 != 1 && cVar.f3423r > 0 && (i3 == 2 || U());
    }

    private boolean L() {
        Paint.Style style = this.f3382e.f3427v;
        return style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.FILL;
    }

    private boolean M() {
        Paint.Style style = this.f3382e.f3427v;
        return (style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.STROKE) && this.f3396s.getStrokeWidth() > 0.0f;
    }

    private void O() {
        super.invalidateSelf();
    }

    private void R(Canvas canvas) {
        if (K()) {
            canvas.save();
            T(canvas);
            if (!this.A) {
                n(canvas);
                canvas.restore();
                return;
            }
            int iWidth = (int) (this.f3403z.width() - getBounds().width());
            int iHeight = (int) (this.f3403z.height() - getBounds().height());
            if (iWidth < 0 || iHeight < 0) {
                throw new IllegalStateException("Invalid shadow bounds. Check that the treatments result in a valid path.");
            }
            Bitmap bitmapCreateBitmap = Bitmap.createBitmap(((int) this.f3403z.width()) + (this.f3382e.f3423r * 2) + iWidth, ((int) this.f3403z.height()) + (this.f3382e.f3423r * 2) + iHeight, Bitmap.Config.ARGB_8888);
            Canvas canvas2 = new Canvas(bitmapCreateBitmap);
            float f3 = (getBounds().left - this.f3382e.f3423r) - iWidth;
            float f4 = (getBounds().top - this.f3382e.f3423r) - iHeight;
            canvas2.translate(-f3, -f4);
            n(canvas2);
            canvas.drawBitmap(bitmapCreateBitmap, f3, f4, (Paint) null);
            bitmapCreateBitmap.recycle();
            canvas.restore();
        }
    }

    private static int S(int i3, int i4) {
        return (i3 * (i4 + (i4 >>> 7))) >>> 8;
    }

    private void T(Canvas canvas) {
        int iA = A();
        int iB = B();
        if (Build.VERSION.SDK_INT < 21 && this.A) {
            Rect clipBounds = canvas.getClipBounds();
            int i3 = this.f3382e.f3423r;
            clipBounds.inset(-i3, -i3);
            clipBounds.offset(iA, iB);
            canvas.clipRect(clipBounds, Region.Op.REPLACE);
        }
        canvas.translate(iA, iB);
    }

    private PorterDuffColorFilter f(Paint paint, boolean z2) {
        if (!z2) {
            return null;
        }
        int color = paint.getColor();
        int iL = l(color);
        this.f3402y = iL;
        if (iL != color) {
            return new PorterDuffColorFilter(iL, PorterDuff.Mode.SRC_IN);
        }
        return null;
    }

    private void g(RectF rectF, Path path) {
        h(rectF, path);
        if (this.f3382e.f3415j != 1.0f) {
            this.f3387j.reset();
            Matrix matrix = this.f3387j;
            float f3 = this.f3382e.f3415j;
            matrix.setScale(f3, f3, rectF.width() / 2.0f, rectF.height() / 2.0f);
            path.transform(this.f3387j);
        }
        path.computeBounds(this.f3403z, true);
    }

    private boolean g0(int[] iArr) {
        boolean z2;
        int color;
        int colorForState;
        int color2;
        int colorForState2;
        if (this.f3382e.f3409d == null || color2 == (colorForState2 = this.f3382e.f3409d.getColorForState(iArr, (color2 = this.f3395r.getColor())))) {
            z2 = false;
        } else {
            this.f3395r.setColor(colorForState2);
            z2 = true;
        }
        if (this.f3382e.f3410e == null || color == (colorForState = this.f3382e.f3410e.getColorForState(iArr, (color = this.f3396s.getColor())))) {
            return z2;
        }
        this.f3396s.setColor(colorForState);
        return true;
    }

    private boolean h0() {
        PorterDuffColorFilter porterDuffColorFilter = this.f3400w;
        PorterDuffColorFilter porterDuffColorFilter2 = this.f3401x;
        c cVar = this.f3382e;
        this.f3400w = k(cVar.f3412g, cVar.f3413h, this.f3395r, true);
        c cVar2 = this.f3382e;
        this.f3401x = k(cVar2.f3411f, cVar2.f3413h, this.f3396s, false);
        c cVar3 = this.f3382e;
        if (cVar3.f3426u) {
            this.f3397t.d(cVar3.f3412g.getColorForState(getState(), 0));
        }
        return (androidx.core.util.c.a(porterDuffColorFilter, this.f3400w) && androidx.core.util.c.a(porterDuffColorFilter2, this.f3401x)) ? false : true;
    }

    private void i() {
        k kVarY = D().y(new b(this, -E()));
        this.f3394q = kVarY;
        this.f3399v.d(kVarY, this.f3382e.f3416k, v(), this.f3389l);
    }

    private void i0() {
        float fJ = J();
        this.f3382e.f3423r = (int) Math.ceil(0.75f * fJ);
        this.f3382e.f3424s = (int) Math.ceil(fJ * 0.25f);
        h0();
        O();
    }

    private PorterDuffColorFilter j(ColorStateList colorStateList, PorterDuff.Mode mode, boolean z2) {
        int colorForState = colorStateList.getColorForState(getState(), 0);
        if (z2) {
            colorForState = l(colorForState);
        }
        this.f3402y = colorForState;
        return new PorterDuffColorFilter(colorForState, mode);
    }

    private PorterDuffColorFilter k(ColorStateList colorStateList, PorterDuff.Mode mode, Paint paint, boolean z2) {
        return (colorStateList == null || mode == null) ? f(paint, z2) : j(colorStateList, mode, z2);
    }

    public static g m(Context context, float f3) {
        int iC = r0.a.c(context, l0.b.f5328k, g.class.getSimpleName());
        g gVar = new g();
        gVar.N(context);
        gVar.X(ColorStateList.valueOf(iC));
        gVar.W(f3);
        return gVar;
    }

    private void n(Canvas canvas) {
        if (this.f3385h.cardinality() > 0) {
            Log.w(B, "Compatibility shadow requested but can't be drawn for all operations in this shape.");
        }
        if (this.f3382e.f3424s != 0) {
            canvas.drawPath(this.f3388k, this.f3397t.c());
        }
        for (int i3 = 0; i3 < 4; i3++) {
            this.f3383f[i3].b(this.f3397t, this.f3382e.f3423r, canvas);
            this.f3384g[i3].b(this.f3397t, this.f3382e.f3423r, canvas);
        }
        if (this.A) {
            int iA = A();
            int iB = B();
            canvas.translate(-iA, -iB);
            canvas.drawPath(this.f3388k, C);
            canvas.translate(iA, iB);
        }
    }

    private void o(Canvas canvas) {
        q(canvas, this.f3395r, this.f3388k, this.f3382e.f3406a, u());
    }

    private void q(Canvas canvas, Paint paint, Path path, k kVar, RectF rectF) {
        if (!kVar.u(rectF)) {
            canvas.drawPath(path, paint);
        } else {
            float fA = kVar.t().a(rectF) * this.f3382e.f3416k;
            canvas.drawRoundRect(rectF, fA, fA, paint);
        }
    }

    private RectF v() {
        this.f3391n.set(u());
        float fE = E();
        this.f3391n.inset(fE, fE);
        return this.f3391n;
    }

    public int A() {
        return (int) (((double) this.f3382e.f3424s) * Math.sin(Math.toRadians(r4.f3425t)));
    }

    public int B() {
        return (int) (((double) this.f3382e.f3424s) * Math.cos(Math.toRadians(r4.f3425t)));
    }

    public int C() {
        return this.f3382e.f3423r;
    }

    public k D() {
        return this.f3382e.f3406a;
    }

    public ColorStateList F() {
        return this.f3382e.f3412g;
    }

    public float G() {
        return this.f3382e.f3406a.r().a(u());
    }

    public float H() {
        return this.f3382e.f3406a.t().a(u());
    }

    public float I() {
        return this.f3382e.f3421p;
    }

    public float J() {
        return w() + I();
    }

    public void N(Context context) {
        this.f3382e.f3407b = new u0.a(context);
        i0();
    }

    public boolean P() {
        u0.a aVar = this.f3382e.f3407b;
        return aVar != null && aVar.d();
    }

    public boolean Q() {
        return this.f3382e.f3406a.u(u());
    }

    public boolean U() {
        int i3 = Build.VERSION.SDK_INT;
        return i3 < 21 || !(Q() || this.f3388k.isConvex() || i3 >= 29);
    }

    public void V(c1.c cVar) {
        setShapeAppearanceModel(this.f3382e.f3406a.x(cVar));
    }

    public void W(float f3) {
        c cVar = this.f3382e;
        if (cVar.f3420o != f3) {
            cVar.f3420o = f3;
            i0();
        }
    }

    public void X(ColorStateList colorStateList) {
        c cVar = this.f3382e;
        if (cVar.f3409d != colorStateList) {
            cVar.f3409d = colorStateList;
            onStateChange(getState());
        }
    }

    public void Y(float f3) {
        c cVar = this.f3382e;
        if (cVar.f3416k != f3) {
            cVar.f3416k = f3;
            this.f3386i = true;
            invalidateSelf();
        }
    }

    public void Z(int i3, int i4, int i5, int i6) {
        c cVar = this.f3382e;
        if (cVar.f3414i == null) {
            cVar.f3414i = new Rect();
        }
        this.f3382e.f3414i.set(i3, i4, i5, i6);
        invalidateSelf();
    }

    public void a0(float f3) {
        c cVar = this.f3382e;
        if (cVar.f3419n != f3) {
            cVar.f3419n = f3;
            i0();
        }
    }

    public void b0(int i3) {
        c cVar = this.f3382e;
        if (cVar.f3425t != i3) {
            cVar.f3425t = i3;
            O();
        }
    }

    public void c0(float f3, int i3) {
        f0(f3);
        e0(ColorStateList.valueOf(i3));
    }

    public void d0(float f3, ColorStateList colorStateList) {
        f0(f3);
        e0(colorStateList);
    }

    @Override // android.graphics.drawable.Drawable
    public void draw(Canvas canvas) {
        this.f3395r.setColorFilter(this.f3400w);
        int alpha = this.f3395r.getAlpha();
        this.f3395r.setAlpha(S(alpha, this.f3382e.f3418m));
        this.f3396s.setColorFilter(this.f3401x);
        this.f3396s.setStrokeWidth(this.f3382e.f3417l);
        int alpha2 = this.f3396s.getAlpha();
        this.f3396s.setAlpha(S(alpha2, this.f3382e.f3418m));
        if (this.f3386i) {
            i();
            g(u(), this.f3388k);
            this.f3386i = false;
        }
        R(canvas);
        if (L()) {
            o(canvas);
        }
        if (M()) {
            r(canvas);
        }
        this.f3395r.setAlpha(alpha);
        this.f3396s.setAlpha(alpha2);
    }

    public void e0(ColorStateList colorStateList) {
        c cVar = this.f3382e;
        if (cVar.f3410e != colorStateList) {
            cVar.f3410e = colorStateList;
            onStateChange(getState());
        }
    }

    public void f0(float f3) {
        this.f3382e.f3417l = f3;
        invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable
    public int getAlpha() {
        return this.f3382e.f3418m;
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable.ConstantState getConstantState() {
        return this.f3382e;
    }

    @Override // android.graphics.drawable.Drawable
    public int getOpacity() {
        return -3;
    }

    @Override // android.graphics.drawable.Drawable
    @TargetApi(21)
    public void getOutline(Outline outline) {
        if (this.f3382e.f3422q == 2) {
            return;
        }
        if (Q()) {
            outline.setRoundRect(getBounds(), G() * this.f3382e.f3416k);
            return;
        }
        g(u(), this.f3388k);
        if (this.f3388k.isConvex() || Build.VERSION.SDK_INT >= 29) {
            try {
                outline.setConvexPath(this.f3388k);
            } catch (IllegalArgumentException unused) {
            }
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean getPadding(Rect rect) {
        Rect rect2 = this.f3382e.f3414i;
        if (rect2 == null) {
            return super.getPadding(rect);
        }
        rect.set(rect2);
        return true;
    }

    @Override // android.graphics.drawable.Drawable
    public Region getTransparentRegion() {
        this.f3392o.set(getBounds());
        g(u(), this.f3388k);
        this.f3393p.setPath(this.f3388k, this.f3392o);
        this.f3392o.op(this.f3393p, Region.Op.DIFFERENCE);
        return this.f3392o;
    }

    protected final void h(RectF rectF, Path path) {
        l lVar = this.f3399v;
        c cVar = this.f3382e;
        lVar.e(cVar.f3406a, cVar.f3416k, rectF, this.f3398u, path);
    }

    @Override // android.graphics.drawable.Drawable
    public void invalidateSelf() {
        this.f3386i = true;
        super.invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isStateful() {
        ColorStateList colorStateList;
        ColorStateList colorStateList2;
        ColorStateList colorStateList3;
        ColorStateList colorStateList4;
        return super.isStateful() || ((colorStateList = this.f3382e.f3412g) != null && colorStateList.isStateful()) || (((colorStateList2 = this.f3382e.f3411f) != null && colorStateList2.isStateful()) || (((colorStateList3 = this.f3382e.f3410e) != null && colorStateList3.isStateful()) || ((colorStateList4 = this.f3382e.f3409d) != null && colorStateList4.isStateful())));
    }

    protected int l(int i3) {
        float fJ = J() + y();
        u0.a aVar = this.f3382e.f3407b;
        return aVar != null ? aVar.c(i3, fJ) : i3;
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable mutate() {
        this.f3382e = new c(this.f3382e);
        return this;
    }

    @Override // android.graphics.drawable.Drawable
    protected void onBoundsChange(Rect rect) {
        this.f3386i = true;
        super.onBoundsChange(rect);
    }

    @Override // android.graphics.drawable.Drawable
    protected boolean onStateChange(int[] iArr) {
        boolean z2 = g0(iArr) || h0();
        if (z2) {
            invalidateSelf();
        }
        return z2;
    }

    protected void p(Canvas canvas, Paint paint, Path path, RectF rectF) {
        q(canvas, paint, path, this.f3382e.f3406a, rectF);
    }

    protected void r(Canvas canvas) {
        q(canvas, this.f3396s, this.f3389l, this.f3394q, v());
    }

    public float s() {
        return this.f3382e.f3406a.j().a(u());
    }

    @Override // android.graphics.drawable.Drawable
    public void setAlpha(int i3) {
        c cVar = this.f3382e;
        if (cVar.f3418m != i3) {
            cVar.f3418m = i3;
            O();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setColorFilter(ColorFilter colorFilter) {
        this.f3382e.f3408c = colorFilter;
        O();
    }

    @Override // c1.n
    public void setShapeAppearanceModel(k kVar) {
        this.f3382e.f3406a = kVar;
        invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTint(int i3) {
        setTintList(ColorStateList.valueOf(i3));
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTintList(ColorStateList colorStateList) {
        this.f3382e.f3412g = colorStateList;
        h0();
        O();
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTintMode(PorterDuff.Mode mode) {
        c cVar = this.f3382e;
        if (cVar.f3413h != mode) {
            cVar.f3413h = mode;
            h0();
            O();
        }
    }

    public float t() {
        return this.f3382e.f3406a.l().a(u());
    }

    protected RectF u() {
        this.f3390m.set(getBounds());
        return this.f3390m;
    }

    public float w() {
        return this.f3382e.f3420o;
    }

    public ColorStateList x() {
        return this.f3382e.f3409d;
    }

    public float y() {
        return this.f3382e.f3419n;
    }

    public int z() {
        return this.f3402y;
    }

    public g() {
        this(new k());
    }

    public g(Context context, AttributeSet attributeSet, int i3, int i4) {
        this(k.e(context, attributeSet, i3, i4).m());
    }

    public g(k kVar) {
        this(new c(kVar, null));
    }

    private g(c cVar) {
        l lVar;
        this.f3383f = new m.g[4];
        this.f3384g = new m.g[4];
        this.f3385h = new BitSet(8);
        this.f3387j = new Matrix();
        this.f3388k = new Path();
        this.f3389l = new Path();
        this.f3390m = new RectF();
        this.f3391n = new RectF();
        this.f3392o = new Region();
        this.f3393p = new Region();
        Paint paint = new Paint(1);
        this.f3395r = paint;
        Paint paint2 = new Paint(1);
        this.f3396s = paint2;
        this.f3397t = new b1.a();
        if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
            lVar = l.k();
        } else {
            lVar = new l();
        }
        this.f3399v = lVar;
        this.f3403z = new RectF();
        this.A = true;
        this.f3382e = cVar;
        paint2.setStyle(Paint.Style.STROKE);
        paint.setStyle(Paint.Style.FILL);
        h0();
        g0(getState());
        this.f3398u = new a();
    }

    /* JADX INFO: compiled from: MaterialShapeDrawable.java */
    static final class c extends Drawable.ConstantState {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public k f3406a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public u0.a f3407b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public ColorFilter f3408c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public ColorStateList f3409d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public ColorStateList f3410e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public ColorStateList f3411f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        public ColorStateList f3412g;

        /* JADX INFO: renamed from: h, reason: collision with root package name */
        public PorterDuff.Mode f3413h;

        /* JADX INFO: renamed from: i, reason: collision with root package name */
        public Rect f3414i;

        /* JADX INFO: renamed from: j, reason: collision with root package name */
        public float f3415j;

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        public float f3416k;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        public float f3417l;

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        public int f3418m;

        /* JADX INFO: renamed from: n, reason: collision with root package name */
        public float f3419n;

        /* JADX INFO: renamed from: o, reason: collision with root package name */
        public float f3420o;

        /* JADX INFO: renamed from: p, reason: collision with root package name */
        public float f3421p;

        /* JADX INFO: renamed from: q, reason: collision with root package name */
        public int f3422q;

        /* JADX INFO: renamed from: r, reason: collision with root package name */
        public int f3423r;

        /* JADX INFO: renamed from: s, reason: collision with root package name */
        public int f3424s;

        /* JADX INFO: renamed from: t, reason: collision with root package name */
        public int f3425t;

        /* JADX INFO: renamed from: u, reason: collision with root package name */
        public boolean f3426u;

        /* JADX INFO: renamed from: v, reason: collision with root package name */
        public Paint.Style f3427v;

        public c(k kVar, u0.a aVar) {
            this.f3409d = null;
            this.f3410e = null;
            this.f3411f = null;
            this.f3412g = null;
            this.f3413h = PorterDuff.Mode.SRC_IN;
            this.f3414i = null;
            this.f3415j = 1.0f;
            this.f3416k = 1.0f;
            this.f3418m = 255;
            this.f3419n = 0.0f;
            this.f3420o = 0.0f;
            this.f3421p = 0.0f;
            this.f3422q = 0;
            this.f3423r = 0;
            this.f3424s = 0;
            this.f3425t = 0;
            this.f3426u = false;
            this.f3427v = Paint.Style.FILL_AND_STROKE;
            this.f3406a = kVar;
            this.f3407b = aVar;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return 0;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            g gVar = new g(this, null);
            gVar.f3386i = true;
            return gVar;
        }

        public c(c cVar) {
            this.f3409d = null;
            this.f3410e = null;
            this.f3411f = null;
            this.f3412g = null;
            this.f3413h = PorterDuff.Mode.SRC_IN;
            this.f3414i = null;
            this.f3415j = 1.0f;
            this.f3416k = 1.0f;
            this.f3418m = 255;
            this.f3419n = 0.0f;
            this.f3420o = 0.0f;
            this.f3421p = 0.0f;
            this.f3422q = 0;
            this.f3423r = 0;
            this.f3424s = 0;
            this.f3425t = 0;
            this.f3426u = false;
            this.f3427v = Paint.Style.FILL_AND_STROKE;
            this.f3406a = cVar.f3406a;
            this.f3407b = cVar.f3407b;
            this.f3417l = cVar.f3417l;
            this.f3408c = cVar.f3408c;
            this.f3409d = cVar.f3409d;
            this.f3410e = cVar.f3410e;
            this.f3413h = cVar.f3413h;
            this.f3412g = cVar.f3412g;
            this.f3418m = cVar.f3418m;
            this.f3415j = cVar.f3415j;
            this.f3424s = cVar.f3424s;
            this.f3422q = cVar.f3422q;
            this.f3426u = cVar.f3426u;
            this.f3416k = cVar.f3416k;
            this.f3419n = cVar.f3419n;
            this.f3420o = cVar.f3420o;
            this.f3421p = cVar.f3421p;
            this.f3423r = cVar.f3423r;
            this.f3425t = cVar.f3425t;
            this.f3411f = cVar.f3411f;
            this.f3427v = cVar.f3427v;
            if (cVar.f3414i != null) {
                this.f3414i = new Rect(cVar.f3414i);
            }
        }
    }
}
