Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
package androidx.recyclerview.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes.dex */
public final class A extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public boolean f3459a = false;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C f3460b;
public A(C c4) {
this.f3460b = c4;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationCancel(Animator animator) {
this.f3459a = true;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
if (this.f3459a) {
this.f3459a = false;
return;
}
C c4 = this.f3460b;
if (((Float) c4.f3490z.getAnimatedValue()).floatValue() == BitmapDescriptorFactory.HUE_RED) {
c4.f3466A = 0;
c4.f(0);
} else {
c4.f3466A = 2;
c4.f3483s.invalidate();
}
}
}

View File

@@ -0,0 +1,22 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class A0 implements Parcelable.ClassLoaderCreator {
@Override // android.os.Parcelable.ClassLoaderCreator
public final Object createFromParcel(Parcel parcel, ClassLoader classLoader) {
return new B0(parcel, classLoader);
}
@Override // android.os.Parcelable.Creator
public final Object[] newArray(int i) {
return new B0[i];
}
@Override // android.os.Parcelable.Creator
public final Object createFromParcel(Parcel parcel) {
return new B0(parcel, null);
}
}

View File

@@ -0,0 +1,70 @@
package androidx.recyclerview.widget;
import android.graphics.Rect;
import android.view.View;
import d0.C0305c;
import kotlin.jvm.internal.IntCompanionObject;
/* renamed from: androidx.recyclerview.widget.b0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0208b0 {
/* renamed from: a, reason: collision with root package name */
public int f3793a;
/* renamed from: b, reason: collision with root package name */
public final Object f3794b;
/* renamed from: c, reason: collision with root package name */
public final Object f3795c;
public AbstractC0208b0(AbstractC0238q0 abstractC0238q0) {
this.f3793a = IntCompanionObject.MIN_VALUE;
this.f3795c = new Rect();
this.f3794b = abstractC0238q0;
}
public static AbstractC0208b0 a(AbstractC0238q0 abstractC0238q0, int i) {
if (i == 0) {
return new C0206a0(abstractC0238q0, 0);
}
if (i == 1) {
return new C0206a0(abstractC0238q0, 1);
}
throw new IllegalArgumentException("invalid orientation");
}
public abstract int b(View view);
public abstract int c(View view);
public abstract int d(View view);
public abstract int e(View view);
public abstract int f();
public abstract int g();
public abstract int h();
public abstract int i();
public abstract int j();
public abstract int k();
public abstract int l();
public abstract int m(View view);
public abstract int n(View view);
public abstract void o(int i);
public AbstractC0208b0(d0.g gVar) {
this.f3793a = 0;
this.f3795c = new C0305c();
this.f3794b = gVar;
}
}

View File

@@ -0,0 +1,53 @@
package androidx.recyclerview.widget;
import android.view.View;
import java.util.concurrent.ExecutorService;
/* renamed from: androidx.recyclerview.widget.d, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0211d {
/* renamed from: b, reason: collision with root package name */
public static ExecutorService f3800b;
/* renamed from: a, reason: collision with root package name */
public static final Object f3799a = new Object();
/* renamed from: c, reason: collision with root package name */
public static final r f3801c = new r(0);
public static int c(E0 e02, AbstractC0208b0 abstractC0208b0, View view, View view2, AbstractC0238q0 abstractC0238q0, boolean z3) {
if (abstractC0238q0.v() == 0 || e02.b() == 0 || view == null || view2 == null) {
return 0;
}
if (!z3) {
return Math.abs(AbstractC0238q0.L(view) - AbstractC0238q0.L(view2)) + 1;
}
return Math.min(abstractC0208b0.l(), abstractC0208b0.b(view2) - abstractC0208b0.e(view));
}
public static int d(E0 e02, AbstractC0208b0 abstractC0208b0, View view, View view2, AbstractC0238q0 abstractC0238q0, boolean z3, boolean z4) {
if (abstractC0238q0.v() == 0 || e02.b() == 0 || view == null || view2 == null) {
return 0;
}
int max = z4 ? Math.max(0, (e02.b() - Math.max(AbstractC0238q0.L(view), AbstractC0238q0.L(view2))) - 1) : Math.max(0, Math.min(AbstractC0238q0.L(view), AbstractC0238q0.L(view2)));
if (z3) {
return Math.round((max * (Math.abs(abstractC0208b0.b(view2) - abstractC0208b0.e(view)) / (Math.abs(AbstractC0238q0.L(view) - AbstractC0238q0.L(view2)) + 1))) + (abstractC0208b0.k() - abstractC0208b0.e(view)));
}
return max;
}
public static int e(E0 e02, AbstractC0208b0 abstractC0208b0, View view, View view2, AbstractC0238q0 abstractC0238q0, boolean z3) {
if (abstractC0238q0.v() == 0 || e02.b() == 0 || view == null || view2 == null) {
return 0;
}
if (!z3) {
return e02.b();
}
return (int) (((abstractC0208b0.b(view2) - abstractC0208b0.e(view)) / (Math.abs(AbstractC0238q0.L(view) - AbstractC0238q0.L(view2)) + 1)) * e02.b());
}
public abstract boolean a(Object obj, Object obj2);
public abstract boolean b(Object obj, Object obj2);
}

View File

@@ -0,0 +1,189 @@
package androidx.recyclerview.widget;
import android.database.Observable;
import android.os.Trace;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import java.util.WeakHashMap;
/* renamed from: androidx.recyclerview.widget.h0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0220h0 {
private final C0222i0 mObservable = new Observable();
private boolean mHasStableIds = false;
private EnumC0218g0 mStateRestorationPolicy = EnumC0218g0.f3817a;
public final void bindViewHolder(I0 i02, int i) {
boolean z3 = i02.mBindingAdapter == null;
if (z3) {
i02.mPosition = i;
if (hasStableIds()) {
i02.mItemId = getItemId(i);
}
i02.setFlags(1, 519);
Trace.beginSection("RV OnBindView");
}
i02.mBindingAdapter = this;
if (RecyclerView.A0) {
if (i02.itemView.getParent() == null) {
View view = i02.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
if (view.isAttachedToWindow() != i02.isTmpDetached()) {
throw new IllegalStateException("Temp-detached state out of sync with reality. holder.isTmpDetached(): " + i02.isTmpDetached() + ", attached to window: " + i02.itemView.isAttachedToWindow() + ", holder: " + i02);
}
}
if (i02.itemView.getParent() == null) {
View view2 = i02.itemView;
WeakHashMap weakHashMap2 = O.X.f1226a;
if (view2.isAttachedToWindow()) {
throw new IllegalStateException("Attempting to bind attached holder with no parent (AKA temp detached): " + i02);
}
}
}
onBindViewHolder(i02, i, i02.getUnmodifiedPayloads());
if (z3) {
i02.clearPayload();
ViewGroup.LayoutParams layoutParams = i02.itemView.getLayoutParams();
if (layoutParams instanceof C0239r0) {
((C0239r0) layoutParams).f3899c = true;
}
Trace.endSection();
}
}
public boolean canRestoreState() {
int ordinal = this.mStateRestorationPolicy.ordinal();
return ordinal != 1 ? ordinal != 2 : getItemCount() > 0;
}
public final I0 createViewHolder(ViewGroup viewGroup, int i) {
try {
Trace.beginSection("RV CreateView");
I0 onCreateViewHolder = onCreateViewHolder(viewGroup, i);
if (onCreateViewHolder.itemView.getParent() != null) {
throw new IllegalStateException("ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot)");
}
onCreateViewHolder.mItemViewType = i;
return onCreateViewHolder;
} finally {
Trace.endSection();
}
}
public int findRelativeAdapterPositionIn(AbstractC0220h0 abstractC0220h0, I0 i02, int i) {
if (abstractC0220h0 == this) {
return i;
}
return -1;
}
public abstract int getItemCount();
public long getItemId(int i) {
return -1L;
}
public int getItemViewType(int i) {
return 0;
}
public final EnumC0218g0 getStateRestorationPolicy() {
return this.mStateRestorationPolicy;
}
public final boolean hasObservers() {
return this.mObservable.a();
}
public final boolean hasStableIds() {
return this.mHasStableIds;
}
public final void notifyDataSetChanged() {
this.mObservable.b();
}
public final void notifyItemChanged(int i) {
this.mObservable.d(i, 1, null);
}
public final void notifyItemInserted(int i) {
this.mObservable.e(i, 1);
}
public final void notifyItemMoved(int i, int i4) {
this.mObservable.c(i, i4);
}
public final void notifyItemRangeChanged(int i, int i4) {
this.mObservable.d(i, i4, null);
}
public final void notifyItemRangeInserted(int i, int i4) {
this.mObservable.e(i, i4);
}
public final void notifyItemRangeRemoved(int i, int i4) {
this.mObservable.f(i, i4);
}
public final void notifyItemRemoved(int i) {
this.mObservable.f(i, 1);
}
public void onAttachedToRecyclerView(RecyclerView recyclerView) {
}
public abstract void onBindViewHolder(I0 i02, int i);
public void onBindViewHolder(I0 i02, int i, List<Object> list) {
onBindViewHolder(i02, i);
}
public abstract I0 onCreateViewHolder(ViewGroup viewGroup, int i);
public void onDetachedFromRecyclerView(RecyclerView recyclerView) {
}
public boolean onFailedToRecycleView(I0 i02) {
return false;
}
public void onViewAttachedToWindow(I0 i02) {
}
public void onViewDetachedFromWindow(I0 i02) {
}
public void onViewRecycled(I0 i02) {
}
public void registerAdapterDataObserver(AbstractC0224j0 abstractC0224j0) {
this.mObservable.registerObserver(abstractC0224j0);
}
public void setHasStableIds(boolean z3) {
if (hasObservers()) {
throw new IllegalStateException("Cannot change whether this adapter has stable IDs while the adapter has registered observers.");
}
this.mHasStableIds = z3;
}
public void setStateRestorationPolicy(EnumC0218g0 enumC0218g0) {
this.mStateRestorationPolicy = enumC0218g0;
this.mObservable.g();
}
public void unregisterAdapterDataObserver(AbstractC0224j0 abstractC0224j0) {
this.mObservable.unregisterObserver(abstractC0224j0);
}
public final void notifyItemChanged(int i, Object obj) {
this.mObservable.d(i, 1, obj);
}
public final void notifyItemRangeChanged(int i, int i4, Object obj) {
this.mObservable.d(i, i4, obj);
}
}

View File

@@ -0,0 +1,18 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.j0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0224j0 {
public abstract void a();
public abstract void b(int i, int i4, Object obj);
public abstract void c(int i, int i4);
public abstract void d(int i, int i4);
public abstract void e(int i, int i4);
public void f() {
}
}

View File

@@ -0,0 +1,6 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.l0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0228l0 {
}

View File

@@ -0,0 +1,150 @@
package androidx.recyclerview.widget;
import O.C0079u;
import java.util.ArrayList;
/* renamed from: androidx.recyclerview.widget.m0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0230m0 {
/* renamed from: a, reason: collision with root package name */
public C0216f0 f3845a;
/* renamed from: b, reason: collision with root package name */
public ArrayList f3846b;
/* renamed from: c, reason: collision with root package name */
public long f3847c;
/* renamed from: d, reason: collision with root package name */
public long f3848d;
/* renamed from: e, reason: collision with root package name */
public long f3849e;
/* renamed from: f, reason: collision with root package name */
public long f3850f;
public static void b(I0 i02) {
int i = i02.mFlags;
if (!i02.isInvalid() && (i & 4) == 0) {
i02.getOldPosition();
i02.getAbsoluteAdapterPosition();
}
}
public abstract boolean a(I0 i02, I0 i03, C0079u c0079u, C0079u c0079u2);
/* JADX WARN: Removed duplicated region for block: B:16:0x0066 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c(androidx.recyclerview.widget.I0 r9) {
/*
r8 = this;
androidx.recyclerview.widget.f0 r8 = r8.f3845a
if (r8 == 0) goto Laf
r0 = 1
r9.setIsRecyclable(r0)
androidx.recyclerview.widget.I0 r1 = r9.mShadowedHolder
r2 = 0
if (r1 == 0) goto L13
androidx.recyclerview.widget.I0 r1 = r9.mShadowingHolder
if (r1 != 0) goto L13
r9.mShadowedHolder = r2
L13:
r9.mShadowingHolder = r2
boolean r1 = r9.shouldBeKeptAsChild()
if (r1 != 0) goto Laf
android.view.View r1 = r9.itemView
androidx.recyclerview.widget.RecyclerView r8 = r8.f3809a
r8.n0()
androidx.recyclerview.widget.j r2 = r8.f3682f
androidx.recyclerview.widget.i r3 = r2.f3827b
androidx.recyclerview.widget.f0 r4 = r2.f3826a
int r5 = r2.f3829d
r6 = 0
if (r5 != r0) goto L3b
android.view.View r0 = r2.f3830e
if (r0 != r1) goto L33
L31:
r0 = r6
goto L64
L33:
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
java.lang.String r9 = "Cannot call removeViewIfHidden within removeView(At) for a different view"
r8.<init>(r9)
throw r8
L3b:
r7 = 2
if (r5 == r7) goto La7
r2.f3829d = r7 // Catch: java.lang.Throwable -> L4f
androidx.recyclerview.widget.RecyclerView r5 = r4.f3809a // Catch: java.lang.Throwable -> L4f
int r5 = r5.indexOfChild(r1) // Catch: java.lang.Throwable -> L4f
r7 = -1
if (r5 != r7) goto L51
r2.j(r1) // Catch: java.lang.Throwable -> L4f
L4c:
r2.f3829d = r6
goto L64
L4f:
r8 = move-exception
goto La4
L51:
boolean r7 = r3.d(r5) // Catch: java.lang.Throwable -> L4f
if (r7 == 0) goto L61
r3.g(r5) // Catch: java.lang.Throwable -> L4f
r2.j(r1) // Catch: java.lang.Throwable -> L4f
r4.h(r5) // Catch: java.lang.Throwable -> L4f
goto L4c
L61:
r2.f3829d = r6
goto L31
L64:
if (r0 == 0) goto L91
androidx.recyclerview.widget.I0 r2 = androidx.recyclerview.widget.RecyclerView.N(r1)
androidx.recyclerview.widget.y0 r3 = r8.f3676c
r3.l(r2)
r3.i(r2)
boolean r2 = androidx.recyclerview.widget.RecyclerView.f3642B0
if (r2 == 0) goto L91
java.lang.StringBuilder r2 = new java.lang.StringBuilder
java.lang.String r3 = "after removing animated view: "
r2.<init>(r3)
r2.append(r1)
java.lang.String r1 = ", "
r2.append(r1)
r2.append(r8)
java.lang.String r1 = r2.toString()
java.lang.String r2 = "RecyclerView"
android.util.Log.d(r2, r1)
L91:
r1 = r0 ^ 1
r8.o0(r1)
if (r0 != 0) goto Laf
boolean r0 = r9.isTmpDetached()
if (r0 == 0) goto Laf
android.view.View r9 = r9.itemView
r8.removeDetachedView(r9, r6)
return
La4:
r2.f3829d = r6
throw r8
La7:
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
java.lang.String r9 = "Cannot call removeViewIfHidden within removeViewIfHidden"
r8.<init>(r9)
throw r8
Laf:
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.AbstractC0230m0.c(androidx.recyclerview.widget.I0):void");
}
public abstract void d(I0 i02);
public abstract void e();
public abstract boolean f();
}

View File

@@ -0,0 +1,34 @@
package androidx.recyclerview.widget;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.view.View;
/* renamed from: androidx.recyclerview.widget.n0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0232n0 {
@Deprecated
public void getItemOffsets(Rect rect, int i, RecyclerView recyclerView) {
rect.set(0, 0, 0, 0);
}
@Deprecated
public void onDraw(Canvas canvas, RecyclerView recyclerView) {
}
@Deprecated
public void onDrawOver(Canvas canvas, RecyclerView recyclerView) {
}
public void getItemOffsets(Rect rect, View view, RecyclerView recyclerView, E0 e02) {
getItemOffsets(rect, ((C0239r0) view.getLayoutParams()).f3897a.getLayoutPosition(), recyclerView);
}
public void onDraw(Canvas canvas, RecyclerView recyclerView, E0 e02) {
onDraw(canvas, recyclerView);
}
public void onDrawOver(Canvas canvas, RecyclerView recyclerView, E0 e02) {
onDrawOver(canvas, recyclerView);
}
}

View File

@@ -0,0 +1,945 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import java.util.ArrayList;
import java.util.WeakHashMap;
import kotlin.io.ConstantsKt;
import kotlin.jvm.internal.IntCompanionObject;
import t0.AbstractC0615a;
/* renamed from: androidx.recyclerview.widget.q0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0238q0 {
/* renamed from: a, reason: collision with root package name */
public C0223j f3883a;
/* renamed from: b, reason: collision with root package name */
public RecyclerView f3884b;
/* renamed from: c, reason: collision with root package name */
public final F.i f3885c;
/* renamed from: d, reason: collision with root package name */
public final F.i f3886d;
/* renamed from: e, reason: collision with root package name */
public X f3887e;
/* renamed from: f, reason: collision with root package name */
public boolean f3888f;
/* renamed from: g, reason: collision with root package name */
public boolean f3889g;
public final boolean h;
public final boolean i;
/* renamed from: j, reason: collision with root package name */
public int f3890j;
/* renamed from: k, reason: collision with root package name */
public boolean f3891k;
/* renamed from: l, reason: collision with root package name */
public int f3892l;
/* renamed from: m, reason: collision with root package name */
public int f3893m;
/* renamed from: n, reason: collision with root package name */
public int f3894n;
/* renamed from: o, reason: collision with root package name */
public int f3895o;
public AbstractC0238q0() {
C0234o0 c0234o0 = new C0234o0(this, 0);
C0234o0 c0234o02 = new C0234o0(this, 1);
this.f3885c = new F.i(c0234o0);
this.f3886d = new F.i(c0234o02);
this.f3888f = false;
this.f3889g = false;
this.h = true;
this.i = true;
}
public static int A(View view) {
return view.getLeft() - ((C0239r0) view.getLayoutParams()).f3898b.left;
}
public static int B(View view) {
Rect rect = ((C0239r0) view.getLayoutParams()).f3898b;
return view.getMeasuredHeight() + rect.top + rect.bottom;
}
public static int C(View view) {
Rect rect = ((C0239r0) view.getLayoutParams()).f3898b;
return view.getMeasuredWidth() + rect.left + rect.right;
}
public static int D(View view) {
return view.getRight() + ((C0239r0) view.getLayoutParams()).f3898b.right;
}
public static int E(View view) {
return view.getTop() - ((C0239r0) view.getLayoutParams()).f3898b.top;
}
public static int L(View view) {
return ((C0239r0) view.getLayoutParams()).f3897a.getLayoutPosition();
}
/* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, androidx.recyclerview.widget.p0] */
public static C0236p0 M(Context context, AttributeSet attributeSet, int i, int i4) {
?? obj = new Object();
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0615a.f8509a, i, i4);
obj.f3869a = obtainStyledAttributes.getInt(0, 1);
obj.f3870b = obtainStyledAttributes.getInt(10, 1);
obj.f3871c = obtainStyledAttributes.getBoolean(9, false);
obj.f3872d = obtainStyledAttributes.getBoolean(11, false);
obtainStyledAttributes.recycle();
return obj;
}
public static boolean Q(int i, int i4, int i5) {
int mode = View.MeasureSpec.getMode(i4);
int size = View.MeasureSpec.getSize(i4);
if (i5 > 0 && i != i5) {
return false;
}
if (mode == Integer.MIN_VALUE) {
return size >= i;
}
if (mode != 0) {
return mode == 1073741824 && size == i;
}
return true;
}
public static void R(View view, int i, int i4, int i5, int i6) {
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
Rect rect = c0239r0.f3898b;
view.layout(i + rect.left + ((ViewGroup.MarginLayoutParams) c0239r0).leftMargin, i4 + rect.top + ((ViewGroup.MarginLayoutParams) c0239r0).topMargin, (i5 - rect.right) - ((ViewGroup.MarginLayoutParams) c0239r0).rightMargin, (i6 - rect.bottom) - ((ViewGroup.MarginLayoutParams) c0239r0).bottomMargin);
}
public static int g(int i, int i4, int i5) {
int mode = View.MeasureSpec.getMode(i);
int size = View.MeasureSpec.getSize(i);
return mode != Integer.MIN_VALUE ? mode != 1073741824 ? Math.max(i4, i5) : size : Math.min(size, Math.max(i4, i5));
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0018, code lost:
if (r6 == 1073741824) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static int w(boolean r4, int r5, int r6, int r7, int r8) {
/*
int r5 = r5 - r7
r7 = 0
int r5 = java.lang.Math.max(r7, r5)
r0 = -2
r1 = -1
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = 1073741824(0x40000000, float:2.0)
if (r4 == 0) goto L1d
if (r8 < 0) goto L12
L10:
r6 = r3
goto L30
L12:
if (r8 != r1) goto L1a
if (r6 == r2) goto L22
if (r6 == 0) goto L1a
if (r6 == r3) goto L22
L1a:
r6 = r7
r8 = r6
goto L30
L1d:
if (r8 < 0) goto L20
goto L10
L20:
if (r8 != r1) goto L24
L22:
r8 = r5
goto L30
L24:
if (r8 != r0) goto L1a
if (r6 == r2) goto L2e
if (r6 != r3) goto L2b
goto L2e
L2b:
r8 = r5
r6 = r7
goto L30
L2e:
r8 = r5
r6 = r2
L30:
int r4 = android.view.View.MeasureSpec.makeMeasureSpec(r8, r6)
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.AbstractC0238q0.w(boolean, int, int, int, int):int");
}
public static int y(View view) {
return view.getBottom() + ((C0239r0) view.getLayoutParams()).f3898b.bottom;
}
public final void A0(int i, int i4) {
int v3 = v();
if (v3 == 0) {
this.f3884b.r(i, i4);
return;
}
int i5 = IntCompanionObject.MIN_VALUE;
int i6 = Integer.MAX_VALUE;
int i7 = Integer.MIN_VALUE;
int i8 = Integer.MAX_VALUE;
for (int i9 = 0; i9 < v3; i9++) {
View u3 = u(i9);
Rect rect = this.f3884b.f3688j;
z(rect, u3);
int i10 = rect.left;
if (i10 < i8) {
i8 = i10;
}
int i11 = rect.right;
if (i11 > i5) {
i5 = i11;
}
int i12 = rect.top;
if (i12 < i6) {
i6 = i12;
}
int i13 = rect.bottom;
if (i13 > i7) {
i7 = i13;
}
}
this.f3884b.f3688j.set(i8, i6, i5, i7);
z0(this.f3884b.f3688j, i, i4);
}
public final void B0(RecyclerView recyclerView) {
if (recyclerView == null) {
this.f3884b = null;
this.f3883a = null;
this.f3894n = 0;
this.f3895o = 0;
} else {
this.f3884b = recyclerView;
this.f3883a = recyclerView.f3682f;
this.f3894n = recyclerView.getWidth();
this.f3895o = recyclerView.getHeight();
}
this.f3892l = 1073741824;
this.f3893m = 1073741824;
}
public final boolean C0(View view, int i, int i4, C0239r0 c0239r0) {
return (!view.isLayoutRequested() && this.h && Q(view.getWidth(), i, ((ViewGroup.MarginLayoutParams) c0239r0).width) && Q(view.getHeight(), i4, ((ViewGroup.MarginLayoutParams) c0239r0).height)) ? false : true;
}
public boolean D0() {
return false;
}
public final boolean E0(View view, int i, int i4, C0239r0 c0239r0) {
return (this.h && Q(view.getMeasuredWidth(), i, ((ViewGroup.MarginLayoutParams) c0239r0).width) && Q(view.getMeasuredHeight(), i4, ((ViewGroup.MarginLayoutParams) c0239r0).height)) ? false : true;
}
public final int F() {
RecyclerView recyclerView = this.f3884b;
AbstractC0220h0 adapter = recyclerView != null ? recyclerView.getAdapter() : null;
if (adapter != null) {
return adapter.getItemCount();
}
return 0;
}
public abstract void F0(RecyclerView recyclerView, int i);
public final int G() {
RecyclerView recyclerView = this.f3884b;
WeakHashMap weakHashMap = O.X.f1226a;
return recyclerView.getLayoutDirection();
}
public final void G0(X x3) {
X x4 = this.f3887e;
if (x4 != null && x3 != x4 && x4.f3772e) {
x4.i();
}
this.f3887e = x3;
RecyclerView recyclerView = this.f3884b;
H0 h02 = recyclerView.f3681e0;
h02.f3550g.removeCallbacks(h02);
h02.f3546c.abortAnimation();
if (x3.h) {
Log.w("RecyclerView", "An instance of " + x3.getClass().getSimpleName() + " was started more than once. Each instance of" + x3.getClass().getSimpleName() + " is intended to only be used once. You should create a new instance for each use.");
}
x3.f3769b = recyclerView;
x3.f3770c = this;
int i = x3.f3768a;
if (i == -1) {
throw new IllegalArgumentException("Invalid target position");
}
recyclerView.f3686h0.f3509a = i;
x3.f3772e = true;
x3.f3771d = true;
x3.f3773f = recyclerView.f3696n.q(i);
x3.f3769b.f3681e0.b();
x3.h = true;
}
public final int H() {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
return recyclerView.getPaddingBottom();
}
return 0;
}
public boolean H0() {
return false;
}
public final int I() {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
return recyclerView.getPaddingLeft();
}
return 0;
}
public final int J() {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
return recyclerView.getPaddingRight();
}
return 0;
}
public final int K() {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
return recyclerView.getPaddingTop();
}
return 0;
}
public int N(y0 y0Var, E0 e02) {
return -1;
}
public final void O(Rect rect, View view) {
Matrix matrix;
Rect rect2 = ((C0239r0) view.getLayoutParams()).f3898b;
rect.set(-rect2.left, -rect2.top, view.getWidth() + rect2.right, view.getHeight() + rect2.bottom);
if (this.f3884b != null && (matrix = view.getMatrix()) != null && !matrix.isIdentity()) {
RectF rectF = this.f3884b.f3692l;
rectF.set(rect);
matrix.mapRect(rectF);
rect.set((int) Math.floor(rectF.left), (int) Math.floor(rectF.top), (int) Math.ceil(rectF.right), (int) Math.ceil(rectF.bottom));
}
rect.offset(view.getLeft(), view.getTop());
}
public abstract boolean P();
public void S(int i) {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
int e4 = recyclerView.f3682f.e();
for (int i4 = 0; i4 < e4; i4++) {
recyclerView.f3682f.d(i4).offsetLeftAndRight(i);
}
}
}
public void T(int i) {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
int e4 = recyclerView.f3682f.e();
for (int i4 = 0; i4 < e4; i4++) {
recyclerView.f3682f.d(i4).offsetTopAndBottom(i);
}
}
}
public void U() {
}
public void V(RecyclerView recyclerView) {
}
public abstract void W(RecyclerView recyclerView);
public abstract View X(View view, int i, y0 y0Var, E0 e02);
public void Y(AccessibilityEvent accessibilityEvent) {
RecyclerView recyclerView = this.f3884b;
y0 y0Var = recyclerView.f3676c;
E0 e02 = recyclerView.f3686h0;
if (recyclerView == null || accessibilityEvent == null) {
return;
}
boolean z3 = true;
if (!recyclerView.canScrollVertically(1) && !this.f3884b.canScrollVertically(-1) && !this.f3884b.canScrollHorizontally(-1) && !this.f3884b.canScrollHorizontally(1)) {
z3 = false;
}
accessibilityEvent.setScrollable(z3);
AbstractC0220h0 abstractC0220h0 = this.f3884b.f3694m;
if (abstractC0220h0 != null) {
accessibilityEvent.setItemCount(abstractC0220h0.getItemCount());
}
}
public void Z(y0 y0Var, E0 e02, P.k kVar) {
if (this.f3884b.canScrollVertically(-1) || this.f3884b.canScrollHorizontally(-1)) {
kVar.a(8192);
kVar.j(true);
}
if (this.f3884b.canScrollVertically(1) || this.f3884b.canScrollHorizontally(1)) {
kVar.a(ConstantsKt.DEFAULT_BLOCK_SIZE);
kVar.j(true);
}
kVar.f1341a.setCollectionInfo((AccessibilityNodeInfo.CollectionInfo) A.a.s(N(y0Var, e02), x(y0Var, e02), 0).f7b);
}
public final void a0(View view, P.k kVar) {
I0 N3 = RecyclerView.N(view);
if (N3 == null || N3.isRemoved()) {
return;
}
C0223j c0223j = this.f3883a;
if (c0223j.f3828c.contains(N3.itemView)) {
return;
}
RecyclerView recyclerView = this.f3884b;
b0(recyclerView.f3676c, recyclerView.f3686h0, view, kVar);
}
/* JADX WARN: Removed duplicated region for block: B:16:0x0070 */
/* JADX WARN: Removed duplicated region for block: B:18:0x0078 */
/* JADX WARN: Removed duplicated region for block: B:40:0x00e8 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(android.view.View r9, int r10, boolean r11) {
/*
Method dump skipped, instructions count: 363
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.AbstractC0238q0.b(android.view.View, int, boolean):void");
}
public void b0(y0 y0Var, E0 e02, View view, P.k kVar) {
}
public void c(String str) {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
recyclerView.l(str);
}
}
public void c0(int i, int i4) {
}
public abstract boolean d();
public void d0() {
}
public abstract boolean e();
public void e0(int i, int i4) {
}
public boolean f(C0239r0 c0239r0) {
return c0239r0 != null;
}
public void f0(int i, int i4) {
}
public void g0(int i, int i4) {
}
public void h(int i, int i4, E0 e02, Z2.y yVar) {
}
public abstract void h0(y0 y0Var, E0 e02);
public void i(int i, Z2.y yVar) {
}
public abstract void i0(E0 e02);
public abstract int j(E0 e02);
public void j0(Parcelable parcelable) {
}
public abstract int k(E0 e02);
public Parcelable k0() {
return null;
}
public abstract int l(E0 e02);
public void l0(int i) {
}
public abstract int m(E0 e02);
/* JADX WARN: Removed duplicated region for block: B:14:0x008d A[ADDED_TO_REGION] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean m0(androidx.recyclerview.widget.y0 r3, androidx.recyclerview.widget.E0 r4, int r5, android.os.Bundle r6) {
/*
r2 = this;
androidx.recyclerview.widget.RecyclerView r3 = r2.f3884b
r4 = 0
if (r3 != 0) goto L7
goto L8f
L7:
int r3 = r2.f3895o
int r6 = r2.f3894n
android.graphics.Rect r0 = new android.graphics.Rect
r0.<init>()
androidx.recyclerview.widget.RecyclerView r1 = r2.f3884b
android.graphics.Matrix r1 = r1.getMatrix()
boolean r1 = r1.isIdentity()
if (r1 == 0) goto L2c
androidx.recyclerview.widget.RecyclerView r1 = r2.f3884b
boolean r1 = r1.getGlobalVisibleRect(r0)
if (r1 == 0) goto L2c
int r3 = r0.height()
int r6 = r0.width()
L2c:
r0 = 4096(0x1000, float:5.74E-42)
r1 = 1
if (r5 == r0) goto L64
r0 = 8192(0x2000, float:1.148E-41)
if (r5 == r0) goto L38
r3 = r4
r5 = r3
goto L8b
L38:
androidx.recyclerview.widget.RecyclerView r5 = r2.f3884b
r0 = -1
boolean r5 = r5.canScrollVertically(r0)
if (r5 == 0) goto L4d
int r5 = r2.K()
int r3 = r3 - r5
int r5 = r2.H()
int r3 = r3 - r5
int r3 = -r3
goto L4e
L4d:
r3 = r4
L4e:
androidx.recyclerview.widget.RecyclerView r5 = r2.f3884b
boolean r5 = r5.canScrollHorizontally(r0)
if (r5 == 0) goto L62
int r5 = r2.I()
int r6 = r6 - r5
int r5 = r2.J()
int r6 = r6 - r5
int r5 = -r6
goto L8b
L62:
r5 = r4
goto L8b
L64:
androidx.recyclerview.widget.RecyclerView r5 = r2.f3884b
boolean r5 = r5.canScrollVertically(r1)
if (r5 == 0) goto L77
int r5 = r2.K()
int r3 = r3 - r5
int r5 = r2.H()
int r3 = r3 - r5
goto L78
L77:
r3 = r4
L78:
androidx.recyclerview.widget.RecyclerView r5 = r2.f3884b
boolean r5 = r5.canScrollHorizontally(r1)
if (r5 == 0) goto L62
int r5 = r2.I()
int r6 = r6 - r5
int r5 = r2.J()
int r5 = r6 - r5
L8b:
if (r3 != 0) goto L90
if (r5 != 0) goto L90
L8f:
return r4
L90:
androidx.recyclerview.widget.RecyclerView r2 = r2.f3884b
r2.l0(r5, r3, r1)
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.AbstractC0238q0.m0(androidx.recyclerview.widget.y0, androidx.recyclerview.widget.E0, int, android.os.Bundle):boolean");
}
public abstract int n(E0 e02);
public final void n0(y0 y0Var) {
for (int v3 = v() - 1; v3 >= 0; v3--) {
if (!RecyclerView.N(u(v3)).shouldIgnore()) {
q0(v3, y0Var);
}
}
}
public abstract int o(E0 e02);
public final void o0(y0 y0Var) {
ArrayList arrayList;
int size = y0Var.f3936a.size();
int i = size - 1;
while (true) {
arrayList = y0Var.f3936a;
if (i < 0) {
break;
}
View view = ((I0) arrayList.get(i)).itemView;
I0 N3 = RecyclerView.N(view);
if (!N3.shouldIgnore()) {
N3.setIsRecyclable(false);
if (N3.isTmpDetached()) {
this.f3884b.removeDetachedView(view, false);
}
AbstractC0230m0 abstractC0230m0 = this.f3884b.f3661M;
if (abstractC0230m0 != null) {
abstractC0230m0.d(N3);
}
N3.setIsRecyclable(true);
I0 N4 = RecyclerView.N(view);
N4.mScrapContainer = null;
N4.mInChangeScrap = false;
N4.clearReturnedFromScrapFlag();
y0Var.i(N4);
}
i--;
}
arrayList.clear();
ArrayList arrayList2 = y0Var.f3937b;
if (arrayList2 != null) {
arrayList2.clear();
}
if (size > 0) {
this.f3884b.invalidate();
}
}
public final void p(y0 y0Var) {
for (int v3 = v() - 1; v3 >= 0; v3--) {
View u3 = u(v3);
I0 N3 = RecyclerView.N(u3);
if (N3.shouldIgnore()) {
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "ignoring view " + N3);
}
} else if (!N3.isInvalid() || N3.isRemoved() || this.f3884b.f3694m.hasStableIds()) {
u(v3);
this.f3883a.c(v3);
y0Var.j(u3);
this.f3884b.f3684g.E(N3);
} else {
r0(v3);
y0Var.i(N3);
}
}
}
public final void p0(View view, y0 y0Var) {
C0223j c0223j = this.f3883a;
C0216f0 c0216f0 = c0223j.f3826a;
int i = c0223j.f3829d;
if (i == 1) {
throw new IllegalStateException("Cannot call removeView(At) within removeView(At)");
}
if (i == 2) {
throw new IllegalStateException("Cannot call removeView(At) within removeViewIfHidden");
}
try {
c0223j.f3829d = 1;
c0223j.f3830e = view;
int indexOfChild = c0216f0.f3809a.indexOfChild(view);
if (indexOfChild >= 0) {
if (c0223j.f3827b.g(indexOfChild)) {
c0223j.j(view);
}
c0216f0.h(indexOfChild);
}
c0223j.f3829d = 0;
c0223j.f3830e = null;
y0Var.h(view);
} catch (Throwable th) {
c0223j.f3829d = 0;
c0223j.f3830e = null;
throw th;
}
}
public View q(int i) {
int v3 = v();
for (int i4 = 0; i4 < v3; i4++) {
View u3 = u(i4);
I0 N3 = RecyclerView.N(u3);
if (N3 != null && N3.getLayoutPosition() == i && !N3.shouldIgnore() && (this.f3884b.f3686h0.f3515g || !N3.isRemoved())) {
return u3;
}
}
return null;
}
public final void q0(int i, y0 y0Var) {
View u3 = u(i);
r0(i);
y0Var.h(u3);
}
public abstract C0239r0 r();
public final void r0(int i) {
if (u(i) != null) {
C0223j c0223j = this.f3883a;
C0216f0 c0216f0 = c0223j.f3826a;
int i4 = c0223j.f3829d;
if (i4 == 1) {
throw new IllegalStateException("Cannot call removeView(At) within removeView(At)");
}
if (i4 == 2) {
throw new IllegalStateException("Cannot call removeView(At) within removeViewIfHidden");
}
try {
int f2 = c0223j.f(i);
View childAt = c0216f0.f3809a.getChildAt(f2);
if (childAt != null) {
c0223j.f3829d = 1;
c0223j.f3830e = childAt;
if (c0223j.f3827b.g(f2)) {
c0223j.j(childAt);
}
c0216f0.h(f2);
}
c0223j.f3829d = 0;
c0223j.f3830e = null;
} catch (Throwable th) {
c0223j.f3829d = 0;
c0223j.f3830e = null;
throw th;
}
}
}
public C0239r0 s(Context context, AttributeSet attributeSet) {
return new C0239r0(context, attributeSet);
}
/* JADX WARN: Code restructure failed: missing block: B:18:0x00ab, code lost:
if ((r5.bottom - r10) > r2) goto L28;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean s0(androidx.recyclerview.widget.RecyclerView r9, android.view.View r10, android.graphics.Rect r11, boolean r12, boolean r13) {
/*
r8 = this;
int r0 = r8.I()
int r1 = r8.K()
int r2 = r8.f3894n
int r3 = r8.J()
int r2 = r2 - r3
int r3 = r8.f3895o
int r4 = r8.H()
int r3 = r3 - r4
int r4 = r10.getLeft()
int r5 = r11.left
int r4 = r4 + r5
int r5 = r10.getScrollX()
int r4 = r4 - r5
int r5 = r10.getTop()
int r6 = r11.top
int r5 = r5 + r6
int r10 = r10.getScrollY()
int r5 = r5 - r10
int r10 = r11.width()
int r10 = r10 + r4
int r11 = r11.height()
int r11 = r11 + r5
int r4 = r4 - r0
r0 = 0
int r6 = java.lang.Math.min(r0, r4)
int r5 = r5 - r1
int r1 = java.lang.Math.min(r0, r5)
int r10 = r10 - r2
int r2 = java.lang.Math.max(r0, r10)
int r11 = r11 - r3
int r11 = java.lang.Math.max(r0, r11)
int r3 = r8.G()
r7 = 1
if (r3 != r7) goto L5c
if (r2 == 0) goto L57
goto L64
L57:
int r2 = java.lang.Math.max(r6, r10)
goto L64
L5c:
if (r6 == 0) goto L5f
goto L63
L5f:
int r6 = java.lang.Math.min(r4, r2)
L63:
r2 = r6
L64:
if (r1 == 0) goto L67
goto L6b
L67:
int r1 = java.lang.Math.min(r5, r11)
L6b:
int[] r10 = new int[]{r2, r1}
r11 = r10[r0]
r10 = r10[r7]
if (r13 == 0) goto Lae
android.view.View r13 = r9.getFocusedChild()
if (r13 != 0) goto L7c
goto Lb3
L7c:
int r1 = r8.I()
int r2 = r8.K()
int r3 = r8.f3894n
int r4 = r8.J()
int r3 = r3 - r4
int r4 = r8.f3895o
int r5 = r8.H()
int r4 = r4 - r5
androidx.recyclerview.widget.RecyclerView r5 = r8.f3884b
android.graphics.Rect r5 = r5.f3688j
r8.z(r5, r13)
int r8 = r5.left
int r8 = r8 - r11
if (r8 >= r3) goto Lb3
int r8 = r5.right
int r8 = r8 - r11
if (r8 <= r1) goto Lb3
int r8 = r5.top
int r8 = r8 - r10
if (r8 >= r4) goto Lb3
int r8 = r5.bottom
int r8 = r8 - r10
if (r8 > r2) goto Lae
goto Lb3
Lae:
if (r11 != 0) goto Lb4
if (r10 == 0) goto Lb3
goto Lb4
Lb3:
return r0
Lb4:
if (r12 == 0) goto Lba
r9.scrollBy(r11, r10)
return r7
Lba:
r9.l0(r11, r10, r0)
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.AbstractC0238q0.s0(androidx.recyclerview.widget.RecyclerView, android.view.View, android.graphics.Rect, boolean, boolean):boolean");
}
public C0239r0 t(ViewGroup.LayoutParams layoutParams) {
return layoutParams instanceof C0239r0 ? new C0239r0((C0239r0) layoutParams) : layoutParams instanceof ViewGroup.MarginLayoutParams ? new C0239r0((ViewGroup.MarginLayoutParams) layoutParams) : new C0239r0(layoutParams);
}
public final void t0() {
RecyclerView recyclerView = this.f3884b;
if (recyclerView != null) {
recyclerView.requestLayout();
}
}
public final View u(int i) {
C0223j c0223j = this.f3883a;
if (c0223j != null) {
return c0223j.d(i);
}
return null;
}
public abstract int u0(int i, y0 y0Var, E0 e02);
public final int v() {
C0223j c0223j = this.f3883a;
if (c0223j != null) {
return c0223j.e();
}
return 0;
}
public abstract void v0(int i);
public abstract int w0(int i, y0 y0Var, E0 e02);
public int x(y0 y0Var, E0 e02) {
return -1;
}
public final void x0(RecyclerView recyclerView) {
y0(View.MeasureSpec.makeMeasureSpec(recyclerView.getWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(recyclerView.getHeight(), 1073741824));
}
public final void y0(int i, int i4) {
this.f3894n = View.MeasureSpec.getSize(i);
int mode = View.MeasureSpec.getMode(i);
this.f3892l = mode;
if (mode == 0 && !RecyclerView.E0) {
this.f3894n = 0;
}
this.f3895o = View.MeasureSpec.getSize(i4);
int mode2 = View.MeasureSpec.getMode(i4);
this.f3893m = mode2;
if (mode2 != 0 || RecyclerView.E0) {
return;
}
this.f3895o = 0;
}
public void z(Rect rect, View view) {
RecyclerView.O(rect, view);
}
public void z0(Rect rect, int i, int i4) {
int J = J() + I() + rect.width();
int H3 = H() + K() + rect.height();
RecyclerView recyclerView = this.f3884b;
WeakHashMap weakHashMap = O.X.f1226a;
RecyclerView.g(this.f3884b, g(i, J, recyclerView.getMinimumWidth()), g(i4, H3, this.f3884b.getMinimumHeight()));
}
}

View File

@@ -0,0 +1,34 @@
package androidx.recyclerview.widget;
import android.animation.ValueAnimator;
/* loaded from: classes.dex */
public final class B implements ValueAnimator.AnimatorUpdateListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3461a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f3462b;
public /* synthetic */ B(Object obj, int i) {
this.f3461a = i;
this.f3462b = obj;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
switch (this.f3461a) {
case 0:
int floatValue = (int) (((Float) valueAnimator.getAnimatedValue()).floatValue() * 255.0f);
C c4 = (C) this.f3462b;
c4.f3470c.setAlpha(floatValue);
c4.f3471d.setAlpha(floatValue);
c4.f3483s.invalidate();
return;
default:
((H) this.f3462b).f3541m = valueAnimator.getAnimatedFraction();
return;
}
}
}

View File

@@ -0,0 +1,23 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class B0 extends W.b {
public static final Parcelable.Creator<B0> CREATOR = new Object();
/* renamed from: c, reason: collision with root package name */
public Parcelable f3463c;
public B0(Parcel parcel, ClassLoader classLoader) {
super(parcel, classLoader);
this.f3463c = parcel.readParcelable(classLoader == null ? AbstractC0238q0.class.getClassLoader() : classLoader);
}
@Override // W.b, android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
super.writeToParcel(parcel, i);
parcel.writeParcelable(this.f3463c, 0);
}
}

View File

@@ -0,0 +1,382 @@
package androidx.recyclerview.widget;
import android.R;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;
import android.view.MotionEvent;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
import java.util.WeakHashMap;
import kotlin.KotlinVersion;
/* loaded from: classes.dex */
public final class C extends AbstractC0232n0 implements u0 {
/* renamed from: C, reason: collision with root package name */
public static final int[] f3464C = {R.attr.state_pressed};
/* renamed from: D, reason: collision with root package name */
public static final int[] f3465D = new int[0];
/* renamed from: A, reason: collision with root package name */
public int f3466A;
/* renamed from: B, reason: collision with root package name */
public final RunnableC0247y f3467B;
/* renamed from: a, reason: collision with root package name */
public final int f3468a;
/* renamed from: b, reason: collision with root package name */
public final int f3469b;
/* renamed from: c, reason: collision with root package name */
public final StateListDrawable f3470c;
/* renamed from: d, reason: collision with root package name */
public final Drawable f3471d;
/* renamed from: e, reason: collision with root package name */
public final int f3472e;
/* renamed from: f, reason: collision with root package name */
public final int f3473f;
/* renamed from: g, reason: collision with root package name */
public final StateListDrawable f3474g;
public final Drawable h;
public final int i;
/* renamed from: j, reason: collision with root package name */
public final int f3475j;
/* renamed from: k, reason: collision with root package name */
public int f3476k;
/* renamed from: l, reason: collision with root package name */
public int f3477l;
/* renamed from: m, reason: collision with root package name */
public float f3478m;
/* renamed from: n, reason: collision with root package name */
public int f3479n;
/* renamed from: o, reason: collision with root package name */
public int f3480o;
public float p;
/* renamed from: s, reason: collision with root package name */
public final RecyclerView f3483s;
/* renamed from: z, reason: collision with root package name */
public final ValueAnimator f3490z;
/* renamed from: q, reason: collision with root package name */
public int f3481q = 0;
/* renamed from: r, reason: collision with root package name */
public int f3482r = 0;
/* renamed from: t, reason: collision with root package name */
public boolean f3484t = false;
/* renamed from: u, reason: collision with root package name */
public boolean f3485u = false;
/* renamed from: v, reason: collision with root package name */
public int f3486v = 0;
/* renamed from: w, reason: collision with root package name */
public int f3487w = 0;
/* renamed from: x, reason: collision with root package name */
public final int[] f3488x = new int[2];
/* renamed from: y, reason: collision with root package name */
public final int[] f3489y = new int[2];
public C(RecyclerView recyclerView, StateListDrawable stateListDrawable, Drawable drawable, StateListDrawable stateListDrawable2, Drawable drawable2, int i, int i4, int i5) {
int i6 = 0;
ValueAnimator ofFloat = ValueAnimator.ofFloat(BitmapDescriptorFactory.HUE_RED, 1.0f);
this.f3490z = ofFloat;
this.f3466A = 0;
RunnableC0247y runnableC0247y = new RunnableC0247y(this, i6);
this.f3467B = runnableC0247y;
C0248z c0248z = new C0248z(this);
this.f3470c = stateListDrawable;
this.f3471d = drawable;
this.f3474g = stateListDrawable2;
this.h = drawable2;
this.f3472e = Math.max(i, stateListDrawable.getIntrinsicWidth());
this.f3473f = Math.max(i, drawable.getIntrinsicWidth());
this.i = Math.max(i, stateListDrawable2.getIntrinsicWidth());
this.f3475j = Math.max(i, drawable2.getIntrinsicWidth());
this.f3468a = i4;
this.f3469b = i5;
stateListDrawable.setAlpha(KotlinVersion.MAX_COMPONENT_VALUE);
drawable.setAlpha(KotlinVersion.MAX_COMPONENT_VALUE);
ofFloat.addListener(new A(this));
ofFloat.addUpdateListener(new B(this, i6));
RecyclerView recyclerView2 = this.f3483s;
if (recyclerView2 == recyclerView) {
return;
}
if (recyclerView2 != null) {
recyclerView2.e0(this);
RecyclerView recyclerView3 = this.f3483s;
recyclerView3.f3701q.remove(this);
if (recyclerView3.f3703r == this) {
recyclerView3.f3703r = null;
}
ArrayList arrayList = this.f3483s.f3689j0;
if (arrayList != null) {
arrayList.remove(c0248z);
}
this.f3483s.removeCallbacks(runnableC0247y);
}
this.f3483s = recyclerView;
if (recyclerView != null) {
recyclerView.i(this);
this.f3483s.j(this);
this.f3483s.k(c0248z);
}
}
public static int e(float f2, float f4, int[] iArr, int i, int i4, int i5) {
int i6 = iArr[1] - iArr[0];
if (i6 != 0) {
int i7 = i - i5;
int i8 = (int) (((f4 - f2) / i6) * i7);
int i9 = i4 + i8;
if (i9 < i7 && i9 >= 0) {
return i8;
}
}
return 0;
}
public final boolean c(float f2, float f4) {
if (f4 < this.f3482r - this.i) {
return false;
}
int i = this.f3480o;
int i4 = this.f3479n;
return f2 >= ((float) (i - (i4 / 2))) && f2 <= ((float) ((i4 / 2) + i));
}
public final boolean d(float f2, float f4) {
RecyclerView recyclerView = this.f3483s;
WeakHashMap weakHashMap = O.X.f1226a;
boolean z3 = recyclerView.getLayoutDirection() == 1;
int i = this.f3472e;
if (!z3 ? f2 >= this.f3481q - i : f2 <= i) {
int i4 = this.f3477l;
int i5 = this.f3476k / 2;
if (f4 >= i4 - i5 && f4 <= i5 + i4) {
return true;
}
}
return false;
}
public final void f(int i) {
RunnableC0247y runnableC0247y = this.f3467B;
StateListDrawable stateListDrawable = this.f3470c;
if (i == 2 && this.f3486v != 2) {
stateListDrawable.setState(f3464C);
this.f3483s.removeCallbacks(runnableC0247y);
}
if (i == 0) {
this.f3483s.invalidate();
} else {
g();
}
if (this.f3486v == 2 && i != 2) {
stateListDrawable.setState(f3465D);
this.f3483s.removeCallbacks(runnableC0247y);
this.f3483s.postDelayed(runnableC0247y, 1200);
} else if (i == 1) {
this.f3483s.removeCallbacks(runnableC0247y);
this.f3483s.postDelayed(runnableC0247y, ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED);
}
this.f3486v = i;
}
public final void g() {
int i = this.f3466A;
ValueAnimator valueAnimator = this.f3490z;
if (i != 0) {
if (i != 3) {
return;
} else {
valueAnimator.cancel();
}
}
this.f3466A = 1;
valueAnimator.setFloatValues(((Float) valueAnimator.getAnimatedValue()).floatValue(), 1.0f);
valueAnimator.setDuration(500L);
valueAnimator.setStartDelay(0L);
valueAnimator.start();
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void onDrawOver(Canvas canvas, RecyclerView recyclerView, E0 e02) {
int i = this.f3481q;
RecyclerView recyclerView2 = this.f3483s;
if (i != recyclerView2.getWidth() || this.f3482r != recyclerView2.getHeight()) {
this.f3481q = recyclerView2.getWidth();
this.f3482r = recyclerView2.getHeight();
f(0);
return;
}
if (this.f3466A != 0) {
if (this.f3484t) {
int i4 = this.f3481q;
int i5 = this.f3472e;
int i6 = i4 - i5;
int i7 = this.f3477l;
int i8 = this.f3476k;
int i9 = i7 - (i8 / 2);
StateListDrawable stateListDrawable = this.f3470c;
stateListDrawable.setBounds(0, 0, i5, i8);
int i10 = this.f3482r;
int i11 = this.f3473f;
Drawable drawable = this.f3471d;
drawable.setBounds(0, 0, i11, i10);
WeakHashMap weakHashMap = O.X.f1226a;
if (recyclerView2.getLayoutDirection() == 1) {
drawable.draw(canvas);
canvas.translate(i5, i9);
canvas.scale(-1.0f, 1.0f);
stateListDrawable.draw(canvas);
canvas.scale(-1.0f, 1.0f);
canvas.translate(-i5, -i9);
} else {
canvas.translate(i6, BitmapDescriptorFactory.HUE_RED);
drawable.draw(canvas);
canvas.translate(BitmapDescriptorFactory.HUE_RED, i9);
stateListDrawable.draw(canvas);
canvas.translate(-i6, -i9);
}
}
if (this.f3485u) {
int i12 = this.f3482r;
int i13 = this.i;
int i14 = i12 - i13;
int i15 = this.f3480o;
int i16 = this.f3479n;
int i17 = i15 - (i16 / 2);
StateListDrawable stateListDrawable2 = this.f3474g;
stateListDrawable2.setBounds(0, 0, i16, i13);
int i18 = this.f3481q;
int i19 = this.f3475j;
Drawable drawable2 = this.h;
drawable2.setBounds(0, 0, i18, i19);
canvas.translate(BitmapDescriptorFactory.HUE_RED, i14);
drawable2.draw(canvas);
canvas.translate(i17, BitmapDescriptorFactory.HUE_RED);
stateListDrawable2.draw(canvas);
canvas.translate(-i17, -i14);
}
}
}
@Override // androidx.recyclerview.widget.u0
public final boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
int i = this.f3486v;
if (i != 1) {
return i == 2;
}
boolean d4 = d(motionEvent.getX(), motionEvent.getY());
boolean c4 = c(motionEvent.getX(), motionEvent.getY());
if (motionEvent.getAction() != 0) {
return false;
}
if (!d4 && !c4) {
return false;
}
if (c4) {
this.f3487w = 1;
this.p = (int) motionEvent.getX();
} else if (d4) {
this.f3487w = 2;
this.f3478m = (int) motionEvent.getY();
}
f(2);
return true;
}
@Override // androidx.recyclerview.widget.u0
public final void onRequestDisallowInterceptTouchEvent(boolean z3) {
}
@Override // androidx.recyclerview.widget.u0
public final void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
if (this.f3486v == 0) {
return;
}
if (motionEvent.getAction() == 0) {
boolean d4 = d(motionEvent.getX(), motionEvent.getY());
boolean c4 = c(motionEvent.getX(), motionEvent.getY());
if (d4 || c4) {
if (c4) {
this.f3487w = 1;
this.p = (int) motionEvent.getX();
} else if (d4) {
this.f3487w = 2;
this.f3478m = (int) motionEvent.getY();
}
f(2);
return;
}
return;
}
if (motionEvent.getAction() == 1 && this.f3486v == 2) {
this.f3478m = BitmapDescriptorFactory.HUE_RED;
this.p = BitmapDescriptorFactory.HUE_RED;
f(1);
this.f3487w = 0;
return;
}
if (motionEvent.getAction() == 2 && this.f3486v == 2) {
g();
int i = this.f3487w;
int i4 = this.f3469b;
if (i == 1) {
float x3 = motionEvent.getX();
int[] iArr = this.f3489y;
iArr[0] = i4;
int i5 = this.f3481q - i4;
iArr[1] = i5;
float max = Math.max(i4, Math.min(i5, x3));
if (Math.abs(this.f3480o - max) >= 2.0f) {
int e4 = e(this.p, max, iArr, this.f3483s.computeHorizontalScrollRange(), this.f3483s.computeHorizontalScrollOffset(), this.f3481q);
if (e4 != 0) {
this.f3483s.scrollBy(e4, 0);
}
this.p = max;
}
}
if (this.f3487w == 2) {
float y3 = motionEvent.getY();
int[] iArr2 = this.f3488x;
iArr2[0] = i4;
int i6 = this.f3482r - i4;
iArr2[1] = i6;
float max2 = Math.max(i4, Math.min(i6, y3));
if (Math.abs(this.f3477l - max2) < 2.0f) {
return;
}
int e5 = e(this.f3478m, max2, iArr2, this.f3483s.computeVerticalScrollRange(), this.f3483s.computeVerticalScrollOffset(), this.f3482r);
if (e5 != 0) {
this.f3483s.scrollBy(0, e5);
}
this.f3478m = max2;
}
}
}
}

View File

@@ -0,0 +1,58 @@
package androidx.recyclerview.widget;
import android.util.Log;
import android.view.animation.BaseInterpolator;
/* loaded from: classes.dex */
public final class C0 {
/* renamed from: a, reason: collision with root package name */
public int f3491a;
/* renamed from: b, reason: collision with root package name */
public int f3492b;
/* renamed from: c, reason: collision with root package name */
public int f3493c;
/* renamed from: d, reason: collision with root package name */
public int f3494d;
/* renamed from: e, reason: collision with root package name */
public BaseInterpolator f3495e;
/* renamed from: f, reason: collision with root package name */
public boolean f3496f;
/* renamed from: g, reason: collision with root package name */
public int f3497g;
public final void a(RecyclerView recyclerView) {
int i = this.f3494d;
if (i >= 0) {
this.f3494d = -1;
recyclerView.S(i);
this.f3496f = false;
return;
}
if (!this.f3496f) {
this.f3497g = 0;
return;
}
BaseInterpolator baseInterpolator = this.f3495e;
if (baseInterpolator != null && this.f3493c < 1) {
throw new IllegalStateException("If you provide an interpolator, you must set a positive duration");
}
int i4 = this.f3493c;
if (i4 < 1) {
throw new IllegalStateException("Scroll duration must be a positive number");
}
recyclerView.f3681e0.c(this.f3491a, this.f3492b, i4, baseInterpolator);
int i5 = this.f3497g + 1;
this.f3497g = i5;
if (i5 > 10) {
Log.e("RecyclerView", "Smooth Scroll action is being updated too frequently. Make sure you are not changing it unless necessary");
}
this.f3496f = false;
}
}

View File

@@ -0,0 +1,65 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.a, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0205a {
/* renamed from: a, reason: collision with root package name */
public int f3782a;
/* renamed from: b, reason: collision with root package name */
public int f3783b;
/* renamed from: c, reason: collision with root package name */
public Object f3784c;
/* renamed from: d, reason: collision with root package name */
public int f3785d;
public final boolean equals(Object obj) {
if (this != obj) {
if (!(obj instanceof C0205a)) {
return false;
}
C0205a c0205a = (C0205a) obj;
int i = this.f3782a;
if (i != c0205a.f3782a) {
return false;
}
if (i != 8 || Math.abs(this.f3785d - this.f3783b) != 1 || this.f3785d != c0205a.f3783b || this.f3783b != c0205a.f3785d) {
if (this.f3785d != c0205a.f3785d || this.f3783b != c0205a.f3783b) {
return false;
}
Object obj2 = this.f3784c;
if (obj2 != null) {
if (!obj2.equals(c0205a.f3784c)) {
return false;
}
} else if (c0205a.f3784c != null) {
return false;
}
}
}
return true;
}
public final int hashCode() {
return (((this.f3782a * 31) + this.f3783b) * 31) + this.f3785d;
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Integer.toHexString(System.identityHashCode(this)));
sb.append("[");
int i = this.f3782a;
sb.append(i != 1 ? i != 2 ? i != 4 ? i != 8 ? "??" : "mv" : "up" : "rm" : "add");
sb.append(",s:");
sb.append(this.f3783b);
sb.append("c:");
sb.append(this.f3785d);
sb.append(",p:");
sb.append(this.f3784c);
sb.append("]");
return sb.toString();
}
}

View File

@@ -0,0 +1,193 @@
package androidx.recyclerview.widget;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
/* renamed from: androidx.recyclerview.widget.a0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0206a0 extends AbstractC0208b0 {
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ int f3786d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public /* synthetic */ C0206a0(AbstractC0238q0 abstractC0238q0, int i) {
super(abstractC0238q0);
this.f3786d = i;
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int b(View view) {
switch (this.f3786d) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.D(view) + ((ViewGroup.MarginLayoutParams) c0239r0).rightMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.y(view) + ((ViewGroup.MarginLayoutParams) c0239r02).bottomMargin;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int c(View view) {
switch (this.f3786d) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.C(view) + ((ViewGroup.MarginLayoutParams) c0239r0).leftMargin + ((ViewGroup.MarginLayoutParams) c0239r0).rightMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.B(view) + ((ViewGroup.MarginLayoutParams) c0239r02).topMargin + ((ViewGroup.MarginLayoutParams) c0239r02).bottomMargin;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int d(View view) {
switch (this.f3786d) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.B(view) + ((ViewGroup.MarginLayoutParams) c0239r0).topMargin + ((ViewGroup.MarginLayoutParams) c0239r0).bottomMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.C(view) + ((ViewGroup.MarginLayoutParams) c0239r02).leftMargin + ((ViewGroup.MarginLayoutParams) c0239r02).rightMargin;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int e(View view) {
switch (this.f3786d) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.A(view) - ((ViewGroup.MarginLayoutParams) c0239r0).leftMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
((AbstractC0238q0) this.f3794b).getClass();
return AbstractC0238q0.E(view) - ((ViewGroup.MarginLayoutParams) c0239r02).topMargin;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int f() {
switch (this.f3786d) {
case 0:
return ((AbstractC0238q0) this.f3794b).f3894n;
default:
return ((AbstractC0238q0) this.f3794b).f3895o;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int g() {
switch (this.f3786d) {
case 0:
AbstractC0238q0 abstractC0238q0 = (AbstractC0238q0) this.f3794b;
return abstractC0238q0.f3894n - abstractC0238q0.J();
default:
AbstractC0238q0 abstractC0238q02 = (AbstractC0238q0) this.f3794b;
return abstractC0238q02.f3895o - abstractC0238q02.H();
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int h() {
switch (this.f3786d) {
case 0:
return ((AbstractC0238q0) this.f3794b).J();
default:
return ((AbstractC0238q0) this.f3794b).H();
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int i() {
switch (this.f3786d) {
case 0:
return ((AbstractC0238q0) this.f3794b).f3892l;
default:
return ((AbstractC0238q0) this.f3794b).f3893m;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int j() {
switch (this.f3786d) {
case 0:
return ((AbstractC0238q0) this.f3794b).f3893m;
default:
return ((AbstractC0238q0) this.f3794b).f3892l;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int k() {
switch (this.f3786d) {
case 0:
return ((AbstractC0238q0) this.f3794b).I();
default:
return ((AbstractC0238q0) this.f3794b).K();
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int l() {
switch (this.f3786d) {
case 0:
AbstractC0238q0 abstractC0238q0 = (AbstractC0238q0) this.f3794b;
return (abstractC0238q0.f3894n - abstractC0238q0.I()) - abstractC0238q0.J();
default:
AbstractC0238q0 abstractC0238q02 = (AbstractC0238q0) this.f3794b;
return (abstractC0238q02.f3895o - abstractC0238q02.K()) - abstractC0238q02.H();
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int m(View view) {
switch (this.f3786d) {
case 0:
AbstractC0238q0 abstractC0238q0 = (AbstractC0238q0) this.f3794b;
Rect rect = (Rect) this.f3795c;
abstractC0238q0.O(rect, view);
return rect.right;
default:
AbstractC0238q0 abstractC0238q02 = (AbstractC0238q0) this.f3794b;
Rect rect2 = (Rect) this.f3795c;
abstractC0238q02.O(rect2, view);
return rect2.bottom;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final int n(View view) {
switch (this.f3786d) {
case 0:
AbstractC0238q0 abstractC0238q0 = (AbstractC0238q0) this.f3794b;
Rect rect = (Rect) this.f3795c;
abstractC0238q0.O(rect, view);
return rect.left;
default:
AbstractC0238q0 abstractC0238q02 = (AbstractC0238q0) this.f3794b;
Rect rect2 = (Rect) this.f3795c;
abstractC0238q02.O(rect2, view);
return rect2.top;
}
}
@Override // androidx.recyclerview.widget.AbstractC0208b0
public final void o(int i) {
switch (this.f3786d) {
case 0:
((AbstractC0238q0) this.f3794b).S(i);
return;
default:
((AbstractC0238q0) this.f3794b).T(i);
return;
}
}
}

View File

@@ -0,0 +1,536 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import e3.C0325k;
import f.AbstractC0336a;
import java.util.ArrayList;
import java.util.WeakHashMap;
import m.AbstractC0463g0;
import m.C0487t;
/* renamed from: androidx.recyclerview.widget.b, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0207b {
/* renamed from: a, reason: collision with root package name */
public int f3787a;
/* renamed from: b, reason: collision with root package name */
public final Object f3788b;
/* renamed from: c, reason: collision with root package name */
public final Object f3789c;
/* renamed from: d, reason: collision with root package name */
public Object f3790d;
/* renamed from: e, reason: collision with root package name */
public Object f3791e;
/* renamed from: f, reason: collision with root package name */
public Object f3792f;
public C0207b(View view) {
this.f3787a = -1;
this.f3788b = view;
this.f3789c = C0487t.a();
}
public void a() {
View view = (View) this.f3788b;
Drawable background = view.getBackground();
if (background != null) {
if (((C0325k) this.f3790d) != null) {
if (((C0325k) this.f3792f) == null) {
this.f3792f = new Object();
}
C0325k c0325k = (C0325k) this.f3792f;
c0325k.f6368c = null;
c0325k.f6367b = false;
c0325k.f6369d = null;
c0325k.f6366a = false;
WeakHashMap weakHashMap = O.X.f1226a;
ColorStateList g4 = O.L.g(view);
if (g4 != null) {
c0325k.f6367b = true;
c0325k.f6368c = g4;
}
PorterDuff.Mode h = O.L.h(view);
if (h != null) {
c0325k.f6366a = true;
c0325k.f6369d = h;
}
if (c0325k.f6367b || c0325k.f6366a) {
C0487t.e(background, c0325k, view.getDrawableState());
return;
}
}
C0325k c0325k2 = (C0325k) this.f3791e;
if (c0325k2 != null) {
C0487t.e(background, c0325k2, view.getDrawableState());
return;
}
C0325k c0325k3 = (C0325k) this.f3790d;
if (c0325k3 != null) {
C0487t.e(background, c0325k3, view.getDrawableState());
}
}
}
public boolean b(int i) {
ArrayList arrayList = (ArrayList) this.f3790d;
int size = arrayList.size();
for (int i4 = 0; i4 < size; i4++) {
C0205a c0205a = (C0205a) arrayList.get(i4);
int i5 = c0205a.f3782a;
if (i5 != 8) {
if (i5 == 1) {
int i6 = c0205a.f3783b;
int i7 = c0205a.f3785d + i6;
while (i6 < i7) {
if (g(i6, i4 + 1) == i) {
return true;
}
i6++;
}
} else {
continue;
}
} else {
if (g(c0205a.f3785d, i4 + 1) == i) {
return true;
}
}
}
return false;
}
public void c() {
ArrayList arrayList = (ArrayList) this.f3790d;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
((C0216f0) this.f3791e).a((C0205a) arrayList.get(i));
}
q(arrayList);
this.f3787a = 0;
}
public void d() {
c();
ArrayList arrayList = (ArrayList) this.f3789c;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
C0205a c0205a = (C0205a) arrayList.get(i);
int i4 = c0205a.f3782a;
C0216f0 c0216f0 = (C0216f0) this.f3791e;
if (i4 == 1) {
c0216f0.a(c0205a);
c0216f0.d(c0205a.f3783b, c0205a.f3785d);
} else if (i4 == 2) {
c0216f0.a(c0205a);
int i5 = c0205a.f3783b;
int i6 = c0205a.f3785d;
RecyclerView recyclerView = c0216f0.f3809a;
recyclerView.U(i5, i6, true);
recyclerView.f3691k0 = true;
recyclerView.f3686h0.f3511c += i6;
} else if (i4 == 4) {
c0216f0.a(c0205a);
c0216f0.c(c0205a.f3783b, c0205a.f3785d, c0205a.f3784c);
} else if (i4 == 8) {
c0216f0.a(c0205a);
c0216f0.e(c0205a.f3783b, c0205a.f3785d);
}
}
q(arrayList);
this.f3787a = 0;
}
public void e(C0205a c0205a) {
int i;
N.c cVar;
int i4 = c0205a.f3782a;
if (i4 == 1 || i4 == 8) {
throw new IllegalArgumentException("should not dispatch add or move for pre layout");
}
int u3 = u(c0205a.f3783b, i4);
int i5 = c0205a.f3783b;
int i6 = c0205a.f3782a;
if (i6 == 2) {
i = 0;
} else {
if (i6 != 4) {
throw new IllegalArgumentException("op should be remove or update." + c0205a);
}
i = 1;
}
int i7 = 1;
int i8 = 1;
while (true) {
int i9 = c0205a.f3785d;
cVar = (N.c) this.f3788b;
if (i7 >= i9) {
break;
}
int u4 = u((i * i7) + c0205a.f3783b, c0205a.f3782a);
int i10 = c0205a.f3782a;
if (i10 == 2 ? u4 != u3 : !(i10 == 4 && u4 == u3 + 1)) {
C0205a l4 = l(i10, u3, i8, c0205a.f3784c);
f(l4, i5);
l4.f3784c = null;
cVar.c(l4);
if (c0205a.f3782a == 4) {
i5 += i8;
}
i8 = 1;
u3 = u4;
} else {
i8++;
}
i7++;
}
Object obj = c0205a.f3784c;
c0205a.f3784c = null;
cVar.c(c0205a);
if (i8 > 0) {
C0205a l5 = l(c0205a.f3782a, u3, i8, obj);
f(l5, i5);
l5.f3784c = null;
cVar.c(l5);
}
}
public void f(C0205a c0205a, int i) {
C0216f0 c0216f0 = (C0216f0) this.f3791e;
c0216f0.a(c0205a);
int i4 = c0205a.f3782a;
if (i4 != 2) {
if (i4 != 4) {
throw new IllegalArgumentException("only remove and update ops can be dispatched in first pass");
}
c0216f0.c(i, c0205a.f3785d, c0205a.f3784c);
} else {
int i5 = c0205a.f3785d;
RecyclerView recyclerView = c0216f0.f3809a;
recyclerView.U(i, i5, true);
recyclerView.f3691k0 = true;
recyclerView.f3686h0.f3511c += i5;
}
}
public int g(int i, int i4) {
ArrayList arrayList = (ArrayList) this.f3790d;
int size = arrayList.size();
while (i4 < size) {
C0205a c0205a = (C0205a) arrayList.get(i4);
int i5 = c0205a.f3782a;
if (i5 == 8) {
int i6 = c0205a.f3783b;
if (i6 == i) {
i = c0205a.f3785d;
} else {
if (i6 < i) {
i--;
}
if (c0205a.f3785d <= i) {
i++;
}
}
} else {
int i7 = c0205a.f3783b;
if (i7 > i) {
continue;
} else if (i5 == 2) {
int i8 = c0205a.f3785d;
if (i < i7 + i8) {
return -1;
}
i -= i8;
} else if (i5 == 1) {
i += c0205a.f3785d;
}
}
i4++;
}
return i;
}
public ColorStateList h() {
C0325k c0325k = (C0325k) this.f3791e;
if (c0325k != null) {
return (ColorStateList) c0325k.f6368c;
}
return null;
}
public PorterDuff.Mode i() {
C0325k c0325k = (C0325k) this.f3791e;
if (c0325k != null) {
return (PorterDuff.Mode) c0325k.f6369d;
}
return null;
}
public boolean j() {
return ((ArrayList) this.f3789c).size() > 0;
}
public void k(AttributeSet attributeSet, int i) {
ColorStateList f2;
View view = (View) this.f3788b;
Context context = view.getContext();
int[] iArr = AbstractC0336a.f6444z;
R0.h l4 = R0.h.l(context, attributeSet, iArr, i);
TypedArray typedArray = (TypedArray) l4.f1414b;
View view2 = (View) this.f3788b;
Context context2 = view2.getContext();
WeakHashMap weakHashMap = O.X.f1226a;
O.S.d(view2, context2, iArr, attributeSet, (TypedArray) l4.f1414b, i, 0);
try {
if (typedArray.hasValue(0)) {
this.f3787a = typedArray.getResourceId(0, -1);
C0487t c0487t = (C0487t) this.f3789c;
Context context3 = view.getContext();
int i4 = this.f3787a;
synchronized (c0487t) {
f2 = c0487t.f7745a.f(context3, i4);
}
if (f2 != null) {
r(f2);
}
}
if (typedArray.hasValue(1)) {
O.L.q(view, l4.e(1));
}
if (typedArray.hasValue(2)) {
O.L.r(view, AbstractC0463g0.c(typedArray.getInt(2, -1), null));
}
l4.n();
} catch (Throwable th) {
l4.n();
throw th;
}
}
/* JADX WARN: Type inference failed for: r0v5, types: [java.lang.Object, androidx.recyclerview.widget.a] */
public C0205a l(int i, int i4, int i5, Object obj) {
C0205a c0205a = (C0205a) ((N.c) this.f3788b).a();
if (c0205a != null) {
c0205a.f3782a = i;
c0205a.f3783b = i4;
c0205a.f3785d = i5;
c0205a.f3784c = obj;
return c0205a;
}
?? obj2 = new Object();
obj2.f3782a = i;
obj2.f3783b = i4;
obj2.f3785d = i5;
obj2.f3784c = obj;
return obj2;
}
public void m() {
this.f3787a = -1;
r(null);
a();
}
public void n(int i) {
ColorStateList colorStateList;
this.f3787a = i;
C0487t c0487t = (C0487t) this.f3789c;
if (c0487t != null) {
Context context = ((View) this.f3788b).getContext();
synchronized (c0487t) {
colorStateList = c0487t.f7745a.f(context, i);
}
} else {
colorStateList = null;
}
r(colorStateList);
a();
}
public void o(C0205a c0205a) {
((ArrayList) this.f3790d).add(c0205a);
int i = c0205a.f3782a;
C0216f0 c0216f0 = (C0216f0) this.f3791e;
if (i == 1) {
c0216f0.d(c0205a.f3783b, c0205a.f3785d);
return;
}
if (i == 2) {
int i4 = c0205a.f3783b;
int i5 = c0205a.f3785d;
RecyclerView recyclerView = c0216f0.f3809a;
recyclerView.U(i4, i5, false);
recyclerView.f3691k0 = true;
return;
}
if (i == 4) {
c0216f0.c(c0205a.f3783b, c0205a.f3785d, c0205a.f3784c);
} else if (i == 8) {
c0216f0.e(c0205a.f3783b, c0205a.f3785d);
} else {
throw new IllegalArgumentException("Unknown update op type for " + c0205a);
}
}
/* JADX WARN: Removed duplicated region for block: B:119:0x006f */
/* JADX WARN: Removed duplicated region for block: B:123:0x0090 */
/* JADX WARN: Removed duplicated region for block: B:125:0x00a5 */
/* JADX WARN: Removed duplicated region for block: B:127:0x00aa A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:130:0x000d A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:131:0x0094 */
/* JADX WARN: Removed duplicated region for block: B:132:0x0074 */
/* JADX WARN: Removed duplicated region for block: B:58:0x0135 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:95:0x0121 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void p() {
/*
Method dump skipped, instructions count: 690
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.C0207b.p():void");
}
public void q(ArrayList arrayList) {
int size = arrayList.size();
for (int i = 0; i < size; i++) {
C0205a c0205a = (C0205a) arrayList.get(i);
c0205a.f3784c = null;
((N.c) this.f3788b).c(c0205a);
}
arrayList.clear();
}
public void r(ColorStateList colorStateList) {
if (colorStateList != null) {
if (((C0325k) this.f3790d) == null) {
this.f3790d = new Object();
}
C0325k c0325k = (C0325k) this.f3790d;
c0325k.f6368c = colorStateList;
c0325k.f6367b = true;
} else {
this.f3790d = null;
}
a();
}
public void s(ColorStateList colorStateList) {
if (((C0325k) this.f3791e) == null) {
this.f3791e = new Object();
}
C0325k c0325k = (C0325k) this.f3791e;
c0325k.f6368c = colorStateList;
c0325k.f6367b = true;
a();
}
public void t(PorterDuff.Mode mode) {
if (((C0325k) this.f3791e) == null) {
this.f3791e = new Object();
}
C0325k c0325k = (C0325k) this.f3791e;
c0325k.f6369d = mode;
c0325k.f6366a = true;
a();
}
public int u(int i, int i4) {
int i5;
int i6;
ArrayList arrayList = (ArrayList) this.f3790d;
for (int size = arrayList.size() - 1; size >= 0; size--) {
C0205a c0205a = (C0205a) arrayList.get(size);
int i7 = c0205a.f3782a;
if (i7 == 8) {
int i8 = c0205a.f3783b;
int i9 = c0205a.f3785d;
if (i8 < i9) {
i6 = i8;
i5 = i9;
} else {
i5 = i8;
i6 = i9;
}
if (i < i6 || i > i5) {
if (i < i8) {
if (i4 == 1) {
c0205a.f3783b = i8 + 1;
c0205a.f3785d = i9 + 1;
} else if (i4 == 2) {
c0205a.f3783b = i8 - 1;
c0205a.f3785d = i9 - 1;
}
}
} else if (i6 == i8) {
if (i4 == 1) {
c0205a.f3785d = i9 + 1;
} else if (i4 == 2) {
c0205a.f3785d = i9 - 1;
}
i++;
} else {
if (i4 == 1) {
c0205a.f3783b = i8 + 1;
} else if (i4 == 2) {
c0205a.f3783b = i8 - 1;
}
i--;
}
} else {
int i10 = c0205a.f3783b;
if (i10 <= i) {
if (i7 == 1) {
i -= c0205a.f3785d;
} else if (i7 == 2) {
i += c0205a.f3785d;
}
} else if (i4 == 1) {
c0205a.f3783b = i10 + 1;
} else if (i4 == 2) {
c0205a.f3783b = i10 - 1;
}
}
}
for (int size2 = arrayList.size() - 1; size2 >= 0; size2--) {
C0205a c0205a2 = (C0205a) arrayList.get(size2);
int i11 = c0205a2.f3782a;
N.c cVar = (N.c) this.f3788b;
if (i11 == 8) {
int i12 = c0205a2.f3785d;
if (i12 == c0205a2.f3783b || i12 < 0) {
arrayList.remove(size2);
c0205a2.f3784c = null;
cVar.c(c0205a2);
}
} else if (c0205a2.f3785d <= 0) {
arrayList.remove(size2);
c0205a2.f3784c = null;
cVar.c(c0205a2);
}
}
return i;
}
public C0207b(C0216f0 c0216f0) {
this.f3788b = new N.c(30);
this.f3789c = new ArrayList();
this.f3790d = new ArrayList();
this.f3787a = 0;
this.f3791e = c0216f0;
this.f3792f = new C0209c(this);
}
}

View File

@@ -0,0 +1,51 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.c, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0209c {
/* renamed from: a, reason: collision with root package name */
public final Object f3796a;
public /* synthetic */ C0209c(Object obj) {
this.f3796a = obj;
}
public boolean a(int i, int i4) {
androidx.fragment.app.D0 d02 = (androidx.fragment.app.D0) this.f3796a;
Object obj = d02.f2990c.get(i);
Object obj2 = d02.f2991d.get(i4);
if (obj != null && obj2 != null) {
return ((AbstractC0211d) ((C0217g) d02.f2993f).f3811b.f491c).a(obj, obj2);
}
if (obj == null && obj2 == null) {
return true;
}
throw new AssertionError();
}
public boolean b(int i, int i4) {
androidx.fragment.app.D0 d02 = (androidx.fragment.app.D0) this.f3796a;
Object obj = d02.f2990c.get(i);
Object obj2 = d02.f2991d.get(i4);
return (obj == null || obj2 == null) ? obj == null && obj2 == null : ((AbstractC0211d) ((C0217g) d02.f2993f).f3811b.f491c).b(obj, obj2);
}
public void c(int i, int i4) {
androidx.fragment.app.D0 d02 = (androidx.fragment.app.D0) this.f3796a;
Object obj = d02.f2990c.get(i);
Object obj2 = d02.f2991d.get(i4);
if (obj == null || obj2 == null) {
throw new AssertionError();
}
Object obj3 = ((C0217g) d02.f2993f).f3811b.f491c;
}
public void d(int i, int i4) {
((Z) this.f3796a).notifyItemRangeInserted(i, i4);
}
public void e(int i, int i4) {
((Z) this.f3796a).notifyItemRangeRemoved(i, i4);
}
}

View File

@@ -0,0 +1,104 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.graphics.PointF;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
import com.google.android.material.carousel.CarouselLayoutManager;
/* renamed from: androidx.recyclerview.widget.c0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0210c0 extends X {
/* renamed from: q, reason: collision with root package name */
public final /* synthetic */ int f3797q;
/* renamed from: r, reason: collision with root package name */
public final /* synthetic */ Object f3798r;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public /* synthetic */ C0210c0(Object obj, Context context, int i) {
super(context);
this.f3797q = i;
this.f3798r = obj;
}
@Override // androidx.recyclerview.widget.X
public int b(View view, int i) {
switch (this.f3797q) {
case 1:
((CarouselLayoutManager) this.f3798r).getClass();
return 0;
default:
return super.b(view, i);
}
}
@Override // androidx.recyclerview.widget.X
public int c(View view, int i) {
switch (this.f3797q) {
case 1:
((CarouselLayoutManager) this.f3798r).getClass();
return 0;
default:
return super.c(view, i);
}
}
@Override // androidx.recyclerview.widget.X
public float d(DisplayMetrics displayMetrics) {
switch (this.f3797q) {
case 0:
return 100.0f / displayMetrics.densityDpi;
default:
return super.d(displayMetrics);
}
}
@Override // androidx.recyclerview.widget.X
public int e(int i) {
switch (this.f3797q) {
case 0:
return Math.min(100, super.e(i));
default:
return super.e(i);
}
}
@Override // androidx.recyclerview.widget.X
public PointF f(int i) {
switch (this.f3797q) {
case 1:
((CarouselLayoutManager) this.f3798r).getClass();
return null;
default:
return super.f(i);
}
}
@Override // androidx.recyclerview.widget.X
public void h(View view, C0 c02) {
switch (this.f3797q) {
case 0:
C0212d0 c0212d0 = (C0212d0) this.f3798r;
int[] b4 = c0212d0.b(c0212d0.f3802a.getLayoutManager(), view);
int i = b4[0];
int i4 = b4[1];
int ceil = (int) Math.ceil(e(Math.max(Math.abs(i), Math.abs(i4))) / 0.3356d);
if (ceil > 0) {
DecelerateInterpolator decelerateInterpolator = this.f3775j;
c02.f3491a = i;
c02.f3492b = i4;
c02.f3493c = ceil;
c02.f3495e = decelerateInterpolator;
c02.f3496f = true;
return;
}
return;
default:
super.h(view, c02);
return;
}
}
}

View File

@@ -0,0 +1,127 @@
package androidx.recyclerview.widget;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
import android.widget.Scroller;
import java.util.ArrayList;
/* renamed from: androidx.recyclerview.widget.d0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C0212d0 extends t0 {
/* renamed from: a, reason: collision with root package name */
public RecyclerView f3802a;
/* renamed from: b, reason: collision with root package name */
public final L0 f3803b = new L0(this);
/* renamed from: c, reason: collision with root package name */
public C0206a0 f3804c;
/* renamed from: d, reason: collision with root package name */
public C0206a0 f3805d;
public static int c(View view, AbstractC0208b0 abstractC0208b0) {
return ((abstractC0208b0.c(view) / 2) + abstractC0208b0.e(view)) - ((abstractC0208b0.l() / 2) + abstractC0208b0.k());
}
public static View d(AbstractC0238q0 abstractC0238q0, AbstractC0208b0 abstractC0208b0) {
int v3 = abstractC0238q0.v();
View view = null;
if (v3 == 0) {
return null;
}
int l4 = (abstractC0208b0.l() / 2) + abstractC0208b0.k();
int i = Integer.MAX_VALUE;
for (int i4 = 0; i4 < v3; i4++) {
View u3 = abstractC0238q0.u(i4);
int abs = Math.abs(((abstractC0208b0.c(u3) / 2) + abstractC0208b0.e(u3)) - l4);
if (abs < i) {
view = u3;
i = abs;
}
}
return view;
}
public final void a(RecyclerView recyclerView) {
RecyclerView recyclerView2 = this.f3802a;
if (recyclerView2 == recyclerView) {
return;
}
L0 l02 = this.f3803b;
if (recyclerView2 != null) {
ArrayList arrayList = recyclerView2.f3689j0;
if (arrayList != null) {
arrayList.remove(l02);
}
this.f3802a.setOnFlingListener(null);
}
this.f3802a = recyclerView;
if (recyclerView != null) {
if (recyclerView.getOnFlingListener() != null) {
throw new IllegalStateException("An instance of OnFlingListener already set.");
}
this.f3802a.k(l02);
this.f3802a.setOnFlingListener(this);
new Scroller(this.f3802a.getContext(), new DecelerateInterpolator());
h();
}
}
public final int[] b(AbstractC0238q0 abstractC0238q0, View view) {
int[] iArr = new int[2];
if (abstractC0238q0.d()) {
iArr[0] = c(view, f(abstractC0238q0));
} else {
iArr[0] = 0;
}
if (abstractC0238q0.e()) {
iArr[1] = c(view, g(abstractC0238q0));
return iArr;
}
iArr[1] = 0;
return iArr;
}
public View e(AbstractC0238q0 abstractC0238q0) {
if (abstractC0238q0.e()) {
return d(abstractC0238q0, g(abstractC0238q0));
}
if (abstractC0238q0.d()) {
return d(abstractC0238q0, f(abstractC0238q0));
}
return null;
}
public final AbstractC0208b0 f(AbstractC0238q0 abstractC0238q0) {
C0206a0 c0206a0 = this.f3805d;
if (c0206a0 == null || ((AbstractC0238q0) c0206a0.f3794b) != abstractC0238q0) {
this.f3805d = new C0206a0(abstractC0238q0, 0);
}
return this.f3805d;
}
public final AbstractC0208b0 g(AbstractC0238q0 abstractC0238q0) {
C0206a0 c0206a0 = this.f3804c;
if (c0206a0 == null || ((AbstractC0238q0) c0206a0.f3794b) != abstractC0238q0) {
this.f3804c = new C0206a0(abstractC0238q0, 1);
}
return this.f3804c;
}
public final void h() {
AbstractC0238q0 layoutManager;
View e4;
RecyclerView recyclerView = this.f3802a;
if (recyclerView == null || (layoutManager = recyclerView.getLayoutManager()) == null || (e4 = e(layoutManager)) == null) {
return;
}
int[] b4 = b(layoutManager, e4);
int i = b4[0];
if (i == 0 && b4[1] == 0) {
return;
}
this.f3802a.l0(i, b4[1], false);
}
}

View File

@@ -0,0 +1,272 @@
package androidx.recyclerview.widget;
import O.C0079u;
import android.util.Log;
import android.view.View;
import java.util.ArrayList;
/* renamed from: androidx.recyclerview.widget.f0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0216f0 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ RecyclerView f3809a;
public /* synthetic */ C0216f0(RecyclerView recyclerView) {
this.f3809a = recyclerView;
}
public void a(C0205a c0205a) {
int i = c0205a.f3782a;
RecyclerView recyclerView = this.f3809a;
if (i == 1) {
recyclerView.f3696n.c0(c0205a.f3783b, c0205a.f3785d);
return;
}
if (i == 2) {
recyclerView.f3696n.f0(c0205a.f3783b, c0205a.f3785d);
} else if (i == 4) {
recyclerView.f3696n.g0(c0205a.f3783b, c0205a.f3785d);
} else {
if (i != 8) {
return;
}
recyclerView.f3696n.e0(c0205a.f3783b, c0205a.f3785d);
}
}
public I0 b(int i) {
RecyclerView recyclerView = this.f3809a;
int h = recyclerView.f3682f.h();
int i4 = 0;
I0 i02 = null;
while (true) {
if (i4 >= h) {
break;
}
I0 N3 = RecyclerView.N(recyclerView.f3682f.g(i4));
if (N3 != null && !N3.isRemoved() && N3.mPosition == i) {
if (!recyclerView.f3682f.f3828c.contains(N3.itemView)) {
i02 = N3;
break;
}
i02 = N3;
}
i4++;
}
if (i02 != null) {
if (!recyclerView.f3682f.f3828c.contains(i02.itemView)) {
return i02;
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "assuming view holder cannot be find because it is hidden");
}
}
return null;
}
public void c(int i, int i4, Object obj) {
int i5;
int i6;
RecyclerView recyclerView = this.f3809a;
int h = recyclerView.f3682f.h();
int i7 = i4 + i;
for (int i8 = 0; i8 < h; i8++) {
View g4 = recyclerView.f3682f.g(i8);
I0 N3 = RecyclerView.N(g4);
if (N3 != null && !N3.shouldIgnore() && (i6 = N3.mPosition) >= i && i6 < i7) {
N3.addFlags(2);
N3.addChangePayload(obj);
((C0239r0) g4.getLayoutParams()).f3899c = true;
}
}
y0 y0Var = recyclerView.f3676c;
ArrayList arrayList = y0Var.f3938c;
for (int size = arrayList.size() - 1; size >= 0; size--) {
I0 i02 = (I0) arrayList.get(size);
if (i02 != null && (i5 = i02.mPosition) >= i && i5 < i7) {
i02.addFlags(2);
y0Var.g(size);
}
}
recyclerView.f3693l0 = true;
}
public void d(int i, int i4) {
RecyclerView recyclerView = this.f3809a;
int h = recyclerView.f3682f.h();
for (int i5 = 0; i5 < h; i5++) {
I0 N3 = RecyclerView.N(recyclerView.f3682f.g(i5));
if (N3 != null && !N3.shouldIgnore() && N3.mPosition >= i) {
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "offsetPositionRecordsForInsert attached child " + i5 + " holder " + N3 + " now at position " + (N3.mPosition + i4));
}
N3.offsetPosition(i4, false);
recyclerView.f3686h0.f3514f = true;
}
}
ArrayList arrayList = recyclerView.f3676c.f3938c;
int size = arrayList.size();
for (int i6 = 0; i6 < size; i6++) {
I0 i02 = (I0) arrayList.get(i6);
if (i02 != null && i02.mPosition >= i) {
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "offsetPositionRecordsForInsert cached " + i6 + " holder " + i02 + " now at position " + (i02.mPosition + i4));
}
i02.offsetPosition(i4, false);
}
}
recyclerView.requestLayout();
recyclerView.f3691k0 = true;
}
public void e(int i, int i4) {
int i5;
int i6;
int i7;
int i8;
int i9;
int i10;
int i11;
RecyclerView recyclerView = this.f3809a;
int h = recyclerView.f3682f.h();
int i12 = -1;
if (i < i4) {
i6 = i;
i5 = i4;
i7 = -1;
} else {
i5 = i;
i6 = i4;
i7 = 1;
}
for (int i13 = 0; i13 < h; i13++) {
I0 N3 = RecyclerView.N(recyclerView.f3682f.g(i13));
if (N3 != null && (i11 = N3.mPosition) >= i6 && i11 <= i5) {
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "offsetPositionRecordsForMove attached child " + i13 + " holder " + N3);
}
if (N3.mPosition == i) {
N3.offsetPosition(i4 - i, false);
} else {
N3.offsetPosition(i7, false);
}
recyclerView.f3686h0.f3514f = true;
}
}
y0 y0Var = recyclerView.f3676c;
y0Var.getClass();
if (i < i4) {
i9 = i;
i8 = i4;
} else {
i8 = i;
i9 = i4;
i12 = 1;
}
ArrayList arrayList = y0Var.f3938c;
int size = arrayList.size();
for (int i14 = 0; i14 < size; i14++) {
I0 i02 = (I0) arrayList.get(i14);
if (i02 != null && (i10 = i02.mPosition) >= i9 && i10 <= i8) {
if (i10 == i) {
i02.offsetPosition(i4 - i, false);
} else {
i02.offsetPosition(i12, false);
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "offsetPositionRecordsForMove cached child " + i14 + " holder " + i02);
}
}
}
recyclerView.requestLayout();
recyclerView.f3691k0 = true;
}
/* JADX WARN: Removed duplicated region for block: B:12:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:9:0x003d */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void f(androidx.recyclerview.widget.I0 r8, O.C0079u r9, O.C0079u r10) {
/*
r7 = this;
androidx.recyclerview.widget.RecyclerView r7 = r7.f3809a
r7.getClass()
r0 = 0
r8.setIsRecyclable(r0)
androidx.recyclerview.widget.m0 r0 = r7.f3661M
r1 = r0
androidx.recyclerview.widget.q r1 = (androidx.recyclerview.widget.C0237q) r1
if (r9 == 0) goto L20
r1.getClass()
int r3 = r9.f1298a
int r5 = r10.f1298a
if (r3 != r5) goto L22
int r0 = r9.f1299b
int r2 = r10.f1299b
if (r0 == r2) goto L20
goto L22
L20:
r2 = r8
goto L2c
L22:
int r4 = r9.f1299b
int r6 = r10.f1299b
r2 = r8
boolean r8 = r1.g(r2, r3, r4, r5, r6)
goto L3b
L2c:
r1.l(r2)
android.view.View r8 = r2.itemView
r9 = 0
r8.setAlpha(r9)
java.util.ArrayList r8 = r1.i
r8.add(r2)
r8 = 1
L3b:
if (r8 == 0) goto L40
r7.Y()
L40:
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.C0216f0.f(androidx.recyclerview.widget.I0, O.u, O.u):void");
}
public void g(I0 i02, C0079u c0079u, C0079u c0079u2) {
boolean z3;
RecyclerView recyclerView = this.f3809a;
recyclerView.f3676c.l(i02);
recyclerView.h(i02);
i02.setIsRecyclable(false);
C0237q c0237q = (C0237q) recyclerView.f3661M;
c0237q.getClass();
int i = c0079u.f1298a;
int i4 = c0079u.f1299b;
View view = i02.itemView;
int left = c0079u2 == null ? view.getLeft() : c0079u2.f1298a;
int top = c0079u2 == null ? view.getTop() : c0079u2.f1299b;
if (i02.isRemoved() || (i == left && i4 == top)) {
c0237q.l(i02);
c0237q.h.add(i02);
z3 = true;
} else {
view.layout(left, top, view.getWidth() + left, view.getHeight() + top);
z3 = c0237q.g(i02, i, i4, left, top);
}
if (z3) {
recyclerView.Y();
}
}
public void h(int i) {
RecyclerView recyclerView = this.f3809a;
View childAt = recyclerView.getChildAt(i);
if (childAt != null) {
recyclerView.s(childAt);
childAt.clearAnimation();
}
recyclerView.removeViewAt(i);
}
}

View File

@@ -0,0 +1,81 @@
package androidx.recyclerview.widget;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
/* renamed from: androidx.recyclerview.widget.g, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0217g {
public static final ExecutorC0215f h = new ExecutorC0215f();
/* renamed from: a, reason: collision with root package name */
public final C0209c f3810a;
/* renamed from: b, reason: collision with root package name */
public final F.i f3811b;
/* renamed from: e, reason: collision with root package name */
public List f3814e;
/* renamed from: g, reason: collision with root package name */
public int f3816g;
/* renamed from: d, reason: collision with root package name */
public final CopyOnWriteArrayList f3813d = new CopyOnWriteArrayList();
/* renamed from: f, reason: collision with root package name */
public List f3815f = Collections.EMPTY_LIST;
/* renamed from: c, reason: collision with root package name */
public final ExecutorC0215f f3812c = h;
public C0217g(C0209c c0209c, F.i iVar) {
this.f3810a = c0209c;
this.f3811b = iVar;
}
public final void a(List list, Runnable runnable) {
Iterator it = this.f3813d.iterator();
while (it.hasNext()) {
InterfaceC0213e interfaceC0213e = (InterfaceC0213e) it.next();
((Y) interfaceC0213e).f3781a.onCurrentListChanged(list, this.f3815f);
}
if (runnable != null) {
runnable.run();
}
}
public final void b(List list, Runnable runnable) {
int i = this.f3816g + 1;
this.f3816g = i;
List list2 = this.f3814e;
if (list == list2) {
if (runnable != null) {
runnable.run();
return;
}
return;
}
List list3 = this.f3815f;
C0209c c0209c = this.f3810a;
if (list == null) {
int size = list2.size();
this.f3814e = null;
this.f3815f = Collections.EMPTY_LIST;
c0209c.e(0, size);
a(list3, runnable);
return;
}
if (list2 != null) {
((ExecutorService) this.f3811b.f490b).execute(new androidx.fragment.app.D0(this, list2, list, i, runnable));
return;
}
this.f3814e = list;
this.f3815f = Collections.unmodifiableList(list);
c0209c.d(0, list.size());
a(list3, runnable);
}
}

View File

@@ -0,0 +1,58 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.h, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0219h {
/* renamed from: a, reason: collision with root package name */
public final C0209c f3819a;
/* renamed from: b, reason: collision with root package name */
public int f3820b = 0;
/* renamed from: c, reason: collision with root package name */
public int f3821c = -1;
/* renamed from: d, reason: collision with root package name */
public int f3822d = -1;
public C0219h(C0209c c0209c) {
this.f3819a = c0209c;
}
public final void a() {
int i = this.f3820b;
if (i == 0) {
return;
}
C0209c c0209c = this.f3819a;
if (i == 1) {
c0209c.d(this.f3821c, this.f3822d);
} else if (i == 2) {
c0209c.e(this.f3821c, this.f3822d);
} else if (i == 3) {
((Z) c0209c.f3796a).notifyItemRangeChanged(this.f3821c, this.f3822d, null);
}
this.f3820b = 0;
}
public final void b(int i, int i4) {
int i5;
int i6;
int i7;
if (this.f3820b == 3 && i <= (i6 = this.f3822d + (i5 = this.f3821c)) && (i7 = i + i4) >= i5) {
this.f3821c = Math.min(i, i5);
this.f3822d = Math.max(i6, i7) - this.f3821c;
} else {
a();
this.f3821c = i;
this.f3822d = i4;
this.f3820b = 3;
}
}
public final void c(int i, int i4) {
a();
((Z) this.f3819a.f3796a).notifyItemMoved(i, i4);
}
}

View File

@@ -0,0 +1,176 @@
package androidx.recyclerview.widget;
import e3.C0333t;
import e3.C0334u;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsKt;
/* renamed from: androidx.recyclerview.widget.i, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0221i {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3823a;
/* renamed from: b, reason: collision with root package name */
public long f3824b;
/* renamed from: c, reason: collision with root package name */
public Object f3825c;
public C0221i(d1.i systemWrapper) {
this.f3823a = 1;
Intrinsics.checkNotNullParameter(systemWrapper, "systemWrapper");
this.f3825c = systemWrapper;
}
public void a(int i) {
if (i < 64) {
this.f3824b &= ~(1 << i);
return;
}
C0221i c0221i = (C0221i) this.f3825c;
if (c0221i != null) {
c0221i.a(i - 64);
}
}
public int b(int i) {
C0221i c0221i = (C0221i) this.f3825c;
if (c0221i == null) {
if (i >= 64) {
return Long.bitCount(this.f3824b);
}
return Long.bitCount(((1 << i) - 1) & this.f3824b);
}
if (i < 64) {
return Long.bitCount(((1 << i) - 1) & this.f3824b);
}
return Long.bitCount(this.f3824b) + c0221i.b(i - 64);
}
public void c() {
if (((C0221i) this.f3825c) == null) {
this.f3825c = new C0221i();
}
}
public boolean d(int i) {
if (i < 64) {
return ((1 << i) & this.f3824b) != 0;
}
c();
return ((C0221i) this.f3825c).d(i - 64);
}
public void e(int i, boolean z3) {
if (i >= 64) {
c();
((C0221i) this.f3825c).e(i - 64, z3);
return;
}
long j4 = this.f3824b;
boolean z4 = (Long.MIN_VALUE & j4) != 0;
long j5 = (1 << i) - 1;
this.f3824b = ((j4 & (~j5)) << 1) | (j4 & j5);
if (z3) {
i(i);
} else {
a(i);
}
if (z4 || ((C0221i) this.f3825c) != null) {
c();
((C0221i) this.f3825c).e(0, z4);
}
}
public C0334u f() {
int indexOf$default;
C0333t c0333t = new C0333t();
while (true) {
String line = ((r3.C) this.f3825c).a0(this.f3824b);
this.f3824b -= line.length();
if (line.length() == 0) {
return c0333t.d();
}
Intrinsics.checkNotNullParameter(line, "line");
indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) line, ':', 1, false, 4, (Object) null);
if (indexOf$default != -1) {
String substring = line.substring(0, indexOf$default);
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String…ing(startIndex, endIndex)");
String substring2 = line.substring(indexOf$default + 1);
Intrinsics.checkNotNullExpressionValue(substring2, "this as java.lang.String).substring(startIndex)");
c0333t.b(substring, substring2);
} else if (line.charAt(0) == ':') {
String substring3 = line.substring(1);
Intrinsics.checkNotNullExpressionValue(substring3, "this as java.lang.String).substring(startIndex)");
c0333t.b("", substring3);
} else {
c0333t.b("", line);
}
}
}
public boolean g(int i) {
if (i >= 64) {
c();
return ((C0221i) this.f3825c).g(i - 64);
}
long j4 = 1 << i;
long j5 = this.f3824b;
boolean z3 = (j5 & j4) != 0;
long j6 = j5 & (~j4);
this.f3824b = j6;
long j7 = j4 - 1;
this.f3824b = (j6 & j7) | Long.rotateRight((~j7) & j6, 1);
C0221i c0221i = (C0221i) this.f3825c;
if (c0221i != null) {
if (c0221i.d(0)) {
i(63);
}
((C0221i) this.f3825c).g(0);
}
return z3;
}
public void h() {
this.f3824b = 0L;
C0221i c0221i = (C0221i) this.f3825c;
if (c0221i != null) {
c0221i.h();
}
}
public void i(int i) {
if (i < 64) {
this.f3824b |= 1 << i;
} else {
c();
((C0221i) this.f3825c).i(i - 64);
}
}
public String toString() {
switch (this.f3823a) {
case 0:
if (((C0221i) this.f3825c) == null) {
return Long.toBinaryString(this.f3824b);
}
return ((C0221i) this.f3825c).toString() + "xx" + Long.toBinaryString(this.f3824b);
default:
return super.toString();
}
}
public C0221i(r3.C source) {
this.f3823a = 2;
Intrinsics.checkNotNullParameter(source, "source");
this.f3825c = source;
this.f3824b = 262144L;
}
public C0221i() {
this.f3823a = 0;
this.f3824b = 0L;
}
}

View File

@@ -0,0 +1,47 @@
package androidx.recyclerview.widget;
import android.database.Observable;
/* renamed from: androidx.recyclerview.widget.i0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0222i0 extends Observable {
public final boolean a() {
return !((Observable) this).mObservers.isEmpty();
}
public final void b() {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).a();
}
}
public final void c(int i, int i4) {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).d(i, i4);
}
}
public final void d(int i, int i4, Object obj) {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).b(i, i4, obj);
}
}
public final void e(int i, int i4) {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).c(i, i4);
}
}
public final void f(int i, int i4) {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).e(i, i4);
}
}
public final void g() {
for (int size = ((Observable) this).mObservers.size() - 1; size >= 0; size--) {
((AbstractC0224j0) ((Observable) this).mObservers.get(size)).f();
}
}
}

View File

@@ -0,0 +1,164 @@
package androidx.recyclerview.widget;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
/* renamed from: androidx.recyclerview.widget.j, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0223j {
/* renamed from: a, reason: collision with root package name */
public final C0216f0 f3826a;
/* renamed from: e, reason: collision with root package name */
public View f3830e;
/* renamed from: d, reason: collision with root package name */
public int f3829d = 0;
/* renamed from: b, reason: collision with root package name */
public final C0221i f3827b = new C0221i();
/* renamed from: c, reason: collision with root package name */
public final ArrayList f3828c = new ArrayList();
public C0223j(C0216f0 c0216f0) {
this.f3826a = c0216f0;
}
public final void a(View view, int i, boolean z3) {
RecyclerView recyclerView = this.f3826a.f3809a;
int childCount = i < 0 ? recyclerView.getChildCount() : f(i);
this.f3827b.e(childCount, z3);
if (z3) {
i(view);
}
recyclerView.addView(view, childCount);
I0 N3 = RecyclerView.N(view);
AbstractC0220h0 abstractC0220h0 = recyclerView.f3694m;
if (abstractC0220h0 != null && N3 != null) {
abstractC0220h0.onViewAttachedToWindow(N3);
}
ArrayList arrayList = recyclerView.f3652C;
if (arrayList != null) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
((InterfaceC0241s0) recyclerView.f3652C.get(size)).a(view);
}
}
}
public final void b(View view, int i, ViewGroup.LayoutParams layoutParams, boolean z3) {
RecyclerView recyclerView = this.f3826a.f3809a;
int childCount = i < 0 ? recyclerView.getChildCount() : f(i);
this.f3827b.e(childCount, z3);
if (z3) {
i(view);
}
I0 N3 = RecyclerView.N(view);
if (N3 != null) {
if (!N3.isTmpDetached() && !N3.shouldIgnore()) {
StringBuilder sb = new StringBuilder("Called attach on a child which is not detached: ");
sb.append(N3);
throw new IllegalArgumentException(C.w.j(recyclerView, sb));
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "reAttach " + N3);
}
N3.clearTmpDetachFlag();
} else if (RecyclerView.A0) {
StringBuilder sb2 = new StringBuilder("No ViewHolder found for child: ");
sb2.append(view);
sb2.append(", index: ");
sb2.append(childCount);
throw new IllegalArgumentException(C.w.j(recyclerView, sb2));
}
recyclerView.attachViewToParent(view, childCount, layoutParams);
}
public final void c(int i) {
int f2 = f(i);
this.f3827b.g(f2);
RecyclerView recyclerView = this.f3826a.f3809a;
View childAt = recyclerView.getChildAt(f2);
if (childAt != null) {
I0 N3 = RecyclerView.N(childAt);
if (N3 != null) {
if (N3.isTmpDetached() && !N3.shouldIgnore()) {
StringBuilder sb = new StringBuilder("called detach on an already detached child ");
sb.append(N3);
throw new IllegalArgumentException(C.w.j(recyclerView, sb));
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "tmpDetach " + N3);
}
N3.addFlags(256);
}
} else if (RecyclerView.A0) {
StringBuilder sb2 = new StringBuilder("No view at offset ");
sb2.append(f2);
throw new IllegalArgumentException(C.w.j(recyclerView, sb2));
}
recyclerView.detachViewFromParent(f2);
}
public final View d(int i) {
return this.f3826a.f3809a.getChildAt(f(i));
}
public final int e() {
return this.f3826a.f3809a.getChildCount() - this.f3828c.size();
}
public final int f(int i) {
if (i < 0) {
return -1;
}
int childCount = this.f3826a.f3809a.getChildCount();
int i4 = i;
while (i4 < childCount) {
C0221i c0221i = this.f3827b;
int b4 = i - (i4 - c0221i.b(i4));
if (b4 == 0) {
while (c0221i.d(i4)) {
i4++;
}
return i4;
}
i4 += b4;
}
return -1;
}
public final View g(int i) {
return this.f3826a.f3809a.getChildAt(i);
}
public final int h() {
return this.f3826a.f3809a.getChildCount();
}
public final void i(View view) {
this.f3828c.add(view);
C0216f0 c0216f0 = this.f3826a;
I0 N3 = RecyclerView.N(view);
if (N3 != null) {
N3.onEnteredHiddenState(c0216f0.f3809a);
}
}
public final void j(View view) {
if (this.f3828c.remove(view)) {
C0216f0 c0216f0 = this.f3826a;
I0 N3 = RecyclerView.N(view);
if (N3 != null) {
N3.onLeftHiddenState(c0216f0.f3809a);
}
}
}
public final String toString() {
return this.f3827b.toString() + ", hidden list:" + this.f3828c.size();
}
}

View File

@@ -0,0 +1,87 @@
package androidx.recyclerview.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import android.view.ViewPropertyAnimator;
/* renamed from: androidx.recyclerview.widget.l, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0227l extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3834a = 1;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ I0 f3835b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ View f3836c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ ViewPropertyAnimator f3837d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ C0237q f3838e;
public C0227l(C0237q c0237q, I0 i02, ViewPropertyAnimator viewPropertyAnimator, View view) {
this.f3838e = c0237q;
this.f3835b = i02;
this.f3837d = viewPropertyAnimator;
this.f3836c = view;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
switch (this.f3834a) {
case 1:
this.f3836c.setAlpha(1.0f);
return;
default:
super.onAnimationCancel(animator);
return;
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
switch (this.f3834a) {
case 0:
this.f3837d.setListener(null);
this.f3836c.setAlpha(1.0f);
C0237q c0237q = this.f3838e;
I0 i02 = this.f3835b;
c0237q.c(i02);
c0237q.f3881q.remove(i02);
c0237q.i();
return;
default:
this.f3837d.setListener(null);
C0237q c0237q2 = this.f3838e;
I0 i03 = this.f3835b;
c0237q2.c(i03);
c0237q2.f3880o.remove(i03);
c0237q2.i();
return;
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
switch (this.f3834a) {
case 0:
this.f3838e.getClass();
return;
default:
this.f3838e.getClass();
return;
}
}
public C0227l(C0237q c0237q, I0 i02, View view, ViewPropertyAnimator viewPropertyAnimator) {
this.f3838e = c0237q;
this.f3835b = i02;
this.f3836c = view;
this.f3837d = viewPropertyAnimator;
}
}

View File

@@ -0,0 +1,66 @@
package androidx.recyclerview.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import android.view.ViewPropertyAnimator;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* renamed from: androidx.recyclerview.widget.m, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0229m extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ I0 f3839a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ int f3840b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ View f3841c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ int f3842d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ ViewPropertyAnimator f3843e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ C0237q f3844f;
public C0229m(C0237q c0237q, I0 i02, int i, View view, int i4, ViewPropertyAnimator viewPropertyAnimator) {
this.f3844f = c0237q;
this.f3839a = i02;
this.f3840b = i;
this.f3841c = view;
this.f3842d = i4;
this.f3843e = viewPropertyAnimator;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationCancel(Animator animator) {
int i = this.f3840b;
View view = this.f3841c;
if (i != 0) {
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
}
if (this.f3842d != 0) {
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
this.f3843e.setListener(null);
C0237q c0237q = this.f3844f;
I0 i02 = this.f3839a;
c0237q.c(i02);
c0237q.p.remove(i02);
c0237q.i();
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
this.f3844f.getClass();
}
}

View File

@@ -0,0 +1,81 @@
package androidx.recyclerview.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import android.view.ViewPropertyAnimator;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* renamed from: androidx.recyclerview.widget.n, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0231n extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3851a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0233o f3852b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ ViewPropertyAnimator f3853c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ View f3854d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ C0237q f3855e;
public /* synthetic */ C0231n(C0237q c0237q, C0233o c0233o, ViewPropertyAnimator viewPropertyAnimator, View view, int i) {
this.f3851a = i;
this.f3855e = c0237q;
this.f3852b = c0233o;
this.f3853c = viewPropertyAnimator;
this.f3854d = view;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
switch (this.f3851a) {
case 0:
this.f3853c.setListener(null);
View view = this.f3854d;
view.setAlpha(1.0f);
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
C0233o c0233o = this.f3852b;
I0 i02 = c0233o.f3856a;
C0237q c0237q = this.f3855e;
c0237q.c(i02);
c0237q.f3882r.remove(c0233o.f3856a);
c0237q.i();
return;
default:
this.f3853c.setListener(null);
View view2 = this.f3854d;
view2.setAlpha(1.0f);
view2.setTranslationX(BitmapDescriptorFactory.HUE_RED);
view2.setTranslationY(BitmapDescriptorFactory.HUE_RED);
C0233o c0233o2 = this.f3852b;
I0 i03 = c0233o2.f3857b;
C0237q c0237q2 = this.f3855e;
c0237q2.c(i03);
c0237q2.f3882r.remove(c0233o2.f3857b);
c0237q2.i();
return;
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
switch (this.f3851a) {
case 0:
I0 i02 = this.f3852b.f3856a;
this.f3855e.getClass();
return;
default:
I0 i03 = this.f3852b.f3857b;
this.f3855e.getClass();
return;
}
}
}

View File

@@ -0,0 +1,39 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.o, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0233o {
/* renamed from: a, reason: collision with root package name */
public I0 f3856a;
/* renamed from: b, reason: collision with root package name */
public I0 f3857b;
/* renamed from: c, reason: collision with root package name */
public int f3858c;
/* renamed from: d, reason: collision with root package name */
public int f3859d;
/* renamed from: e, reason: collision with root package name */
public int f3860e;
/* renamed from: f, reason: collision with root package name */
public int f3861f;
public final String toString() {
StringBuilder sb = new StringBuilder("ChangeInfo{oldHolder=");
sb.append(this.f3856a);
sb.append(", newHolder=");
sb.append(this.f3857b);
sb.append(", fromX=");
sb.append(this.f3858c);
sb.append(", fromY=");
sb.append(this.f3859d);
sb.append(", toX=");
sb.append(this.f3860e);
sb.append(", toY=");
return C.w.p(sb, this.f3861f, '}');
}
}

View File

@@ -0,0 +1,66 @@
package androidx.recyclerview.widget;
import android.view.View;
import android.view.ViewGroup;
/* renamed from: androidx.recyclerview.widget.o0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0234o0 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3862a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ AbstractC0238q0 f3863b;
public /* synthetic */ C0234o0(AbstractC0238q0 abstractC0238q0, int i) {
this.f3862a = i;
this.f3863b = abstractC0238q0;
}
public final int a(View view) {
switch (this.f3862a) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
this.f3863b.getClass();
return AbstractC0238q0.D(view) + ((ViewGroup.MarginLayoutParams) c0239r0).rightMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
this.f3863b.getClass();
return AbstractC0238q0.y(view) + ((ViewGroup.MarginLayoutParams) c0239r02).bottomMargin;
}
}
public final int b(View view) {
switch (this.f3862a) {
case 0:
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
this.f3863b.getClass();
return AbstractC0238q0.A(view) - ((ViewGroup.MarginLayoutParams) c0239r0).leftMargin;
default:
C0239r0 c0239r02 = (C0239r0) view.getLayoutParams();
this.f3863b.getClass();
return AbstractC0238q0.E(view) - ((ViewGroup.MarginLayoutParams) c0239r02).topMargin;
}
}
public final int c() {
switch (this.f3862a) {
case 0:
AbstractC0238q0 abstractC0238q0 = this.f3863b;
return abstractC0238q0.f3894n - abstractC0238q0.J();
default:
AbstractC0238q0 abstractC0238q02 = this.f3863b;
return abstractC0238q02.f3895o - abstractC0238q02.H();
}
}
public final int d() {
switch (this.f3862a) {
case 0:
return this.f3863b.I();
default:
return this.f3863b.K();
}
}
}

View File

@@ -0,0 +1,21 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.p, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0235p {
/* renamed from: a, reason: collision with root package name */
public I0 f3864a;
/* renamed from: b, reason: collision with root package name */
public int f3865b;
/* renamed from: c, reason: collision with root package name */
public int f3866c;
/* renamed from: d, reason: collision with root package name */
public int f3867d;
/* renamed from: e, reason: collision with root package name */
public int f3868e;
}

View File

@@ -0,0 +1,18 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.p0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0236p0 {
/* renamed from: a, reason: collision with root package name */
public int f3869a;
/* renamed from: b, reason: collision with root package name */
public int f3870b;
/* renamed from: c, reason: collision with root package name */
public boolean f3871c;
/* renamed from: d, reason: collision with root package name */
public boolean f3872d;
}

View File

@@ -0,0 +1,353 @@
package androidx.recyclerview.widget;
import O.C0079u;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.view.View;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
/* renamed from: androidx.recyclerview.widget.q, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0237q extends AbstractC0230m0 {
/* renamed from: s, reason: collision with root package name */
public static TimeInterpolator f3873s;
/* renamed from: g, reason: collision with root package name */
public boolean f3874g;
public ArrayList h;
public ArrayList i;
/* renamed from: j, reason: collision with root package name */
public ArrayList f3875j;
/* renamed from: k, reason: collision with root package name */
public ArrayList f3876k;
/* renamed from: l, reason: collision with root package name */
public ArrayList f3877l;
/* renamed from: m, reason: collision with root package name */
public ArrayList f3878m;
/* renamed from: n, reason: collision with root package name */
public ArrayList f3879n;
/* renamed from: o, reason: collision with root package name */
public ArrayList f3880o;
public ArrayList p;
/* renamed from: q, reason: collision with root package name */
public ArrayList f3881q;
/* renamed from: r, reason: collision with root package name */
public ArrayList f3882r;
public static void h(ArrayList arrayList) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
((I0) arrayList.get(size)).itemView.animate().cancel();
}
}
/* JADX WARN: Type inference failed for: r9v8, types: [androidx.recyclerview.widget.o, java.lang.Object] */
@Override // androidx.recyclerview.widget.AbstractC0230m0
public final boolean a(I0 i02, I0 i03, C0079u c0079u, C0079u c0079u2) {
int i;
int i4;
int i5 = c0079u.f1298a;
int i6 = c0079u.f1299b;
if (i03.shouldIgnore()) {
int i7 = c0079u.f1298a;
i4 = c0079u.f1299b;
i = i7;
} else {
i = c0079u2.f1298a;
i4 = c0079u2.f1299b;
}
if (i02 == i03) {
return g(i02, i5, i6, i, i4);
}
float translationX = i02.itemView.getTranslationX();
float translationY = i02.itemView.getTranslationY();
float alpha = i02.itemView.getAlpha();
l(i02);
i02.itemView.setTranslationX(translationX);
i02.itemView.setTranslationY(translationY);
i02.itemView.setAlpha(alpha);
l(i03);
i03.itemView.setTranslationX(-((int) ((i - i5) - translationX)));
i03.itemView.setTranslationY(-((int) ((i4 - i6) - translationY)));
i03.itemView.setAlpha(BitmapDescriptorFactory.HUE_RED);
ArrayList arrayList = this.f3876k;
?? obj = new Object();
obj.f3856a = i02;
obj.f3857b = i03;
obj.f3858c = i5;
obj.f3859d = i6;
obj.f3860e = i;
obj.f3861f = i4;
arrayList.add(obj);
return true;
}
@Override // androidx.recyclerview.widget.AbstractC0230m0
public final void d(I0 i02) {
View view = i02.itemView;
view.animate().cancel();
ArrayList arrayList = this.f3875j;
int size = arrayList.size();
while (true) {
size--;
if (size < 0) {
break;
}
if (((C0235p) arrayList.get(size)).f3864a == i02) {
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
c(i02);
arrayList.remove(size);
}
}
j(this.f3876k, i02);
if (this.h.remove(i02)) {
view.setAlpha(1.0f);
c(i02);
}
if (this.i.remove(i02)) {
view.setAlpha(1.0f);
c(i02);
}
ArrayList arrayList2 = this.f3879n;
for (int size2 = arrayList2.size() - 1; size2 >= 0; size2--) {
ArrayList arrayList3 = (ArrayList) arrayList2.get(size2);
j(arrayList3, i02);
if (arrayList3.isEmpty()) {
arrayList2.remove(size2);
}
}
ArrayList arrayList4 = this.f3878m;
for (int size3 = arrayList4.size() - 1; size3 >= 0; size3--) {
ArrayList arrayList5 = (ArrayList) arrayList4.get(size3);
int size4 = arrayList5.size() - 1;
while (true) {
if (size4 < 0) {
break;
}
if (((C0235p) arrayList5.get(size4)).f3864a == i02) {
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
c(i02);
arrayList5.remove(size4);
if (arrayList5.isEmpty()) {
arrayList4.remove(size3);
}
} else {
size4--;
}
}
}
ArrayList arrayList6 = this.f3877l;
for (int size5 = arrayList6.size() - 1; size5 >= 0; size5--) {
ArrayList arrayList7 = (ArrayList) arrayList6.get(size5);
if (arrayList7.remove(i02)) {
view.setAlpha(1.0f);
c(i02);
if (arrayList7.isEmpty()) {
arrayList6.remove(size5);
}
}
}
this.f3881q.remove(i02);
this.f3880o.remove(i02);
this.f3882r.remove(i02);
this.p.remove(i02);
i();
}
@Override // androidx.recyclerview.widget.AbstractC0230m0
public final void e() {
ArrayList arrayList = this.f3875j;
int size = arrayList.size();
while (true) {
size--;
if (size < 0) {
break;
}
C0235p c0235p = (C0235p) arrayList.get(size);
View view = c0235p.f3864a.itemView;
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
c(c0235p.f3864a);
arrayList.remove(size);
}
ArrayList arrayList2 = this.h;
for (int size2 = arrayList2.size() - 1; size2 >= 0; size2--) {
c((I0) arrayList2.get(size2));
arrayList2.remove(size2);
}
ArrayList arrayList3 = this.i;
int size3 = arrayList3.size();
while (true) {
size3--;
if (size3 < 0) {
break;
}
I0 i02 = (I0) arrayList3.get(size3);
i02.itemView.setAlpha(1.0f);
c(i02);
arrayList3.remove(size3);
}
ArrayList arrayList4 = this.f3876k;
for (int size4 = arrayList4.size() - 1; size4 >= 0; size4--) {
C0233o c0233o = (C0233o) arrayList4.get(size4);
I0 i03 = c0233o.f3856a;
if (i03 != null) {
k(c0233o, i03);
}
I0 i04 = c0233o.f3857b;
if (i04 != null) {
k(c0233o, i04);
}
}
arrayList4.clear();
if (f()) {
ArrayList arrayList5 = this.f3878m;
for (int size5 = arrayList5.size() - 1; size5 >= 0; size5--) {
ArrayList arrayList6 = (ArrayList) arrayList5.get(size5);
for (int size6 = arrayList6.size() - 1; size6 >= 0; size6--) {
C0235p c0235p2 = (C0235p) arrayList6.get(size6);
View view2 = c0235p2.f3864a.itemView;
view2.setTranslationY(BitmapDescriptorFactory.HUE_RED);
view2.setTranslationX(BitmapDescriptorFactory.HUE_RED);
c(c0235p2.f3864a);
arrayList6.remove(size6);
if (arrayList6.isEmpty()) {
arrayList5.remove(arrayList6);
}
}
}
ArrayList arrayList7 = this.f3877l;
for (int size7 = arrayList7.size() - 1; size7 >= 0; size7--) {
ArrayList arrayList8 = (ArrayList) arrayList7.get(size7);
for (int size8 = arrayList8.size() - 1; size8 >= 0; size8--) {
I0 i05 = (I0) arrayList8.get(size8);
i05.itemView.setAlpha(1.0f);
c(i05);
arrayList8.remove(size8);
if (arrayList8.isEmpty()) {
arrayList7.remove(arrayList8);
}
}
}
ArrayList arrayList9 = this.f3879n;
for (int size9 = arrayList9.size() - 1; size9 >= 0; size9--) {
ArrayList arrayList10 = (ArrayList) arrayList9.get(size9);
for (int size10 = arrayList10.size() - 1; size10 >= 0; size10--) {
C0233o c0233o2 = (C0233o) arrayList10.get(size10);
I0 i06 = c0233o2.f3856a;
if (i06 != null) {
k(c0233o2, i06);
}
I0 i07 = c0233o2.f3857b;
if (i07 != null) {
k(c0233o2, i07);
}
if (arrayList10.isEmpty()) {
arrayList9.remove(arrayList10);
}
}
}
h(this.f3881q);
h(this.p);
h(this.f3880o);
h(this.f3882r);
ArrayList arrayList11 = this.f3846b;
if (arrayList11.size() > 0) {
arrayList11.get(0).getClass();
throw new ClassCastException();
}
arrayList11.clear();
}
}
@Override // androidx.recyclerview.widget.AbstractC0230m0
public final boolean f() {
return (this.i.isEmpty() && this.f3876k.isEmpty() && this.f3875j.isEmpty() && this.h.isEmpty() && this.p.isEmpty() && this.f3881q.isEmpty() && this.f3880o.isEmpty() && this.f3882r.isEmpty() && this.f3878m.isEmpty() && this.f3877l.isEmpty() && this.f3879n.isEmpty()) ? false : true;
}
/* JADX WARN: Type inference failed for: r0v1, types: [androidx.recyclerview.widget.p, java.lang.Object] */
public final boolean g(I0 i02, int i, int i4, int i5, int i6) {
View view = i02.itemView;
int translationX = i + ((int) view.getTranslationX());
int translationY = i4 + ((int) i02.itemView.getTranslationY());
l(i02);
int i7 = i5 - translationX;
int i8 = i6 - translationY;
if (i7 == 0 && i8 == 0) {
c(i02);
return false;
}
if (i7 != 0) {
view.setTranslationX(-i7);
}
if (i8 != 0) {
view.setTranslationY(-i8);
}
ArrayList arrayList = this.f3875j;
?? obj = new Object();
obj.f3864a = i02;
obj.f3865b = translationX;
obj.f3866c = translationY;
obj.f3867d = i5;
obj.f3868e = i6;
arrayList.add(obj);
return true;
}
public final void i() {
if (f()) {
return;
}
ArrayList arrayList = this.f3846b;
if (arrayList.size() <= 0) {
arrayList.clear();
} else {
arrayList.get(0).getClass();
throw new ClassCastException();
}
}
public final void j(ArrayList arrayList, I0 i02) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
C0233o c0233o = (C0233o) arrayList.get(size);
if (k(c0233o, i02) && c0233o.f3856a == null && c0233o.f3857b == null) {
arrayList.remove(c0233o);
}
}
}
public final boolean k(C0233o c0233o, I0 i02) {
if (c0233o.f3857b == i02) {
c0233o.f3857b = null;
} else {
if (c0233o.f3856a != i02) {
return false;
}
c0233o.f3856a = null;
}
i02.itemView.setAlpha(1.0f);
i02.itemView.setTranslationX(BitmapDescriptorFactory.HUE_RED);
i02.itemView.setTranslationY(BitmapDescriptorFactory.HUE_RED);
c(i02);
return true;
}
public final void l(I0 i02) {
if (f3873s == null) {
f3873s = new ValueAnimator().getInterpolator();
}
i02.itemView.animate().setInterpolator(f3873s);
d(i02);
}
}

View File

@@ -0,0 +1,58 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.ViewGroup;
/* renamed from: androidx.recyclerview.widget.r0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C0239r0 extends ViewGroup.MarginLayoutParams {
/* renamed from: a, reason: collision with root package name */
public I0 f3897a;
/* renamed from: b, reason: collision with root package name */
public final Rect f3898b;
/* renamed from: c, reason: collision with root package name */
public boolean f3899c;
/* renamed from: d, reason: collision with root package name */
public boolean f3900d;
public C0239r0(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.f3898b = new Rect();
this.f3899c = true;
this.f3900d = false;
}
public C0239r0(int i, int i4) {
super(i, i4);
this.f3898b = new Rect();
this.f3899c = true;
this.f3900d = false;
}
public C0239r0(ViewGroup.MarginLayoutParams marginLayoutParams) {
super(marginLayoutParams);
this.f3898b = new Rect();
this.f3899c = true;
this.f3900d = false;
}
public C0239r0(ViewGroup.LayoutParams layoutParams) {
super(layoutParams);
this.f3898b = new Rect();
this.f3899c = true;
this.f3900d = false;
}
public C0239r0(C0239r0 c0239r0) {
super((ViewGroup.LayoutParams) c0239r0);
this.f3898b = new Rect();
this.f3899c = true;
this.f3900d = false;
}
}

View File

@@ -0,0 +1,21 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.s, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0240s {
/* renamed from: a, reason: collision with root package name */
public final int f3901a;
/* renamed from: b, reason: collision with root package name */
public final int f3902b;
/* renamed from: c, reason: collision with root package name */
public final int f3903c;
public C0240s(int i, int i4, int i5) {
this.f3901a = i;
this.f3902b = i4;
this.f3903c = i5;
}
}

View File

@@ -0,0 +1,139 @@
package androidx.recyclerview.widget;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
/* renamed from: androidx.recyclerview.widget.t, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0242t {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f3904a;
/* renamed from: b, reason: collision with root package name */
public final int[] f3905b;
/* renamed from: c, reason: collision with root package name */
public final int[] f3906c;
/* renamed from: d, reason: collision with root package name */
public final C0209c f3907d;
/* renamed from: e, reason: collision with root package name */
public final int f3908e;
/* renamed from: f, reason: collision with root package name */
public final int f3909f;
/* renamed from: g, reason: collision with root package name */
public final boolean f3910g;
public C0242t(C0209c c0209c, ArrayList arrayList, int[] iArr, int[] iArr2) {
int[] iArr3;
int[] iArr4;
C0209c c0209c2;
int i;
C0240s c0240s;
int i4;
this.f3904a = arrayList;
this.f3905b = iArr;
this.f3906c = iArr2;
Arrays.fill(iArr, 0);
Arrays.fill(iArr2, 0);
this.f3907d = c0209c;
androidx.fragment.app.D0 d02 = (androidx.fragment.app.D0) c0209c.f3796a;
int size = d02.f2990c.size();
this.f3908e = size;
int size2 = d02.f2991d.size();
this.f3909f = size2;
this.f3910g = true;
C0240s c0240s2 = arrayList.isEmpty() ? null : (C0240s) arrayList.get(0);
if (c0240s2 == null || c0240s2.f3901a != 0 || c0240s2.f3902b != 0) {
arrayList.add(0, new C0240s(0, 0, 0));
}
arrayList.add(new C0240s(size, size2, 0));
Iterator it = arrayList.iterator();
while (true) {
boolean hasNext = it.hasNext();
iArr3 = this.f3906c;
iArr4 = this.f3905b;
c0209c2 = this.f3907d;
if (!hasNext) {
break;
}
C0240s c0240s3 = (C0240s) it.next();
for (int i5 = 0; i5 < c0240s3.f3903c; i5++) {
int i6 = c0240s3.f3901a + i5;
int i7 = c0240s3.f3902b + i5;
int i8 = c0209c2.a(i6, i7) ? 1 : 2;
iArr4[i6] = (i7 << 4) | i8;
iArr3[i7] = (i6 << 4) | i8;
}
}
if (this.f3910g) {
Iterator it2 = arrayList.iterator();
int i9 = 0;
while (it2.hasNext()) {
C0240s c0240s4 = (C0240s) it2.next();
while (true) {
i = c0240s4.f3901a;
if (i9 < i) {
if (iArr4[i9] == 0) {
int size3 = arrayList.size();
int i10 = 0;
int i11 = 0;
while (true) {
if (i10 < size3) {
c0240s = (C0240s) arrayList.get(i10);
while (true) {
i4 = c0240s.f3902b;
if (i11 < i4) {
if (iArr3[i11] == 0 && c0209c2.b(i9, i11)) {
int i12 = c0209c2.a(i9, i11) ? 8 : 4;
iArr4[i9] = (i11 << 4) | i12;
iArr3[i11] = i12 | (i9 << 4);
} else {
i11++;
}
}
}
}
i11 = c0240s.f3903c + i4;
i10++;
}
}
i9++;
}
}
i9 = c0240s4.f3903c + i;
}
}
}
public static C0243u a(ArrayDeque arrayDeque, int i, boolean z3) {
C0243u c0243u;
Iterator it = arrayDeque.iterator();
while (true) {
if (!it.hasNext()) {
c0243u = null;
break;
}
c0243u = (C0243u) it.next();
if (c0243u.f3911a == i && c0243u.f3913c == z3) {
it.remove();
break;
}
}
while (it.hasNext()) {
C0243u c0243u2 = (C0243u) it.next();
if (z3) {
c0243u2.f3912b--;
} else {
c0243u2.f3912b++;
}
}
return c0243u;
}
}

View File

@@ -0,0 +1,21 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.u, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0243u {
/* renamed from: a, reason: collision with root package name */
public final int f3911a;
/* renamed from: b, reason: collision with root package name */
public int f3912b;
/* renamed from: c, reason: collision with root package name */
public final boolean f3913c;
public C0243u(int i, int i4, boolean z3) {
this.f3911a = i;
this.f3912b = i4;
this.f3913c = z3;
}
}

View File

@@ -0,0 +1,26 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.v, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0244v {
/* renamed from: a, reason: collision with root package name */
public int f3914a;
/* renamed from: b, reason: collision with root package name */
public int f3915b;
/* renamed from: c, reason: collision with root package name */
public int f3916c;
/* renamed from: d, reason: collision with root package name */
public int f3917d;
public final int a() {
return this.f3917d - this.f3916c;
}
public final int b() {
return this.f3915b - this.f3914a;
}
}

View File

@@ -0,0 +1,25 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.w, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0245w {
/* renamed from: a, reason: collision with root package name */
public int f3918a;
/* renamed from: b, reason: collision with root package name */
public int f3919b;
/* renamed from: c, reason: collision with root package name */
public int f3920c;
/* renamed from: d, reason: collision with root package name */
public int f3921d;
/* renamed from: e, reason: collision with root package name */
public boolean f3922e;
public final int a() {
return Math.min(this.f3920c - this.f3918a, this.f3921d - this.f3919b);
}
}

View File

@@ -0,0 +1,105 @@
package androidx.recyclerview.widget;
import android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.View;
/* renamed from: androidx.recyclerview.widget.x, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0246x extends AbstractC0232n0 {
/* renamed from: d, reason: collision with root package name */
public static final int[] f3927d = {R.attr.listDivider};
/* renamed from: a, reason: collision with root package name */
public Drawable f3928a;
/* renamed from: b, reason: collision with root package name */
public final int f3929b;
/* renamed from: c, reason: collision with root package name */
public final Rect f3930c = new Rect();
public C0246x(Context context) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(f3927d);
Drawable drawable = obtainStyledAttributes.getDrawable(0);
this.f3928a = drawable;
if (drawable == null) {
Log.w("DividerItem", "@android:attr/listDivider was not set in the theme used for this DividerItemDecoration. Please set that attribute all call setDrawable()");
}
obtainStyledAttributes.recycle();
this.f3929b = 1;
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void getItemOffsets(Rect rect, View view, RecyclerView recyclerView, E0 e02) {
Drawable drawable = this.f3928a;
if (drawable == null) {
rect.set(0, 0, 0, 0);
} else if (this.f3929b == 1) {
rect.set(0, 0, 0, drawable.getIntrinsicHeight());
} else {
rect.set(0, 0, drawable.getIntrinsicWidth(), 0);
}
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void onDraw(Canvas canvas, RecyclerView recyclerView, E0 e02) {
int height;
int i;
int width;
int i4;
if (recyclerView.getLayoutManager() == null || this.f3928a == null) {
return;
}
int i5 = this.f3929b;
Rect rect = this.f3930c;
int i6 = 0;
if (i5 == 1) {
canvas.save();
if (recyclerView.getClipToPadding()) {
i4 = recyclerView.getPaddingLeft();
width = recyclerView.getWidth() - recyclerView.getPaddingRight();
canvas.clipRect(i4, recyclerView.getPaddingTop(), width, recyclerView.getHeight() - recyclerView.getPaddingBottom());
} else {
width = recyclerView.getWidth();
i4 = 0;
}
int childCount = recyclerView.getChildCount();
while (i6 < childCount) {
View childAt = recyclerView.getChildAt(i6);
RecyclerView.O(rect, childAt);
int round = Math.round(childAt.getTranslationY()) + rect.bottom;
this.f3928a.setBounds(i4, round - this.f3928a.getIntrinsicHeight(), width, round);
this.f3928a.draw(canvas);
i6++;
}
canvas.restore();
return;
}
canvas.save();
if (recyclerView.getClipToPadding()) {
i = recyclerView.getPaddingTop();
height = recyclerView.getHeight() - recyclerView.getPaddingBottom();
canvas.clipRect(recyclerView.getPaddingLeft(), i, recyclerView.getWidth() - recyclerView.getPaddingRight(), height);
} else {
height = recyclerView.getHeight();
i = 0;
}
int childCount2 = recyclerView.getChildCount();
while (i6 < childCount2) {
View childAt2 = recyclerView.getChildAt(i6);
recyclerView.getLayoutManager().z(rect, childAt2);
int round2 = Math.round(childAt2.getTranslationX()) + rect.right;
this.f3928a.setBounds(round2 - this.f3928a.getIntrinsicWidth(), i, round2, height);
this.f3928a.draw(canvas);
i6++;
}
canvas.restore();
}
}

View File

@@ -0,0 +1,52 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.z, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0248z extends v0 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ C f3943a;
public C0248z(C c4) {
this.f3943a = c4;
}
@Override // androidx.recyclerview.widget.v0
public final void onScrolled(RecyclerView recyclerView, int i, int i4) {
int computeHorizontalScrollOffset = recyclerView.computeHorizontalScrollOffset();
int computeVerticalScrollOffset = recyclerView.computeVerticalScrollOffset();
C c4 = this.f3943a;
int computeVerticalScrollRange = c4.f3483s.computeVerticalScrollRange();
int i5 = c4.f3482r;
int i6 = computeVerticalScrollRange - i5;
int i7 = c4.f3468a;
c4.f3484t = i6 > 0 && i5 >= i7;
int computeHorizontalScrollRange = c4.f3483s.computeHorizontalScrollRange();
int i8 = c4.f3481q;
boolean z3 = computeHorizontalScrollRange - i8 > 0 && i8 >= i7;
c4.f3485u = z3;
boolean z4 = c4.f3484t;
if (!z4 && !z3) {
if (c4.f3486v != 0) {
c4.f(0);
return;
}
return;
}
if (z4) {
float f2 = i5;
c4.f3477l = (int) ((((f2 / 2.0f) + computeVerticalScrollOffset) * f2) / computeVerticalScrollRange);
c4.f3476k = Math.min(i5, (i5 * i5) / computeVerticalScrollRange);
}
if (c4.f3485u) {
float f4 = computeHorizontalScrollOffset;
float f5 = i8;
c4.f3480o = (int) ((((f5 / 2.0f) + f4) * f5) / computeHorizontalScrollRange);
c4.f3479n = Math.min(i8, (i8 * i8) / computeHorizontalScrollRange);
}
int i9 = c4.f3486v;
if (i9 == 0 || i9 == 1) {
c4.f(1);
}
}
}

View File

@@ -0,0 +1,20 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class D {
/* renamed from: a, reason: collision with root package name */
public boolean f3498a;
/* renamed from: b, reason: collision with root package name */
public int f3499b;
/* renamed from: c, reason: collision with root package name */
public int f3500c;
/* renamed from: d, reason: collision with root package name */
public RecyclerView f3501d;
/* renamed from: e, reason: collision with root package name */
public int f3502e;
}

View File

@@ -0,0 +1,8 @@
package androidx.recyclerview.widget;
import android.graphics.PointF;
/* loaded from: classes.dex */
public interface D0 {
PointF a(int i);
}

View File

@@ -0,0 +1,192 @@
package androidx.recyclerview.widget;
import android.os.Trace;
import java.util.ArrayList;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.LongCompanionObject;
/* loaded from: classes.dex */
public final class E implements Runnable {
/* renamed from: e, reason: collision with root package name */
public static final ThreadLocal f3503e = new ThreadLocal();
/* renamed from: f, reason: collision with root package name */
public static final r f3504f = new r(1);
/* renamed from: a, reason: collision with root package name */
public ArrayList f3505a;
/* renamed from: b, reason: collision with root package name */
public long f3506b;
/* renamed from: c, reason: collision with root package name */
public long f3507c;
/* renamed from: d, reason: collision with root package name */
public ArrayList f3508d;
public static I0 c(RecyclerView recyclerView, int i, long j4) {
int h = recyclerView.f3682f.h();
for (int i4 = 0; i4 < h; i4++) {
I0 N3 = RecyclerView.N(recyclerView.f3682f.g(i4));
if (N3.mPosition == i && !N3.isInvalid()) {
return null;
}
}
y0 y0Var = recyclerView.f3676c;
try {
recyclerView.V();
I0 k4 = y0Var.k(i, j4);
if (k4 != null) {
if (!k4.isBound() || k4.isInvalid()) {
y0Var.a(k4, false);
} else {
y0Var.h(k4.itemView);
}
}
recyclerView.W(false);
return k4;
} catch (Throwable th) {
recyclerView.W(false);
throw th;
}
}
public final void a(RecyclerView recyclerView, int i, int i4) {
if (recyclerView.f3705s) {
if (RecyclerView.A0 && !this.f3505a.contains(recyclerView)) {
throw new IllegalStateException("attempting to post unregistered view!");
}
if (this.f3506b == 0) {
this.f3506b = recyclerView.getNanoTime();
recyclerView.post(this);
}
}
Z2.y yVar = recyclerView.f3685g0;
yVar.f2311a = i;
yVar.f2312b = i4;
}
/* JADX WARN: Multi-variable type inference failed */
public final void b(long j4) {
D d4;
RecyclerView recyclerView;
RecyclerView recyclerView2;
D d5;
ArrayList arrayList = this.f3505a;
int size = arrayList.size();
int i = 0;
for (int i4 = 0; i4 < size; i4++) {
RecyclerView recyclerView3 = (RecyclerView) arrayList.get(i4);
if (recyclerView3.getWindowVisibility() == 0) {
Z2.y yVar = recyclerView3.f3685g0;
yVar.c(recyclerView3, false);
i += yVar.f2313c;
}
}
ArrayList arrayList2 = this.f3508d;
arrayList2.ensureCapacity(i);
int i5 = 0;
for (int i6 = 0; i6 < size; i6++) {
RecyclerView recyclerView4 = (RecyclerView) arrayList.get(i6);
if (recyclerView4.getWindowVisibility() == 0) {
Z2.y yVar2 = recyclerView4.f3685g0;
int abs = Math.abs(yVar2.f2312b) + Math.abs(yVar2.f2311a);
for (int i7 = 0; i7 < yVar2.f2313c * 2; i7 += 2) {
if (i5 >= arrayList2.size()) {
Object obj = new Object();
arrayList2.add(obj);
d5 = obj;
} else {
d5 = (D) arrayList2.get(i5);
}
int[] iArr = (int[]) yVar2.f2314d;
int i8 = iArr[i7 + 1];
d5.f3498a = i8 <= abs;
d5.f3499b = abs;
d5.f3500c = i8;
d5.f3501d = recyclerView4;
d5.f3502e = iArr[i7];
i5++;
}
}
}
Collections.sort(arrayList2, f3504f);
for (int i9 = 0; i9 < arrayList2.size() && (recyclerView = (d4 = (D) arrayList2.get(i9)).f3501d) != null; i9++) {
I0 c4 = c(recyclerView, d4.f3502e, d4.f3498a ? LongCompanionObject.MAX_VALUE : j4);
if (c4 != null && c4.mNestedRecyclerView != null && c4.isBound() && !c4.isInvalid() && (recyclerView2 = c4.mNestedRecyclerView.get()) != null) {
if (recyclerView2.f3653D && recyclerView2.f3682f.h() != 0) {
AbstractC0230m0 abstractC0230m0 = recyclerView2.f3661M;
if (abstractC0230m0 != null) {
abstractC0230m0.e();
}
AbstractC0238q0 abstractC0238q0 = recyclerView2.f3696n;
y0 y0Var = recyclerView2.f3676c;
if (abstractC0238q0 != null) {
abstractC0238q0.n0(y0Var);
recyclerView2.f3696n.o0(y0Var);
}
y0Var.f3936a.clear();
y0Var.f();
}
Z2.y yVar3 = recyclerView2.f3685g0;
yVar3.c(recyclerView2, true);
if (yVar3.f2313c != 0) {
try {
Trace.beginSection("RV Nested Prefetch");
E0 e02 = recyclerView2.f3686h0;
AbstractC0220h0 abstractC0220h0 = recyclerView2.f3694m;
e02.f3512d = 1;
e02.f3513e = abstractC0220h0.getItemCount();
e02.f3515g = false;
e02.h = false;
e02.i = false;
for (int i10 = 0; i10 < yVar3.f2313c * 2; i10 += 2) {
c(recyclerView2, ((int[]) yVar3.f2314d)[i10], j4);
}
d4.f3498a = false;
d4.f3499b = 0;
d4.f3500c = 0;
d4.f3501d = null;
d4.f3502e = 0;
} finally {
Trace.endSection();
}
}
}
d4.f3498a = false;
d4.f3499b = 0;
d4.f3500c = 0;
d4.f3501d = null;
d4.f3502e = 0;
}
}
@Override // java.lang.Runnable
public final void run() {
try {
Trace.beginSection("RV Prefetch");
ArrayList arrayList = this.f3505a;
if (arrayList.isEmpty()) {
return;
}
int size = arrayList.size();
long j4 = 0;
for (int i = 0; i < size; i++) {
RecyclerView recyclerView = (RecyclerView) arrayList.get(i);
if (recyclerView.getWindowVisibility() == 0) {
j4 = Math.max(recyclerView.getDrawingTime(), j4);
}
}
if (j4 == 0) {
return;
}
b(TimeUnit.MILLISECONDS.toNanos(j4) + this.f3507c);
} finally {
this.f3506b = 0L;
Trace.endSection();
}
}
}

View File

@@ -0,0 +1,58 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class E0 {
/* renamed from: a, reason: collision with root package name */
public int f3509a;
/* renamed from: b, reason: collision with root package name */
public int f3510b;
/* renamed from: c, reason: collision with root package name */
public int f3511c;
/* renamed from: d, reason: collision with root package name */
public int f3512d;
/* renamed from: e, reason: collision with root package name */
public int f3513e;
/* renamed from: f, reason: collision with root package name */
public boolean f3514f;
/* renamed from: g, reason: collision with root package name */
public boolean f3515g;
public boolean h;
public boolean i;
/* renamed from: j, reason: collision with root package name */
public boolean f3516j;
/* renamed from: k, reason: collision with root package name */
public boolean f3517k;
/* renamed from: l, reason: collision with root package name */
public int f3518l;
/* renamed from: m, reason: collision with root package name */
public long f3519m;
/* renamed from: n, reason: collision with root package name */
public int f3520n;
public final void a(int i) {
if ((this.f3512d & i) != 0) {
return;
}
throw new IllegalStateException("Layout state should be one of " + Integer.toBinaryString(i) + " but it is " + Integer.toBinaryString(this.f3512d));
}
public final int b() {
return this.f3515g ? this.f3510b - this.f3511c : this.f3513e;
}
public final String toString() {
return "State{mTargetPosition=" + this.f3509a + ", mData=null, mItemCount=" + this.f3513e + ", mIsMeasuring=" + this.i + ", mPreviousLayoutItemCount=" + this.f3510b + ", mDeletedInvisibleItemCountSincePreviousLayout=" + this.f3511c + ", mStructureChanged=" + this.f3514f + ", mInPreLayout=" + this.f3515g + ", mRunSimpleAnimations=" + this.f3516j + ", mRunPredictiveAnimations=" + this.f3517k + '}';
}
}

View File

@@ -0,0 +1,31 @@
package androidx.recyclerview.widget;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* renamed from: androidx.recyclerview.widget.g0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class EnumC0218g0 {
/* renamed from: a, reason: collision with root package name */
public static final EnumC0218g0 f3817a;
/* renamed from: b, reason: collision with root package name */
public static final /* synthetic */ EnumC0218g0[] f3818b;
/* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Enum, androidx.recyclerview.widget.g0] */
/* JADX WARN: Type inference failed for: r1v1, types: [java.lang.Enum, androidx.recyclerview.widget.g0] */
/* JADX WARN: Type inference failed for: r2v2, types: [java.lang.Enum, androidx.recyclerview.widget.g0] */
static {
?? r02 = new Enum("ALLOW", 0);
f3817a = r02;
f3818b = new EnumC0218g0[]{r02, new Enum("PREVENT_WHEN_EMPTY", 1), new Enum("PREVENT", 2)};
}
public static EnumC0218g0 valueOf(String str) {
return (EnumC0218g0) Enum.valueOf(EnumC0218g0.class, str);
}
public static EnumC0218g0[] values() {
return (EnumC0218g0[]) f3818b.clone();
}
}

View File

@@ -0,0 +1,18 @@
package androidx.recyclerview.widget;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.Executor;
/* renamed from: androidx.recyclerview.widget.f, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ExecutorC0215f implements Executor {
/* renamed from: a, reason: collision with root package name */
public final Handler f3808a = new Handler(Looper.getMainLooper());
@Override // java.util.concurrent.Executor
public final void execute(Runnable runnable) {
this.f3808a.post(runnable);
}
}

View File

@@ -0,0 +1,17 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class F extends C0239r0 {
/* renamed from: e, reason: collision with root package name */
public int f3521e;
/* renamed from: f, reason: collision with root package name */
public int f3522f;
public F(int i, int i4) {
super(i, i4);
this.f3521e = -1;
this.f3522f = 0;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class F0 extends AbstractC0228l0 {
}

View File

@@ -0,0 +1,141 @@
package androidx.recyclerview.widget;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class G implements u0 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ N f3523a;
public G(N n4) {
this.f3523a = n4;
}
@Override // androidx.recyclerview.widget.u0
public final boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
int findPointerIndex;
N n4 = this.f3523a;
((GestureDetector) n4.f3607x.f7b).onTouchEvent(motionEvent);
int actionMasked = motionEvent.getActionMasked();
H h = null;
if (actionMasked == 0) {
n4.f3596l = motionEvent.getPointerId(0);
n4.f3590d = motionEvent.getX();
n4.f3591e = motionEvent.getY();
VelocityTracker velocityTracker = n4.f3603t;
if (velocityTracker != null) {
velocityTracker.recycle();
}
n4.f3603t = VelocityTracker.obtain();
if (n4.f3589c == null) {
ArrayList arrayList = n4.p;
if (!arrayList.isEmpty()) {
View g4 = n4.g(motionEvent);
int size = arrayList.size() - 1;
while (true) {
if (size < 0) {
break;
}
H h4 = (H) arrayList.get(size);
if (h4.f3535e.itemView == g4) {
h = h4;
break;
}
size--;
}
}
if (h != null) {
n4.f3590d -= h.i;
n4.f3591e -= h.f3538j;
I0 i02 = h.f3535e;
n4.f(i02, true);
if (n4.f3587a.remove(i02.itemView)) {
n4.f3597m.clearView(n4.f3601r, i02);
}
n4.l(i02, h.f3536f);
n4.m(n4.f3599o, 0, motionEvent);
}
}
} else if (actionMasked == 3 || actionMasked == 1) {
n4.f3596l = -1;
n4.l(null, 0);
} else {
int i = n4.f3596l;
if (i != -1 && (findPointerIndex = motionEvent.findPointerIndex(i)) >= 0) {
n4.d(actionMasked, findPointerIndex, motionEvent);
}
}
VelocityTracker velocityTracker2 = n4.f3603t;
if (velocityTracker2 != null) {
velocityTracker2.addMovement(motionEvent);
}
return n4.f3589c != null;
}
@Override // androidx.recyclerview.widget.u0
public final void onRequestDisallowInterceptTouchEvent(boolean z3) {
if (z3) {
this.f3523a.l(null, 0);
}
}
@Override // androidx.recyclerview.widget.u0
public final void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
N n4 = this.f3523a;
((GestureDetector) n4.f3607x.f7b).onTouchEvent(motionEvent);
VelocityTracker velocityTracker = n4.f3603t;
if (velocityTracker != null) {
velocityTracker.addMovement(motionEvent);
}
if (n4.f3596l == -1) {
return;
}
int actionMasked = motionEvent.getActionMasked();
int findPointerIndex = motionEvent.findPointerIndex(n4.f3596l);
if (findPointerIndex >= 0) {
n4.d(actionMasked, findPointerIndex, motionEvent);
}
I0 i02 = n4.f3589c;
if (i02 == null) {
return;
}
if (actionMasked != 1) {
if (actionMasked == 2) {
if (findPointerIndex >= 0) {
n4.m(n4.f3599o, findPointerIndex, motionEvent);
n4.j(i02);
RecyclerView recyclerView2 = n4.f3601r;
RunnableC0247y runnableC0247y = n4.f3602s;
recyclerView2.removeCallbacks(runnableC0247y);
runnableC0247y.run();
n4.f3601r.invalidate();
return;
}
return;
}
if (actionMasked != 3) {
if (actionMasked != 6) {
return;
}
int actionIndex = motionEvent.getActionIndex();
if (motionEvent.getPointerId(actionIndex) == n4.f3596l) {
n4.f3596l = motionEvent.getPointerId(actionIndex == 0 ? 1 : 0);
n4.m(n4.f3599o, actionIndex, motionEvent);
return;
}
return;
}
VelocityTracker velocityTracker2 = n4.f3603t;
if (velocityTracker2 != null) {
velocityTracker2.clear();
}
}
n4.l(null, 0);
n4.f3596l = -1;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public abstract class G0 {
}

View File

@@ -0,0 +1,563 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public class GridLayoutManager extends LinearLayoutManager {
/* renamed from: E, reason: collision with root package name */
public boolean f3524E;
/* renamed from: F, reason: collision with root package name */
public int f3525F;
/* renamed from: G, reason: collision with root package name */
public int[] f3526G;
/* renamed from: H, reason: collision with root package name */
public View[] f3527H;
/* renamed from: I, reason: collision with root package name */
public final SparseIntArray f3528I;
public final SparseIntArray J;
/* renamed from: K, reason: collision with root package name */
public final F.i f3529K;
/* renamed from: L, reason: collision with root package name */
public final Rect f3530L;
public GridLayoutManager(Context context, AttributeSet attributeSet, int i, int i4) {
super(context, attributeSet, i, i4);
this.f3524E = false;
this.f3525F = -1;
this.f3528I = new SparseIntArray();
this.J = new SparseIntArray();
this.f3529K = new F.i(9);
this.f3530L = new Rect();
v1(AbstractC0238q0.M(context, attributeSet, i, i4).f3870b);
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final boolean H0() {
return this.f3577z == null && !this.f3524E;
}
@Override // androidx.recyclerview.widget.LinearLayoutManager
public final void J0(E0 e02, U u3, Z2.y yVar) {
int i;
int i4 = this.f3525F;
for (int i5 = 0; i5 < this.f3525F && (i = u3.f3757d) >= 0 && i < e02.b() && i4 > 0; i5++) {
yVar.b(u3.f3757d, Math.max(0, u3.f3760g));
this.f3529K.getClass();
i4--;
u3.f3757d += u3.f3758e;
}
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final int N(y0 y0Var, E0 e02) {
if (this.p == 0) {
return this.f3525F;
}
if (e02.b() < 1) {
return 0;
}
return r1(e02.b() - 1, y0Var, e02) + 1;
}
@Override // androidx.recyclerview.widget.LinearLayoutManager
public final View W0(y0 y0Var, E0 e02, boolean z3, boolean z4) {
int i;
int i4;
int v3 = v();
int i5 = 1;
if (z4) {
i4 = v() - 1;
i = -1;
i5 = -1;
} else {
i = v3;
i4 = 0;
}
int b4 = e02.b();
O0();
int k4 = this.f3569r.k();
int g4 = this.f3569r.g();
View view = null;
View view2 = null;
while (i4 != i) {
View u3 = u(i4);
int L3 = AbstractC0238q0.L(u3);
if (L3 >= 0 && L3 < b4 && s1(L3, y0Var, e02) == 0) {
if (((C0239r0) u3.getLayoutParams()).f3897a.isRemoved()) {
if (view2 == null) {
view2 = u3;
}
} else {
if (this.f3569r.e(u3) < g4 && this.f3569r.b(u3) >= k4) {
return u3;
}
if (view == null) {
view = u3;
}
}
}
i4 += i5;
}
return view != null ? view : view2;
}
/* JADX WARN: Code restructure failed: missing block: B:63:0x00e0, code lost:
if (r13 == (r2 > r15)) goto L57;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x0105, code lost:
if (r13 == (r2 > r8)) goto L78;
*/
/* JADX WARN: Code restructure failed: missing block: B:86:0x001f, code lost:
if (r22.f3883a.f3828c.contains(r3) != false) goto L10;
*/
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.view.View X(android.view.View r23, int r24, androidx.recyclerview.widget.y0 r25, androidx.recyclerview.widget.E0 r26) {
/*
Method dump skipped, instructions count: 324
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.X(android.view.View, int, androidx.recyclerview.widget.y0, androidx.recyclerview.widget.E0):android.view.View");
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void Z(y0 y0Var, E0 e02, P.k kVar) {
super.Z(y0Var, e02, kVar);
kVar.h(GridView.class.getName());
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void b0(y0 y0Var, E0 e02, View view, P.k kVar) {
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
if (!(layoutParams instanceof F)) {
a0(view, kVar);
return;
}
F f2 = (F) layoutParams;
int r12 = r1(f2.f3897a.getLayoutPosition(), y0Var, e02);
if (this.p == 0) {
kVar.i(P.j.a(false, f2.f3521e, f2.f3522f, r12, 1));
} else {
kVar.i(P.j.a(false, r12, 1, f2.f3521e, f2.f3522f));
}
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void c0(int i, int i4) {
F.i iVar = this.f3529K;
iVar.v();
((SparseIntArray) iVar.f491c).clear();
}
/* JADX WARN: Code restructure failed: missing block: B:32:0x0099, code lost:
r22.f3751b = true;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x009b, code lost:
return;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r8v22 */
/* JADX WARN: Type inference failed for: r8v23, types: [int, boolean] */
/* JADX WARN: Type inference failed for: r8v31 */
/* JADX WARN: Type inference failed for: r8v32 */
/* JADX WARN: Type inference failed for: r8v37 */
@Override // androidx.recyclerview.widget.LinearLayoutManager
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c1(androidx.recyclerview.widget.y0 r19, androidx.recyclerview.widget.E0 r20, androidx.recyclerview.widget.U r21, androidx.recyclerview.widget.T r22) {
/*
Method dump skipped, instructions count: 631
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.c1(androidx.recyclerview.widget.y0, androidx.recyclerview.widget.E0, androidx.recyclerview.widget.U, androidx.recyclerview.widget.T):void");
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void d0() {
F.i iVar = this.f3529K;
iVar.v();
((SparseIntArray) iVar.f491c).clear();
}
@Override // androidx.recyclerview.widget.LinearLayoutManager
public final void d1(y0 y0Var, E0 e02, S s4, int i) {
w1();
if (e02.b() > 0 && !e02.f3515g) {
boolean z3 = i == 1;
int s12 = s1(s4.f3722b, y0Var, e02);
if (z3) {
while (s12 > 0) {
int i4 = s4.f3722b;
if (i4 <= 0) {
break;
}
int i5 = i4 - 1;
s4.f3722b = i5;
s12 = s1(i5, y0Var, e02);
}
} else {
int b4 = e02.b() - 1;
int i6 = s4.f3722b;
while (i6 < b4) {
int i7 = i6 + 1;
int s13 = s1(i7, y0Var, e02);
if (s13 <= s12) {
break;
}
i6 = i7;
s12 = s13;
}
s4.f3722b = i6;
}
}
p1();
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void e0(int i, int i4) {
F.i iVar = this.f3529K;
iVar.v();
((SparseIntArray) iVar.f491c).clear();
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final boolean f(C0239r0 c0239r0) {
return c0239r0 instanceof F;
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void f0(int i, int i4) {
F.i iVar = this.f3529K;
iVar.v();
((SparseIntArray) iVar.f491c).clear();
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void g0(int i, int i4) {
F.i iVar = this.f3529K;
iVar.v();
((SparseIntArray) iVar.f491c).clear();
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final void h0(y0 y0Var, E0 e02) {
boolean z3 = e02.f3515g;
SparseIntArray sparseIntArray = this.J;
SparseIntArray sparseIntArray2 = this.f3528I;
if (z3) {
int v3 = v();
for (int i = 0; i < v3; i++) {
F f2 = (F) u(i).getLayoutParams();
int layoutPosition = f2.f3897a.getLayoutPosition();
sparseIntArray2.put(layoutPosition, f2.f3522f);
sparseIntArray.put(layoutPosition, f2.f3521e);
}
}
super.h0(y0Var, e02);
sparseIntArray2.clear();
sparseIntArray.clear();
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final void i0(E0 e02) {
super.i0(e02);
this.f3524E = false;
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int k(E0 e02) {
return L0(e02);
}
@Override // androidx.recyclerview.widget.LinearLayoutManager
public final void k1(boolean z3) {
if (z3) {
throw new UnsupportedOperationException("GridLayoutManager does not support stack from end. Consider using reverse layout");
}
super.k1(false);
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int l(E0 e02) {
return M0(e02);
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int n(E0 e02) {
return L0(e02);
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int o(E0 e02) {
return M0(e02);
}
public final void o1(int i) {
int i4;
int[] iArr = this.f3526G;
int i5 = this.f3525F;
if (iArr == null || iArr.length != i5 + 1 || iArr[iArr.length - 1] != i) {
iArr = new int[i5 + 1];
}
int i6 = 0;
iArr[0] = 0;
int i7 = i / i5;
int i8 = i % i5;
int i9 = 0;
for (int i10 = 1; i10 <= i5; i10++) {
i6 += i8;
if (i6 <= 0 || i5 - i6 >= i8) {
i4 = i7;
} else {
i4 = i7 + 1;
i6 -= i5;
}
i9 += i4;
iArr[i10] = i9;
}
this.f3526G = iArr;
}
public final void p1() {
View[] viewArr = this.f3527H;
if (viewArr == null || viewArr.length != this.f3525F) {
this.f3527H = new View[this.f3525F];
}
}
public final int q1(int i, int i4) {
if (this.p != 1 || !b1()) {
int[] iArr = this.f3526G;
return iArr[i4 + i] - iArr[i];
}
int[] iArr2 = this.f3526G;
int i5 = this.f3525F;
return iArr2[i5 - i] - iArr2[(i5 - i) - i4];
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final C0239r0 r() {
return this.p == 0 ? new F(-2, -1) : new F(-1, -2);
}
public final int r1(int i, y0 y0Var, E0 e02) {
boolean z3 = e02.f3515g;
F.i iVar = this.f3529K;
if (!z3) {
int i4 = this.f3525F;
iVar.getClass();
return F.i.u(i, i4);
}
int b4 = y0Var.b(i);
if (b4 != -1) {
int i5 = this.f3525F;
iVar.getClass();
return F.i.u(b4, i5);
}
Log.w("GridLayoutManager", "Cannot find span size for pre layout position. " + i);
return 0;
}
/* JADX WARN: Type inference failed for: r0v1, types: [androidx.recyclerview.widget.F, androidx.recyclerview.widget.r0] */
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final C0239r0 s(Context context, AttributeSet attributeSet) {
?? c0239r0 = new C0239r0(context, attributeSet);
c0239r0.f3521e = -1;
c0239r0.f3522f = 0;
return c0239r0;
}
public final int s1(int i, y0 y0Var, E0 e02) {
boolean z3 = e02.f3515g;
F.i iVar = this.f3529K;
if (!z3) {
int i4 = this.f3525F;
iVar.getClass();
return i % i4;
}
int i5 = this.J.get(i, -1);
if (i5 != -1) {
return i5;
}
int b4 = y0Var.b(i);
if (b4 != -1) {
int i6 = this.f3525F;
iVar.getClass();
return b4 % i6;
}
Log.w("GridLayoutManager", "Cannot find span size for pre layout position. It is not cached, not in the adapter. Pos:" + i);
return 0;
}
/* JADX WARN: Type inference failed for: r2v2, types: [androidx.recyclerview.widget.F, androidx.recyclerview.widget.r0] */
/* JADX WARN: Type inference failed for: r2v3, types: [androidx.recyclerview.widget.F, androidx.recyclerview.widget.r0] */
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final C0239r0 t(ViewGroup.LayoutParams layoutParams) {
if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
?? c0239r0 = new C0239r0((ViewGroup.MarginLayoutParams) layoutParams);
c0239r0.f3521e = -1;
c0239r0.f3522f = 0;
return c0239r0;
}
?? c0239r02 = new C0239r0(layoutParams);
c0239r02.f3521e = -1;
c0239r02.f3522f = 0;
return c0239r02;
}
public final int t1(int i, y0 y0Var, E0 e02) {
boolean z3 = e02.f3515g;
F.i iVar = this.f3529K;
if (!z3) {
iVar.getClass();
return 1;
}
int i4 = this.f3528I.get(i, -1);
if (i4 != -1) {
return i4;
}
if (y0Var.b(i) != -1) {
iVar.getClass();
return 1;
}
Log.w("GridLayoutManager", "Cannot find span size for pre layout position. It is not cached, not in the adapter. Pos:" + i);
return 1;
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int u0(int i, y0 y0Var, E0 e02) {
w1();
p1();
return super.u0(i, y0Var, e02);
}
public final void u1(View view, int i, boolean z3) {
int i4;
int i5;
F f2 = (F) view.getLayoutParams();
Rect rect = f2.f3898b;
int i6 = rect.top + rect.bottom + ((ViewGroup.MarginLayoutParams) f2).topMargin + ((ViewGroup.MarginLayoutParams) f2).bottomMargin;
int i7 = rect.left + rect.right + ((ViewGroup.MarginLayoutParams) f2).leftMargin + ((ViewGroup.MarginLayoutParams) f2).rightMargin;
int q12 = q1(f2.f3521e, f2.f3522f);
if (this.p == 1) {
i5 = AbstractC0238q0.w(false, q12, i, i7, ((ViewGroup.MarginLayoutParams) f2).width);
i4 = AbstractC0238q0.w(true, this.f3569r.l(), this.f3893m, i6, ((ViewGroup.MarginLayoutParams) f2).height);
} else {
int w3 = AbstractC0238q0.w(false, q12, i, i6, ((ViewGroup.MarginLayoutParams) f2).height);
int w4 = AbstractC0238q0.w(true, this.f3569r.l(), this.f3892l, i7, ((ViewGroup.MarginLayoutParams) f2).width);
i4 = w3;
i5 = w4;
}
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
if (z3 ? E0(view, i5, i4, c0239r0) : C0(view, i5, i4, c0239r0)) {
view.measure(i5, i4);
}
}
public final void v1(int i) {
if (i == this.f3525F) {
return;
}
this.f3524E = true;
if (i < 1) {
throw new IllegalArgumentException(com.google.android.gms.measurement.internal.a.l(i, "Span count should be at least 1. Provided "));
}
this.f3525F = i;
this.f3529K.v();
t0();
}
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
public final int w0(int i, y0 y0Var, E0 e02) {
w1();
p1();
return super.w0(i, y0Var, e02);
}
public final void w1() {
int H3;
int K3;
if (this.p == 1) {
H3 = this.f3894n - J();
K3 = I();
} else {
H3 = this.f3895o - H();
K3 = K();
}
o1(H3 - K3);
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final int x(y0 y0Var, E0 e02) {
if (this.p == 1) {
return this.f3525F;
}
if (e02.b() < 1) {
return 0;
}
return r1(e02.b() - 1, y0Var, e02) + 1;
}
@Override // androidx.recyclerview.widget.AbstractC0238q0
public final void z0(Rect rect, int i, int i4) {
int g4;
int g5;
if (this.f3526G == null) {
super.z0(rect, i, i4);
}
int J = J() + I();
int H3 = H() + K();
if (this.p == 1) {
int height = rect.height() + H3;
RecyclerView recyclerView = this.f3884b;
WeakHashMap weakHashMap = O.X.f1226a;
g5 = AbstractC0238q0.g(i4, height, recyclerView.getMinimumHeight());
int[] iArr = this.f3526G;
g4 = AbstractC0238q0.g(i, iArr[iArr.length - 1] + J, this.f3884b.getMinimumWidth());
} else {
int width = rect.width() + J;
RecyclerView recyclerView2 = this.f3884b;
WeakHashMap weakHashMap2 = O.X.f1226a;
g4 = AbstractC0238q0.g(i, width, recyclerView2.getMinimumWidth());
int[] iArr2 = this.f3526G;
g5 = AbstractC0238q0.g(i4, iArr2[iArr2.length - 1] + H3, this.f3884b.getMinimumHeight());
}
this.f3884b.setMeasuredDimension(g4, g5);
}
public GridLayoutManager(int i) {
super(1);
this.f3524E = false;
this.f3525F = -1;
this.f3528I = new SparseIntArray();
this.J = new SparseIntArray();
this.f3529K = new F.i(9);
this.f3530L = new Rect();
v1(i);
}
}

View File

@@ -0,0 +1,115 @@
package androidx.recyclerview.widget;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.view.View;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes.dex */
public final class H implements Animator.AnimatorListener {
/* renamed from: a, reason: collision with root package name */
public final float f3531a;
/* renamed from: b, reason: collision with root package name */
public final float f3532b;
/* renamed from: c, reason: collision with root package name */
public final float f3533c;
/* renamed from: d, reason: collision with root package name */
public final float f3534d;
/* renamed from: e, reason: collision with root package name */
public final I0 f3535e;
/* renamed from: f, reason: collision with root package name */
public final int f3536f;
/* renamed from: g, reason: collision with root package name */
public final ValueAnimator f3537g;
public boolean h;
public float i;
/* renamed from: j, reason: collision with root package name */
public float f3538j;
/* renamed from: k, reason: collision with root package name */
public boolean f3539k = false;
/* renamed from: l, reason: collision with root package name */
public boolean f3540l = false;
/* renamed from: m, reason: collision with root package name */
public float f3541m;
/* renamed from: n, reason: collision with root package name */
public final /* synthetic */ int f3542n;
/* renamed from: o, reason: collision with root package name */
public final /* synthetic */ I0 f3543o;
public final /* synthetic */ N p;
public H(N n4, I0 i02, int i, float f2, float f4, float f5, float f6, int i4, I0 i03) {
this.p = n4;
this.f3542n = i4;
this.f3543o = i03;
this.f3536f = i;
this.f3535e = i02;
this.f3531a = f2;
this.f3532b = f4;
this.f3533c = f5;
this.f3534d = f6;
ValueAnimator ofFloat = ValueAnimator.ofFloat(BitmapDescriptorFactory.HUE_RED, 1.0f);
this.f3537g = ofFloat;
ofFloat.addUpdateListener(new B(this, 1));
ofFloat.setTarget(i02.itemView);
ofFloat.addListener(this);
this.f3541m = BitmapDescriptorFactory.HUE_RED;
}
public final void a(Animator animator) {
if (!this.f3540l) {
this.f3535e.setIsRecyclable(true);
}
this.f3540l = true;
}
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationCancel(Animator animator) {
this.f3541m = 1.0f;
}
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
a(animator);
if (this.f3539k) {
return;
}
int i = this.f3542n;
I0 i02 = this.f3543o;
N n4 = this.p;
if (i <= 0) {
n4.f3597m.clearView(n4.f3601r, i02);
} else {
n4.f3587a.add(i02.itemView);
this.h = true;
if (i > 0) {
n4.f3601r.post(new I(n4, i, 0, this));
}
}
View view = n4.f3606w;
View view2 = i02.itemView;
if (view == view2) {
n4.k(view2);
}
}
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
}
}

View File

@@ -0,0 +1,241 @@
package androidx.recyclerview.widget;
import android.view.animation.BaseInterpolator;
import android.view.animation.Interpolator;
import android.widget.OverScroller;
import java.util.Arrays;
import java.util.WeakHashMap;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class H0 implements Runnable {
/* renamed from: a, reason: collision with root package name */
public int f3544a;
/* renamed from: b, reason: collision with root package name */
public int f3545b;
/* renamed from: c, reason: collision with root package name */
public OverScroller f3546c;
/* renamed from: d, reason: collision with root package name */
public Interpolator f3547d;
/* renamed from: e, reason: collision with root package name */
public boolean f3548e;
/* renamed from: f, reason: collision with root package name */
public boolean f3549f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ RecyclerView f3550g;
public H0(RecyclerView recyclerView) {
this.f3550g = recyclerView;
J j4 = RecyclerView.f3648I0;
this.f3547d = j4;
this.f3548e = false;
this.f3549f = false;
this.f3546c = new OverScroller(recyclerView.getContext(), j4);
}
public final void a(int i, int i4) {
RecyclerView recyclerView = this.f3550g;
recyclerView.setScrollState(2);
this.f3545b = 0;
this.f3544a = 0;
Interpolator interpolator = this.f3547d;
J j4 = RecyclerView.f3648I0;
if (interpolator != j4) {
this.f3547d = j4;
this.f3546c = new OverScroller(recyclerView.getContext(), j4);
}
this.f3546c.fling(0, 0, i, i4, IntCompanionObject.MIN_VALUE, Integer.MAX_VALUE, IntCompanionObject.MIN_VALUE, Integer.MAX_VALUE);
b();
}
public final void b() {
if (this.f3548e) {
this.f3549f = true;
return;
}
RecyclerView recyclerView = this.f3550g;
recyclerView.removeCallbacks(this);
WeakHashMap weakHashMap = O.X.f1226a;
recyclerView.postOnAnimation(this);
}
public final void c(int i, int i4, int i5, BaseInterpolator baseInterpolator) {
RecyclerView recyclerView = this.f3550g;
if (i5 == Integer.MIN_VALUE) {
int abs = Math.abs(i);
int abs2 = Math.abs(i4);
boolean z3 = abs > abs2;
int width = z3 ? recyclerView.getWidth() : recyclerView.getHeight();
if (!z3) {
abs = abs2;
}
i5 = Math.min((int) (((abs / width) + 1.0f) * 300.0f), 2000);
}
int i6 = i5;
Interpolator interpolator = baseInterpolator;
if (baseInterpolator == null) {
interpolator = RecyclerView.f3648I0;
}
if (this.f3547d != interpolator) {
this.f3547d = interpolator;
this.f3546c = new OverScroller(recyclerView.getContext(), interpolator);
}
this.f3545b = 0;
this.f3544a = 0;
recyclerView.setScrollState(2);
this.f3546c.startScroll(0, 0, i, i4, i6);
b();
}
@Override // java.lang.Runnable
public final void run() {
int i;
int i4;
boolean awakenScrollBars;
RecyclerView recyclerView = this.f3550g;
if (recyclerView.f3696n == null) {
recyclerView.removeCallbacks(this);
this.f3546c.abortAnimation();
return;
}
this.f3549f = false;
this.f3548e = true;
recyclerView.q();
OverScroller overScroller = this.f3546c;
if (overScroller.computeScrollOffset()) {
int currX = overScroller.getCurrX();
int currY = overScroller.getCurrY();
int i5 = currX - this.f3544a;
int i6 = currY - this.f3545b;
this.f3544a = currX;
this.f3545b = currY;
int p = RecyclerView.p(i5, recyclerView.f3658I, recyclerView.f3659K, recyclerView.getWidth());
int p3 = RecyclerView.p(i6, recyclerView.J, recyclerView.f3660L, recyclerView.getHeight());
int[] iArr = recyclerView.f3708t0;
iArr[0] = 0;
iArr[1] = 0;
boolean w3 = recyclerView.w(iArr, null, p, p3, 1);
int[] iArr2 = recyclerView.f3708t0;
if (w3) {
p -= iArr2[0];
p3 -= iArr2[1];
}
if (recyclerView.getOverScrollMode() != 2) {
recyclerView.o(p, p3);
}
if (recyclerView.f3694m != null) {
iArr2[0] = 0;
iArr2[1] = 0;
recyclerView.i0(iArr2, p, p3);
i = iArr2[0];
i4 = iArr2[1];
p -= i;
p3 -= i4;
X x3 = recyclerView.f3696n.f3887e;
if (x3 != null && !x3.f3771d && x3.f3772e) {
int b4 = recyclerView.f3686h0.b();
if (b4 == 0) {
x3.i();
} else if (x3.f3768a >= b4) {
x3.f3768a = b4 - 1;
x3.g(i, i4);
} else {
x3.g(i, i4);
}
}
} else {
i = 0;
i4 = 0;
}
if (!recyclerView.p.isEmpty()) {
recyclerView.invalidate();
}
int[] iArr3 = recyclerView.f3708t0;
iArr3[0] = 0;
iArr3[1] = 0;
recyclerView.x(i, i4, p, p3, null, 1, iArr3);
int i7 = p - iArr2[0];
int i8 = p3 - iArr2[1];
if (i != 0 || i4 != 0) {
recyclerView.y(i, i4);
}
awakenScrollBars = recyclerView.awakenScrollBars();
if (!awakenScrollBars) {
recyclerView.invalidate();
}
boolean z3 = overScroller.isFinished() || (((overScroller.getCurrX() == overScroller.getFinalX()) || i7 != 0) && ((overScroller.getCurrY() == overScroller.getFinalY()) || i8 != 0));
X x4 = recyclerView.f3696n.f3887e;
if ((x4 == null || !x4.f3771d) && z3) {
if (recyclerView.getOverScrollMode() != 2) {
int currVelocity = (int) overScroller.getCurrVelocity();
int i9 = i7 < 0 ? -currVelocity : i7 > 0 ? currVelocity : 0;
if (i8 < 0) {
currVelocity = -currVelocity;
} else if (i8 <= 0) {
currVelocity = 0;
}
if (i9 < 0) {
recyclerView.A();
if (recyclerView.f3658I.isFinished()) {
recyclerView.f3658I.onAbsorb(-i9);
}
} else if (i9 > 0) {
recyclerView.B();
if (recyclerView.f3659K.isFinished()) {
recyclerView.f3659K.onAbsorb(i9);
}
}
if (currVelocity < 0) {
recyclerView.C();
if (recyclerView.J.isFinished()) {
recyclerView.J.onAbsorb(-currVelocity);
}
} else if (currVelocity > 0) {
recyclerView.z();
if (recyclerView.f3660L.isFinished()) {
recyclerView.f3660L.onAbsorb(currVelocity);
}
}
if (i9 != 0 || currVelocity != 0) {
WeakHashMap weakHashMap = O.X.f1226a;
recyclerView.postInvalidateOnAnimation();
}
}
if (RecyclerView.f3646G0) {
Z2.y yVar = recyclerView.f3685g0;
int[] iArr4 = (int[]) yVar.f2314d;
if (iArr4 != null) {
Arrays.fill(iArr4, -1);
}
yVar.f2313c = 0;
}
} else {
b();
E e4 = recyclerView.f3683f0;
if (e4 != null) {
e4.a(recyclerView, i, i4);
}
}
}
X x5 = recyclerView.f3696n.f3887e;
if (x5 != null && x5.f3771d) {
x5.g(0, 0);
}
this.f3548e = false;
if (!this.f3549f) {
recyclerView.setScrollState(0);
recyclerView.p0(1);
} else {
recyclerView.removeCallbacks(this);
WeakHashMap weakHashMap2 = O.X.f1226a;
recyclerView.postOnAnimation(this);
}
}
}

View File

@@ -0,0 +1,76 @@
package androidx.recyclerview.widget;
import android.graphics.Typeface;
import android.view.View;
import android.widget.TextView;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class I implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3551a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ int f3552b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ Object f3553c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ Object f3554d;
public /* synthetic */ I(Object obj, int i, int i4, Object obj2) {
this.f3551a = i4;
this.f3554d = obj;
this.f3553c = obj2;
this.f3552b = i;
}
@Override // java.lang.Runnable
public final void run() {
switch (this.f3551a) {
case 0:
N n4 = (N) this.f3554d;
RecyclerView recyclerView = n4.f3601r;
if (recyclerView == null || !recyclerView.f3705s) {
return;
}
H h = (H) this.f3553c;
if (h.f3539k) {
return;
}
I0 i02 = h.f3535e;
if (i02.getAbsoluteAdapterPosition() != -1) {
AbstractC0230m0 itemAnimator = n4.f3601r.getItemAnimator();
if (itemAnimator == null || !itemAnimator.f()) {
ArrayList arrayList = n4.p;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
if (((H) arrayList.get(i)).f3540l) {
}
}
n4.f3597m.onSwiped(i02, this.f3552b);
return;
}
n4.f3601r.post(this);
return;
}
return;
case 1:
((TextView) this.f3553c).setTypeface((Typeface) this.f3554d, this.f3552b);
return;
default:
((BottomSheetBehavior) this.f3554d).K((View) this.f3553c, this.f3552b, false);
return;
}
}
public I(TextView textView, Typeface typeface, int i) {
this.f3551a = 1;
this.f3553c = textView;
this.f3554d = typeface;
this.f3552b = i;
}
}

View File

@@ -0,0 +1,374 @@
package androidx.recyclerview.widget;
import android.util.Log;
import android.view.View;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public abstract class I0 {
static final int FLAG_ADAPTER_FULLUPDATE = 1024;
static final int FLAG_ADAPTER_POSITION_UNKNOWN = 512;
static final int FLAG_APPEARED_IN_PRE_LAYOUT = 4096;
static final int FLAG_BOUNCED_FROM_HIDDEN_LIST = 8192;
static final int FLAG_BOUND = 1;
static final int FLAG_IGNORE = 128;
static final int FLAG_INVALID = 4;
static final int FLAG_MOVED = 2048;
static final int FLAG_NOT_RECYCLABLE = 16;
static final int FLAG_REMOVED = 8;
static final int FLAG_RETURNED_FROM_SCRAP = 32;
static final int FLAG_TMP_DETACHED = 256;
static final int FLAG_UPDATE = 2;
private static final List<Object> FULLUPDATE_PAYLOADS = Collections.EMPTY_LIST;
static final int PENDING_ACCESSIBILITY_STATE_NOT_SET = -1;
public final View itemView;
AbstractC0220h0 mBindingAdapter;
int mFlags;
WeakReference<RecyclerView> mNestedRecyclerView;
RecyclerView mOwnerRecyclerView;
int mPosition = -1;
int mOldPosition = -1;
long mItemId = -1;
int mItemViewType = -1;
int mPreLayoutPosition = -1;
I0 mShadowedHolder = null;
I0 mShadowingHolder = null;
List<Object> mPayloads = null;
List<Object> mUnmodifiedPayloads = null;
private int mIsRecyclableCount = 0;
y0 mScrapContainer = null;
boolean mInChangeScrap = false;
private int mWasImportantForAccessibilityBeforeHidden = 0;
int mPendingAccessibilityState = -1;
public I0(View view) {
if (view == null) {
throw new IllegalArgumentException("itemView may not be null");
}
this.itemView = view;
}
public void addChangePayload(Object obj) {
if (obj == null) {
addFlags(1024);
return;
}
if ((1024 & this.mFlags) == 0) {
if (this.mPayloads == null) {
ArrayList arrayList = new ArrayList();
this.mPayloads = arrayList;
this.mUnmodifiedPayloads = Collections.unmodifiableList(arrayList);
}
this.mPayloads.add(obj);
}
}
public void addFlags(int i) {
this.mFlags = i | this.mFlags;
}
public void clearOldPosition() {
this.mOldPosition = -1;
this.mPreLayoutPosition = -1;
}
public void clearPayload() {
List<Object> list = this.mPayloads;
if (list != null) {
list.clear();
}
this.mFlags &= -1025;
}
public void clearReturnedFromScrapFlag() {
this.mFlags &= -33;
}
public void clearTmpDetachFlag() {
this.mFlags &= -257;
}
public boolean doesTransientStatePreventRecycling() {
if ((this.mFlags & 16) != 0) {
return false;
}
View view = this.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
return view.hasTransientState();
}
public void flagRemovedAndOffsetPosition(int i, int i4, boolean z3) {
addFlags(8);
offsetPosition(i4, z3);
this.mPosition = i;
}
public final int getAbsoluteAdapterPosition() {
RecyclerView recyclerView = this.mOwnerRecyclerView;
if (recyclerView == null) {
return -1;
}
return recyclerView.K(this);
}
@Deprecated
public final int getAdapterPosition() {
return getBindingAdapterPosition();
}
public final AbstractC0220h0 getBindingAdapter() {
return this.mBindingAdapter;
}
public final int getBindingAdapterPosition() {
RecyclerView recyclerView;
AbstractC0220h0 adapter;
int K3;
if (this.mBindingAdapter == null || (recyclerView = this.mOwnerRecyclerView) == null || (adapter = recyclerView.getAdapter()) == null || (K3 = this.mOwnerRecyclerView.K(this)) == -1) {
return -1;
}
return adapter.findRelativeAdapterPositionIn(this.mBindingAdapter, this, K3);
}
public final long getItemId() {
return this.mItemId;
}
public final int getItemViewType() {
return this.mItemViewType;
}
public final int getLayoutPosition() {
int i = this.mPreLayoutPosition;
return i == -1 ? this.mPosition : i;
}
public final int getOldPosition() {
return this.mOldPosition;
}
@Deprecated
public final int getPosition() {
int i = this.mPreLayoutPosition;
return i == -1 ? this.mPosition : i;
}
public List<Object> getUnmodifiedPayloads() {
if ((this.mFlags & 1024) != 0) {
return FULLUPDATE_PAYLOADS;
}
List<Object> list = this.mPayloads;
return (list == null || list.size() == 0) ? FULLUPDATE_PAYLOADS : this.mUnmodifiedPayloads;
}
public boolean hasAnyOfTheFlags(int i) {
return (this.mFlags & i) != 0;
}
public boolean isAdapterPositionUnknown() {
return (this.mFlags & 512) != 0 || isInvalid();
}
public boolean isAttachedToTransitionOverlay() {
return (this.itemView.getParent() == null || this.itemView.getParent() == this.mOwnerRecyclerView) ? false : true;
}
public boolean isBound() {
return (this.mFlags & 1) != 0;
}
public boolean isInvalid() {
return (this.mFlags & 4) != 0;
}
public final boolean isRecyclable() {
if ((this.mFlags & 16) != 0) {
return false;
}
View view = this.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
return !view.hasTransientState();
}
public boolean isRemoved() {
return (this.mFlags & 8) != 0;
}
public boolean isScrap() {
return this.mScrapContainer != null;
}
public boolean isTmpDetached() {
return (this.mFlags & FLAG_TMP_DETACHED) != 0;
}
public boolean isUpdated() {
return (this.mFlags & 2) != 0;
}
public boolean needsUpdate() {
return (this.mFlags & 2) != 0;
}
public void offsetPosition(int i, boolean z3) {
if (this.mOldPosition == -1) {
this.mOldPosition = this.mPosition;
}
if (this.mPreLayoutPosition == -1) {
this.mPreLayoutPosition = this.mPosition;
}
if (z3) {
this.mPreLayoutPosition += i;
}
this.mPosition += i;
if (this.itemView.getLayoutParams() != null) {
((C0239r0) this.itemView.getLayoutParams()).f3899c = true;
}
}
public void onEnteredHiddenState(RecyclerView recyclerView) {
int i = this.mPendingAccessibilityState;
if (i != -1) {
this.mWasImportantForAccessibilityBeforeHidden = i;
} else {
View view = this.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
this.mWasImportantForAccessibilityBeforeHidden = view.getImportantForAccessibility();
}
if (recyclerView.R()) {
this.mPendingAccessibilityState = 4;
recyclerView.f3710u0.add(this);
} else {
View view2 = this.itemView;
WeakHashMap weakHashMap2 = O.X.f1226a;
view2.setImportantForAccessibility(4);
}
}
public void onLeftHiddenState(RecyclerView recyclerView) {
int i = this.mWasImportantForAccessibilityBeforeHidden;
if (recyclerView.R()) {
this.mPendingAccessibilityState = i;
recyclerView.f3710u0.add(this);
} else {
View view = this.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
view.setImportantForAccessibility(i);
}
this.mWasImportantForAccessibilityBeforeHidden = 0;
}
public void resetInternal() {
if (RecyclerView.A0 && isTmpDetached()) {
throw new IllegalStateException("Attempting to reset temp-detached ViewHolder: " + this + ". ViewHolders should be fully detached before resetting.");
}
this.mFlags = 0;
this.mPosition = -1;
this.mOldPosition = -1;
this.mItemId = -1L;
this.mPreLayoutPosition = -1;
this.mIsRecyclableCount = 0;
this.mShadowedHolder = null;
this.mShadowingHolder = null;
clearPayload();
this.mWasImportantForAccessibilityBeforeHidden = 0;
this.mPendingAccessibilityState = -1;
RecyclerView.m(this);
}
public void saveOldPosition() {
if (this.mOldPosition == -1) {
this.mOldPosition = this.mPosition;
}
}
public void setFlags(int i, int i4) {
this.mFlags = (i & i4) | (this.mFlags & (~i4));
}
public final void setIsRecyclable(boolean z3) {
int i = this.mIsRecyclableCount;
int i4 = z3 ? i - 1 : i + 1;
this.mIsRecyclableCount = i4;
if (i4 < 0) {
this.mIsRecyclableCount = 0;
if (RecyclerView.A0) {
throw new RuntimeException("isRecyclable decremented below 0: unmatched pair of setIsRecyable() calls for " + this);
}
Log.e("View", "isRecyclable decremented below 0: unmatched pair of setIsRecyable() calls for " + this);
} else if (!z3 && i4 == 1) {
this.mFlags |= 16;
} else if (z3 && i4 == 0) {
this.mFlags &= -17;
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "setIsRecyclable val:" + z3 + ":" + this);
}
}
public void setScrapContainer(y0 y0Var, boolean z3) {
this.mScrapContainer = y0Var;
this.mInChangeScrap = z3;
}
public boolean shouldBeKeptAsChild() {
return (this.mFlags & 16) != 0;
}
public boolean shouldIgnore() {
return (this.mFlags & 128) != 0;
}
public void stopIgnoring() {
this.mFlags &= -129;
}
public String toString() {
StringBuilder sb = new StringBuilder((getClass().isAnonymousClass() ? "ViewHolder" : getClass().getSimpleName()) + "{" + Integer.toHexString(hashCode()) + " position=" + this.mPosition + " id=" + this.mItemId + ", oldPos=" + this.mOldPosition + ", pLpos:" + this.mPreLayoutPosition);
if (isScrap()) {
sb.append(" scrap ");
sb.append(this.mInChangeScrap ? "[changeScrap]" : "[attachedScrap]");
}
if (isInvalid()) {
sb.append(" invalid");
}
if (!isBound()) {
sb.append(" unbound");
}
if (needsUpdate()) {
sb.append(" update");
}
if (isRemoved()) {
sb.append(" removed");
}
if (shouldIgnore()) {
sb.append(" ignored");
}
if (isTmpDetached()) {
sb.append(" tmpDetached");
}
if (!isRecyclable()) {
sb.append(" not recyclable(" + this.mIsRecyclableCount + ")");
}
if (isAdapterPositionUnknown()) {
sb.append(" undefined adapter position");
}
if (this.itemView.getParent() == null) {
sb.append(" no parent");
}
sb.append("}");
return sb.toString();
}
public void unScrap() {
this.mScrapContainer.l(this);
}
public boolean wasReturnedFromScrap() {
return (this.mFlags & 32) != 0;
}
}

View File

@@ -0,0 +1,6 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.e, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0213e {
}

View File

@@ -0,0 +1,6 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.k0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0226k0 {
}

View File

@@ -0,0 +1,11 @@
package androidx.recyclerview.widget;
import android.view.View;
/* renamed from: androidx.recyclerview.widget.s0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0241s0 {
void a(View view);
void b(View view);
}

View File

@@ -0,0 +1,24 @@
package androidx.recyclerview.widget;
import android.view.animation.Interpolator;
/* loaded from: classes.dex */
public final class J implements Interpolator {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3555a;
@Override // android.animation.TimeInterpolator
public final float getInterpolation(float f2) {
switch (this.f3555a) {
case 0:
return f2 * f2 * f2 * f2 * f2;
case 1:
float f4 = f2 - 1.0f;
return (f4 * f4 * f4 * f4 * f4) + 1.0f;
default:
float f5 = f2 - 1.0f;
return (f5 * f5 * f5 * f5 * f5) + 1.0f;
}
}
}

View File

@@ -0,0 +1,125 @@
package androidx.recyclerview.widget;
import O.C0056b;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public final class J0 extends C0056b {
/* renamed from: d, reason: collision with root package name */
public final K0 f3556d;
/* renamed from: e, reason: collision with root package name */
public final WeakHashMap f3557e = new WeakHashMap();
public J0(K0 k02) {
this.f3556d = k02;
}
@Override // O.C0056b
public final boolean a(View view, AccessibilityEvent accessibilityEvent) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
return c0056b != null ? c0056b.a(view, accessibilityEvent) : this.f1232a.dispatchPopulateAccessibilityEvent(view, accessibilityEvent);
}
@Override // O.C0056b
public final A.a b(View view) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
return c0056b != null ? c0056b.b(view) : super.b(view);
}
@Override // O.C0056b
public final void c(View view, AccessibilityEvent accessibilityEvent) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
c0056b.c(view, accessibilityEvent);
} else {
super.c(view, accessibilityEvent);
}
}
@Override // O.C0056b
public final void d(View view, P.k kVar) {
K0 k02 = this.f3556d;
boolean Q3 = k02.f3558d.Q();
View.AccessibilityDelegate accessibilityDelegate = this.f1232a;
AccessibilityNodeInfo accessibilityNodeInfo = kVar.f1341a;
if (!Q3) {
RecyclerView recyclerView = k02.f3558d;
if (recyclerView.getLayoutManager() != null) {
recyclerView.getLayoutManager().a0(view, kVar);
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
c0056b.d(view, kVar);
return;
} else {
accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
return;
}
}
}
accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
}
@Override // O.C0056b
public final void e(View view, AccessibilityEvent accessibilityEvent) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
c0056b.e(view, accessibilityEvent);
} else {
super.e(view, accessibilityEvent);
}
}
@Override // O.C0056b
public final boolean f(ViewGroup viewGroup, View view, AccessibilityEvent accessibilityEvent) {
C0056b c0056b = (C0056b) this.f3557e.get(viewGroup);
return c0056b != null ? c0056b.f(viewGroup, view, accessibilityEvent) : this.f1232a.onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent);
}
@Override // O.C0056b
public final boolean g(View view, int i, Bundle bundle) {
K0 k02 = this.f3556d;
if (!k02.f3558d.Q()) {
RecyclerView recyclerView = k02.f3558d;
if (recyclerView.getLayoutManager() != null) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
if (c0056b.g(view, i, bundle)) {
return true;
}
} else if (super.g(view, i, bundle)) {
return true;
}
y0 y0Var = recyclerView.getLayoutManager().f3884b.f3676c;
return false;
}
}
return super.g(view, i, bundle);
}
@Override // O.C0056b
public final void h(View view, int i) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
c0056b.h(view, i);
} else {
super.h(view, i);
}
}
@Override // O.C0056b
public final void i(View view, AccessibilityEvent accessibilityEvent) {
C0056b c0056b = (C0056b) this.f3557e.get(view);
if (c0056b != null) {
c0056b.i(view, accessibilityEvent);
} else {
super.i(view, accessibilityEvent);
}
}
}

View File

@@ -0,0 +1,320 @@
package androidx.recyclerview.widget;
import android.annotation.SuppressLint;
import android.graphics.Canvas;
import android.view.View;
import android.view.animation.Interpolator;
import com.adif.elcanomovil.R;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.List;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public abstract class K {
private static final int ABS_HORIZONTAL_DIR_FLAGS = 789516;
public static final int DEFAULT_DRAG_ANIMATION_DURATION = 200;
public static final int DEFAULT_SWIPE_ANIMATION_DURATION = 250;
private static final long DRAG_SCROLL_ACCELERATION_LIMIT_TIME_MS = 2000;
static final int RELATIVE_DIR_FLAGS = 3158064;
private static final Interpolator sDragScrollInterpolator = new J(0);
private static final Interpolator sDragViewScrollCapInterpolator = new J(1);
private int mCachedMaxScrollSpeed = -1;
public static int convertToRelativeDirection(int i, int i4) {
int i5;
int i6 = i & ABS_HORIZONTAL_DIR_FLAGS;
if (i6 == 0) {
return i;
}
int i7 = i & (~i6);
if (i4 == 0) {
i5 = i6 << 2;
} else {
int i8 = i6 << 1;
i7 |= (-789517) & i8;
i5 = (i8 & ABS_HORIZONTAL_DIR_FLAGS) << 2;
}
return i7 | i5;
}
public static O getDefaultUIUtil() {
return P.f3615a;
}
public static int makeFlag(int i, int i4) {
return i4 << (i * 8);
}
public static int makeMovementFlags(int i, int i4) {
return makeFlag(2, i) | makeFlag(1, i4) | makeFlag(0, i4 | i);
}
public boolean canDropOver(RecyclerView recyclerView, I0 i02, I0 i03) {
return true;
}
@SuppressLint({"UnknownNullness"})
public I0 chooseDropTarget(I0 i02, List<I0> list, int i, int i4) {
int bottom;
int abs;
int top;
int abs2;
int left;
int abs3;
int right;
int abs4;
int width = i02.itemView.getWidth() + i;
int height = i02.itemView.getHeight() + i4;
int left2 = i - i02.itemView.getLeft();
int top2 = i4 - i02.itemView.getTop();
int size = list.size();
I0 i03 = null;
int i5 = -1;
for (int i6 = 0; i6 < size; i6++) {
I0 i04 = list.get(i6);
if (left2 > 0 && (right = i04.itemView.getRight() - width) < 0 && i04.itemView.getRight() > i02.itemView.getRight() && (abs4 = Math.abs(right)) > i5) {
i03 = i04;
i5 = abs4;
}
if (left2 < 0 && (left = i04.itemView.getLeft() - i) > 0 && i04.itemView.getLeft() < i02.itemView.getLeft() && (abs3 = Math.abs(left)) > i5) {
i03 = i04;
i5 = abs3;
}
if (top2 < 0 && (top = i04.itemView.getTop() - i4) > 0 && i04.itemView.getTop() < i02.itemView.getTop() && (abs2 = Math.abs(top)) > i5) {
i03 = i04;
i5 = abs2;
}
if (top2 > 0 && (bottom = i04.itemView.getBottom() - height) < 0 && i04.itemView.getBottom() > i02.itemView.getBottom() && (abs = Math.abs(bottom)) > i5) {
i03 = i04;
i5 = abs;
}
}
return i03;
}
public void clearView(RecyclerView recyclerView, I0 i02) {
View view = i02.itemView;
Object tag = view.getTag(R.id.item_touch_helper_previous_elevation);
if (tag instanceof Float) {
float floatValue = ((Float) tag).floatValue();
WeakHashMap weakHashMap = O.X.f1226a;
O.L.s(view, floatValue);
}
view.setTag(R.id.item_touch_helper_previous_elevation, null);
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
}
public int convertToAbsoluteDirection(int i, int i4) {
int i5;
int i6 = i & RELATIVE_DIR_FLAGS;
if (i6 == 0) {
return i;
}
int i7 = i & (~i6);
if (i4 == 0) {
i5 = i6 >> 2;
} else {
int i8 = i6 >> 1;
i7 |= (-3158065) & i8;
i5 = (RELATIVE_DIR_FLAGS & i8) >> 2;
}
return i5 | i7;
}
public final int getAbsoluteMovementFlags(RecyclerView recyclerView, I0 i02) {
int movementFlags = getMovementFlags(recyclerView, i02);
WeakHashMap weakHashMap = O.X.f1226a;
return convertToAbsoluteDirection(movementFlags, recyclerView.getLayoutDirection());
}
public long getAnimationDuration(RecyclerView recyclerView, int i, float f2, float f4) {
AbstractC0230m0 itemAnimator = recyclerView.getItemAnimator();
return itemAnimator == null ? i == 8 ? 200L : 250L : i == 8 ? itemAnimator.f3849e : itemAnimator.f3848d;
}
public int getBoundingBoxMargin() {
return 0;
}
public float getMoveThreshold(I0 i02) {
return 0.5f;
}
public abstract int getMovementFlags(RecyclerView recyclerView, I0 i02);
public float getSwipeEscapeVelocity(float f2) {
return f2;
}
public float getSwipeThreshold(I0 i02) {
return 0.5f;
}
public float getSwipeVelocityThreshold(float f2) {
return f2;
}
public boolean hasDragFlag(RecyclerView recyclerView, I0 i02) {
return (getAbsoluteMovementFlags(recyclerView, i02) & 16711680) != 0;
}
public boolean hasSwipeFlag(RecyclerView recyclerView, I0 i02) {
return (getAbsoluteMovementFlags(recyclerView, i02) & 65280) != 0;
}
public int interpolateOutOfBoundsScroll(RecyclerView recyclerView, int i, int i4, int i5, long j4) {
if (this.mCachedMaxScrollSpeed == -1) {
this.mCachedMaxScrollSpeed = recyclerView.getResources().getDimensionPixelSize(R.dimen.item_touch_helper_max_drag_scroll_per_frame);
}
int interpolation = (int) (sDragScrollInterpolator.getInterpolation(j4 <= DRAG_SCROLL_ACCELERATION_LIMIT_TIME_MS ? ((float) j4) / 2000.0f : 1.0f) * ((int) (sDragViewScrollCapInterpolator.getInterpolation(Math.min(1.0f, (Math.abs(i4) * 1.0f) / i)) * ((int) Math.signum(i4)) * this.mCachedMaxScrollSpeed)));
return interpolation == 0 ? i4 > 0 ? 1 : -1 : interpolation;
}
public boolean isItemViewSwipeEnabled() {
return true;
}
public boolean isLongPressDragEnabled() {
return true;
}
public void onChildDraw(Canvas canvas, RecyclerView recyclerView, I0 i02, float f2, float f4, int i, boolean z3) {
View view = i02.itemView;
if (z3 && view.getTag(R.id.item_touch_helper_previous_elevation) == null) {
WeakHashMap weakHashMap = O.X.f1226a;
Float valueOf = Float.valueOf(O.L.i(view));
int childCount = recyclerView.getChildCount();
float f5 = BitmapDescriptorFactory.HUE_RED;
for (int i4 = 0; i4 < childCount; i4++) {
View childAt = recyclerView.getChildAt(i4);
if (childAt != view) {
WeakHashMap weakHashMap2 = O.X.f1226a;
float i5 = O.L.i(childAt);
if (i5 > f5) {
f5 = i5;
}
}
}
O.L.s(view, f5 + 1.0f);
view.setTag(R.id.item_touch_helper_previous_elevation, valueOf);
}
view.setTranslationX(f2);
view.setTranslationY(f4);
}
public void onChildDrawOver(Canvas canvas, RecyclerView recyclerView, @SuppressLint({"UnknownNullness"}) I0 i02, float f2, float f4, int i, boolean z3) {
View view = i02.itemView;
}
public void onDraw(Canvas canvas, RecyclerView recyclerView, I0 i02, List<H> list, int i, float f2, float f4) {
int size = list.size();
for (int i4 = 0; i4 < size; i4++) {
H h = list.get(i4);
float f5 = h.f3531a;
float f6 = h.f3533c;
I0 i03 = h.f3535e;
if (f5 == f6) {
h.i = i03.itemView.getTranslationX();
} else {
h.i = com.google.android.gms.measurement.internal.a.a(f6, f5, h.f3541m, f5);
}
float f7 = h.f3532b;
float f8 = h.f3534d;
if (f7 == f8) {
h.f3538j = i03.itemView.getTranslationY();
} else {
h.f3538j = com.google.android.gms.measurement.internal.a.a(f8, f7, h.f3541m, f7);
}
int save = canvas.save();
onChildDraw(canvas, recyclerView, h.f3535e, h.i, h.f3538j, h.f3536f, false);
canvas.restoreToCount(save);
}
if (i02 != null) {
int save2 = canvas.save();
onChildDraw(canvas, recyclerView, i02, f2, f4, i, true);
canvas.restoreToCount(save2);
}
}
public void onDrawOver(Canvas canvas, RecyclerView recyclerView, I0 i02, List<H> list, int i, float f2, float f4) {
int size = list.size();
boolean z3 = false;
for (int i4 = 0; i4 < size; i4++) {
H h = list.get(i4);
int save = canvas.save();
onChildDrawOver(canvas, recyclerView, h.f3535e, h.i, h.f3538j, h.f3536f, false);
canvas.restoreToCount(save);
}
if (i02 != null) {
int save2 = canvas.save();
onChildDrawOver(canvas, recyclerView, i02, f2, f4, i, true);
canvas.restoreToCount(save2);
}
for (int i5 = size - 1; i5 >= 0; i5--) {
H h4 = list.get(i5);
boolean z4 = h4.f3540l;
if (z4 && !h4.h) {
list.remove(i5);
} else if (!z4) {
z3 = true;
}
}
if (z3) {
recyclerView.invalidate();
}
}
public void onMoved(RecyclerView recyclerView, I0 i02, int i, I0 i03, int i4, int i5, int i6) {
AbstractC0238q0 layoutManager = recyclerView.getLayoutManager();
if (!(layoutManager instanceof LinearLayoutManager)) {
if (layoutManager.d()) {
if (AbstractC0238q0.A(i03.itemView) <= recyclerView.getPaddingLeft()) {
recyclerView.j0(i4);
}
if (AbstractC0238q0.D(i03.itemView) >= recyclerView.getWidth() - recyclerView.getPaddingRight()) {
recyclerView.j0(i4);
}
}
if (layoutManager.e()) {
if (AbstractC0238q0.E(i03.itemView) <= recyclerView.getPaddingTop()) {
recyclerView.j0(i4);
}
if (AbstractC0238q0.y(i03.itemView) >= recyclerView.getHeight() - recyclerView.getPaddingBottom()) {
recyclerView.j0(i4);
return;
}
return;
}
return;
}
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) layoutManager;
View view = i02.itemView;
View view2 = i03.itemView;
linearLayoutManager.c("Cannot drop a view during a scroll or layout calculation");
linearLayoutManager.O0();
linearLayoutManager.g1();
int L3 = AbstractC0238q0.L(view);
int L4 = AbstractC0238q0.L(view2);
char c4 = L3 < L4 ? (char) 1 : (char) 65535;
if (linearLayoutManager.f3572u) {
if (c4 == 1) {
linearLayoutManager.i1(L4, linearLayoutManager.f3569r.g() - (linearLayoutManager.f3569r.c(view) + linearLayoutManager.f3569r.e(view2)));
return;
} else {
linearLayoutManager.i1(L4, linearLayoutManager.f3569r.g() - linearLayoutManager.f3569r.b(view2));
return;
}
}
if (c4 == 65535) {
linearLayoutManager.i1(L4, linearLayoutManager.f3569r.e(view2));
} else {
linearLayoutManager.i1(L4, linearLayoutManager.f3569r.b(view2) - linearLayoutManager.f3569r.c(view));
}
}
public void onSelectedChanged(I0 i02, int i) {
}
public abstract void onSwiped(I0 i02, int i);
}

View File

@@ -0,0 +1,64 @@
package androidx.recyclerview.widget;
import O.C0056b;
import android.os.Bundle;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
/* loaded from: classes.dex */
public final class K0 extends C0056b {
/* renamed from: d, reason: collision with root package name */
public final RecyclerView f3558d;
/* renamed from: e, reason: collision with root package name */
public final J0 f3559e;
public K0(RecyclerView recyclerView) {
this.f3558d = recyclerView;
J0 j02 = this.f3559e;
if (j02 != null) {
this.f3559e = j02;
} else {
this.f3559e = new J0(this);
}
}
@Override // O.C0056b
public final void c(View view, AccessibilityEvent accessibilityEvent) {
super.c(view, accessibilityEvent);
if (!(view instanceof RecyclerView) || this.f3558d.Q()) {
return;
}
RecyclerView recyclerView = (RecyclerView) view;
if (recyclerView.getLayoutManager() != null) {
recyclerView.getLayoutManager().Y(accessibilityEvent);
}
}
@Override // O.C0056b
public final void d(View view, P.k kVar) {
this.f1232a.onInitializeAccessibilityNodeInfo(view, kVar.f1341a);
RecyclerView recyclerView = this.f3558d;
if (recyclerView.Q() || recyclerView.getLayoutManager() == null) {
return;
}
AbstractC0238q0 layoutManager = recyclerView.getLayoutManager();
RecyclerView recyclerView2 = layoutManager.f3884b;
layoutManager.Z(recyclerView2.f3676c, recyclerView2.f3686h0, kVar);
}
@Override // O.C0056b
public final boolean g(View view, int i, Bundle bundle) {
if (super.g(view, i, bundle)) {
return true;
}
RecyclerView recyclerView = this.f3558d;
if (recyclerView.Q() || recyclerView.getLayoutManager() == null) {
return false;
}
AbstractC0238q0 layoutManager = recyclerView.getLayoutManager();
RecyclerView recyclerView2 = layoutManager.f3884b;
return layoutManager.m0(recyclerView2.f3676c, recyclerView2.f3686h0, i, bundle);
}
}

View File

@@ -0,0 +1,48 @@
package androidx.recyclerview.widget;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes.dex */
public final class L extends GestureDetector.SimpleOnGestureListener {
/* renamed from: a, reason: collision with root package name */
public boolean f3560a = true;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ N f3561b;
public L(N n4) {
this.f3561b = n4;
}
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
public final boolean onDown(MotionEvent motionEvent) {
return true;
}
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
public final void onLongPress(MotionEvent motionEvent) {
N n4;
View g4;
I0 M3;
if (this.f3560a && (g4 = (n4 = this.f3561b).g(motionEvent)) != null && (M3 = n4.f3601r.M(g4)) != null && n4.f3597m.hasDragFlag(n4.f3601r, M3)) {
int pointerId = motionEvent.getPointerId(0);
int i = n4.f3596l;
if (pointerId == i) {
int findPointerIndex = motionEvent.findPointerIndex(i);
float x3 = motionEvent.getX(findPointerIndex);
float y3 = motionEvent.getY(findPointerIndex);
n4.f3590d = x3;
n4.f3591e = y3;
n4.i = BitmapDescriptorFactory.HUE_RED;
n4.h = BitmapDescriptorFactory.HUE_RED;
if (n4.f3597m.isLongPressDragEnabled()) {
n4.l(M3, 2);
}
}
}
}
}

View File

@@ -0,0 +1,31 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class L0 extends v0 {
/* renamed from: a, reason: collision with root package name */
public boolean f3562a = false;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0212d0 f3563b;
public L0(C0212d0 c0212d0) {
this.f3563b = c0212d0;
}
@Override // androidx.recyclerview.widget.v0
public final void onScrollStateChanged(RecyclerView recyclerView, int i) {
if (i == 0 && this.f3562a) {
this.f3562a = false;
this.f3563b.h();
}
}
@Override // androidx.recyclerview.widget.v0
public final void onScrolled(RecyclerView recyclerView, int i, int i4) {
if (i == 0 && i4 == 0) {
return;
}
this.f3562a = true;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public abstract class M extends K {
private int mDefaultSwipeDirs = 4;
private int mDefaultDragDirs = 0;
public int getDragDirs(RecyclerView recyclerView, I0 i02) {
return this.mDefaultDragDirs;
}
public int getSwipeDirs(RecyclerView recyclerView, I0 i02) {
return this.mDefaultSwipeDirs;
}
public void setDefaultDragDirs(int i) {
this.mDefaultDragDirs = i;
}
public void setDefaultSwipeDirs(int i) {
this.mDefaultSwipeDirs = i;
}
}

View File

@@ -0,0 +1,46 @@
package androidx.recyclerview.widget;
import java.util.Arrays;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class M0 {
/* renamed from: a, reason: collision with root package name */
public int f3578a;
/* renamed from: b, reason: collision with root package name */
public int f3579b;
/* renamed from: c, reason: collision with root package name */
public boolean f3580c;
/* renamed from: d, reason: collision with root package name */
public boolean f3581d;
/* renamed from: e, reason: collision with root package name */
public boolean f3582e;
/* renamed from: f, reason: collision with root package name */
public int[] f3583f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ StaggeredGridLayoutManager f3584g;
public M0(StaggeredGridLayoutManager staggeredGridLayoutManager) {
this.f3584g = staggeredGridLayoutManager;
a();
}
public final void a() {
this.f3578a = -1;
this.f3579b = IntCompanionObject.MIN_VALUE;
this.f3580c = false;
this.f3581d = false;
this.f3582e = false;
int[] iArr = this.f3583f;
if (iArr != null) {
Arrays.fill(iArr, -1);
}
}
}

View File

@@ -0,0 +1,469 @@
package androidx.recyclerview.widget;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import com.adif.elcanomovil.uiSubscriptions.home.SubscriptionHomeFragment$prepareRecycler$swipeHandler$1;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class N extends AbstractC0232n0 implements InterfaceC0241s0 {
/* renamed from: A, reason: collision with root package name */
public Rect f3585A;
/* renamed from: B, reason: collision with root package name */
public long f3586B;
/* renamed from: d, reason: collision with root package name */
public float f3590d;
/* renamed from: e, reason: collision with root package name */
public float f3591e;
/* renamed from: f, reason: collision with root package name */
public float f3592f;
/* renamed from: g, reason: collision with root package name */
public float f3593g;
public float h;
public float i;
/* renamed from: j, reason: collision with root package name */
public float f3594j;
/* renamed from: k, reason: collision with root package name */
public float f3595k;
/* renamed from: m, reason: collision with root package name */
public final SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 f3597m;
/* renamed from: o, reason: collision with root package name */
public int f3599o;
/* renamed from: q, reason: collision with root package name */
public int f3600q;
/* renamed from: r, reason: collision with root package name */
public RecyclerView f3601r;
/* renamed from: t, reason: collision with root package name */
public VelocityTracker f3603t;
/* renamed from: u, reason: collision with root package name */
public ArrayList f3604u;
/* renamed from: v, reason: collision with root package name */
public ArrayList f3605v;
/* renamed from: x, reason: collision with root package name */
public A.a f3607x;
/* renamed from: y, reason: collision with root package name */
public L f3608y;
/* renamed from: a, reason: collision with root package name */
public final ArrayList f3587a = new ArrayList();
/* renamed from: b, reason: collision with root package name */
public final float[] f3588b = new float[2];
/* renamed from: c, reason: collision with root package name */
public I0 f3589c = null;
/* renamed from: l, reason: collision with root package name */
public int f3596l = -1;
/* renamed from: n, reason: collision with root package name */
public int f3598n = 0;
public final ArrayList p = new ArrayList();
/* renamed from: s, reason: collision with root package name */
public final RunnableC0247y f3602s = new RunnableC0247y(this, 1);
/* renamed from: w, reason: collision with root package name */
public View f3606w = null;
/* renamed from: z, reason: collision with root package name */
public final G f3609z = new G(this);
public N(SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 subscriptionHomeFragment$prepareRecycler$swipeHandler$1) {
this.f3597m = subscriptionHomeFragment$prepareRecycler$swipeHandler$1;
}
public static boolean i(View view, float f2, float f4, float f5, float f6) {
return f2 >= f5 && f2 <= f5 + ((float) view.getWidth()) && f4 >= f6 && f4 <= f6 + ((float) view.getHeight());
}
@Override // androidx.recyclerview.widget.InterfaceC0241s0
public final void a(View view) {
}
@Override // androidx.recyclerview.widget.InterfaceC0241s0
public final void b(View view) {
k(view);
I0 M3 = this.f3601r.M(view);
if (M3 == null) {
return;
}
I0 i02 = this.f3589c;
if (i02 != null && M3 == i02) {
l(null, 0);
return;
}
f(M3, false);
if (this.f3587a.remove(M3.itemView)) {
this.f3597m.clearView(this.f3601r, M3);
}
}
public final int c(I0 i02, int i) {
if ((i & 12) == 0) {
return 0;
}
int i4 = this.h > BitmapDescriptorFactory.HUE_RED ? 8 : 4;
VelocityTracker velocityTracker = this.f3603t;
SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 subscriptionHomeFragment$prepareRecycler$swipeHandler$1 = this.f3597m;
if (velocityTracker != null && this.f3596l > -1) {
velocityTracker.computeCurrentVelocity(1000, subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeVelocityThreshold(this.f3593g));
float xVelocity = this.f3603t.getXVelocity(this.f3596l);
float yVelocity = this.f3603t.getYVelocity(this.f3596l);
int i5 = xVelocity > BitmapDescriptorFactory.HUE_RED ? 8 : 4;
float abs = Math.abs(xVelocity);
if ((i5 & i) != 0 && i4 == i5 && abs >= subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeEscapeVelocity(this.f3592f) && abs > Math.abs(yVelocity)) {
return i5;
}
}
float swipeThreshold = subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeThreshold(i02) * this.f3601r.getWidth();
if ((i & i4) == 0 || Math.abs(this.h) <= swipeThreshold) {
return 0;
}
return i4;
}
public final void d(int i, int i4, MotionEvent motionEvent) {
int absoluteMovementFlags;
View g4;
if (this.f3589c == null && i == 2 && this.f3598n != 2) {
SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 subscriptionHomeFragment$prepareRecycler$swipeHandler$1 = this.f3597m;
if (subscriptionHomeFragment$prepareRecycler$swipeHandler$1.isItemViewSwipeEnabled() && this.f3601r.getScrollState() != 1) {
AbstractC0238q0 layoutManager = this.f3601r.getLayoutManager();
int i5 = this.f3596l;
I0 i02 = null;
if (i5 != -1) {
int findPointerIndex = motionEvent.findPointerIndex(i5);
float x3 = motionEvent.getX(findPointerIndex) - this.f3590d;
float y3 = motionEvent.getY(findPointerIndex) - this.f3591e;
float abs = Math.abs(x3);
float abs2 = Math.abs(y3);
float f2 = this.f3600q;
if ((abs >= f2 || abs2 >= f2) && ((abs <= abs2 || !layoutManager.d()) && ((abs2 <= abs || !layoutManager.e()) && (g4 = g(motionEvent)) != null))) {
i02 = this.f3601r.M(g4);
}
}
if (i02 == null || (absoluteMovementFlags = (subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getAbsoluteMovementFlags(this.f3601r, i02) & 65280) >> 8) == 0) {
return;
}
float x4 = motionEvent.getX(i4);
float y4 = motionEvent.getY(i4);
float f4 = x4 - this.f3590d;
float f5 = y4 - this.f3591e;
float abs3 = Math.abs(f4);
float abs4 = Math.abs(f5);
float f6 = this.f3600q;
if (abs3 >= f6 || abs4 >= f6) {
if (abs3 > abs4) {
if (f4 < BitmapDescriptorFactory.HUE_RED && (absoluteMovementFlags & 4) == 0) {
return;
}
if (f4 > BitmapDescriptorFactory.HUE_RED && (absoluteMovementFlags & 8) == 0) {
return;
}
} else {
if (f5 < BitmapDescriptorFactory.HUE_RED && (absoluteMovementFlags & 1) == 0) {
return;
}
if (f5 > BitmapDescriptorFactory.HUE_RED && (absoluteMovementFlags & 2) == 0) {
return;
}
}
this.i = BitmapDescriptorFactory.HUE_RED;
this.h = BitmapDescriptorFactory.HUE_RED;
this.f3596l = motionEvent.getPointerId(0);
l(i02, 1);
}
}
}
}
public final int e(I0 i02, int i) {
if ((i & 3) == 0) {
return 0;
}
int i4 = this.i > BitmapDescriptorFactory.HUE_RED ? 2 : 1;
VelocityTracker velocityTracker = this.f3603t;
SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 subscriptionHomeFragment$prepareRecycler$swipeHandler$1 = this.f3597m;
if (velocityTracker != null && this.f3596l > -1) {
velocityTracker.computeCurrentVelocity(1000, subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeVelocityThreshold(this.f3593g));
float xVelocity = this.f3603t.getXVelocity(this.f3596l);
float yVelocity = this.f3603t.getYVelocity(this.f3596l);
int i5 = yVelocity > BitmapDescriptorFactory.HUE_RED ? 2 : 1;
float abs = Math.abs(yVelocity);
if ((i5 & i) != 0 && i5 == i4 && abs >= subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeEscapeVelocity(this.f3592f) && abs > Math.abs(xVelocity)) {
return i5;
}
}
float swipeThreshold = subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getSwipeThreshold(i02) * this.f3601r.getHeight();
if ((i & i4) == 0 || Math.abs(this.i) <= swipeThreshold) {
return 0;
}
return i4;
}
public final void f(I0 i02, boolean z3) {
ArrayList arrayList = this.p;
for (int size = arrayList.size() - 1; size >= 0; size--) {
H h = (H) arrayList.get(size);
if (h.f3535e == i02) {
h.f3539k |= z3;
if (!h.f3540l) {
h.f3537g.cancel();
}
arrayList.remove(size);
return;
}
}
}
public final View g(MotionEvent motionEvent) {
float x3 = motionEvent.getX();
float y3 = motionEvent.getY();
I0 i02 = this.f3589c;
if (i02 != null) {
View view = i02.itemView;
if (i(view, x3, y3, this.f3594j + this.h, this.f3595k + this.i)) {
return view;
}
}
ArrayList arrayList = this.p;
for (int size = arrayList.size() - 1; size >= 0; size--) {
H h = (H) arrayList.get(size);
View view2 = h.f3535e.itemView;
if (i(view2, x3, y3, h.i, h.f3538j)) {
return view2;
}
}
RecyclerView recyclerView = this.f3601r;
for (int e4 = recyclerView.f3682f.e() - 1; e4 >= 0; e4--) {
View d4 = recyclerView.f3682f.d(e4);
float translationX = d4.getTranslationX();
float translationY = d4.getTranslationY();
if (x3 >= d4.getLeft() + translationX && x3 <= d4.getRight() + translationX && y3 >= d4.getTop() + translationY && y3 <= d4.getBottom() + translationY) {
return d4;
}
}
return null;
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void getItemOffsets(Rect rect, View view, RecyclerView recyclerView, E0 e02) {
rect.setEmpty();
}
public final void h(float[] fArr) {
if ((this.f3599o & 12) != 0) {
fArr[0] = (this.f3594j + this.h) - this.f3589c.itemView.getLeft();
} else {
fArr[0] = this.f3589c.itemView.getTranslationX();
}
if ((this.f3599o & 3) != 0) {
fArr[1] = (this.f3595k + this.i) - this.f3589c.itemView.getTop();
} else {
fArr[1] = this.f3589c.itemView.getTranslationY();
}
}
public final void j(I0 i02) {
int i;
int i4;
int i5;
if (this.f3601r.isLayoutRequested()) {
return;
}
char c4 = 2;
if (this.f3598n != 2) {
return;
}
SubscriptionHomeFragment$prepareRecycler$swipeHandler$1 subscriptionHomeFragment$prepareRecycler$swipeHandler$1 = this.f3597m;
float moveThreshold = subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getMoveThreshold(i02);
int i6 = (int) (this.f3594j + this.h);
int i7 = (int) (this.f3595k + this.i);
if (Math.abs(i7 - i02.itemView.getTop()) >= i02.itemView.getHeight() * moveThreshold || Math.abs(i6 - i02.itemView.getLeft()) >= i02.itemView.getWidth() * moveThreshold) {
ArrayList arrayList = this.f3604u;
if (arrayList == null) {
this.f3604u = new ArrayList();
this.f3605v = new ArrayList();
} else {
arrayList.clear();
this.f3605v.clear();
}
int boundingBoxMargin = subscriptionHomeFragment$prepareRecycler$swipeHandler$1.getBoundingBoxMargin();
int round = Math.round(this.f3594j + this.h) - boundingBoxMargin;
int round2 = Math.round(this.f3595k + this.i) - boundingBoxMargin;
int i8 = boundingBoxMargin * 2;
int width = i02.itemView.getWidth() + round + i8;
int height = i02.itemView.getHeight() + round2 + i8;
int i9 = (round + width) / 2;
int i10 = (round2 + height) / 2;
AbstractC0238q0 layoutManager = this.f3601r.getLayoutManager();
int v3 = layoutManager.v();
int i11 = 0;
while (i11 < v3) {
char c5 = c4;
View u3 = layoutManager.u(i11);
if (u3 != i02.itemView && u3.getBottom() >= round2 && u3.getTop() <= height && u3.getRight() >= round && u3.getLeft() <= width) {
I0 M3 = this.f3601r.M(u3);
i = i9;
if (subscriptionHomeFragment$prepareRecycler$swipeHandler$1.canDropOver(this.f3601r, this.f3589c, M3)) {
int abs = Math.abs(i - ((u3.getRight() + u3.getLeft()) / 2));
int abs2 = Math.abs(i10 - ((u3.getBottom() + u3.getTop()) / 2));
int i12 = (abs2 * abs2) + (abs * abs);
int size = this.f3604u.size();
i4 = round;
i5 = round2;
int i13 = 0;
int i14 = 0;
while (i13 < size) {
int i15 = size;
if (i12 <= ((Integer) this.f3605v.get(i13)).intValue()) {
break;
}
i14++;
i13++;
size = i15;
}
this.f3604u.add(i14, M3);
this.f3605v.add(i14, Integer.valueOf(i12));
i11++;
c4 = c5;
round = i4;
i9 = i;
round2 = i5;
}
} else {
i = i9;
}
i4 = round;
i5 = round2;
i11++;
c4 = c5;
round = i4;
i9 = i;
round2 = i5;
}
ArrayList arrayList2 = this.f3604u;
if (arrayList2.size() == 0) {
return;
}
I0 chooseDropTarget = subscriptionHomeFragment$prepareRecycler$swipeHandler$1.chooseDropTarget(i02, arrayList2, i6, i7);
if (chooseDropTarget == null) {
this.f3604u.clear();
this.f3605v.clear();
return;
}
int absoluteAdapterPosition = chooseDropTarget.getAbsoluteAdapterPosition();
int absoluteAdapterPosition2 = i02.getAbsoluteAdapterPosition();
if (subscriptionHomeFragment$prepareRecycler$swipeHandler$1.onMove(this.f3601r, i02, chooseDropTarget)) {
this.f3597m.onMoved(this.f3601r, i02, absoluteAdapterPosition2, chooseDropTarget, absoluteAdapterPosition, i6, i7);
}
}
}
public final void k(View view) {
if (view == this.f3606w) {
this.f3606w = null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:67:0x0092, code lost:
if (r8 > 0) goto L43;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:21:0x00b3 */
/* JADX WARN: Removed duplicated region for block: B:24:0x00bc A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:33:0x00f3 */
/* JADX WARN: Removed duplicated region for block: B:51:0x00f5 */
/* JADX WARN: Type inference failed for: r16v0 */
/* JADX WARN: Type inference failed for: r16v1 */
/* JADX WARN: Type inference failed for: r16v2 */
/* JADX WARN: Type inference failed for: r16v3 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void l(androidx.recyclerview.widget.I0 r22, int r23) {
/*
Method dump skipped, instructions count: 417
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.N.l(androidx.recyclerview.widget.I0, int):void");
}
public final void m(int i, int i4, MotionEvent motionEvent) {
float x3 = motionEvent.getX(i4);
float y3 = motionEvent.getY(i4);
float f2 = x3 - this.f3590d;
this.h = f2;
this.i = y3 - this.f3591e;
if ((i & 4) == 0) {
this.h = Math.max(BitmapDescriptorFactory.HUE_RED, f2);
}
if ((i & 8) == 0) {
this.h = Math.min(BitmapDescriptorFactory.HUE_RED, this.h);
}
if ((i & 1) == 0) {
this.i = Math.max(BitmapDescriptorFactory.HUE_RED, this.i);
}
if ((i & 2) == 0) {
this.i = Math.min(BitmapDescriptorFactory.HUE_RED, this.i);
}
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void onDraw(Canvas canvas, RecyclerView recyclerView, E0 e02) {
float f2;
float f4;
if (this.f3589c != null) {
float[] fArr = this.f3588b;
h(fArr);
float f5 = fArr[0];
f4 = fArr[1];
f2 = f5;
} else {
f2 = 0.0f;
f4 = 0.0f;
}
this.f3597m.onDraw(canvas, recyclerView, this.f3589c, this.p, this.f3598n, f2, f4);
}
@Override // androidx.recyclerview.widget.AbstractC0232n0
public final void onDrawOver(Canvas canvas, RecyclerView recyclerView, E0 e02) {
float f2;
float f4;
if (this.f3589c != null) {
float[] fArr = this.f3588b;
h(fArr);
float f5 = fArr[0];
f4 = fArr[1];
f2 = f5;
} else {
f2 = 0.0f;
f4 = 0.0f;
}
this.f3597m.onDrawOver(canvas, recyclerView, this.f3589c, this.p, this.f3598n, f2, f4);
}
}

View File

@@ -0,0 +1,8 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class N0 extends C0239r0 {
/* renamed from: e, reason: collision with root package name */
public Q0 f3610e;
}

View File

@@ -0,0 +1,5 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public interface O {
}

View File

@@ -0,0 +1,45 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
/* loaded from: classes.dex */
public final class O0 implements Parcelable {
public static final Parcelable.Creator<O0> CREATOR = new V(1);
/* renamed from: a, reason: collision with root package name */
public int f3611a;
/* renamed from: b, reason: collision with root package name */
public int f3612b;
/* renamed from: c, reason: collision with root package name */
public int[] f3613c;
/* renamed from: d, reason: collision with root package name */
public boolean f3614d;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
public final String toString() {
return "FullSpanItem{mPosition=" + this.f3611a + ", mGapDir=" + this.f3612b + ", mHasUnwantedGapAfter=" + this.f3614d + ", mGapPerSpan=" + Arrays.toString(this.f3613c) + '}';
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.f3611a);
parcel.writeInt(this.f3612b);
parcel.writeInt(this.f3614d ? 1 : 0);
int[] iArr = this.f3613c;
if (iArr == null || iArr.length <= 0) {
parcel.writeInt(0);
} else {
parcel.writeInt(iArr.length);
parcel.writeIntArray(this.f3613c);
}
}
}

View File

@@ -0,0 +1,8 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class P implements O {
/* renamed from: a, reason: collision with root package name */
public static final P f3615a = new Object();
}

View File

@@ -0,0 +1,59 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class P0 implements Parcelable {
public static final Parcelable.Creator<P0> CREATOR = new V(2);
/* renamed from: a, reason: collision with root package name */
public int f3616a;
/* renamed from: b, reason: collision with root package name */
public int f3617b;
/* renamed from: c, reason: collision with root package name */
public int f3618c;
/* renamed from: d, reason: collision with root package name */
public int[] f3619d;
/* renamed from: e, reason: collision with root package name */
public int f3620e;
/* renamed from: f, reason: collision with root package name */
public int[] f3621f;
/* renamed from: g, reason: collision with root package name */
public ArrayList f3622g;
public boolean h;
public boolean i;
/* renamed from: j, reason: collision with root package name */
public boolean f3623j;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.f3616a);
parcel.writeInt(this.f3617b);
parcel.writeInt(this.f3618c);
if (this.f3618c > 0) {
parcel.writeIntArray(this.f3619d);
}
parcel.writeInt(this.f3620e);
if (this.f3620e > 0) {
parcel.writeIntArray(this.f3621f);
}
parcel.writeInt(this.h ? 1 : 0);
parcel.writeInt(this.i ? 1 : 0);
parcel.writeInt(this.f3623j ? 1 : 0);
parcel.writeList(this.f3622g);
}
}

View File

@@ -0,0 +1,43 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class Q {
/* renamed from: a, reason: collision with root package name */
public boolean f3624a;
/* renamed from: b, reason: collision with root package name */
public int f3625b;
/* renamed from: c, reason: collision with root package name */
public int f3626c;
/* renamed from: d, reason: collision with root package name */
public int f3627d;
/* renamed from: e, reason: collision with root package name */
public int f3628e;
/* renamed from: f, reason: collision with root package name */
public int f3629f;
/* renamed from: g, reason: collision with root package name */
public int f3630g;
public boolean h;
public boolean i;
public final String toString() {
StringBuilder sb = new StringBuilder("LayoutState{mAvailable=");
sb.append(this.f3625b);
sb.append(", mCurrentPosition=");
sb.append(this.f3626c);
sb.append(", mItemDirection=");
sb.append(this.f3627d);
sb.append(", mLayoutDirection=");
sb.append(this.f3628e);
sb.append(", mStartLine=");
sb.append(this.f3629f);
sb.append(", mEndLine=");
return C.w.p(sb, this.f3630g, '}');
}
}

View File

@@ -0,0 +1,129 @@
package androidx.recyclerview.widget;
import android.view.View;
import java.util.ArrayList;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class Q0 {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f3631a = new ArrayList();
/* renamed from: b, reason: collision with root package name */
public int f3632b = IntCompanionObject.MIN_VALUE;
/* renamed from: c, reason: collision with root package name */
public int f3633c = IntCompanionObject.MIN_VALUE;
/* renamed from: d, reason: collision with root package name */
public int f3634d = 0;
/* renamed from: e, reason: collision with root package name */
public final int f3635e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ StaggeredGridLayoutManager f3636f;
public Q0(StaggeredGridLayoutManager staggeredGridLayoutManager, int i) {
this.f3636f = staggeredGridLayoutManager;
this.f3635e = i;
}
public final void a() {
View view = (View) this.f3631a.get(r0.size() - 1);
N0 n02 = (N0) view.getLayoutParams();
this.f3633c = this.f3636f.f3741r.b(view);
n02.getClass();
}
public final void b() {
this.f3631a.clear();
this.f3632b = IntCompanionObject.MIN_VALUE;
this.f3633c = IntCompanionObject.MIN_VALUE;
this.f3634d = 0;
}
public final int c() {
return this.f3636f.f3746w ? e(r1.size() - 1, -1) : e(0, this.f3631a.size());
}
public final int d() {
return this.f3636f.f3746w ? e(0, this.f3631a.size()) : e(r1.size() - 1, -1);
}
public final int e(int i, int i4) {
StaggeredGridLayoutManager staggeredGridLayoutManager = this.f3636f;
int k4 = staggeredGridLayoutManager.f3741r.k();
int g4 = staggeredGridLayoutManager.f3741r.g();
int i5 = i4 > i ? 1 : -1;
while (i != i4) {
View view = (View) this.f3631a.get(i);
int e4 = staggeredGridLayoutManager.f3741r.e(view);
int b4 = staggeredGridLayoutManager.f3741r.b(view);
boolean z3 = e4 <= g4;
boolean z4 = b4 >= k4;
if (z3 && z4 && (e4 < k4 || b4 > g4)) {
return AbstractC0238q0.L(view);
}
i += i5;
}
return -1;
}
public final int f(int i) {
int i4 = this.f3633c;
if (i4 != Integer.MIN_VALUE) {
return i4;
}
if (this.f3631a.size() == 0) {
return i;
}
a();
return this.f3633c;
}
public final View g(int i, int i4) {
StaggeredGridLayoutManager staggeredGridLayoutManager = this.f3636f;
ArrayList arrayList = this.f3631a;
View view = null;
if (i4 != -1) {
int size = arrayList.size() - 1;
while (size >= 0) {
View view2 = (View) arrayList.get(size);
if ((staggeredGridLayoutManager.f3746w && AbstractC0238q0.L(view2) >= i) || ((!staggeredGridLayoutManager.f3746w && AbstractC0238q0.L(view2) <= i) || !view2.hasFocusable())) {
break;
}
size--;
view = view2;
}
return view;
}
int size2 = arrayList.size();
int i5 = 0;
while (i5 < size2) {
View view3 = (View) arrayList.get(i5);
if ((staggeredGridLayoutManager.f3746w && AbstractC0238q0.L(view3) <= i) || ((!staggeredGridLayoutManager.f3746w && AbstractC0238q0.L(view3) >= i) || !view3.hasFocusable())) {
break;
}
i5++;
view = view3;
}
return view;
}
public final int h(int i) {
int i4 = this.f3632b;
if (i4 != Integer.MIN_VALUE) {
return i4;
}
if (this.f3631a.size() == 0) {
return i;
}
View view = (View) this.f3631a.get(0);
N0 n02 = (N0) view.getLayoutParams();
this.f3632b = this.f3636f.f3741r.e(view);
n02.getClass();
return this.f3632b;
}
}

View File

@@ -0,0 +1,59 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class R0 {
/* renamed from: a, reason: collision with root package name */
public int f3637a;
/* renamed from: b, reason: collision with root package name */
public int f3638b;
/* renamed from: c, reason: collision with root package name */
public int f3639c;
/* renamed from: d, reason: collision with root package name */
public int f3640d;
/* renamed from: e, reason: collision with root package name */
public int f3641e;
public final boolean a() {
int i = this.f3637a;
int i4 = 2;
if ((i & 7) != 0) {
int i5 = this.f3640d;
int i6 = this.f3638b;
if (((i5 > i6 ? 1 : i5 == i6 ? 2 : 4) & i) == 0) {
return false;
}
}
if ((i & 112) != 0) {
int i7 = this.f3640d;
int i8 = this.f3639c;
if ((((i7 > i8 ? 1 : i7 == i8 ? 2 : 4) << 4) & i) == 0) {
return false;
}
}
if ((i & 1792) != 0) {
int i9 = this.f3641e;
int i10 = this.f3638b;
if ((((i9 > i10 ? 1 : i9 == i10 ? 2 : 4) << 8) & i) == 0) {
return false;
}
}
if ((i & 28672) != 0) {
int i11 = this.f3641e;
int i12 = this.f3639c;
if (i11 > i12) {
i4 = 1;
} else if (i11 != i12) {
i4 = 4;
}
if (((i4 << 12) & i) == 0) {
return false;
}
}
return true;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,123 @@
package androidx.recyclerview.widget;
import android.view.View;
import android.view.ViewPropertyAnimator;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.WeakHashMap;
/* renamed from: androidx.recyclerview.widget.e0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC0214e0 implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3806a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ RecyclerView f3807b;
public /* synthetic */ RunnableC0214e0(RecyclerView recyclerView, int i) {
this.f3806a = i;
this.f3807b = recyclerView;
}
@Override // java.lang.Runnable
public final void run() {
RecyclerView recyclerView = this.f3807b;
switch (this.f3806a) {
case 0:
if (!recyclerView.f3709u || recyclerView.isLayoutRequested()) {
return;
}
if (!recyclerView.f3705s) {
recyclerView.requestLayout();
return;
} else if (recyclerView.f3715x) {
recyclerView.f3713w = true;
return;
} else {
recyclerView.q();
return;
}
default:
AbstractC0230m0 abstractC0230m0 = recyclerView.f3661M;
if (abstractC0230m0 != null) {
C0237q c0237q = (C0237q) abstractC0230m0;
ArrayList arrayList = c0237q.h;
boolean isEmpty = arrayList.isEmpty();
ArrayList arrayList2 = c0237q.f3875j;
boolean isEmpty2 = arrayList2.isEmpty();
ArrayList arrayList3 = c0237q.f3876k;
boolean isEmpty3 = arrayList3.isEmpty();
ArrayList arrayList4 = c0237q.i;
boolean isEmpty4 = arrayList4.isEmpty();
if (!isEmpty || !isEmpty2 || !isEmpty4 || !isEmpty3) {
Iterator it = arrayList.iterator();
while (true) {
boolean hasNext = it.hasNext();
long j4 = c0237q.f3848d;
if (hasNext) {
I0 i02 = (I0) it.next();
View view = i02.itemView;
ViewPropertyAnimator animate = view.animate();
c0237q.f3881q.add(i02);
animate.setDuration(j4).alpha(BitmapDescriptorFactory.HUE_RED).setListener(new C0227l(c0237q, i02, animate, view)).start();
arrayList = arrayList;
} else {
arrayList.clear();
if (!isEmpty2) {
ArrayList arrayList5 = new ArrayList();
arrayList5.addAll(arrayList2);
c0237q.f3878m.add(arrayList5);
arrayList2.clear();
RunnableC0225k runnableC0225k = new RunnableC0225k(c0237q, arrayList5, 0);
if (isEmpty) {
runnableC0225k.run();
} else {
View view2 = ((C0235p) arrayList5.get(0)).f3864a.itemView;
WeakHashMap weakHashMap = O.X.f1226a;
view2.postOnAnimationDelayed(runnableC0225k, j4);
}
}
if (!isEmpty3) {
ArrayList arrayList6 = new ArrayList();
arrayList6.addAll(arrayList3);
c0237q.f3879n.add(arrayList6);
arrayList3.clear();
RunnableC0225k runnableC0225k2 = new RunnableC0225k(c0237q, arrayList6, 1);
if (isEmpty) {
runnableC0225k2.run();
} else {
View view3 = ((C0233o) arrayList6.get(0)).f3856a.itemView;
WeakHashMap weakHashMap2 = O.X.f1226a;
view3.postOnAnimationDelayed(runnableC0225k2, j4);
}
}
if (!isEmpty4) {
ArrayList arrayList7 = new ArrayList();
arrayList7.addAll(arrayList4);
c0237q.f3877l.add(arrayList7);
arrayList4.clear();
RunnableC0225k runnableC0225k3 = new RunnableC0225k(c0237q, arrayList7, 2);
if (isEmpty && isEmpty2 && isEmpty3) {
runnableC0225k3.run();
} else {
if (isEmpty) {
j4 = 0;
}
long max = Math.max(!isEmpty2 ? c0237q.f3849e : 0L, isEmpty3 ? 0L : c0237q.f3850f) + j4;
View view4 = ((I0) arrayList7.get(0)).itemView;
WeakHashMap weakHashMap3 = O.X.f1226a;
view4.postOnAnimationDelayed(runnableC0225k3, max);
}
}
}
}
}
}
recyclerView.f3697n0 = false;
return;
}
}
}

View File

@@ -0,0 +1,110 @@
package androidx.recyclerview.widget;
import android.view.View;
import android.view.ViewPropertyAnimator;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
import java.util.Iterator;
/* renamed from: androidx.recyclerview.widget.k, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC0225k implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3831a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ ArrayList f3832b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ C0237q f3833c;
public /* synthetic */ RunnableC0225k(C0237q c0237q, ArrayList arrayList, int i) {
this.f3831a = i;
this.f3833c = c0237q;
this.f3832b = arrayList;
}
@Override // java.lang.Runnable
public final void run() {
switch (this.f3831a) {
case 0:
ArrayList arrayList = this.f3832b;
Iterator it = arrayList.iterator();
while (true) {
boolean hasNext = it.hasNext();
C0237q c0237q = this.f3833c;
if (!hasNext) {
arrayList.clear();
c0237q.f3878m.remove(arrayList);
return;
}
C0235p c0235p = (C0235p) it.next();
I0 i02 = c0235p.f3864a;
c0237q.getClass();
View view = i02.itemView;
int i = c0235p.f3867d - c0235p.f3865b;
int i4 = c0235p.f3868e - c0235p.f3866c;
if (i != 0) {
view.animate().translationX(BitmapDescriptorFactory.HUE_RED);
}
if (i4 != 0) {
view.animate().translationY(BitmapDescriptorFactory.HUE_RED);
}
ViewPropertyAnimator animate = view.animate();
c0237q.p.add(i02);
animate.setDuration(c0237q.f3849e).setListener(new C0229m(c0237q, i02, i, view, i4, animate)).start();
}
case 1:
ArrayList arrayList2 = this.f3832b;
Iterator it2 = arrayList2.iterator();
while (true) {
boolean hasNext2 = it2.hasNext();
C0237q c0237q2 = this.f3833c;
if (!hasNext2) {
arrayList2.clear();
c0237q2.f3879n.remove(arrayList2);
return;
}
C0233o c0233o = (C0233o) it2.next();
c0237q2.getClass();
I0 i03 = c0233o.f3856a;
View view2 = i03 == null ? null : i03.itemView;
I0 i04 = c0233o.f3857b;
View view3 = i04 != null ? i04.itemView : null;
ArrayList arrayList3 = c0237q2.f3882r;
long j4 = c0237q2.f3850f;
if (view2 != null) {
ViewPropertyAnimator duration = view2.animate().setDuration(j4);
arrayList3.add(c0233o.f3856a);
duration.translationX(c0233o.f3860e - c0233o.f3858c);
duration.translationY(c0233o.f3861f - c0233o.f3859d);
duration.alpha(BitmapDescriptorFactory.HUE_RED).setListener(new C0231n(c0237q2, c0233o, duration, view2, 0)).start();
}
if (view3 != null) {
ViewPropertyAnimator animate2 = view3.animate();
arrayList3.add(c0233o.f3857b);
animate2.translationX(BitmapDescriptorFactory.HUE_RED).translationY(BitmapDescriptorFactory.HUE_RED).setDuration(j4).alpha(1.0f).setListener(new C0231n(c0237q2, c0233o, animate2, view3, 1)).start();
}
}
default:
ArrayList arrayList4 = this.f3832b;
Iterator it3 = arrayList4.iterator();
while (true) {
boolean hasNext3 = it3.hasNext();
C0237q c0237q3 = this.f3833c;
if (!hasNext3) {
arrayList4.clear();
c0237q3.f3877l.remove(arrayList4);
return;
}
I0 i05 = (I0) it3.next();
c0237q3.getClass();
View view4 = i05.itemView;
ViewPropertyAnimator animate3 = view4.animate();
c0237q3.f3880o.add(i05);
animate3.alpha(1.0f).setDuration(c0237q3.f3847c).setListener(new C0227l(c0237q3, i05, view4, animate3)).start();
}
}
}
}

View File

@@ -0,0 +1,36 @@
package androidx.recyclerview.widget;
/* renamed from: androidx.recyclerview.widget.y, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC0247y implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3934a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f3935b;
public /* synthetic */ RunnableC0247y(Object obj, int i) {
this.f3934a = i;
this.f3935b = obj;
}
/* JADX WARN: Removed duplicated region for block: B:26:0x009f */
/* JADX WARN: Removed duplicated region for block: B:36:0x00e1 */
/* JADX WARN: Removed duplicated region for block: B:39:0x00fa */
/* JADX WARN: Removed duplicated region for block: B:46:0x0121 */
/* JADX WARN: Removed duplicated region for block: B:49:0x012c */
/* JADX WARN: Removed duplicated region for block: B:52:0x0112 */
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
Method dump skipped, instructions count: 372
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RunnableC0247y.run():void");
}
}

View File

@@ -0,0 +1,87 @@
package androidx.recyclerview.widget;
import android.view.View;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class S {
/* renamed from: a, reason: collision with root package name */
public AbstractC0208b0 f3721a;
/* renamed from: b, reason: collision with root package name */
public int f3722b;
/* renamed from: c, reason: collision with root package name */
public int f3723c;
/* renamed from: d, reason: collision with root package name */
public boolean f3724d;
/* renamed from: e, reason: collision with root package name */
public boolean f3725e;
public S() {
d();
}
public final void a() {
this.f3723c = this.f3724d ? this.f3721a.g() : this.f3721a.k();
}
public final void b(View view, int i) {
if (this.f3724d) {
int b4 = this.f3721a.b(view);
AbstractC0208b0 abstractC0208b0 = this.f3721a;
this.f3723c = (Integer.MIN_VALUE == abstractC0208b0.f3793a ? 0 : abstractC0208b0.l() - abstractC0208b0.f3793a) + b4;
} else {
this.f3723c = this.f3721a.e(view);
}
this.f3722b = i;
}
public final void c(View view, int i) {
AbstractC0208b0 abstractC0208b0 = this.f3721a;
int l4 = Integer.MIN_VALUE == abstractC0208b0.f3793a ? 0 : abstractC0208b0.l() - abstractC0208b0.f3793a;
if (l4 >= 0) {
b(view, i);
return;
}
this.f3722b = i;
if (!this.f3724d) {
int e4 = this.f3721a.e(view);
int k4 = e4 - this.f3721a.k();
this.f3723c = e4;
if (k4 > 0) {
int g4 = (this.f3721a.g() - Math.min(0, (this.f3721a.g() - l4) - this.f3721a.b(view))) - (this.f3721a.c(view) + e4);
if (g4 < 0) {
this.f3723c -= Math.min(k4, -g4);
return;
}
return;
}
return;
}
int g5 = (this.f3721a.g() - l4) - this.f3721a.b(view);
this.f3723c = this.f3721a.g() - g5;
if (g5 > 0) {
int c4 = this.f3723c - this.f3721a.c(view);
int k5 = this.f3721a.k();
int min = c4 - (Math.min(this.f3721a.e(view) - k5, 0) + k5);
if (min < 0) {
this.f3723c = Math.min(g5, -min) + this.f3723c;
}
}
}
public final void d() {
this.f3722b = -1;
this.f3723c = IntCompanionObject.MIN_VALUE;
this.f3724d = false;
this.f3725e = false;
}
public final String toString() {
return "AnchorInfo{mPosition=" + this.f3722b + ", mCoordinate=" + this.f3723c + ", mLayoutFromEnd=" + this.f3724d + ", mValid=" + this.f3725e + '}';
}
}

View File

@@ -0,0 +1,25 @@
package androidx.recyclerview.widget;
import O.C0079u;
/* loaded from: classes.dex */
public final class S0 {
/* renamed from: d, reason: collision with root package name */
public static final N.c f3726d = new N.c(20);
/* renamed from: a, reason: collision with root package name */
public int f3727a;
/* renamed from: b, reason: collision with root package name */
public C0079u f3728b;
/* renamed from: c, reason: collision with root package name */
public C0079u f3729c;
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.Object, androidx.recyclerview.widget.S0] */
public static S0 a() {
S0 s02 = (S0) f3726d.a();
return s02 == null ? new Object() : s02;
}
}

View File

@@ -0,0 +1,17 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class T {
/* renamed from: a, reason: collision with root package name */
public int f3750a;
/* renamed from: b, reason: collision with root package name */
public boolean f3751b;
/* renamed from: c, reason: collision with root package name */
public boolean f3752c;
/* renamed from: d, reason: collision with root package name */
public boolean f3753d;
}

View File

@@ -0,0 +1,84 @@
package androidx.recyclerview.widget;
import android.view.View;
import java.util.List;
import kotlin.jvm.internal.LongCompanionObject;
/* loaded from: classes.dex */
public final class U {
/* renamed from: a, reason: collision with root package name */
public boolean f3754a;
/* renamed from: b, reason: collision with root package name */
public int f3755b;
/* renamed from: c, reason: collision with root package name */
public int f3756c;
/* renamed from: d, reason: collision with root package name */
public int f3757d;
/* renamed from: e, reason: collision with root package name */
public int f3758e;
/* renamed from: f, reason: collision with root package name */
public int f3759f;
/* renamed from: g, reason: collision with root package name */
public int f3760g;
public int h;
public int i;
/* renamed from: j, reason: collision with root package name */
public int f3761j;
/* renamed from: k, reason: collision with root package name */
public List f3762k;
/* renamed from: l, reason: collision with root package name */
public boolean f3763l;
public final void a(View view) {
int layoutPosition;
int size = this.f3762k.size();
View view2 = null;
int i = Integer.MAX_VALUE;
for (int i4 = 0; i4 < size; i4++) {
View view3 = ((I0) this.f3762k.get(i4)).itemView;
C0239r0 c0239r0 = (C0239r0) view3.getLayoutParams();
if (view3 != view && !c0239r0.f3897a.isRemoved() && (layoutPosition = (c0239r0.f3897a.getLayoutPosition() - this.f3757d) * this.f3758e) >= 0 && layoutPosition < i) {
view2 = view3;
if (layoutPosition == 0) {
break;
} else {
i = layoutPosition;
}
}
}
if (view2 == null) {
this.f3757d = -1;
} else {
this.f3757d = ((C0239r0) view2.getLayoutParams()).f3897a.getLayoutPosition();
}
}
public final View b(y0 y0Var) {
List list = this.f3762k;
if (list == null) {
View view = y0Var.k(this.f3757d, LongCompanionObject.MAX_VALUE).itemView;
this.f3757d += this.f3758e;
return view;
}
int size = list.size();
for (int i = 0; i < size; i++) {
View view2 = ((I0) this.f3762k.get(i)).itemView;
C0239r0 c0239r0 = (C0239r0) view2.getLayoutParams();
if (!c0239r0.f3897a.isRemoved() && this.f3757d == c0239r0.f3897a.getLayoutPosition()) {
a(view2);
return view2;
}
}
return null;
}
}

View File

@@ -0,0 +1,73 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class V implements Parcelable.Creator {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3764a;
/* JADX WARN: Type inference failed for: r3v2, types: [androidx.recyclerview.widget.W, java.lang.Object] */
/* JADX WARN: Type inference failed for: r3v3, types: [java.lang.Object, androidx.recyclerview.widget.O0] */
/* JADX WARN: Type inference failed for: r3v4, types: [java.lang.Object, androidx.recyclerview.widget.P0] */
@Override // android.os.Parcelable.Creator
public final Object createFromParcel(Parcel parcel) {
switch (this.f3764a) {
case 0:
?? obj = new Object();
obj.f3765a = parcel.readInt();
obj.f3766b = parcel.readInt();
obj.f3767c = parcel.readInt() == 1;
return obj;
case 1:
?? obj2 = new Object();
obj2.f3611a = parcel.readInt();
obj2.f3612b = parcel.readInt();
obj2.f3614d = parcel.readInt() == 1;
int readInt = parcel.readInt();
if (readInt > 0) {
int[] iArr = new int[readInt];
obj2.f3613c = iArr;
parcel.readIntArray(iArr);
}
return obj2;
default:
?? obj3 = new Object();
obj3.f3616a = parcel.readInt();
obj3.f3617b = parcel.readInt();
int readInt2 = parcel.readInt();
obj3.f3618c = readInt2;
if (readInt2 > 0) {
int[] iArr2 = new int[readInt2];
obj3.f3619d = iArr2;
parcel.readIntArray(iArr2);
}
int readInt3 = parcel.readInt();
obj3.f3620e = readInt3;
if (readInt3 > 0) {
int[] iArr3 = new int[readInt3];
obj3.f3621f = iArr3;
parcel.readIntArray(iArr3);
}
obj3.h = parcel.readInt() == 1;
obj3.i = parcel.readInt() == 1;
obj3.f3623j = parcel.readInt() == 1;
obj3.f3622g = parcel.readArrayList(O0.class.getClassLoader());
return obj3;
}
}
@Override // android.os.Parcelable.Creator
public final Object[] newArray(int i) {
switch (this.f3764a) {
case 0:
return new W[i];
case 1:
return new O0[i];
default:
return new P0[i];
}
}
}

View File

@@ -0,0 +1,30 @@
package androidx.recyclerview.widget;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class W implements Parcelable {
public static final Parcelable.Creator<W> CREATOR = new V(0);
/* renamed from: a, reason: collision with root package name */
public int f3765a;
/* renamed from: b, reason: collision with root package name */
public int f3766b;
/* renamed from: c, reason: collision with root package name */
public boolean f3767c;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.f3765a);
parcel.writeInt(this.f3766b);
parcel.writeInt(this.f3767c ? 1 : 0);
}
}

View File

@@ -0,0 +1,310 @@
package androidx.recyclerview.widget;
import android.content.Context;
import android.graphics.PointF;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public class X {
/* renamed from: a, reason: collision with root package name */
public int f3768a = -1;
/* renamed from: b, reason: collision with root package name */
public RecyclerView f3769b;
/* renamed from: c, reason: collision with root package name */
public AbstractC0238q0 f3770c;
/* renamed from: d, reason: collision with root package name */
public boolean f3771d;
/* renamed from: e, reason: collision with root package name */
public boolean f3772e;
/* renamed from: f, reason: collision with root package name */
public View f3773f;
/* renamed from: g, reason: collision with root package name */
public final C0 f3774g;
public boolean h;
public final LinearInterpolator i;
/* renamed from: j, reason: collision with root package name */
public final DecelerateInterpolator f3775j;
/* renamed from: k, reason: collision with root package name */
public PointF f3776k;
/* renamed from: l, reason: collision with root package name */
public final DisplayMetrics f3777l;
/* renamed from: m, reason: collision with root package name */
public boolean f3778m;
/* renamed from: n, reason: collision with root package name */
public float f3779n;
/* renamed from: o, reason: collision with root package name */
public int f3780o;
public int p;
/* JADX WARN: Type inference failed for: r1v0, types: [java.lang.Object, androidx.recyclerview.widget.C0] */
public X(Context context) {
?? obj = new Object();
obj.f3494d = -1;
obj.f3496f = false;
obj.f3497g = 0;
obj.f3491a = 0;
obj.f3492b = 0;
obj.f3493c = IntCompanionObject.MIN_VALUE;
obj.f3495e = null;
this.f3774g = obj;
this.i = new LinearInterpolator();
this.f3775j = new DecelerateInterpolator();
this.f3778m = false;
this.f3780o = 0;
this.p = 0;
this.f3777l = context.getResources().getDisplayMetrics();
}
public static int a(int i, int i4, int i5, int i6, int i7) {
if (i7 == -1) {
return i5 - i;
}
if (i7 != 0) {
if (i7 == 1) {
return i6 - i4;
}
throw new IllegalArgumentException("snap preference should be one of the constants defined in SmoothScroller, starting with SNAP_");
}
int i8 = i5 - i;
if (i8 > 0) {
return i8;
}
int i9 = i6 - i4;
if (i9 < 0) {
return i9;
}
return 0;
}
public int b(View view, int i) {
AbstractC0238q0 abstractC0238q0 = this.f3770c;
if (abstractC0238q0 == null || !abstractC0238q0.d()) {
return 0;
}
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
return a(AbstractC0238q0.A(view) - ((ViewGroup.MarginLayoutParams) c0239r0).leftMargin, AbstractC0238q0.D(view) + ((ViewGroup.MarginLayoutParams) c0239r0).rightMargin, abstractC0238q0.I(), abstractC0238q0.f3894n - abstractC0238q0.J(), i);
}
public int c(View view, int i) {
AbstractC0238q0 abstractC0238q0 = this.f3770c;
if (abstractC0238q0 == null || !abstractC0238q0.e()) {
return 0;
}
C0239r0 c0239r0 = (C0239r0) view.getLayoutParams();
return a(AbstractC0238q0.E(view) - ((ViewGroup.MarginLayoutParams) c0239r0).topMargin, AbstractC0238q0.y(view) + ((ViewGroup.MarginLayoutParams) c0239r0).bottomMargin, abstractC0238q0.K(), abstractC0238q0.f3895o - abstractC0238q0.H(), i);
}
public float d(DisplayMetrics displayMetrics) {
return 25.0f / displayMetrics.densityDpi;
}
public int e(int i) {
float abs = Math.abs(i);
if (!this.f3778m) {
this.f3779n = d(this.f3777l);
this.f3778m = true;
}
return (int) Math.ceil(abs * this.f3779n);
}
public PointF f(int i) {
Object obj = this.f3770c;
if (obj instanceof D0) {
return ((D0) obj).a(i);
}
Log.w("RecyclerView", "You should override computeScrollVectorForPosition when the LayoutManager does not implement " + D0.class.getCanonicalName());
return null;
}
public final void g(int i, int i4) {
PointF f2;
RecyclerView recyclerView = this.f3769b;
if (this.f3768a == -1 || recyclerView == null) {
i();
}
if (this.f3771d && this.f3773f == null && this.f3770c != null && (f2 = f(this.f3768a)) != null) {
float f4 = f2.x;
if (f4 != BitmapDescriptorFactory.HUE_RED || f2.y != BitmapDescriptorFactory.HUE_RED) {
recyclerView.i0(null, (int) Math.signum(f4), (int) Math.signum(f2.y));
}
}
this.f3771d = false;
View view = this.f3773f;
C0 c02 = this.f3774g;
if (view != null) {
this.f3769b.getClass();
I0 N3 = RecyclerView.N(view);
if ((N3 != null ? N3.getLayoutPosition() : -1) == this.f3768a) {
View view2 = this.f3773f;
E0 e02 = recyclerView.f3686h0;
h(view2, c02);
c02.a(recyclerView);
i();
} else {
Log.e("RecyclerView", "Passed over target position while smooth scrolling.");
this.f3773f = null;
}
}
if (this.f3772e) {
E0 e03 = recyclerView.f3686h0;
if (this.f3769b.f3696n.v() == 0) {
i();
} else {
int i5 = this.f3780o;
int i6 = i5 - i;
if (i5 * i6 <= 0) {
i6 = 0;
}
this.f3780o = i6;
int i7 = this.p;
int i8 = i7 - i4;
if (i7 * i8 <= 0) {
i8 = 0;
}
this.p = i8;
if (i6 == 0 && i8 == 0) {
PointF f5 = f(this.f3768a);
if (f5 != null) {
if (f5.x != BitmapDescriptorFactory.HUE_RED || f5.y != BitmapDescriptorFactory.HUE_RED) {
float f6 = f5.y;
float sqrt = (float) Math.sqrt((f6 * f6) + (r10 * r10));
float f7 = f5.x / sqrt;
f5.x = f7;
float f8 = f5.y / sqrt;
f5.y = f8;
this.f3776k = f5;
this.f3780o = (int) (f7 * 10000.0f);
this.p = (int) (f8 * 10000.0f);
int e4 = e(10000);
LinearInterpolator linearInterpolator = this.i;
c02.f3491a = (int) (this.f3780o * 1.2f);
c02.f3492b = (int) (this.p * 1.2f);
c02.f3493c = (int) (e4 * 1.2f);
c02.f3495e = linearInterpolator;
c02.f3496f = true;
}
}
c02.f3494d = this.f3768a;
i();
}
}
boolean z3 = c02.f3494d >= 0;
c02.a(recyclerView);
if (z3 && this.f3772e) {
this.f3771d = true;
recyclerView.f3681e0.b();
}
}
}
/* JADX WARN: Removed duplicated region for block: B:16:0x004b */
/* JADX WARN: Removed duplicated region for block: B:19:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:9:0x001e */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void h(android.view.View r7, androidx.recyclerview.widget.C0 r8) {
/*
r6 = this;
android.graphics.PointF r0 = r6.f3776k
r1 = 1
r2 = 0
r3 = -1
r4 = 0
if (r0 == 0) goto L15
float r0 = r0.x
int r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))
if (r0 != 0) goto Lf
goto L15
Lf:
if (r0 <= 0) goto L13
r0 = r1
goto L16
L13:
r0 = r3
goto L16
L15:
r0 = r2
L16:
int r0 = r6.b(r7, r0)
android.graphics.PointF r5 = r6.f3776k
if (r5 == 0) goto L2a
float r5 = r5.y
int r4 = (r5 > r4 ? 1 : (r5 == r4 ? 0 : -1))
if (r4 != 0) goto L25
goto L2a
L25:
if (r4 <= 0) goto L29
r2 = r1
goto L2a
L29:
r2 = r3
L2a:
int r7 = r6.c(r7, r2)
int r2 = r0 * r0
int r3 = r7 * r7
int r3 = r3 + r2
double r2 = (double) r3
double r2 = java.lang.Math.sqrt(r2)
int r2 = (int) r2
int r2 = r6.e(r2)
double r2 = (double) r2
r4 = 4599717252057688074(0x3fd57a786c22680a, double:0.3356)
double r2 = r2 / r4
double r2 = java.lang.Math.ceil(r2)
int r2 = (int) r2
if (r2 <= 0) goto L59
int r0 = -r0
int r7 = -r7
android.view.animation.DecelerateInterpolator r6 = r6.f3775j
r8.f3491a = r0
r8.f3492b = r7
r8.f3493c = r2
r8.f3495e = r6
r8.f3496f = r1
L59:
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.X.h(android.view.View, androidx.recyclerview.widget.C0):void");
}
public final void i() {
if (this.f3772e) {
this.f3772e = false;
this.p = 0;
this.f3780o = 0;
this.f3776k = null;
this.f3769b.f3686h0.f3509a = -1;
this.f3773f = null;
this.f3768a = -1;
this.f3771d = false;
AbstractC0238q0 abstractC0238q0 = this.f3770c;
if (abstractC0238q0.f3887e == this) {
abstractC0238q0.f3887e = null;
}
this.f3770c = null;
this.f3769b = null;
}
}
}

View File

@@ -0,0 +1,12 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public final class Y implements InterfaceC0213e {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ Z f3781a;
public Y(Z z3) {
this.f3781a = z3;
}
}

View File

@@ -0,0 +1,52 @@
package androidx.recyclerview.widget;
import java.util.List;
import java.util.concurrent.Executors;
/* loaded from: classes.dex */
public abstract class Z extends AbstractC0220h0 {
final C0217g mDiffer;
private final InterfaceC0213e mListener;
public Z(AbstractC0211d abstractC0211d) {
Y y3 = new Y(this);
this.mListener = y3;
C0209c c0209c = new C0209c(this);
synchronized (AbstractC0211d.f3799a) {
try {
if (AbstractC0211d.f3800b == null) {
AbstractC0211d.f3800b = Executors.newFixedThreadPool(2);
}
} catch (Throwable th) {
throw th;
}
}
C0217g c0217g = new C0217g(c0209c, new F.i(8, AbstractC0211d.f3800b, abstractC0211d));
this.mDiffer = c0217g;
c0217g.f3813d.add(y3);
}
public List<Object> getCurrentList() {
return this.mDiffer.f3815f;
}
public Object getItem(int i) {
return this.mDiffer.f3815f.get(i);
}
@Override // androidx.recyclerview.widget.AbstractC0220h0
public int getItemCount() {
return this.mDiffer.f3815f.size();
}
public void onCurrentListChanged(List<Object> list, List<Object> list2) {
}
public void submitList(List<Object> list) {
this.mDiffer.b(list, null);
}
public void submitList(List<Object> list, Runnable runnable) {
this.mDiffer.b(list, runnable);
}
}

View File

@@ -0,0 +1,103 @@
package androidx.recyclerview.widget;
import java.util.Comparator;
/* loaded from: classes.dex */
public final class r implements Comparator {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f3896a;
public /* synthetic */ r(int i) {
this.f3896a = i;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x001b, code lost:
if (r4 == null) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0026, code lost:
return -1;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:?, code lost:
return 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0024, code lost:
if (r4 != false) goto L18;
*/
@Override // java.util.Comparator
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int compare(java.lang.Object r5, java.lang.Object r6) {
/*
r4 = this;
int r4 = r4.f3896a
switch(r4) {
case 0: goto L3c;
default: goto L5;
}
L5:
androidx.recyclerview.widget.D r5 = (androidx.recyclerview.widget.D) r5
androidx.recyclerview.widget.D r6 = (androidx.recyclerview.widget.D) r6
androidx.recyclerview.widget.RecyclerView r4 = r5.f3501d
r0 = 0
r1 = 1
if (r4 != 0) goto L11
r2 = r1
goto L12
L11:
r2 = r0
L12:
androidx.recyclerview.widget.RecyclerView r3 = r6.f3501d
if (r3 != 0) goto L18
r3 = r1
goto L19
L18:
r3 = r0
L19:
if (r2 == r3) goto L1e
if (r4 != 0) goto L26
goto L28
L1e:
boolean r4 = r5.f3498a
boolean r2 = r6.f3498a
if (r4 == r2) goto L2a
if (r4 == 0) goto L28
L26:
r0 = -1
goto L3b
L28:
r0 = r1
goto L3b
L2a:
int r4 = r6.f3499b
int r1 = r5.f3499b
int r4 = r4 - r1
if (r4 == 0) goto L33
L31:
r0 = r4
goto L3b
L33:
int r4 = r5.f3500c
int r5 = r6.f3500c
int r4 = r4 - r5
if (r4 == 0) goto L3b
goto L31
L3b:
return r0
L3c:
androidx.recyclerview.widget.s r5 = (androidx.recyclerview.widget.C0240s) r5
androidx.recyclerview.widget.s r6 = (androidx.recyclerview.widget.C0240s) r6
int r4 = r5.f3901a
int r5 = r6.f3901a
int r4 = r4 - r5
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.r.compare(java.lang.Object, java.lang.Object):int");
}
}

View File

@@ -0,0 +1,5 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public abstract class t0 {
}

View File

@@ -0,0 +1,12 @@
package androidx.recyclerview.widget;
import android.view.MotionEvent;
/* loaded from: classes.dex */
public interface u0 {
boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent);
void onRequestDisallowInterceptTouchEvent(boolean z3);
void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent);
}

View File

@@ -0,0 +1,9 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public abstract class v0 {
public void onScrollStateChanged(RecyclerView recyclerView, int i) {
}
public abstract void onScrolled(RecyclerView recyclerView, int i, int i4);
}

View File

@@ -0,0 +1,19 @@
package androidx.recyclerview.widget;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class w0 {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f3923a = new ArrayList();
/* renamed from: b, reason: collision with root package name */
public final int f3924b = 5;
/* renamed from: c, reason: collision with root package name */
public long f3925c = 0;
/* renamed from: d, reason: collision with root package name */
public long f3926d = 0;
}

View File

@@ -0,0 +1,28 @@
package androidx.recyclerview.widget;
import android.util.SparseArray;
import java.util.Set;
/* loaded from: classes.dex */
public final class x0 {
/* renamed from: a, reason: collision with root package name */
public SparseArray f3931a;
/* renamed from: b, reason: collision with root package name */
public int f3932b;
/* renamed from: c, reason: collision with root package name */
public Set f3933c;
public final w0 a(int i) {
SparseArray sparseArray = this.f3931a;
w0 w0Var = (w0) sparseArray.get(i);
if (w0Var != null) {
return w0Var;
}
w0 w0Var2 = new w0();
sparseArray.put(i, w0Var2);
return w0Var2;
}
}

View File

@@ -0,0 +1,282 @@
package androidx.recyclerview.widget;
import O.C0056b;
import a.AbstractC0105a;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Set;
/* loaded from: classes.dex */
public final class y0 {
/* renamed from: a, reason: collision with root package name */
public final ArrayList f3936a;
/* renamed from: b, reason: collision with root package name */
public ArrayList f3937b;
/* renamed from: c, reason: collision with root package name */
public final ArrayList f3938c;
/* renamed from: d, reason: collision with root package name */
public final List f3939d;
/* renamed from: e, reason: collision with root package name */
public int f3940e;
/* renamed from: f, reason: collision with root package name */
public int f3941f;
/* renamed from: g, reason: collision with root package name */
public x0 f3942g;
public final /* synthetic */ RecyclerView h;
public y0(RecyclerView recyclerView) {
this.h = recyclerView;
ArrayList arrayList = new ArrayList();
this.f3936a = arrayList;
this.f3937b = null;
this.f3938c = new ArrayList();
this.f3939d = Collections.unmodifiableList(arrayList);
this.f3940e = 2;
this.f3941f = 2;
}
public final void a(I0 i02, boolean z3) {
RecyclerView.m(i02);
View view = i02.itemView;
RecyclerView recyclerView = this.h;
K0 k02 = recyclerView.f3699o0;
if (k02 != null) {
J0 j02 = k02.f3559e;
O.X.j(view, j02 != null ? (C0056b) j02.f3557e.remove(view) : null);
}
if (z3) {
ArrayList arrayList = recyclerView.f3698o;
if (arrayList.size() > 0) {
arrayList.get(0).getClass();
throw new ClassCastException();
}
AbstractC0220h0 abstractC0220h0 = recyclerView.f3694m;
if (abstractC0220h0 != null) {
abstractC0220h0.onViewRecycled(i02);
}
if (recyclerView.f3686h0 != null) {
recyclerView.f3684g.F(i02);
}
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "dispatchViewRecycled: " + i02);
}
}
i02.mBindingAdapter = null;
i02.mOwnerRecyclerView = null;
x0 c4 = c();
c4.getClass();
int itemViewType = i02.getItemViewType();
ArrayList arrayList2 = c4.a(itemViewType).f3923a;
if (((w0) c4.f3931a.get(itemViewType)).f3924b <= arrayList2.size()) {
AbstractC0105a.f(i02.itemView);
} else {
if (RecyclerView.A0 && arrayList2.contains(i02)) {
throw new IllegalArgumentException("this scrap item already exists");
}
i02.resetInternal();
arrayList2.add(i02);
}
}
public final int b(int i) {
RecyclerView recyclerView = this.h;
if (i >= 0 && i < recyclerView.f3686h0.b()) {
return !recyclerView.f3686h0.f3515g ? i : recyclerView.f3680e.g(i, 0);
}
StringBuilder t2 = C.w.t(i, "invalid position ", ". State item count is ");
t2.append(recyclerView.f3686h0.b());
t2.append(recyclerView.D());
throw new IndexOutOfBoundsException(t2.toString());
}
/* JADX WARN: Type inference failed for: r0v1, types: [androidx.recyclerview.widget.x0, java.lang.Object] */
public final x0 c() {
if (this.f3942g == null) {
?? obj = new Object();
obj.f3931a = new SparseArray();
obj.f3932b = 0;
obj.f3933c = Collections.newSetFromMap(new IdentityHashMap());
this.f3942g = obj;
d();
}
return this.f3942g;
}
public final void d() {
RecyclerView recyclerView;
AbstractC0220h0 abstractC0220h0;
x0 x0Var = this.f3942g;
if (x0Var == null || (abstractC0220h0 = (recyclerView = this.h).f3694m) == null || !recyclerView.f3705s) {
return;
}
x0Var.f3933c.add(abstractC0220h0);
}
public final void e(AbstractC0220h0 abstractC0220h0, boolean z3) {
x0 x0Var = this.f3942g;
if (x0Var == null) {
return;
}
Set set = x0Var.f3933c;
set.remove(abstractC0220h0);
if (set.size() != 0 || z3) {
return;
}
int i = 0;
while (true) {
SparseArray sparseArray = x0Var.f3931a;
if (i >= sparseArray.size()) {
return;
}
ArrayList arrayList = ((w0) sparseArray.get(sparseArray.keyAt(i))).f3923a;
for (int i4 = 0; i4 < arrayList.size(); i4++) {
AbstractC0105a.f(((I0) arrayList.get(i4)).itemView);
}
i++;
}
}
public final void f() {
ArrayList arrayList = this.f3938c;
for (int size = arrayList.size() - 1; size >= 0; size--) {
g(size);
}
arrayList.clear();
if (RecyclerView.f3646G0) {
Z2.y yVar = this.h.f3685g0;
int[] iArr = (int[]) yVar.f2314d;
if (iArr != null) {
Arrays.fill(iArr, -1);
}
yVar.f2313c = 0;
}
}
public final void g(int i) {
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "Recycling cached view at index " + i);
}
ArrayList arrayList = this.f3938c;
I0 i02 = (I0) arrayList.get(i);
if (RecyclerView.f3642B0) {
Log.d("RecyclerView", "CachedViewHolder to be recycled: " + i02);
}
a(i02, true);
arrayList.remove(i);
}
public final void h(View view) {
I0 N3 = RecyclerView.N(view);
boolean isTmpDetached = N3.isTmpDetached();
RecyclerView recyclerView = this.h;
if (isTmpDetached) {
recyclerView.removeDetachedView(view, false);
}
if (N3.isScrap()) {
N3.unScrap();
} else if (N3.wasReturnedFromScrap()) {
N3.clearReturnedFromScrapFlag();
}
i(N3);
if (recyclerView.f3661M == null || N3.isRecyclable()) {
return;
}
recyclerView.f3661M.d(N3);
}
/* JADX WARN: Code restructure failed: missing block: B:68:0x00dc, code lost:
r4 = r4 - 1;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void i(androidx.recyclerview.widget.I0 r12) {
/*
Method dump skipped, instructions count: 349
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.y0.i(androidx.recyclerview.widget.I0):void");
}
public final void j(View view) {
AbstractC0230m0 abstractC0230m0;
I0 N3 = RecyclerView.N(view);
boolean hasAnyOfTheFlags = N3.hasAnyOfTheFlags(12);
RecyclerView recyclerView = this.h;
if (!hasAnyOfTheFlags && N3.isUpdated() && (abstractC0230m0 = recyclerView.f3661M) != null) {
C0237q c0237q = (C0237q) abstractC0230m0;
if (N3.getUnmodifiedPayloads().isEmpty() && c0237q.f3874g && !N3.isInvalid()) {
if (this.f3937b == null) {
this.f3937b = new ArrayList();
}
N3.setScrapContainer(this, true);
this.f3937b.add(N3);
return;
}
}
if (N3.isInvalid() && !N3.isRemoved() && !recyclerView.f3694m.hasStableIds()) {
throw new IllegalArgumentException(C.w.j(recyclerView, new StringBuilder("Called scrap view with an invalid view. Invalid views cannot be reused from scrap, they should rebound from recycler pool.")));
}
N3.setScrapContainer(this, false);
this.f3936a.add(N3);
}
/* JADX WARN: Code restructure failed: missing block: B:187:0x04a5, code lost:
if ((r12 + r8) >= r31) goto L243;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:158:0x054b */
/* JADX WARN: Removed duplicated region for block: B:166:0x0557 */
/* JADX WARN: Removed duplicated region for block: B:20:0x0084 */
/* JADX WARN: Removed duplicated region for block: B:278:0x0136 */
/* JADX WARN: Removed duplicated region for block: B:279:0x0146 */
/* JADX WARN: Removed duplicated region for block: B:313:0x0086 */
/* JADX WARN: Type inference failed for: r2v31, types: [O.u, java.lang.Object] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final androidx.recyclerview.widget.I0 k(int r30, long r31) {
/*
Method dump skipped, instructions count: 1448
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.y0.k(int, long):androidx.recyclerview.widget.I0");
}
public final void l(I0 i02) {
if (i02.mInChangeScrap) {
this.f3937b.remove(i02);
} else {
this.f3936a.remove(i02);
}
i02.mScrapContainer = null;
i02.mInChangeScrap = false;
i02.clearReturnedFromScrapFlag();
}
public final void m() {
AbstractC0238q0 abstractC0238q0 = this.h.f3696n;
this.f3941f = this.f3940e + (abstractC0238q0 != null ? abstractC0238q0.f3890j : 0);
ArrayList arrayList = this.f3938c;
for (int size = arrayList.size() - 1; size >= 0 && arrayList.size() > this.f3941f; size--) {
g(size);
}
}
}

View File

@@ -0,0 +1,5 @@
package androidx.recyclerview.widget;
/* loaded from: classes.dex */
public interface z0 {
}