导航菜单

页面标题

页面副标题

饼干视频 v4.1.0 - w.java 源代码

正在查看: 饼干视频 v4.1.0 应用的 w.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bytedance.adsdk.lottie;

import amc.cd.p037.C0257;
import amc.cd.p037.C0259;
import amc.cd.p037.C0265;
import amc.cd.p037.C0267;
import amc.cd.p037.C0272;
import amc.cd.p037.C0276;
import amc.cd.p037.InterfaceC0277;
import amc.cd.p041.C0286;
import amc.cd.p062.C0362;
import amc.cd.p067.C0447;
import amc.cd.p067.C0448;
import amc.cd.p088.C0537;
import amc.cd.p088.C0549;
import amc.cd.p088.ChoreographerFrameCallbackC0546;
import amc.cd.p140.C0923;
import amc.cd.p140.C0925;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.ImageView;
import com.bytedance.adsdk.lottie.fu.fu.C1198;
import com.bytedance.component.sdk.annotation.FloatRange;
import com.bytedance.component.sdk.annotation.IntRange;
import com.bytedance.component.sdk.annotation.MainThread;
import com.bytedance.component.sdk.annotation.RestrictTo;
import com.google.common.collect.LinkedHashMultimap;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;

public class w extends Drawable implements Animatable, Drawable.Callback {

    public Canvas f2130;

    public boolean f2131;

    public boolean f2132;

    public Rect f2133;

    public boolean f2134;

    public boolean f2135;

    public boolean f2136;

    public Rect f2137;

    public String f2138;

    public Rect f2139;

    public boolean f2140;

    public c f2141;

    public Map<String, Typeface> f2142;

    public Matrix f2143;

    public String f2144;

    public Matrix f2145;

    public int f2146;

    public boolean f2147;

    public boolean f2148;

    public RectF f2149;

    public C1216 f2150;

    public boolean f2151;

    public Paint f2152;

    public C0272 f2153;

    public RectF f2154;

    public C1198 f2155;

    public ud f2156;

    public RectF f2157;

    public C0276 f2158;

    public C0447 f2159;

    public Bitmap f2160;

    public C0448 f2161;

    public final Matrix f2162;

    public final ChoreographerFrameCallbackC0546 f2163;

    public InterfaceC0277 f2164;

    public final ArrayList<InterfaceC1205> f2165;

    public boolean f2166;

    public final ValueAnimator.AnimatorUpdateListener f2167;

    public C0265 f2168;

    public boolean f2169;

    public enum ud {
        NONE,
        PLAY,
        RESUME
    }

    public class C1202 implements InterfaceC1205 {

        public final float f2170;

        public C1202(float f) {
            this.f2170 = f;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2446(this.f2170);
        }
    }

    public class C1203 implements InterfaceC1205 {

        public final String f2172;

        public C1203(String str) {
            this.f2172 = str;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2438(this.f2172);
        }
    }

    public class C1204 implements InterfaceC1205 {
        public C1204() {
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2405();
        }
    }

    public interface InterfaceC1205 {
        void mo2447(C1216 c1216);
    }

    public class C1206 implements InterfaceC1205 {

        public final int f2175;

        public C1206(int i) {
            this.f2175 = i;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2422(this.f2175);
        }
    }

    public class C1207 implements InterfaceC1205 {

        public final int f2177;

        public final int f2178;

        public C1207(int i, int i2) {
            this.f2177 = i;
            this.f2178 = i2;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2395(this.f2177, this.f2178);
        }
    }

    public class C1208 implements InterfaceC1205 {

        public final int f2180;

        public C1208(int i) {
            this.f2180 = i;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2415(this.f2180);
        }
    }

    public class C1209 implements InterfaceC1205 {

        public final String f2182;

        public C1209(String str) {
            this.f2182 = str;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2441(this.f2182);
        }
    }

    public class C1210 implements InterfaceC1205 {

        public final int f2184;

        public C1210(int i) {
            this.f2184 = i;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2382(this.f2184);
        }
    }

    public class C1211 implements InterfaceC1205 {

        public final float f2186;

        public C1211(float f) {
            this.f2186 = f;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2369(this.f2186);
        }
    }

    public class C1212 implements ValueAnimator.AnimatorUpdateListener {
        public C1212() {
        }

        @Override
        public void onAnimationUpdate(ValueAnimator valueAnimator) {
            if (w.this.f2155 != null) {
                w.this.f2155.mo2288(w.this.f2163.m936());
            }
        }
    }

    public class C1213 implements InterfaceC1205 {
        public C1213() {
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2435();
        }
    }

    public class C1214 implements InterfaceC1205 {

        public final float f2190;

        public C1214(float f) {
            this.f2190 = f;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2398(this.f2190);
        }
    }

    public class C1215 implements InterfaceC1205 {

        public final String f2192;

        public C1215(String str) {
            this.f2192 = str;
        }

        @Override
        public void mo2447(C1216 c1216) {
            w.this.m2416(this.f2192);
        }
    }

    public w() {
        ChoreographerFrameCallbackC0546 choreographerFrameCallbackC0546 = new ChoreographerFrameCallbackC0546();
        this.f2163 = choreographerFrameCallbackC0546;
        this.f2136 = true;
        this.f2134 = false;
        this.f2169 = false;
        this.f2156 = ud.NONE;
        this.f2165 = new ArrayList<>();
        C1212 c1212 = new C1212();
        this.f2167 = c1212;
        this.f2131 = false;
        this.f2148 = true;
        this.f2146 = 255;
        this.f2141 = c.AUTOMATIC;
        this.f2140 = false;
        this.f2162 = new Matrix();
        this.f2135 = false;
        choreographerFrameCallbackC0546.addUpdateListener(c1212);
    }

    private Context getContext() {
        Drawable.Callback callback = getCallback();
        if (callback != null && (callback instanceof View)) {
            return ((View) callback).getContext();
        }
        return null;
    }

    @Override
    public void draw(Canvas canvas) {
        C0267.m476("Drawable#draw");
        try {
            if (this.f2140) {
                m2388(canvas, this.f2155);
            } else {
                m2367(canvas);
            }
        } catch (Throwable th) {
            C0549.m940("Lottie crashed in draw!", th);
        }
        this.f2135 = false;
        C0267.m474("Drawable#draw");
    }

    @Override
    public int getAlpha() {
        return this.f2146;
    }

    @Override
    public int getIntrinsicHeight() {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            return -1;
        }
        return c1216.m2467().height();
    }

    @Override
    public int getIntrinsicWidth() {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            return -1;
        }
        return c1216.m2467().width();
    }

    @Override
    public int getOpacity() {
        return -3;
    }

    @Override
    public void invalidateDrawable(Drawable drawable) {
        Drawable.Callback callback = getCallback();
        if (callback == null) {
            return;
        }
        callback.invalidateDrawable(this);
    }

    @Override
    public void invalidateSelf() {
        if (this.f2135) {
            return;
        }
        this.f2135 = true;
        Drawable.Callback callback = getCallback();
        if (callback != null) {
            callback.invalidateDrawable(this);
        }
    }

    @Override
    public boolean isRunning() {
        return m2412();
    }

    @Override
    public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
        Drawable.Callback callback = getCallback();
        if (callback == null) {
            return;
        }
        callback.scheduleDrawable(this, runnable, j);
    }

    @Override
    public void setAlpha(@IntRange(from = 0, to = 255) int i) {
        this.f2146 = i;
        invalidateSelf();
    }

    @Override
    public void setColorFilter(ColorFilter colorFilter) {
        C0549.m943("Use addColorFilter instead.");
    }

    @Override
    public boolean setVisible(boolean z, boolean z2) {
        boolean z3 = !isVisible();
        boolean visible = super.setVisible(z, z2);
        if (z) {
            ud udVar = this.f2156;
            if (udVar == ud.PLAY) {
                m2405();
            } else if (udVar == ud.RESUME) {
                m2435();
            }
        } else if (this.f2163.isRunning()) {
            m2413();
            this.f2156 = ud.RESUME;
        } else if (!z3) {
            this.f2156 = ud.NONE;
        }
        return visible;
    }

    @Override
    @MainThread
    public void start() {
        Drawable.Callback callback = getCallback();
        if ((callback instanceof View) && ((View) callback).isInEditMode()) {
            return;
        }
        m2405();
    }

    @Override
    @MainThread
    public void stop() {
        m2414();
    }

    @Override
    public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
        Drawable.Callback callback = getCallback();
        if (callback == null) {
            return;
        }
        callback.unscheduleDrawable(this, runnable);
    }

    public void m2364(float f) {
        this.f2163.m932(f);
    }

    public boolean m2365() {
        return this.f2131;
    }

    public void m2366(boolean z) {
        this.f2163.m917(z);
    }

    public final void m2367(Canvas canvas) {
        C1198 c1198 = this.f2155;
        C1216 c1216 = this.f2150;
        if (c1198 == null || c1216 == null) {
            return;
        }
        this.f2162.reset();
        if (!getBounds().isEmpty()) {
            this.f2162.preScale(r2.width() / c1216.m2467().width(), r2.height() / c1216.m2467().height());
            this.f2162.preTranslate(r2.left, r2.top);
        }
        c1198.mo1233(canvas, this.f2162, this.f2146);
    }

    public float m2368() {
        return this.f2163.m938();
    }

    public void m2369(@FloatRange(from = 0.0d, to = 1.0d) float f) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            this.f2165.add(new C1211(f));
        } else {
            this.f2163.m925(C0537.m885(c1216.m2454(), this.f2150.m2460(), f));
        }
    }

    public final boolean m2370() {
        Drawable.Callback callback = getCallback();
        if (!(callback instanceof View)) {
            return false;
        }
        ViewParent parent = ((View) callback).getParent();
        return (parent instanceof ViewGroup) && !((ViewGroup) parent).getClipChildren();
    }

    public void m2371(C0272 c0272) {
        this.f2153 = c0272;
        C0447 c0447 = this.f2159;
        if (c0447 != null) {
            c0447.m723(c0272);
        }
    }

    public boolean m2372() {
        return this.f2142 == null && this.f2158 == null && this.f2150.m2450().size() > 0;
    }

    @FloatRange(from = 0.0d, to = LinkedHashMultimap.VALUE_SET_LOAD_FACTOR)
    public float m2373() {
        return this.f2163.m936();
    }

    public void m2374(c cVar) {
        this.f2141 = cVar;
        m2386();
    }

    public c m2375() {
        return this.f2140 ? c.SOFTWARE : c.HARDWARE;
    }

    public C0259 m2376() {
        C1216 c1216 = this.f2150;
        if (c1216 != null) {
            return c1216.m2473();
        }
        return null;
    }

    public String m2377() {
        return this.f2144;
    }

    public C0276 m2378() {
        return this.f2158;
    }

    public float m2379() {
        return this.f2163.m921();
    }

    @SuppressLint({"WrongConstant"})
    public int m2380() {
        return this.f2163.getRepeatMode();
    }

    public boolean m2381(C1216 c1216, Context context) {
        if (this.f2150 == c1216) {
            return false;
        }
        this.f2135 = true;
        m2427();
        this.f2150 = c1216;
        m2430(context);
        this.f2163.m924(c1216);
        m2446(this.f2163.getAnimatedFraction());
        Iterator it = new ArrayList(this.f2165).iterator();
        while (it.hasNext()) {
            InterfaceC1205 interfaceC1205 = (InterfaceC1205) it.next();
            if (interfaceC1205 != null) {
                interfaceC1205.mo2447(c1216);
            }
            it.remove();
        }
        this.f2165.clear();
        c1216.m2464(this.f2132);
        m2386();
        Drawable.Callback callback = getCallback();
        if (callback instanceof ImageView) {
            ImageView imageView = (ImageView) callback;
            imageView.setImageDrawable(null);
            imageView.setImageDrawable(this);
        }
        return true;
    }

    public void m2382(int i) {
        if (this.f2150 == null) {
            this.f2165.add(new C1210(i));
        } else {
            this.f2163.m930(i);
        }
    }

    public RectF m2383() {
        return this.f2157;
    }

    public final void m2384(RectF rectF, Rect rect) {
        rect.set((int) Math.floor(rectF.left), (int) Math.floor(rectF.top), (int) Math.ceil(rectF.right), (int) Math.ceil(rectF.bottom));
    }

    public boolean m2385() {
        return this.f2140;
    }

    public final void m2386() {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            return;
        }
        this.f2140 = this.f2141.i(Build.VERSION.SDK_INT, c1216.m2469(), c1216.m2456());
    }

    public int m2387() {
        return this.f2163.getRepeatCount();
    }

    public final void m2388(Canvas canvas, C1198 c1198) {
        if (this.f2150 == null || c1198 == null) {
            return;
        }
        m2403();
        canvas.getMatrix(this.f2143);
        canvas.getClipBounds(this.f2139);
        m2401(this.f2139, this.f2149);
        this.f2143.mapRect(this.f2149);
        m2384(this.f2149, this.f2139);
        if (this.f2148) {
            this.f2157.set(0.0f, 0.0f, getIntrinsicWidth(), getIntrinsicHeight());
        } else {
            c1198.mo1232(this.f2157, null, false);
        }
        this.f2143.mapRect(this.f2157);
        Rect bounds = getBounds();
        float width = bounds.width() / getIntrinsicWidth();
        float height = bounds.height() / getIntrinsicHeight();
        m2406(this.f2157, width, height);
        if (!m2370()) {
            RectF rectF = this.f2157;
            Rect rect = this.f2139;
            rectF.intersect(rect.left, rect.top, rect.right, rect.bottom);
        }
        int ceil = (int) Math.ceil(this.f2157.width());
        int ceil2 = (int) Math.ceil(this.f2157.height());
        if (ceil == 0 || ceil2 == 0) {
            return;
        }
        m2407(ceil, ceil2);
        if (this.f2135) {
            this.f2162.set(this.f2143);
            this.f2162.preScale(width, height);
            Matrix matrix = this.f2162;
            RectF rectF2 = this.f2157;
            matrix.postTranslate(-rectF2.left, -rectF2.top);
            this.f2160.eraseColor(0);
            c1198.mo1233(this.f2130, this.f2162, this.f2146);
            this.f2143.invert(this.f2145);
            this.f2145.mapRect(this.f2154, this.f2157);
            m2384(this.f2154, this.f2133);
        }
        this.f2137.set(0, 0, ceil, ceil2);
        canvas.drawBitmap(this.f2160, this.f2137, this.f2133, this.f2152);
    }

    public void m2389(Animator.AnimatorListener animatorListener) {
        this.f2163.addListener(animatorListener);
    }

    public void m2390(C0276 c0276) {
        this.f2158 = c0276;
    }

    public void m2391(boolean z) {
        this.f2134 = z;
    }

    public void m2392(Map<String, Typeface> map) {
        if (map == this.f2142) {
            return;
        }
        this.f2142 = map;
        invalidateSelf();
    }

    public final C0447 m2393() {
        if (getCallback() == null) {
            return null;
        }
        if (this.f2159 == null) {
            C0447 c0447 = new C0447(getCallback(), this.f2153);
            this.f2159 = c0447;
            String str = this.f2138;
            if (str != null) {
                c0447.m719(str);
            }
        }
        return this.f2159;
    }

    public void m2394(boolean z) {
        if (z != this.f2148) {
            this.f2148 = z;
            C1198 c1198 = this.f2155;
            if (c1198 != null) {
                c1198.m2314(z);
            }
            invalidateSelf();
        }
    }

    public void m2395(int i, int i2) {
        if (this.f2150 == null) {
            this.f2165.add(new C1207(i, i2));
        } else {
            this.f2163.m934(i, i2 + 0.99f);
        }
    }

    public void m2396(C0265 c0265) {
        this.f2168 = c0265;
    }

    public Bitmap m2397(String str) {
        C0448 m2440 = m2440();
        if (m2440 != null) {
            return m2440.m725(str);
        }
        return null;
    }

    public void m2398(float f) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            this.f2165.add(new C1214(f));
        } else {
            m2415((int) C0537.m885(c1216.m2454(), this.f2150.m2460(), f));
        }
    }

    public boolean m2399() {
        if (isVisible()) {
            return this.f2163.isRunning();
        }
        ud udVar = this.f2156;
        return udVar == ud.PLAY || udVar == ud.RESUME;
    }

    public void m2400(boolean z) {
        this.f2147 = z;
    }

    public final void m2401(Rect rect, RectF rectF) {
        rectF.set(rect.left, rect.top, rect.right, rect.bottom);
    }

    public void m2402(boolean z) {
        this.f2132 = z;
        C1216 c1216 = this.f2150;
        if (c1216 != null) {
            c1216.m2464(z);
        }
    }

    public final void m2403() {
        if (this.f2130 != null) {
            return;
        }
        this.f2130 = new Canvas();
        this.f2157 = new RectF();
        this.f2143 = new Matrix();
        this.f2145 = new Matrix();
        this.f2139 = new Rect();
        this.f2149 = new RectF();
        this.f2152 = new C0286();
        this.f2137 = new Rect();
        this.f2133 = new Rect();
        this.f2154 = new RectF();
    }

    public void m2404(InterfaceC0277 interfaceC0277) {
        this.f2164 = interfaceC0277;
        C0448 c0448 = this.f2161;
        if (c0448 != null) {
            c0448.m728(interfaceC0277);
        }
    }

    @MainThread
    public void m2405() {
        if (this.f2155 == null) {
            this.f2165.add(new C1204());
            return;
        }
        m2386();
        if (m2409() || m2387() == 0) {
            if (isVisible()) {
                this.f2163.m920();
                this.f2156 = ud.NONE;
            } else {
                this.f2156 = ud.PLAY;
            }
        }
        if (m2409()) {
            return;
        }
        m2382((int) (m2368() < 0.0f ? m2379() : m2411()));
        this.f2163.m916();
        if (isVisible()) {
            return;
        }
        this.f2156 = ud.NONE;
    }

    public final void m2406(RectF rectF, float f, float f2) {
        rectF.set(rectF.left * f, rectF.top * f2, rectF.right * f, rectF.bottom * f2);
    }

    public final void m2407(int i, int i2) {
        Bitmap bitmap = this.f2160;
        if (bitmap == null || bitmap.getWidth() < i || this.f2160.getHeight() < i2) {
            Bitmap createBitmap = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
            this.f2160 = createBitmap;
            this.f2130.setBitmap(createBitmap);
            this.f2135 = true;
            return;
        }
        if (this.f2160.getWidth() > i || this.f2160.getHeight() > i2) {
            Bitmap createBitmap2 = Bitmap.createBitmap(this.f2160, 0, 0, i, i2);
            this.f2160 = createBitmap2;
            this.f2130.setBitmap(createBitmap2);
            this.f2135 = true;
        }
    }

    public C0265 m2408() {
        return this.f2168;
    }

    public final boolean m2409() {
        return this.f2136 || this.f2134;
    }

    public void m2410(Boolean bool) {
        this.f2136 = bool.booleanValue();
    }

    public float m2411() {
        return this.f2163.m928();
    }

    public boolean m2412() {
        ChoreographerFrameCallbackC0546 choreographerFrameCallbackC0546 = this.f2163;
        if (choreographerFrameCallbackC0546 == null) {
            return false;
        }
        return choreographerFrameCallbackC0546.isRunning();
    }

    public void m2413() {
        this.f2165.clear();
        this.f2163.m915();
        if (isVisible()) {
            return;
        }
        this.f2156 = ud.NONE;
    }

    @MainThread
    public void m2414() {
        this.f2165.clear();
        this.f2163.m916();
        if (isVisible()) {
            return;
        }
        this.f2156 = ud.NONE;
    }

    public void m2415(int i) {
        if (this.f2150 == null) {
            this.f2165.add(new C1208(i));
        } else {
            this.f2163.m923(i);
        }
    }

    public void m2416(String str) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            this.f2165.add(new C1215(str));
            return;
        }
        C0923 m2449 = c1216.m2449(str);
        if (m2449 != null) {
            m2415((int) m2449.f1528);
            return;
        }
        throw new IllegalArgumentException("Cannot find marker with name " + str + ".");
    }

    public void m2417(int i) {
        this.f2163.setRepeatMode(i);
    }

    public void m2418() {
        this.f2163.removeAllUpdateListeners();
        this.f2163.addUpdateListener(this.f2167);
    }

    public C1198 m2419() {
        return this.f2155;
    }

    public void m2420(int i) {
        this.f2163.setRepeatCount(i);
    }

    public void m2421(String str) {
        this.f2144 = str;
    }

    public void m2422(int i) {
        if (this.f2150 == null) {
            this.f2165.add(new C1206(i));
        } else {
            this.f2163.m925(i + 0.99f);
        }
    }

    public boolean m2423() {
        return this.f2147;
    }

    public Bitmap m2424(String str, Bitmap bitmap) {
        C0448 m2440 = m2440();
        if (m2440 == null) {
            C0549.m943("Cannot update bitmap. Most likely the drawable is not added to a View which prevents Lottie from getting a Context.");
            return null;
        }
        Bitmap m726 = m2440.m726(str, bitmap);
        invalidateSelf();
        return m726;
    }

    public void m2425() {
        this.f2163.removeAllListeners();
    }

    public void m2426(String str) {
        this.f2138 = str;
        C0447 m2393 = m2393();
        if (m2393 != null) {
            m2393.m719(str);
        }
    }

    public void m2427() {
        if (this.f2163.isRunning()) {
            this.f2163.cancel();
            if (!isVisible()) {
                this.f2156 = ud.NONE;
            }
        }
        this.f2150 = null;
        this.f2155 = null;
        this.f2161 = null;
        this.f2163.m926();
        invalidateSelf();
    }

    public int m2428() {
        return (int) this.f2163.m919();
    }

    public void m2429(boolean z) {
        this.f2131 = z;
    }

    public final void m2430(Context context) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            return;
        }
        C1198 c1198 = new C1198(this, C0362.m595(c1216), c1216.m2472(), c1216, context);
        this.f2155 = c1198;
        if (this.f2151) {
            c1198.mo2290(true);
        }
        this.f2155.m2314(this.f2148);
    }

    public C1216 m2431() {
        return this.f2150;
    }

    public void m2432() {
        this.f2165.clear();
        this.f2163.cancel();
        if (isVisible()) {
            return;
        }
        this.f2156 = ud.NONE;
    }

    public void m2433(boolean z) {
        this.f2169 = z;
    }

    public void m2434(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) {
        this.f2163.addUpdateListener(animatorUpdateListener);
    }

    @MainThread
    public void m2435() {
        if (this.f2155 == null) {
            this.f2165.add(new C1213());
            return;
        }
        m2386();
        if (m2409() || m2387() == 0) {
            if (isVisible()) {
                this.f2163.m918();
                this.f2156 = ud.NONE;
            } else {
                this.f2156 = ud.RESUME;
            }
        }
        if (m2409()) {
            return;
        }
        m2382((int) (m2368() < 0.0f ? m2379() : m2411()));
        this.f2163.m916();
        if (isVisible()) {
            return;
        }
        this.f2156 = ud.NONE;
    }

    public void m2436(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) {
        this.f2163.removeUpdateListener(animatorUpdateListener);
    }

    public void m2437(Animator.AnimatorListener animatorListener) {
        this.f2163.removeListener(animatorListener);
    }

    public void m2438(String str) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            this.f2165.add(new C1203(str));
            return;
        }
        C0923 m2449 = c1216.m2449(str);
        if (m2449 != null) {
            m2422((int) (m2449.f1528 + m2449.f1529));
            return;
        }
        throw new IllegalArgumentException("Cannot find marker with name " + str + ".");
    }

    public boolean m2439() {
        return this.f2148;
    }

    public final C0448 m2440() {
        C0448 c0448 = this.f2161;
        if (c0448 != null && !c0448.m724(getContext())) {
            this.f2161 = null;
        }
        if (this.f2161 == null) {
            this.f2161 = new C0448(getCallback(), this.f2144, this.f2164, this.f2150.m2455());
        }
        return this.f2161;
    }

    public void m2441(String str) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            this.f2165.add(new C1209(str));
            return;
        }
        C0923 m2449 = c1216.m2449(str);
        if (m2449 != null) {
            int i = (int) m2449.f1528;
            m2395(i, ((int) m2449.f1529) + i);
        } else {
            throw new IllegalArgumentException("Cannot find marker with name " + str + ".");
        }
    }

    @RestrictTo({RestrictTo.Scope.LIBRARY})
    public Typeface m2442(C0925 c0925) {
        Map<String, Typeface> map = this.f2142;
        if (map != null) {
            String m1734 = c0925.m1734();
            if (map.containsKey(m1734)) {
                return map.get(m1734);
            }
            String m1733 = c0925.m1733();
            if (map.containsKey(m1733)) {
                return map.get(m1733);
            }
            String str = c0925.m1734() + "-" + c0925.m1731();
            if (map.containsKey(str)) {
                return map.get(str);
            }
        }
        C0447 m2393 = m2393();
        if (m2393 != null) {
            return m2393.m720(c0925);
        }
        return null;
    }

    public void m2443(boolean z) {
        if (this.f2151 == z) {
            return;
        }
        this.f2151 = z;
        C1198 c1198 = this.f2155;
        if (c1198 != null) {
            c1198.mo2290(z);
        }
    }

    public C0257 m2444(String str) {
        C1216 c1216 = this.f2150;
        if (c1216 == null) {
            return null;
        }
        return c1216.m2455().get(str);
    }

    public void m2445(boolean z, Context context) {
        if (this.f2166 == z) {
            return;
        }
        this.f2166 = z;
        if (this.f2150 != null) {
            m2430(context);
        }
    }

    public void m2446(@FloatRange(from = 0.0d, to = 1.0d) float f) {
        if (this.f2150 == null) {
            this.f2165.add(new C1202(f));
            return;
        }
        C0267.m476("Drawable#setProgress");
        this.f2163.m930(this.f2150.m2457(f));
        C0267.m474("Drawable#setProgress");
    }
}