package ῲ.ᨨ.ʬ.ᕣ;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.os.Build;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ᨨ.ʬ.ᕣ.ʬ  reason: contains not printable characters */
/* compiled from: WrappedDrawableApi14 */
public class C1710 extends Drawable implements Drawable.Callback, AbstractC1712, AbstractC1713 {

    /* renamed from: 㿎  reason: contains not printable characters */
    public static final PorterDuff.Mode f6006 = PorterDuff.Mode.SRC_IN;

    /* renamed from: ʬ  reason: contains not printable characters */
    public PorterDuff.Mode f6007;

    /* renamed from: ඓ  reason: contains not printable characters */
    public C1711 f6008;

    /* renamed from: ῲ  reason: contains not printable characters */
    public int f6009;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public Drawable f6010;

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean f6011;

    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean f6012;

    public C1710(C1711 r1, Resources resources) {
        Drawable.ConstantState constantState;
        this.f6008 = r1;
        C1711 r12 = this.f6008;
        if (r12 != null && (constantState = r12.f6014) != null) {
            m4385(constantState.newDrawable(resources));
        }
    }

    public void draw(Canvas canvas) {
        this.f6010.draw(canvas);
    }

    public int getChangingConfigurations() {
        int changingConfigurations = super.getChangingConfigurations();
        C1711 r1 = this.f6008;
        return changingConfigurations | (r1 != null ? r1.getChangingConfigurations() : 0) | this.f6010.getChangingConfigurations();
    }

    public Drawable.ConstantState getConstantState() {
        C1711 r0 = this.f6008;
        if (r0 == null) {
            return null;
        }
        if (!(r0.f6014 != null)) {
            return null;
        }
        this.f6008.f6015 = getChangingConfigurations();
        return this.f6008;
    }

    public Drawable getCurrent() {
        return this.f6010.getCurrent();
    }

    public int getIntrinsicHeight() {
        return this.f6010.getIntrinsicHeight();
    }

    public int getIntrinsicWidth() {
        return this.f6010.getIntrinsicWidth();
    }

    public int getLayoutDirection() {
        return C2369.m6278(this.f6010);
    }

    public int getMinimumHeight() {
        return this.f6010.getMinimumHeight();
    }

    public int getMinimumWidth() {
        return this.f6010.getMinimumWidth();
    }

    public int getOpacity() {
        return this.f6010.getOpacity();
    }

    public boolean getPadding(Rect rect) {
        return this.f6010.getPadding(rect);
    }

    public int[] getState() {
        return this.f6010.getState();
    }

    public Region getTransparentRegion() {
        return this.f6010.getTransparentRegion();
    }

    public void invalidateDrawable(Drawable drawable) {
        invalidateSelf();
    }

    public boolean isAutoMirrored() {
        return C2369.m6271(this.f6010);
    }

    public boolean isStateful() {
        C1711 r0;
        ColorStateList colorStateList = (!m4386() || (r0 = this.f6008) == null) ? null : r0.f6013;
        return (colorStateList != null && colorStateList.isStateful()) || this.f6010.isStateful();
    }

    public void jumpToCurrentState() {
        this.f6010.jumpToCurrentState();
    }

    public Drawable mutate() {
        if (!this.f6011 && super.mutate() == this) {
            this.f6008 = new C1711(this.f6008);
            Drawable drawable = this.f6010;
            if (drawable != null) {
                drawable.mutate();
            }
            C1711 r0 = this.f6008;
            if (r0 != null) {
                Drawable drawable2 = this.f6010;
                r0.f6014 = drawable2 != null ? drawable2.getConstantState() : null;
            }
            this.f6011 = true;
        }
        return this;
    }

    public void onBoundsChange(Rect rect) {
        Drawable drawable = this.f6010;
        if (drawable != null) {
            drawable.setBounds(rect);
        }
    }

    public boolean onLayoutDirectionChanged(int i) {
        return C2369.m6340(this.f6010, i);
    }

    public boolean onLevelChange(int i) {
        return this.f6010.setLevel(i);
    }

    public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
        scheduleSelf(runnable, j);
    }

    public void setAlpha(int i) {
        this.f6010.setAlpha(i);
    }

    public void setAutoMirrored(boolean z) {
        Drawable drawable = this.f6010;
        int i = Build.VERSION.SDK_INT;
        drawable.setAutoMirrored(z);
    }

    public void setChangingConfigurations(int i) {
        this.f6010.setChangingConfigurations(i);
    }

    public void setColorFilter(ColorFilter colorFilter) {
        this.f6010.setColorFilter(colorFilter);
    }

    public void setDither(boolean z) {
        this.f6010.setDither(z);
    }

    public void setFilterBitmap(boolean z) {
        this.f6010.setFilterBitmap(z);
    }

    public boolean setState(int[] iArr) {
        return m4387(iArr) || this.f6010.setState(iArr);
    }

    public void setTint(int i) {
        setTintList(ColorStateList.valueOf(i));
    }

    public void setTintList(ColorStateList colorStateList) {
        this.f6008.f6013 = colorStateList;
        m4387(getState());
    }

    public void setTintMode(PorterDuff.Mode mode) {
        this.f6008.f6016 = mode;
        m4387(getState());
    }

    public boolean setVisible(boolean z, boolean z2) {
        return super.setVisible(z, z2) || this.f6010.setVisible(z, z2);
    }

    public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
        unscheduleSelf(runnable);
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m4386() {
        return true;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final boolean m4387(int[] iArr) {
        if (!m4386()) {
            return false;
        }
        C1711 r0 = this.f6008;
        ColorStateList colorStateList = r0.f6013;
        PorterDuff.Mode mode = r0.f6016;
        if (colorStateList == null || mode == null) {
            this.f6012 = false;
            clearColorFilter();
        } else {
            int colorForState = colorStateList.getColorForState(iArr, colorStateList.getDefaultColor());
            if (!(this.f6012 && colorForState == this.f6009 && mode == this.f6007)) {
                setColorFilter(colorForState, mode);
                this.f6009 = colorForState;
                this.f6007 = mode;
                this.f6012 = true;
                return true;
            }
        }
        return false;
    }

    public C1710(Drawable drawable) {
        this.f6008 = new C1711(this.f6008);
        m4385(drawable);
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m4385(Drawable drawable) {
        Drawable drawable2 = this.f6010;
        if (drawable2 != null) {
            drawable2.setCallback(null);
        }
        this.f6010 = drawable;
        if (drawable != null) {
            drawable.setCallback(this);
            setVisible(drawable.isVisible(), true);
            setState(drawable.getState());
            setLevel(drawable.getLevel());
            setBounds(drawable.getBounds());
            C1711 r0 = this.f6008;
            if (r0 != null) {
                r0.f6014 = drawable.getConstantState();
            }
        }
        invalidateSelf();
    }
}
