You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1099 lines
32 KiB
1099 lines
32 KiB
package p058t;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.util.Log;
|
|
import android.view.Display;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.animation.Interpolator;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
import p023h0.InterfaceC0982x0;
|
|
import p058t.C1648l;
|
|
import p061u.C1736c;
|
|
|
|
/* renamed from: t.j */
|
|
/* loaded from: classes.dex */
|
|
public class C1641j extends ConstraintLayout implements InterfaceC0982x0 {
|
|
|
|
/* renamed from: x0 */
|
|
public static boolean f3786x0;
|
|
|
|
/* renamed from: B */
|
|
public Interpolator f3787B;
|
|
|
|
/* renamed from: C */
|
|
public Interpolator f3788C;
|
|
|
|
/* renamed from: D */
|
|
public float f3789D;
|
|
|
|
/* renamed from: E */
|
|
public int f3790E;
|
|
|
|
/* renamed from: F */
|
|
public int f3791F;
|
|
|
|
/* renamed from: G */
|
|
public int f3792G;
|
|
|
|
/* renamed from: H */
|
|
public boolean f3793H;
|
|
|
|
/* renamed from: I */
|
|
public HashMap<View, C1638g> f3794I;
|
|
|
|
/* renamed from: J */
|
|
public long f3795J;
|
|
|
|
/* renamed from: K */
|
|
public float f3796K;
|
|
|
|
/* renamed from: L */
|
|
public float f3797L;
|
|
|
|
/* renamed from: M */
|
|
public float f3798M;
|
|
|
|
/* renamed from: N */
|
|
public long f3799N;
|
|
|
|
/* renamed from: O */
|
|
public float f3800O;
|
|
|
|
/* renamed from: P */
|
|
public boolean f3801P;
|
|
|
|
/* renamed from: Q */
|
|
public boolean f3802Q;
|
|
|
|
/* renamed from: R */
|
|
public InterfaceC1645d f3803R;
|
|
|
|
/* renamed from: S */
|
|
public int f3804S;
|
|
|
|
/* renamed from: T */
|
|
public boolean f3805T;
|
|
|
|
/* renamed from: U */
|
|
public C1633b f3806U;
|
|
|
|
/* renamed from: V */
|
|
public boolean f3807V;
|
|
|
|
/* renamed from: W */
|
|
public float f3808W;
|
|
|
|
/* renamed from: a0 */
|
|
public float f3809a0;
|
|
|
|
/* renamed from: b0 */
|
|
public long f3810b0;
|
|
|
|
/* renamed from: c0 */
|
|
public float f3811c0;
|
|
|
|
/* renamed from: d0 */
|
|
public boolean f3812d0;
|
|
|
|
/* renamed from: e0 */
|
|
public ArrayList<C1639h> f3813e0;
|
|
|
|
/* renamed from: f0 */
|
|
public ArrayList<C1639h> f3814f0;
|
|
|
|
/* renamed from: g0 */
|
|
public ArrayList<C1639h> f3815g0;
|
|
|
|
/* renamed from: h0 */
|
|
public CopyOnWriteArrayList<InterfaceC1645d> f3816h0;
|
|
|
|
/* renamed from: i0 */
|
|
public int f3817i0;
|
|
|
|
/* renamed from: j0 */
|
|
public float f3818j0;
|
|
|
|
/* renamed from: k0 */
|
|
public boolean f3819k0;
|
|
|
|
/* renamed from: l0 */
|
|
public boolean f3820l0;
|
|
|
|
/* renamed from: m0 */
|
|
public float f3821m0;
|
|
|
|
/* renamed from: n0 */
|
|
public boolean f3822n0;
|
|
|
|
/* renamed from: o0 */
|
|
public C1644c f3823o0;
|
|
|
|
/* renamed from: p0 */
|
|
public Runnable f3824p0;
|
|
|
|
/* renamed from: q0 */
|
|
public int[] f3825q0;
|
|
|
|
/* renamed from: r0 */
|
|
public int f3826r0;
|
|
|
|
/* renamed from: s0 */
|
|
public int f3827s0;
|
|
|
|
/* renamed from: t0 */
|
|
public boolean f3828t0;
|
|
|
|
/* renamed from: u0 */
|
|
public EnumC1646e f3829u0;
|
|
|
|
/* renamed from: v0 */
|
|
public boolean f3830v0;
|
|
|
|
/* renamed from: w0 */
|
|
public ArrayList<Integer> f3831w0;
|
|
|
|
/* renamed from: t.j$a */
|
|
/* loaded from: classes.dex */
|
|
public class RunnableC1642a implements Runnable {
|
|
public RunnableC1642a() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
C1641j.this.f3823o0.m722a();
|
|
}
|
|
}
|
|
|
|
/* renamed from: t.j$b */
|
|
/* loaded from: classes.dex */
|
|
public static /* synthetic */ class C1643b {
|
|
|
|
/* renamed from: a */
|
|
public static final /* synthetic */ int[] f3833a;
|
|
|
|
static {
|
|
int[] iArr = new int[EnumC1646e.values().length];
|
|
f3833a = iArr;
|
|
try {
|
|
iArr[EnumC1646e.UNDEFINED.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
f3833a[EnumC1646e.SETUP.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
f3833a[EnumC1646e.MOVING.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
f3833a[EnumC1646e.FINISHED.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: t.j$c */
|
|
/* loaded from: classes.dex */
|
|
public class C1644c {
|
|
|
|
/* renamed from: a */
|
|
public float f3834a = Float.NaN;
|
|
|
|
/* renamed from: b */
|
|
public float f3835b = Float.NaN;
|
|
|
|
/* renamed from: c */
|
|
public int f3836c = -1;
|
|
|
|
/* renamed from: d */
|
|
public int f3837d = -1;
|
|
|
|
/* renamed from: e */
|
|
public final String f3838e = "motion.progress";
|
|
|
|
/* renamed from: f */
|
|
public final String f3839f = "motion.velocity";
|
|
|
|
/* renamed from: g */
|
|
public final String f3840g = "motion.StartState";
|
|
|
|
/* renamed from: h */
|
|
public final String f3841h = "motion.EndState";
|
|
|
|
public C1644c() {
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public void m722a() {
|
|
int i = this.f3836c;
|
|
if (i != -1 || this.f3837d != -1) {
|
|
if (i == -1) {
|
|
C1641j.this.m732N(this.f3837d);
|
|
} else {
|
|
int i2 = this.f3837d;
|
|
if (i2 == -1) {
|
|
C1641j.this.m735K(i, -1, -1);
|
|
} else {
|
|
C1641j.this.m734L(i, i2);
|
|
}
|
|
}
|
|
C1641j.this.setState(EnumC1646e.SETUP);
|
|
}
|
|
if (Float.isNaN(this.f3835b)) {
|
|
if (Float.isNaN(this.f3834a)) {
|
|
return;
|
|
}
|
|
C1641j.this.setProgress(this.f3834a);
|
|
return;
|
|
}
|
|
C1641j.this.m736J(this.f3834a, this.f3835b);
|
|
this.f3834a = Float.NaN;
|
|
this.f3835b = Float.NaN;
|
|
this.f3836c = -1;
|
|
this.f3837d = -1;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public Bundle m721b() {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putFloat("motion.progress", this.f3834a);
|
|
bundle.putFloat("motion.velocity", this.f3835b);
|
|
bundle.putInt("motion.StartState", this.f3836c);
|
|
bundle.putInt("motion.EndState", this.f3837d);
|
|
return bundle;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public void m720c() {
|
|
this.f3837d = C1641j.this.f3792G;
|
|
this.f3836c = C1641j.this.f3790E;
|
|
this.f3835b = C1641j.this.getVelocity();
|
|
this.f3834a = C1641j.this.getProgress();
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public void m719d(int i) {
|
|
this.f3837d = i;
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public void m718e(float f) {
|
|
this.f3834a = f;
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public void m717f(int i) {
|
|
this.f3836c = i;
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public void m716g(Bundle bundle) {
|
|
this.f3834a = bundle.getFloat("motion.progress");
|
|
this.f3835b = bundle.getFloat("motion.velocity");
|
|
this.f3836c = bundle.getInt("motion.StartState");
|
|
this.f3837d = bundle.getInt("motion.EndState");
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public void m715h(float f) {
|
|
this.f3835b = f;
|
|
}
|
|
}
|
|
|
|
/* renamed from: t.j$d */
|
|
/* loaded from: classes.dex */
|
|
public interface InterfaceC1645d {
|
|
/* renamed from: a */
|
|
void mo714a(C1641j c1641j, int i);
|
|
|
|
/* renamed from: b */
|
|
void mo713b(C1641j c1641j, int i, int i2);
|
|
|
|
/* renamed from: c */
|
|
void mo712c(C1641j c1641j, int i, int i2, float f);
|
|
}
|
|
|
|
/* renamed from: t.j$e */
|
|
/* loaded from: classes.dex */
|
|
public enum EnumC1646e {
|
|
UNDEFINED,
|
|
SETUP,
|
|
MOVING,
|
|
FINISHED
|
|
}
|
|
|
|
/* renamed from: D */
|
|
public void m742D(float f) {
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:153:0x0212, code lost:
|
|
if (r1 != r2) goto L21;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:155:0x0215, code lost:
|
|
r6 = false;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:156:0x0216, code lost:
|
|
r20.f3791F = r2;
|
|
r7 = r6;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:160:0x0222, code lost:
|
|
if (r1 != r2) goto L21;
|
|
*/
|
|
/* renamed from: E */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
*/
|
|
public void m741E(boolean z) {
|
|
boolean z2;
|
|
int i;
|
|
float interpolation;
|
|
int i2;
|
|
if (this.f3799N == -1) {
|
|
this.f3799N = getNanoTime();
|
|
}
|
|
float f = this.f3798M;
|
|
if (f > 0.0f && f < 1.0f) {
|
|
this.f3791F = -1;
|
|
}
|
|
boolean z3 = true;
|
|
boolean z4 = false;
|
|
if (this.f3812d0 || (this.f3802Q && (z || this.f3800O != f))) {
|
|
float signum = Math.signum(this.f3800O - f);
|
|
long nanoTime = getNanoTime();
|
|
Interpolator interpolator = this.f3787B;
|
|
float f2 = !(interpolator instanceof AbstractanimationInterpolatorC1640i) ? ((((float) (nanoTime - this.f3799N)) * signum) * 1.0E-9f) / this.f3796K : 0.0f;
|
|
float f3 = this.f3798M + f2;
|
|
if (this.f3801P) {
|
|
f3 = this.f3800O;
|
|
}
|
|
if ((signum <= 0.0f || f3 < this.f3800O) && (signum > 0.0f || f3 > this.f3800O)) {
|
|
z2 = false;
|
|
} else {
|
|
f3 = this.f3800O;
|
|
this.f3802Q = false;
|
|
z2 = true;
|
|
}
|
|
this.f3798M = f3;
|
|
this.f3797L = f3;
|
|
this.f3799N = nanoTime;
|
|
if (interpolator == null || z2) {
|
|
this.f3789D = f2;
|
|
} else {
|
|
if (this.f3805T) {
|
|
interpolation = interpolator.getInterpolation(((float) (nanoTime - this.f3795J)) * 1.0E-9f);
|
|
Interpolator interpolator2 = this.f3787B;
|
|
interpolator2.getClass();
|
|
this.f3798M = interpolation;
|
|
this.f3799N = nanoTime;
|
|
if (interpolator2 instanceof AbstractanimationInterpolatorC1640i) {
|
|
float m746a = ((AbstractanimationInterpolatorC1640i) interpolator2).m746a();
|
|
this.f3789D = m746a;
|
|
int i3 = ((Math.abs(m746a) * this.f3796K) > 1.0E-5f ? 1 : ((Math.abs(m746a) * this.f3796K) == 1.0E-5f ? 0 : -1));
|
|
if (m746a > 0.0f && interpolation >= 1.0f) {
|
|
this.f3798M = 1.0f;
|
|
this.f3802Q = false;
|
|
interpolation = 1.0f;
|
|
}
|
|
if (m746a < 0.0f && interpolation <= 0.0f) {
|
|
this.f3798M = 0.0f;
|
|
this.f3802Q = false;
|
|
f3 = 0.0f;
|
|
}
|
|
}
|
|
} else {
|
|
interpolation = interpolator.getInterpolation(f3);
|
|
Interpolator interpolator3 = this.f3787B;
|
|
this.f3789D = interpolator3 instanceof AbstractanimationInterpolatorC1640i ? ((AbstractanimationInterpolatorC1640i) interpolator3).m746a() : ((interpolator3.getInterpolation(f3 + f2) - interpolation) * signum) / f2;
|
|
}
|
|
f3 = interpolation;
|
|
}
|
|
if (Math.abs(this.f3789D) > 1.0E-5f) {
|
|
setState(EnumC1646e.MOVING);
|
|
}
|
|
if ((signum > 0.0f && f3 >= this.f3800O) || (signum <= 0.0f && f3 <= this.f3800O)) {
|
|
f3 = this.f3800O;
|
|
this.f3802Q = false;
|
|
}
|
|
if (f3 >= 1.0f || f3 <= 0.0f) {
|
|
this.f3802Q = false;
|
|
setState(EnumC1646e.FINISHED);
|
|
}
|
|
int childCount = getChildCount();
|
|
this.f3812d0 = false;
|
|
long nanoTime2 = getNanoTime();
|
|
this.f3821m0 = f3;
|
|
Interpolator interpolator4 = this.f3788C;
|
|
float interpolation2 = interpolator4 == null ? f3 : interpolator4.getInterpolation(f3);
|
|
Interpolator interpolator5 = this.f3788C;
|
|
if (interpolator5 != null) {
|
|
float interpolation3 = interpolator5.getInterpolation((signum / this.f3796K) + f3);
|
|
this.f3789D = interpolation3;
|
|
this.f3789D = interpolation3 - this.f3788C.getInterpolation(f3);
|
|
}
|
|
for (int i4 = 0; i4 < childCount; i4++) {
|
|
View childAt = getChildAt(i4);
|
|
C1638g c1638g = this.f3794I.get(childAt);
|
|
if (c1638g != null) {
|
|
this.f3812d0 |= c1638g.m752c(childAt, interpolation2, nanoTime2, null);
|
|
}
|
|
}
|
|
boolean z5 = (signum > 0.0f && f3 >= this.f3800O) || (signum <= 0.0f && f3 <= this.f3800O);
|
|
if (!this.f3812d0 && !this.f3802Q && z5) {
|
|
setState(EnumC1646e.FINISHED);
|
|
}
|
|
if (this.f3820l0) {
|
|
requestLayout();
|
|
}
|
|
boolean z6 = (!z5) | this.f3812d0;
|
|
this.f3812d0 = z6;
|
|
if (f3 <= 0.0f && (i = this.f3790E) != -1 && this.f3791F != i) {
|
|
this.f3791F = i;
|
|
throw null;
|
|
}
|
|
if (f3 >= 1.0d) {
|
|
int i5 = this.f3791F;
|
|
int i6 = this.f3792G;
|
|
if (i5 != i6) {
|
|
this.f3791F = i6;
|
|
throw null;
|
|
}
|
|
}
|
|
if (z6 || this.f3802Q) {
|
|
invalidate();
|
|
} else if ((signum > 0.0f && f3 == 1.0f) || (signum < 0.0f && f3 == 0.0f)) {
|
|
setState(EnumC1646e.FINISHED);
|
|
}
|
|
if (!this.f3812d0 && !this.f3802Q && ((signum > 0.0f && f3 == 1.0f) || (signum < 0.0f && f3 == 0.0f))) {
|
|
m738H();
|
|
}
|
|
}
|
|
float f4 = this.f3798M;
|
|
if (f4 >= 1.0f) {
|
|
int i7 = this.f3791F;
|
|
i2 = this.f3792G;
|
|
} else if (f4 <= 0.0f) {
|
|
int i8 = this.f3791F;
|
|
i2 = this.f3790E;
|
|
}
|
|
this.f3830v0 |= z4;
|
|
if (z4 && !this.f3822n0) {
|
|
requestLayout();
|
|
}
|
|
this.f3797L = this.f3798M;
|
|
}
|
|
|
|
/* renamed from: F */
|
|
public final void m740F() {
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList;
|
|
if ((this.f3803R == null && ((copyOnWriteArrayList = this.f3816h0) == null || copyOnWriteArrayList.isEmpty())) || this.f3818j0 == this.f3797L) {
|
|
return;
|
|
}
|
|
if (this.f3817i0 != -1) {
|
|
InterfaceC1645d interfaceC1645d = this.f3803R;
|
|
if (interfaceC1645d != null) {
|
|
interfaceC1645d.mo713b(this, this.f3790E, this.f3792G);
|
|
}
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList2 = this.f3816h0;
|
|
if (copyOnWriteArrayList2 != null) {
|
|
Iterator<InterfaceC1645d> it = copyOnWriteArrayList2.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().mo713b(this, this.f3790E, this.f3792G);
|
|
}
|
|
}
|
|
this.f3819k0 = true;
|
|
}
|
|
this.f3817i0 = -1;
|
|
float f = this.f3797L;
|
|
this.f3818j0 = f;
|
|
InterfaceC1645d interfaceC1645d2 = this.f3803R;
|
|
if (interfaceC1645d2 != null) {
|
|
interfaceC1645d2.mo712c(this, this.f3790E, this.f3792G, f);
|
|
}
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList3 = this.f3816h0;
|
|
if (copyOnWriteArrayList3 != null) {
|
|
Iterator<InterfaceC1645d> it2 = copyOnWriteArrayList3.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().mo712c(this, this.f3790E, this.f3792G, this.f3797L);
|
|
}
|
|
}
|
|
this.f3819k0 = true;
|
|
}
|
|
|
|
/* renamed from: G */
|
|
public void m739G() {
|
|
int i;
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList;
|
|
if ((this.f3803R != null || ((copyOnWriteArrayList = this.f3816h0) != null && !copyOnWriteArrayList.isEmpty())) && this.f3817i0 == -1) {
|
|
this.f3817i0 = this.f3791F;
|
|
if (this.f3831w0.isEmpty()) {
|
|
i = -1;
|
|
} else {
|
|
ArrayList<Integer> arrayList = this.f3831w0;
|
|
i = arrayList.get(arrayList.size() - 1).intValue();
|
|
}
|
|
int i2 = this.f3791F;
|
|
if (i != i2 && i2 != -1) {
|
|
this.f3831w0.add(Integer.valueOf(i2));
|
|
}
|
|
}
|
|
m737I();
|
|
Runnable runnable = this.f3824p0;
|
|
if (runnable != null) {
|
|
runnable.run();
|
|
}
|
|
int[] iArr = this.f3825q0;
|
|
if (iArr == null || this.f3826r0 <= 0) {
|
|
return;
|
|
}
|
|
m732N(iArr[0]);
|
|
int[] iArr2 = this.f3825q0;
|
|
System.arraycopy(iArr2, 1, iArr2, 0, iArr2.length - 1);
|
|
this.f3826r0--;
|
|
}
|
|
|
|
/* renamed from: H */
|
|
public void m738H() {
|
|
}
|
|
|
|
/* renamed from: I */
|
|
public final void m737I() {
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList;
|
|
if (this.f3803R == null && ((copyOnWriteArrayList = this.f3816h0) == null || copyOnWriteArrayList.isEmpty())) {
|
|
return;
|
|
}
|
|
this.f3819k0 = false;
|
|
Iterator<Integer> it = this.f3831w0.iterator();
|
|
while (it.hasNext()) {
|
|
Integer next = it.next();
|
|
InterfaceC1645d interfaceC1645d = this.f3803R;
|
|
if (interfaceC1645d != null) {
|
|
interfaceC1645d.mo714a(this, next.intValue());
|
|
}
|
|
CopyOnWriteArrayList<InterfaceC1645d> copyOnWriteArrayList2 = this.f3816h0;
|
|
if (copyOnWriteArrayList2 != null) {
|
|
Iterator<InterfaceC1645d> it2 = copyOnWriteArrayList2.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().mo714a(this, next.intValue());
|
|
}
|
|
}
|
|
}
|
|
this.f3831w0.clear();
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x002f, code lost:
|
|
if (r5 > 0.0f) goto L14;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0032, code lost:
|
|
r0 = 0.0f;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0033, code lost:
|
|
m742D(r0);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0043, code lost:
|
|
if (r4 > 0.5f) goto L14;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0046, code lost:
|
|
return;
|
|
*/
|
|
/* renamed from: J */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
*/
|
|
public void m736J(float f, float f2) {
|
|
if (!isAttachedToWindow()) {
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m718e(f);
|
|
this.f3823o0.m715h(f2);
|
|
return;
|
|
}
|
|
setProgress(f);
|
|
setState(EnumC1646e.MOVING);
|
|
this.f3789D = f2;
|
|
float f3 = 1.0f;
|
|
if (f2 == 0.0f) {
|
|
if (f == 0.0f || f == 1.0f) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: K */
|
|
public void m735K(int i, int i2, int i3) {
|
|
setState(EnumC1646e.SETUP);
|
|
this.f3791F = i;
|
|
this.f3790E = -1;
|
|
this.f3792G = -1;
|
|
C1736c c1736c = this.f729n;
|
|
if (c1736c != null) {
|
|
c1736c.m487d(i, i2, i3);
|
|
}
|
|
}
|
|
|
|
/* renamed from: L */
|
|
public void m734L(int i, int i2) {
|
|
if (isAttachedToWindow()) {
|
|
return;
|
|
}
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m717f(i);
|
|
this.f3823o0.m719d(i2);
|
|
}
|
|
|
|
/* renamed from: M */
|
|
public void m733M() {
|
|
m742D(1.0f);
|
|
this.f3824p0 = null;
|
|
}
|
|
|
|
/* renamed from: N */
|
|
public void m732N(int i) {
|
|
if (isAttachedToWindow()) {
|
|
m731O(i, -1, -1);
|
|
return;
|
|
}
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m719d(i);
|
|
}
|
|
|
|
/* renamed from: O */
|
|
public void m731O(int i, int i2, int i3) {
|
|
m730P(i, i2, i3, -1);
|
|
}
|
|
|
|
/* renamed from: P */
|
|
public void m730P(int i, int i2, int i3, int i4) {
|
|
int i5 = this.f3791F;
|
|
if (i5 == i) {
|
|
return;
|
|
}
|
|
if (this.f3790E == i) {
|
|
m742D(0.0f);
|
|
if (i4 > 0) {
|
|
this.f3796K = i4 / 1000.0f;
|
|
}
|
|
} else if (this.f3792G == i) {
|
|
m742D(1.0f);
|
|
if (i4 > 0) {
|
|
this.f3796K = i4 / 1000.0f;
|
|
}
|
|
} else {
|
|
this.f3792G = i;
|
|
if (i5 != -1) {
|
|
m734L(i5, i);
|
|
m742D(1.0f);
|
|
this.f3798M = 0.0f;
|
|
m733M();
|
|
if (i4 > 0) {
|
|
this.f3796K = i4 / 1000.0f;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.f3805T = false;
|
|
this.f3800O = 1.0f;
|
|
this.f3797L = 0.0f;
|
|
this.f3798M = 0.0f;
|
|
this.f3799N = getNanoTime();
|
|
this.f3795J = getNanoTime();
|
|
this.f3801P = false;
|
|
this.f3787B = null;
|
|
if (i4 == -1) {
|
|
throw null;
|
|
}
|
|
this.f3790E = -1;
|
|
throw null;
|
|
}
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0974w0
|
|
/* renamed from: d */
|
|
public void mo729d(View view, View view2, int i, int i2) {
|
|
this.f3810b0 = getNanoTime();
|
|
this.f3811c0 = 0.0f;
|
|
this.f3808W = 0.0f;
|
|
this.f3809a0 = 0.0f;
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup, android.view.View
|
|
public void dispatchDraw(Canvas canvas) {
|
|
ArrayList<C1639h> arrayList = this.f3815g0;
|
|
if (arrayList != null) {
|
|
Iterator<C1639h> it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().m748w(canvas);
|
|
}
|
|
}
|
|
m741E(false);
|
|
super.dispatchDraw(canvas);
|
|
}
|
|
|
|
public int[] getConstraintSetIds() {
|
|
return null;
|
|
}
|
|
|
|
public int getCurrentState() {
|
|
return this.f3791F;
|
|
}
|
|
|
|
public ArrayList<C1648l.C1649a> getDefinedTransitions() {
|
|
return null;
|
|
}
|
|
|
|
public C1633b getDesignTool() {
|
|
if (this.f3806U == null) {
|
|
this.f3806U = new C1633b(this);
|
|
}
|
|
return this.f3806U;
|
|
}
|
|
|
|
public int getEndState() {
|
|
return this.f3792G;
|
|
}
|
|
|
|
public long getNanoTime() {
|
|
return System.nanoTime();
|
|
}
|
|
|
|
public float getProgress() {
|
|
return this.f3798M;
|
|
}
|
|
|
|
public C1648l getScene() {
|
|
return null;
|
|
}
|
|
|
|
public int getStartState() {
|
|
return this.f3790E;
|
|
}
|
|
|
|
public float getTargetPosition() {
|
|
return this.f3800O;
|
|
}
|
|
|
|
public Bundle getTransitionState() {
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m720c();
|
|
return this.f3823o0.m721b();
|
|
}
|
|
|
|
public long getTransitionTimeMs() {
|
|
return this.f3796K * 1000.0f;
|
|
}
|
|
|
|
public float getVelocity() {
|
|
return this.f3789D;
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0974w0
|
|
/* renamed from: i */
|
|
public void mo728i(View view, int i) {
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean isAttachedToWindow() {
|
|
return Build.VERSION.SDK_INT >= 19 ? super.isAttachedToWindow() : getWindowToken() != null;
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0974w0
|
|
/* renamed from: j */
|
|
public void mo727j(View view, int i, int i2, int[] iArr, int i3) {
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0982x0
|
|
/* renamed from: m */
|
|
public void mo726m(View view, int i, int i2, int i3, int i4, int i5, int[] iArr) {
|
|
if (this.f3807V || i != 0 || i2 != 0) {
|
|
iArr[0] = iArr[0] + i3;
|
|
iArr[1] = iArr[1] + i4;
|
|
}
|
|
this.f3807V = false;
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0974w0
|
|
/* renamed from: n */
|
|
public void mo725n(View view, int i, int i2, int i3, int i4, int i5) {
|
|
}
|
|
|
|
@Override // p023h0.InterfaceC0974w0
|
|
/* renamed from: o */
|
|
public boolean mo724o(View view, View view2, int i, int i2) {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
public void onAttachedToWindow() {
|
|
Display display;
|
|
super.onAttachedToWindow();
|
|
if (Build.VERSION.SDK_INT >= 17 && (display = getDisplay()) != null) {
|
|
this.f3827s0 = display.getRotation();
|
|
}
|
|
m738H();
|
|
C1644c c1644c = this.f3823o0;
|
|
if (c1644c != null) {
|
|
if (this.f3828t0) {
|
|
post(new RunnableC1642a());
|
|
} else {
|
|
c1644c.m722a();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup, android.view.View
|
|
public void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
|
this.f3822n0 = true;
|
|
try {
|
|
super.onLayout(z, i, i2, i3, i4);
|
|
} finally {
|
|
this.f3822n0 = false;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.View
|
|
public void onMeasure(int i, int i2) {
|
|
super.onMeasure(i, i2);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.ViewParent, p023h0.InterfaceC0989y0
|
|
public boolean onNestedFling(View view, float f, float f2, boolean z) {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.ViewParent, p023h0.InterfaceC0989y0
|
|
public boolean onNestedPreFling(View view, float f, float f2) {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onRtlPropertiesChanged(int i) {
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean onTouchEvent(MotionEvent motionEvent) {
|
|
return super.onTouchEvent(motionEvent);
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup
|
|
public void onViewAdded(View view) {
|
|
super.onViewAdded(view);
|
|
if (view instanceof C1639h) {
|
|
C1639h c1639h = (C1639h) view;
|
|
if (this.f3816h0 == null) {
|
|
this.f3816h0 = new CopyOnWriteArrayList<>();
|
|
}
|
|
this.f3816h0.add(c1639h);
|
|
if (c1639h.m749v()) {
|
|
if (this.f3813e0 == null) {
|
|
this.f3813e0 = new ArrayList<>();
|
|
}
|
|
this.f3813e0.add(c1639h);
|
|
}
|
|
if (c1639h.m750u()) {
|
|
if (this.f3814f0 == null) {
|
|
this.f3814f0 = new ArrayList<>();
|
|
}
|
|
this.f3814f0.add(c1639h);
|
|
}
|
|
if (c1639h.m751t()) {
|
|
if (this.f3815g0 == null) {
|
|
this.f3815g0 = new ArrayList<>();
|
|
}
|
|
this.f3815g0.add(c1639h);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup
|
|
public void onViewRemoved(View view) {
|
|
super.onViewRemoved(view);
|
|
ArrayList<C1639h> arrayList = this.f3813e0;
|
|
if (arrayList != null) {
|
|
arrayList.remove(view);
|
|
}
|
|
ArrayList<C1639h> arrayList2 = this.f3814f0;
|
|
if (arrayList2 != null) {
|
|
arrayList2.remove(view);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.View, android.view.ViewParent
|
|
public void requestLayout() {
|
|
if (!this.f3820l0) {
|
|
int i = this.f3791F;
|
|
}
|
|
super.requestLayout();
|
|
}
|
|
|
|
@Override // androidx.constraintlayout.widget.ConstraintLayout
|
|
/* renamed from: s */
|
|
public void mo723s(int i) {
|
|
this.f729n = null;
|
|
}
|
|
|
|
public void setDebugMode(int i) {
|
|
this.f3804S = i;
|
|
invalidate();
|
|
}
|
|
|
|
public void setDelayedApplicationOfInitialState(boolean z) {
|
|
this.f3828t0 = z;
|
|
}
|
|
|
|
public void setInteractionEnabled(boolean z) {
|
|
this.f3793H = z;
|
|
}
|
|
|
|
public void setInterpolatedProgress(float f) {
|
|
setProgress(f);
|
|
}
|
|
|
|
public void setOnHide(float f) {
|
|
ArrayList<C1639h> arrayList = this.f3814f0;
|
|
if (arrayList != null) {
|
|
int size = arrayList.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.f3814f0.get(i).setProgress(f);
|
|
}
|
|
}
|
|
}
|
|
|
|
public void setOnShow(float f) {
|
|
ArrayList<C1639h> arrayList = this.f3813e0;
|
|
if (arrayList != null) {
|
|
int size = arrayList.size();
|
|
for (int i = 0; i < size; i++) {
|
|
this.f3813e0.get(i).setProgress(f);
|
|
}
|
|
}
|
|
}
|
|
|
|
public void setProgress(float f) {
|
|
EnumC1646e enumC1646e;
|
|
if (f < 0.0f || f > 1.0f) {
|
|
Log.w("MotionLayout", "Warning! Progress is defined for values between 0.0 and 1.0 inclusive");
|
|
}
|
|
if (!isAttachedToWindow()) {
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m718e(f);
|
|
return;
|
|
}
|
|
if (f <= 0.0f) {
|
|
if (this.f3798M == 1.0f && this.f3791F == this.f3792G) {
|
|
setState(EnumC1646e.MOVING);
|
|
}
|
|
this.f3791F = this.f3790E;
|
|
if (this.f3798M != 0.0f) {
|
|
return;
|
|
}
|
|
} else if (f < 1.0f) {
|
|
this.f3791F = -1;
|
|
enumC1646e = EnumC1646e.MOVING;
|
|
setState(enumC1646e);
|
|
} else {
|
|
if (this.f3798M == 0.0f && this.f3791F == this.f3790E) {
|
|
setState(EnumC1646e.MOVING);
|
|
}
|
|
this.f3791F = this.f3792G;
|
|
if (this.f3798M != 1.0f) {
|
|
return;
|
|
}
|
|
}
|
|
enumC1646e = EnumC1646e.FINISHED;
|
|
setState(enumC1646e);
|
|
}
|
|
|
|
public void setScene(C1648l c1648l) {
|
|
m4574q();
|
|
throw null;
|
|
}
|
|
|
|
public void setStartState(int i) {
|
|
if (isAttachedToWindow()) {
|
|
this.f3791F = i;
|
|
return;
|
|
}
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m717f(i);
|
|
this.f3823o0.m719d(i);
|
|
}
|
|
|
|
public void setState(EnumC1646e enumC1646e) {
|
|
EnumC1646e enumC1646e2 = EnumC1646e.FINISHED;
|
|
if (enumC1646e == enumC1646e2 && this.f3791F == -1) {
|
|
return;
|
|
}
|
|
EnumC1646e enumC1646e3 = this.f3829u0;
|
|
this.f3829u0 = enumC1646e;
|
|
EnumC1646e enumC1646e4 = EnumC1646e.MOVING;
|
|
if (enumC1646e3 == enumC1646e4 && enumC1646e == enumC1646e4) {
|
|
m740F();
|
|
}
|
|
int i = C1643b.f3833a[enumC1646e3.ordinal()];
|
|
if (i == 1 || i == 2) {
|
|
if (enumC1646e == enumC1646e4) {
|
|
m740F();
|
|
}
|
|
if (enumC1646e != enumC1646e2) {
|
|
return;
|
|
}
|
|
} else if (i != 3 || enumC1646e != enumC1646e2) {
|
|
return;
|
|
}
|
|
m739G();
|
|
}
|
|
|
|
public void setTransition(int i) {
|
|
}
|
|
|
|
public void setTransition(C1648l.C1649a c1649a) {
|
|
throw null;
|
|
}
|
|
|
|
public void setTransitionDuration(int i) {
|
|
Log.e("MotionLayout", "MotionScene not defined");
|
|
}
|
|
|
|
public void setTransitionListener(InterfaceC1645d interfaceC1645d) {
|
|
this.f3803R = interfaceC1645d;
|
|
}
|
|
|
|
public void setTransitionState(Bundle bundle) {
|
|
if (this.f3823o0 == null) {
|
|
this.f3823o0 = new C1644c();
|
|
}
|
|
this.f3823o0.m716g(bundle);
|
|
if (isAttachedToWindow()) {
|
|
this.f3823o0.m722a();
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public String toString() {
|
|
Context context = getContext();
|
|
return C1632a.m758a(context, this.f3790E) + "->" + C1632a.m758a(context, this.f3792G) + " (pos:" + this.f3798M + " Dpos/Dt:" + this.f3789D;
|
|
}
|
|
} |