正在查看: All File Recovery v1.0.2 应用的 a0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: All File Recovery v1.0.2 应用的 a0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package E4;
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.os.Handler;
import android.os.Looper;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.Semaphore;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import l.Z;
import r3.C1008b6;
public class a0 extends Drawable implements Drawable.Callback, Animatable {
public static final boolean W;
public static final List<String> X;
public static final Executor Y;
public static final float Z = 50.0f;
public static final int a0 = 1;
public static final int b0 = 2;
public static final int c0 = -1;
public boolean A;
public final Matrix B;
public Bitmap C;
public Canvas D;
public Rect E;
public RectF F;
public Paint G;
public Rect H;
public Rect I;
public RectF J;
public RectF K;
public Matrix L;
public float[] M;
public Matrix N;
public boolean O;
@Nullable
public EnumC0320a P;
public final ValueAnimator.AnimatorUpdateListener Q;
public final Semaphore R;
public Handler S;
public Runnable T;
public final Runnable U;
public float V;
public C0330k a;
public final R4.j b;
public boolean c;
public boolean d;
public boolean e;
public c f;
public final ArrayList<b> g;
@Nullable
public J4.b h;
@Nullable
public String i;
@Nullable
public InterfaceC0323d j;
@Nullable
public J4.a k;
@Nullable
public Map<String, Typeface> l;
@Nullable
public String m;
@Nullable
public C0322c n;
@Nullable
public q0 o;
public final c0 p;
public boolean q;
public boolean r;
@Nullable
public N4.c s;
public int t;
public boolean u;
public boolean v;
public boolean w;
public boolean x;
public boolean y;
public o0 z;
public class a<T> extends S4.j<T> {
public final S4.l d;
public a(S4.l lVar) {
this.d = lVar;
}
@Override
public T a(S4.b<T> bVar) {
return (T) this.d.a(bVar);
}
}
public interface b {
void a(C0330k c0330k);
}
public enum c {
NONE,
PLAY,
RESUME
}
@Retention(RetentionPolicy.SOURCE)
public @interface d {
}
static {
W = Build.VERSION.SDK_INT <= 25;
X = Arrays.asList("reduced motion", "reduced_motion", "reduced-motion", "reducedmotion");
Y = new ThreadPoolExecutor(0, 2, 35L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new R4.h());
}
public a0() {
R4.j jVar = new R4.j();
this.b = jVar;
this.c = true;
this.d = false;
this.e = false;
this.f = c.NONE;
this.g = new ArrayList<>();
this.p = new c0();
this.q = false;
this.r = true;
this.t = 255;
this.y = false;
this.z = o0.AUTOMATIC;
this.A = false;
this.B = new Matrix();
this.M = new float[9];
this.O = false;
ValueAnimator.AnimatorUpdateListener animatorUpdateListener = new ValueAnimator.AnimatorUpdateListener() {
@Override
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
a0.k(a0.this, valueAnimator);
}
};
this.Q = animatorUpdateListener;
this.R = new Semaphore(1);
this.U = new Runnable() {
@Override
public final void run() {
a0.o(a0.this);
}
};
this.V = -3.4028235E38f;
jVar.addUpdateListener(animatorUpdateListener);
}
public static void k(a0 a0Var, ValueAnimator valueAnimator) {
if (a0Var.S()) {
a0Var.invalidateSelf();
return;
}
N4.c cVar = a0Var.s;
if (cVar != null) {
cVar.N(a0Var.b.m());
}
}
public static void o(final a0 a0Var) {
N4.c cVar = a0Var.s;
if (cVar == null) {
return;
}
try {
a0Var.R.acquire();
cVar.N(a0Var.b.m());
if (W && a0Var.O) {
if (a0Var.S == null) {
a0Var.S = new Handler(Looper.getMainLooper());
a0Var.T = new Runnable() {
@Override
public final void run() {
a0.s(a0.this);
}
};
}
a0Var.S.post(a0Var.T);
}
a0Var.R.release();
} catch (InterruptedException unused) {
a0Var.R.release();
} catch (Throwable th) {
a0Var.R.release();
throw th;
}
}
public static void s(a0 a0Var) {
Drawable.Callback callback = a0Var.getCallback();
if (callback != null) {
callback.invalidateDrawable(a0Var);
}
}
public boolean A(@Nullable Context context) {
if (this.d) {
return true;
}
return this.c && C0325f.f().a(context) == I4.b.STANDARD_MOTION;
}
@Deprecated
public void A0(boolean z) {
this.b.setRepeatCount(z ? -1 : 0);
}
public final void B() {
C0330k c0330k = this.a;
if (c0330k == null) {
return;
}
N4.c cVar = new N4.c(this, P4.v.a(c0330k), c0330k.k(), c0330k);
this.s = cVar;
if (this.v) {
cVar.L(true);
}
this.s.T(this.r);
}
public void B0() {
this.g.clear();
this.b.t();
if (isVisible()) {
return;
}
this.f = c.NONE;
}
public void C() {
this.g.clear();
this.b.cancel();
if (isVisible()) {
return;
}
this.f = c.NONE;
}
@l.J
public void C0() {
if (this.s == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.C0();
}
});
return;
}
E();
if (A(X()) || l0() == 0) {
if (isVisible()) {
this.b.u();
this.f = c.NONE;
} else {
this.f = c.PLAY;
}
}
if (A(X())) {
return;
}
K4.h f0 = f0();
if (f0 != null) {
W0((int) f0.b);
} else {
W0((int) (n0() < 0.0f ? h0() : g0()));
}
this.b.l();
if (isVisible()) {
return;
}
this.f = c.NONE;
}
public void D() {
if (this.b.isRunning()) {
this.b.cancel();
if (!isVisible()) {
this.f = c.NONE;
}
}
this.a = null;
this.s = null;
this.h = null;
this.V = -3.4028235E38f;
this.b.k();
invalidateSelf();
}
public void D0() {
this.b.removeAllListeners();
}
public final void E() {
C0330k c0330k = this.a;
if (c0330k == null) {
return;
}
this.A = this.z.b(Build.VERSION.SDK_INT, c0330k.v(), c0330k.n());
}
public void E0() {
this.b.removeAllUpdateListeners();
this.b.addUpdateListener(this.Q);
}
public final void F(Rect rect, RectF rectF) {
rectF.set(rect.left, rect.top, rect.right, rect.bottom);
}
public void F0(Animator.AnimatorListener animatorListener) {
this.b.removeListener(animatorListener);
}
public final void G(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));
}
@l.U(api = 19)
public void G0(Animator.AnimatorPauseListener animatorPauseListener) {
this.b.removePauseListener(animatorPauseListener);
}
public void H0(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) {
this.b.removeUpdateListener(animatorUpdateListener);
}
@l.Z({Z.a.b})
public void I(Canvas canvas, Matrix matrix) {
N4.c cVar = this.s;
C0330k c0330k = this.a;
if (cVar == null || c0330k == null) {
return;
}
boolean S = S();
if (S) {
try {
this.R.acquire();
if (w1()) {
n1(this.b.m());
}
} catch (InterruptedException unused) {
if (!S) {
return;
}
this.R.release();
if (cVar.Q() == this.b.m()) {
return;
}
} catch (Throwable th) {
if (S) {
this.R.release();
if (cVar.Q() != this.b.m()) {
Y.execute(this.U);
}
}
throw th;
}
}
if (this.e) {
try {
J(canvas, matrix, cVar, this.t);
} catch (Throwable th2) {
R4.g.c("Lottie crashed in draw!", th2);
}
} else {
J(canvas, matrix, cVar, this.t);
}
this.O = false;
if (S) {
this.R.release();
if (cVar.Q() == this.b.m()) {
return;
}
Y.execute(this.U);
}
}
public final void I0(Canvas canvas, N4.c cVar) {
if (this.a == null || cVar == null) {
return;
}
Q();
canvas.getMatrix(this.L);
canvas.getClipBounds(this.E);
F(this.E, this.F);
this.L.mapRect(this.F);
G(this.F, this.E);
if (this.r) {
this.K.set(0.0f, 0.0f, getIntrinsicWidth(), getIntrinsicHeight());
} else {
cVar.g(this.K, null, false);
}
this.L.mapRect(this.K);
Rect bounds = getBounds();
float width = bounds.width() / getIntrinsicWidth();
float height = bounds.height() / getIntrinsicHeight();
M0(this.K, width, height);
if (!s0()) {
RectF rectF = this.K;
Rect rect = this.E;
rectF.intersect(rect.left, rect.top, rect.right, rect.bottom);
}
int ceil = (int) Math.ceil(this.K.width());
int ceil2 = (int) Math.ceil(this.K.height());
if (ceil <= 0 || ceil2 <= 0) {
return;
}
P(ceil, ceil2);
if (this.O) {
this.L.getValues(this.M);
float[] fArr = this.M;
float f = fArr[0];
float f2 = fArr[4];
this.B.set(this.L);
this.B.preScale(width, height);
Matrix matrix = this.B;
RectF rectF2 = this.K;
matrix.postTranslate(-rectF2.left, -rectF2.top);
this.B.postScale(1.0f / f, 1.0f / f2);
this.C.eraseColor(0);
this.D.setMatrix(R4.y.b);
this.D.scale(f, f2);
cVar.i(this.D, this.B, this.t, null);
this.L.invert(this.N);
this.N.mapRect(this.J, this.K);
G(this.J, this.I);
}
this.H.set(0, 0, ceil, ceil2);
canvas.drawBitmap(this.C, this.H, this.I, this.G);
}
public final void J(Canvas canvas, Matrix matrix, N4.c cVar, int i) {
if (!this.A) {
cVar.i(canvas, matrix, i, null);
return;
}
canvas.save();
canvas.concat(matrix);
I0(canvas, cVar);
canvas.restore();
}
public List<K4.e> J0(K4.e eVar) {
if (this.s == null) {
R4.g.e("Cannot resolve KeyPath. Composition is not set yet.");
return Collections.EMPTY_LIST;
}
ArrayList arrayList = new ArrayList();
this.s.d(eVar, 0, arrayList, new K4.e(new String[0]));
return arrayList;
}
public final void K(Canvas canvas) {
N4.c cVar = this.s;
C0330k c0330k = this.a;
if (cVar == null || c0330k == null) {
return;
}
this.B.reset();
if (!getBounds().isEmpty()) {
this.B.preTranslate(r2.left, r2.top);
this.B.preScale(r2.width() / c0330k.b().width(), r2.height() / c0330k.b().height());
}
cVar.i(canvas, this.B, this.t, null);
}
@l.J
public void K0() {
if (this.s == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.K0();
}
});
return;
}
E();
if (A(X()) || l0() == 0) {
if (isVisible()) {
this.b.y();
this.f = c.NONE;
} else {
this.f = c.RESUME;
}
}
if (A(X())) {
return;
}
W0((int) (n0() < 0.0f ? h0() : g0()));
this.b.l();
if (isVisible()) {
return;
}
this.f = c.NONE;
}
public void L(b0 b0Var, boolean z) {
boolean a2 = this.p.a(b0Var, z);
if (this.a == null || !a2) {
return;
}
B();
}
public void L0() {
this.b.z();
}
@Deprecated
public void M(boolean z) {
boolean a2 = this.p.a(b0.MergePathsApi19, z);
if (this.a == null || !a2) {
return;
}
B();
}
public final void M0(RectF rectF, float f, float f2) {
rectF.set(rectF.left * f, rectF.top * f2, rectF.right * f, rectF.bottom * f2);
}
@Deprecated
public boolean N() {
return this.p.b(b0.MergePathsApi19);
}
public void N0(boolean z) {
this.w = z;
}
@l.J
public void O() {
this.g.clear();
this.b.l();
if (isVisible()) {
return;
}
this.f = c.NONE;
}
public void O0(boolean z) {
this.x = z;
}
public final void P(int i, int i2) {
Bitmap bitmap = this.C;
if (bitmap == null || bitmap.getWidth() < i || this.C.getHeight() < i2) {
Bitmap createBitmap = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
this.C = createBitmap;
this.D.setBitmap(createBitmap);
this.O = true;
return;
}
if (this.C.getWidth() > i || this.C.getHeight() > i2) {
Bitmap createBitmap2 = Bitmap.createBitmap(this.C, 0, 0, i, i2);
this.C = createBitmap2;
this.D.setBitmap(createBitmap2);
this.O = true;
}
}
public void P0(@Nullable EnumC0320a enumC0320a) {
this.P = enumC0320a;
}
public final void Q() {
if (this.D != null) {
return;
}
this.D = new Canvas();
this.K = new RectF();
this.L = new Matrix();
this.N = new Matrix();
this.E = new Rect();
this.F = new RectF();
this.G = new F4.a();
this.H = new Rect();
this.I = new Rect();
this.J = new RectF();
}
public void Q0(boolean z) {
if (z != this.y) {
this.y = z;
invalidateSelf();
}
}
public EnumC0320a R() {
EnumC0320a enumC0320a = this.P;
return enumC0320a != null ? enumC0320a : C0325f.d();
}
public void R0(boolean z) {
if (z != this.r) {
this.r = z;
N4.c cVar = this.s;
if (cVar != null) {
cVar.T(z);
}
invalidateSelf();
}
}
public boolean S() {
return R() == EnumC0320a.ENABLED;
}
public boolean S0(C0330k c0330k) {
if (this.a == c0330k) {
return false;
}
this.O = true;
D();
this.a = c0330k;
B();
this.b.A(c0330k);
n1(this.b.getAnimatedFraction());
Iterator it = new ArrayList(this.g).iterator();
while (it.hasNext()) {
b bVar = (b) it.next();
if (bVar != null) {
bVar.a(c0330k);
}
it.remove();
}
this.g.clear();
c0330k.B(this.u);
E();
Drawable.Callback callback = getCallback();
if (callback instanceof ImageView) {
ImageView imageView = (ImageView) callback;
imageView.setImageDrawable(null);
imageView.setImageDrawable(this);
}
return true;
}
@Nullable
public Bitmap T(String str) {
J4.b b02 = b0();
if (b02 != null) {
return b02.a(str);
}
return null;
}
public void T0(String str) {
this.m = str;
J4.a Y2 = Y();
if (Y2 != null) {
Y2.c(str);
}
}
public boolean U() {
return this.y;
}
public void U0(C0322c c0322c) {
this.n = c0322c;
J4.a aVar = this.k;
if (aVar != null) {
aVar.d(c0322c);
}
}
public boolean V() {
return this.r;
}
public void V0(@Nullable Map<String, Typeface> map) {
if (map == this.l) {
return;
}
this.l = map;
invalidateSelf();
}
public C0330k W() {
return this.a;
}
public void W0(final int i) {
if (this.a == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.W0(i);
}
});
} else {
this.b.B(i);
}
}
@Nullable
public final Context X() {
Drawable.Callback callback = getCallback();
if (callback != null && (callback instanceof View)) {
return ((View) callback).getContext();
}
return null;
}
@Deprecated
public void X0(boolean z) {
this.d = z;
}
public final J4.a Y() {
if (getCallback() == null) {
return null;
}
if (this.k == null) {
J4.a aVar = new J4.a(getCallback(), this.n);
this.k = aVar;
String str = this.m;
if (str != null) {
aVar.f = str;
}
}
return this.k;
}
public void Y0(InterfaceC0323d interfaceC0323d) {
this.j = interfaceC0323d;
J4.b bVar = this.h;
if (bVar != null) {
bVar.e(interfaceC0323d);
}
}
public int Z() {
return (int) this.b.n();
}
public void Z0(@Nullable String str) {
this.i = str;
}
@Nullable
@Deprecated
public Bitmap a0(String str) {
J4.b b02 = b0();
if (b02 != null) {
return b02.a(str);
}
C0330k c0330k = this.a;
d0 d0Var = c0330k == null ? null : c0330k.j().get(str);
if (d0Var != null) {
return d0Var.b();
}
return null;
}
public void a1(boolean z) {
this.q = z;
}
public final J4.b b0() {
J4.b bVar = this.h;
if (bVar != null && !bVar.c(X())) {
this.h = null;
}
if (this.h == null) {
this.h = new J4.b(getCallback(), this.i, this.j, this.a.j());
}
return this.h;
}
public void b1(final int i) {
if (this.a == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.b1(i);
}
});
} else {
this.b.C(i + 0.99f);
}
}
@Nullable
public String c0() {
return this.i;
}
public void c1(final String str) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.c1(str);
}
});
return;
}
K4.h l = c0330k.l(str);
if (l == null) {
throw new IllegalArgumentException(android.support.v4.media.f.a("Cannot find marker with name ", str, C1008b6.u));
}
b1((int) (l.b + l.c));
}
@Nullable
public d0 d0(String str) {
C0330k c0330k = this.a;
if (c0330k == null) {
return null;
}
return c0330k.j().get(str);
}
public void d1(@l.w(from = 0.0d, to = 1.0d) final float f) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.d1(f);
}
});
} else {
this.b.C(R4.l.k(c0330k.r(), this.a.f(), f));
}
}
@Override
public void draw(@NonNull Canvas canvas) {
N4.c cVar = this.s;
if (cVar == null) {
return;
}
boolean S = S();
if (S) {
try {
this.R.acquire();
} catch (InterruptedException unused) {
if (C0325f.h()) {
C0325f.c("Drawable#draw");
}
if (!S) {
return;
}
this.R.release();
if (cVar.Q() == this.b.m()) {
return;
}
} catch (Throwable th) {
if (C0325f.h()) {
C0325f.c("Drawable#draw");
}
if (S) {
this.R.release();
if (cVar.Q() != this.b.m()) {
Y.execute(this.U);
}
}
throw th;
}
}
if (C0325f.h()) {
C0325f.b("Drawable#draw");
}
if (S && w1()) {
n1(this.b.m());
}
if (this.e) {
try {
if (this.A) {
I0(canvas, cVar);
} else {
K(canvas);
}
} catch (Throwable th2) {
R4.g.c("Lottie crashed in draw!", th2);
}
} else if (this.A) {
I0(canvas, cVar);
} else {
K(canvas);
}
this.O = false;
if (C0325f.c) {
C0325f.c("Drawable#draw");
}
if (S) {
this.R.release();
if (cVar.Q() == this.b.m()) {
return;
}
Y.execute(this.U);
}
}
public boolean e0() {
return this.q;
}
public void e1(final int i, final int i2) {
if (this.a == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.e1(i, i2);
}
});
} else {
this.b.E(i, i2 + 0.99f);
}
}
@l.Z({Z.a.a})
public K4.h f0() {
Iterator<String> it = X.iterator();
K4.h hVar = null;
while (it.hasNext()) {
hVar = this.a.l(it.next());
if (hVar != null) {
break;
}
}
return hVar;
}
public void f1(final String str) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.f1(str);
}
});
return;
}
K4.h l = c0330k.l(str);
if (l == null) {
throw new IllegalArgumentException(android.support.v4.media.f.a("Cannot find marker with name ", str, C1008b6.u));
}
int i = (int) l.b;
e1(i, ((int) l.c) + i);
}
public float g0() {
return this.b.p();
}
public void g1(final String str, final String str2, final boolean z) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.g1(str, str2, z);
}
});
return;
}
K4.h l = c0330k.l(str);
if (l == null) {
throw new IllegalArgumentException(android.support.v4.media.f.a("Cannot find marker with name ", str, C1008b6.u));
}
int i = (int) l.b;
K4.h l2 = this.a.l(str2);
if (l2 == null) {
throw new IllegalArgumentException(android.support.v4.media.f.a("Cannot find marker with name ", str2, C1008b6.u));
}
e1(i, (int) (l2.b + (z ? 1.0f : 0.0f)));
}
@Override
public int getAlpha() {
return this.t;
}
@Override
public int getIntrinsicHeight() {
C0330k c0330k = this.a;
if (c0330k == null) {
return -1;
}
return c0330k.b().height();
}
@Override
public int getIntrinsicWidth() {
C0330k c0330k = this.a;
if (c0330k == null) {
return -1;
}
return c0330k.b().width();
}
@Override
public int getOpacity() {
return -3;
}
public float h0() {
return this.b.q();
}
public void h1(@l.w(from = 0.0d, to = 1.0d) final float f, @l.w(from = 0.0d, to = 1.0d) final float f2) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.h1(f, f2);
}
});
} else {
e1((int) R4.l.k(c0330k.r(), this.a.f(), f), (int) R4.l.k(this.a.r(), this.a.f(), f2));
}
}
@Nullable
public n0 i0() {
C0330k c0330k = this.a;
if (c0330k != null) {
return c0330k.o();
}
return null;
}
public void i1(final int i) {
if (this.a == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.i1(i);
}
});
} else {
this.b.F(i);
}
}
@Override
public void invalidateDrawable(@NonNull Drawable drawable) {
Drawable.Callback callback = getCallback();
if (callback == null) {
return;
}
callback.invalidateDrawable(this);
}
@Override
public void invalidateSelf() {
Drawable.Callback callback;
if (this.O) {
return;
}
this.O = true;
if ((!W || Looper.getMainLooper() == Looper.myLooper()) && (callback = getCallback()) != null) {
callback.invalidateDrawable(this);
}
}
@Override
public boolean isRunning() {
return t0();
}
@l.w(from = 0.0d, to = 1.0d)
public float j0() {
return this.b.m();
}
public void j1(final String str) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.j1(str);
}
});
return;
}
K4.h l = c0330k.l(str);
if (l == null) {
throw new IllegalArgumentException(android.support.v4.media.f.a("Cannot find marker with name ", str, C1008b6.u));
}
i1((int) l.b);
}
public o0 k0() {
return this.A ? o0.SOFTWARE : o0.HARDWARE;
}
public void k1(final float f) {
C0330k c0330k = this.a;
if (c0330k == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k2) {
a0.this.k1(f);
}
});
} else {
i1((int) R4.l.k(c0330k.r(), this.a.f(), f));
}
}
public int l0() {
return this.b.getRepeatCount();
}
public void l1(boolean z) {
if (this.v == z) {
return;
}
this.v = z;
N4.c cVar = this.s;
if (cVar != null) {
cVar.L(z);
}
}
@SuppressLint({"WrongConstant"})
public int m0() {
return this.b.getRepeatMode();
}
public void m1(boolean z) {
this.u = z;
C0330k c0330k = this.a;
if (c0330k != null) {
c0330k.B(z);
}
}
public float n0() {
return this.b.r();
}
public void n1(@l.w(from = 0.0d, to = 1.0d) final float f) {
if (this.a == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.n1(f);
}
});
return;
}
if (C0325f.h()) {
C0325f.b("Drawable#setProgress");
}
this.b.B(this.a.h(f));
if (C0325f.c) {
C0325f.c("Drawable#setProgress");
}
}
@Nullable
public q0 o0() {
return this.o;
}
public void o1(o0 o0Var) {
this.z = o0Var;
E();
}
@Nullable
@l.Z({Z.a.a})
public Typeface p0(K4.c cVar) {
Map<String, Typeface> map = this.l;
if (map != null) {
String b2 = cVar.b();
if (map.containsKey(b2)) {
return map.get(b2);
}
String c2 = cVar.c();
if (map.containsKey(c2)) {
return map.get(c2);
}
String str = cVar.b() + "-" + cVar.d();
if (map.containsKey(str)) {
return map.get(str);
}
}
J4.a Y2 = Y();
if (Y2 != null) {
return Y2.b(cVar);
}
return null;
}
public void p1(int i) {
this.b.setRepeatCount(i);
}
public boolean q0() {
N4.c cVar = this.s;
return cVar != null && cVar.R();
}
public void q1(int i) {
this.b.setRepeatMode(i);
}
public boolean r0() {
N4.c cVar = this.s;
return cVar != null && cVar.S();
}
public void r1(boolean z) {
this.e = z;
}
public final boolean s0() {
Drawable.Callback callback = getCallback();
if (!(callback instanceof View)) {
return false;
}
if (((View) callback).getParent() instanceof ViewGroup) {
return !((ViewGroup) r0).getClipChildren();
}
return false;
}
public void s1(float f) {
this.b.G(f);
}
@Override
public void scheduleDrawable(@NonNull Drawable drawable, @NonNull Runnable runnable, long j) {
Drawable.Callback callback = getCallback();
if (callback == null) {
return;
}
callback.scheduleDrawable(this, runnable, j);
}
@Override
public void setAlpha(@l.E(from = 0, to = 255) int i) {
this.t = i;
invalidateSelf();
}
@Override
public void setColorFilter(@Nullable ColorFilter colorFilter) {
R4.g.e("Use addColorFilter instead.");
}
@Override
public boolean setVisible(boolean z, boolean z2) {
boolean isVisible = isVisible();
boolean visible = super.setVisible(z, z2);
if (z) {
c cVar = this.f;
if (cVar == c.PLAY) {
C0();
return visible;
}
if (cVar == c.RESUME) {
K0();
return visible;
}
} else {
if (this.b.isRunning()) {
B0();
this.f = c.RESUME;
return visible;
}
if (isVisible) {
this.f = c.NONE;
}
}
return visible;
}
@Override
@l.J
public void start() {
Drawable.Callback callback = getCallback();
if ((callback instanceof View) && ((View) callback).isInEditMode()) {
return;
}
C0();
}
@Override
@l.J
public void stop() {
O();
}
public boolean t0() {
R4.j jVar = this.b;
if (jVar == null) {
return false;
}
return jVar.isRunning();
}
@Deprecated
public void t1(Boolean bool) {
this.c = bool.booleanValue();
}
public boolean u0() {
if (isVisible()) {
return this.b.isRunning();
}
c cVar = this.f;
return cVar == c.PLAY || cVar == c.RESUME;
}
public void u1(q0 q0Var) {
this.o = q0Var;
}
@Override
public void unscheduleDrawable(@NonNull Drawable drawable, @NonNull Runnable runnable) {
Drawable.Callback callback = getCallback();
if (callback == null) {
return;
}
callback.unscheduleDrawable(this, runnable);
}
public void v(Animator.AnimatorListener animatorListener) {
this.b.addListener(animatorListener);
}
public boolean v0() {
return this.w;
}
public void v1(boolean z) {
this.b.H(z);
}
@l.U(api = 19)
public void w(Animator.AnimatorPauseListener animatorPauseListener) {
this.b.addPauseListener(animatorPauseListener);
}
public boolean w0() {
return this.x;
}
public final boolean w1() {
C0330k c0330k = this.a;
if (c0330k == null) {
return false;
}
float f = this.V;
float m = this.b.m();
this.V = m;
return Math.abs(m - f) * c0330k.d() >= 50.0f;
}
public void x(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) {
this.b.addUpdateListener(animatorUpdateListener);
}
public boolean x0(b0 b0Var) {
return this.p.b(b0Var);
}
@Nullable
public Bitmap x1(String str, @Nullable Bitmap bitmap) {
J4.b b02 = b0();
if (b02 == null) {
R4.g.e("Cannot update bitmap. Most likely the drawable is not added to a View which prevents Lottie from getting a Context.");
return null;
}
Bitmap f = b02.f(str, bitmap);
invalidateSelf();
return f;
}
public <T> void y(final K4.e eVar, final T t, @Nullable final S4.j<T> jVar) {
N4.c cVar = this.s;
if (cVar == null) {
this.g.add(new b() {
@Override
public final void a(C0330k c0330k) {
a0.this.y(eVar, t, jVar);
}
});
return;
}
boolean z = true;
if (eVar == K4.e.c) {
cVar.e(t, jVar);
} else if (eVar.d() != null) {
eVar.d().e(t, jVar);
} else {
List<K4.e> J0 = J0(eVar);
for (int i = 0; i < J0.size(); i++) {
J0.get(i).d().e(t, jVar);
}
z = true ^ J0.isEmpty();
}
if (z) {
invalidateSelf();
if (t == h0.E) {
n1(j0());
}
}
}
public boolean y0() {
return this.b.getRepeatCount() == -1;
}
public boolean y1() {
return this.l == null && this.o == null && this.a.c().x() > 0;
}
public <T> void z(K4.e eVar, T t, S4.l<T> lVar) {
y(eVar, t, new a(lVar));
}
@Deprecated
public boolean z0() {
return this.p.b(b0.MergePathsApi19);
}
@Deprecated
public void H() {
}
}