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,222 @@
package F2;
import android.view.View;
import android.view.ViewGroup;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.sidesheet.SideSheetBehavior;
import com.google.firebase.messaging.ServiceStarter;
import m3.l;
/* loaded from: classes3.dex */
public final class a extends l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f538a;
/* renamed from: b, reason: collision with root package name */
public final SideSheetBehavior f539b;
public /* synthetic */ a(SideSheetBehavior sideSheetBehavior, int i) {
this.f538a = i;
this.f539b = sideSheetBehavior;
}
@Override // m3.l
public final int A(CoordinatorLayout coordinatorLayout) {
switch (this.f538a) {
case 0:
return coordinatorLayout.getLeft();
default:
return coordinatorLayout.getRight();
}
}
@Override // m3.l
public final int B() {
switch (this.f538a) {
case 0:
return 1;
default:
return 0;
}
}
@Override // m3.l
public final boolean G(float f2) {
switch (this.f538a) {
case 0:
return f2 > BitmapDescriptorFactory.HUE_RED;
default:
return f2 < BitmapDescriptorFactory.HUE_RED;
}
}
@Override // m3.l
public final boolean H(View view) {
switch (this.f538a) {
case 0:
return view.getRight() < (t() - v()) / 2;
default:
return view.getLeft() > (t() + this.f539b.f5744m) / 2;
}
}
@Override // m3.l
public final boolean I(float f2, float f4) {
switch (this.f538a) {
case 0:
if (Math.abs(f2) > Math.abs(f4)) {
float abs = Math.abs(f2);
this.f539b.getClass();
if (abs > ServiceStarter.ERROR_UNKNOWN) {
return true;
}
}
return false;
default:
if (Math.abs(f2) > Math.abs(f4)) {
float abs2 = Math.abs(f2);
this.f539b.getClass();
if (abs2 > ServiceStarter.ERROR_UNKNOWN) {
return true;
}
}
return false;
}
}
@Override // m3.l
public final boolean Y(View view, float f2) {
switch (this.f538a) {
case 0:
float left = view.getLeft();
SideSheetBehavior sideSheetBehavior = this.f539b;
float abs = Math.abs((f2 * sideSheetBehavior.f5742k) + left);
sideSheetBehavior.getClass();
return abs > 0.5f;
default:
float right = view.getRight();
SideSheetBehavior sideSheetBehavior2 = this.f539b;
float abs2 = Math.abs((f2 * sideSheetBehavior2.f5742k) + right);
sideSheetBehavior2.getClass();
return abs2 > 0.5f;
}
}
@Override // m3.l
public final void c0(ViewGroup.MarginLayoutParams marginLayoutParams, int i) {
switch (this.f538a) {
case 0:
marginLayoutParams.leftMargin = i;
return;
default:
marginLayoutParams.rightMargin = i;
return;
}
}
@Override // m3.l
public final void d0(ViewGroup.MarginLayoutParams marginLayoutParams, int i, int i4) {
switch (this.f538a) {
case 0:
if (i <= this.f539b.f5744m) {
marginLayoutParams.leftMargin = i4;
return;
}
return;
default:
int i5 = this.f539b.f5744m;
if (i <= i5) {
marginLayoutParams.rightMargin = i5 - i;
return;
}
return;
}
}
@Override // m3.l
public final int e(ViewGroup.MarginLayoutParams marginLayoutParams) {
switch (this.f538a) {
case 0:
return marginLayoutParams.leftMargin;
default:
return marginLayoutParams.rightMargin;
}
}
@Override // m3.l
public final float f(int i) {
switch (this.f538a) {
case 0:
float v3 = v();
return (i - v3) / (t() - v3);
default:
float f2 = this.f539b.f5744m;
return (f2 - i) / (f2 - t());
}
}
@Override // m3.l
public final int s(ViewGroup.MarginLayoutParams marginLayoutParams) {
switch (this.f538a) {
case 0:
return marginLayoutParams.leftMargin;
default:
return marginLayoutParams.rightMargin;
}
}
@Override // m3.l
public final int t() {
switch (this.f538a) {
case 0:
SideSheetBehavior sideSheetBehavior = this.f539b;
return Math.max(0, sideSheetBehavior.f5745n + sideSheetBehavior.f5746o);
default:
SideSheetBehavior sideSheetBehavior2 = this.f539b;
return Math.max(0, (sideSheetBehavior2.f5744m - sideSheetBehavior2.f5743l) - sideSheetBehavior2.f5746o);
}
}
@Override // m3.l
public final int v() {
switch (this.f538a) {
case 0:
SideSheetBehavior sideSheetBehavior = this.f539b;
return (-sideSheetBehavior.f5743l) - sideSheetBehavior.f5746o;
default:
return this.f539b.f5744m;
}
}
@Override // m3.l
public final int x() {
switch (this.f538a) {
case 0:
return this.f539b.f5746o;
default:
return this.f539b.f5744m;
}
}
@Override // m3.l
public final int y() {
switch (this.f538a) {
case 0:
return -this.f539b.f5743l;
default:
return t();
}
}
@Override // m3.l
public final int z(View view) {
switch (this.f538a) {
case 0:
return view.getRight() + this.f539b.f5746o;
default:
return view.getLeft() - this.f539b.f5746o;
}
}
}

View File

@@ -0,0 +1,234 @@
package F2;
import C.w;
import a.AbstractC0106b;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.google.android.material.sidesheet.SideSheetBehavior;
import java.lang.ref.WeakReference;
import java.util.Iterator;
import java.util.LinkedHashSet;
import m3.l;
/* loaded from: classes3.dex */
public final class d extends l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f546a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ A.b f547b;
public /* synthetic */ d(A.b bVar, int i) {
this.f546a = i;
this.f547b = bVar;
}
@Override // m3.l
public int C(View view) {
switch (this.f546a) {
case 0:
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) this.f547b;
return sideSheetBehavior.f5743l + sideSheetBehavior.f5746o;
default:
return super.C(view);
}
}
@Override // m3.l
public int D() {
switch (this.f546a) {
case 1:
BottomSheetBehavior bottomSheetBehavior = (BottomSheetBehavior) this.f547b;
return bottomSheetBehavior.f5545I ? bottomSheetBehavior.f5555T : bottomSheetBehavior.f5543G;
default:
return super.D();
}
}
@Override // m3.l
public final void O(int i) {
switch (this.f546a) {
case 0:
if (i == 1) {
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) this.f547b;
if (sideSheetBehavior.f5740g) {
sideSheetBehavior.w(1);
return;
}
return;
}
return;
default:
if (i == 1) {
BottomSheetBehavior bottomSheetBehavior = (BottomSheetBehavior) this.f547b;
if (bottomSheetBehavior.f5546K) {
bottomSheetBehavior.I(1);
return;
}
return;
}
return;
}
}
@Override // m3.l
public final void P(View view, int i, int i4) {
ViewGroup.MarginLayoutParams marginLayoutParams;
switch (this.f546a) {
case 0:
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) this.f547b;
WeakReference weakReference = sideSheetBehavior.f5747q;
View view2 = weakReference != null ? (View) weakReference.get() : null;
if (view2 != null && (marginLayoutParams = (ViewGroup.MarginLayoutParams) view2.getLayoutParams()) != null) {
sideSheetBehavior.f5734a.d0(marginLayoutParams, view.getLeft(), view.getRight());
view2.setLayoutParams(marginLayoutParams);
}
LinkedHashSet linkedHashSet = sideSheetBehavior.f5752v;
if (linkedHashSet.isEmpty()) {
return;
}
sideSheetBehavior.f5734a.f(i);
Iterator it = linkedHashSet.iterator();
if (it.hasNext()) {
throw w.g(it);
}
return;
default:
((BottomSheetBehavior) this.f547b).y(i4);
return;
}
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x0023, code lost:
if (r6 > r4.f5541E) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0073, code lost:
if (java.lang.Math.abs(r5.getTop() - r4.C()) < java.lang.Math.abs(r5.getTop() - r4.f5541E)) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x00be, code lost:
if (java.lang.Math.abs(r6 - r4.f5540D) < java.lang.Math.abs(r6 - r4.f5543G)) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x0113, code lost:
if (r4.f5734a.H(r5) == false) goto L73;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x0143, code lost:
if (java.lang.Math.abs(r6 - r4.f5734a.t()) < java.lang.Math.abs(r6 - r4.f5734a.v())) goto L73;
*/
@Override // m3.l
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void Q(android.view.View r5, float r6, float r7) {
/*
Method dump skipped, instructions count: 340
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: F2.d.Q(android.view.View, float, float):void");
}
/* JADX WARN: Code restructure failed: missing block: B:16:0x002e, code lost:
if (r5.canScrollVertically(-1) != false) goto L27;
*/
@Override // m3.l
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean b0(android.view.View r4, int r5) {
/*
r3 = this;
int r0 = r3.f546a
switch(r0) {
case 0: goto L41;
default: goto L5;
}
L5:
A.b r3 = r3.f547b
com.google.android.material.bottomsheet.BottomSheetBehavior r3 = (com.google.android.material.bottomsheet.BottomSheetBehavior) r3
int r0 = r3.f5547L
r1 = 1
if (r0 != r1) goto Lf
goto L3f
Lf:
boolean r2 = r3.f5564b0
if (r2 == 0) goto L14
goto L3f
L14:
r2 = 3
if (r0 != r2) goto L31
int r0 = r3.Z
if (r0 != r5) goto L31
java.lang.ref.WeakReference r5 = r3.f5557V
if (r5 == 0) goto L26
java.lang.Object r5 = r5.get()
android.view.View r5 = (android.view.View) r5
goto L27
L26:
r5 = 0
L27:
if (r5 == 0) goto L31
r0 = -1
boolean r5 = r5.canScrollVertically(r0)
if (r5 == 0) goto L31
goto L3f
L31:
java.lang.System.currentTimeMillis()
java.lang.ref.WeakReference r3 = r3.f5556U
if (r3 == 0) goto L3f
java.lang.Object r3 = r3.get()
if (r3 != r4) goto L3f
goto L40
L3f:
r1 = 0
L40:
return r1
L41:
A.b r3 = r3.f547b
com.google.android.material.sidesheet.SideSheetBehavior r3 = (com.google.android.material.sidesheet.SideSheetBehavior) r3
int r5 = r3.h
r0 = 0
r1 = 1
if (r5 != r1) goto L4c
goto L57
L4c:
java.lang.ref.WeakReference r3 = r3.p
if (r3 == 0) goto L57
java.lang.Object r3 = r3.get()
if (r3 != r4) goto L57
r0 = r1
L57:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: F2.d.b0(android.view.View, int):boolean");
}
@Override // m3.l
public final int j(View view, int i) {
switch (this.f546a) {
case 0:
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) this.f547b;
return AbstractC0106b.d(i, sideSheetBehavior.f5734a.y(), sideSheetBehavior.f5734a.x());
default:
return view.getLeft();
}
}
@Override // m3.l
public final int k(View view, int i) {
switch (this.f546a) {
case 0:
return view.getTop();
default:
return AbstractC0106b.d(i, ((BottomSheetBehavior) this.f547b).C(), D());
}
}
}

View File

@@ -0,0 +1,30 @@
package F2;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.AbsSavedState;
import com.google.android.material.sidesheet.SideSheetBehavior;
/* loaded from: classes3.dex */
public final class e extends W.b {
public static final Parcelable.Creator<e> CREATOR = new A.g(2);
/* renamed from: c, reason: collision with root package name */
public final int f548c;
public e(Parcel parcel, ClassLoader classLoader) {
super(parcel, classLoader);
this.f548c = parcel.readInt();
}
@Override // W.b, android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
super.writeToParcel(parcel, i);
parcel.writeInt(this.f548c);
}
public e(SideSheetBehavior sideSheetBehavior) {
super(AbsSavedState.EMPTY_STATE);
this.f548c = sideSheetBehavior.h;
}
}

View File

@@ -0,0 +1,185 @@
package F2;
import A.j;
import I2.C0053d;
import I2.l;
import L.i;
import a.AbstractC0106b;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Trace;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import androidx.lifecycle.A;
import androidx.lifecycle.C0181c0;
import androidx.lifecycle.L;
import b.k;
import b.p;
import c2.n;
import com.google.android.material.carousel.CarouselLayoutManager;
import com.google.android.material.sidesheet.SideSheetBehavior;
import com.google.android.material.textfield.TextInputLayout;
import com.google.firebase.installations.FirebaseInstallations;
import d0.o;
import d2.h;
import java.nio.MappedByteBuffer;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes3.dex */
public final /* synthetic */ class f implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f549a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f550b;
public /* synthetic */ f(Object obj, int i) {
this.f549a = i;
this.f550b = obj;
}
@Override // java.lang.Runnable
public final void run() {
switch (this.f549a) {
case 0:
g gVar = (g) this.f550b;
gVar.f553c = false;
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) gVar.f555e;
X.d dVar = sideSheetBehavior.i;
if (dVar != null && dVar.f()) {
gVar.a(gVar.f552b);
return;
} else {
if (sideSheetBehavior.h == 2) {
sideSheetBehavior.w(gVar.f552b);
return;
}
return;
}
case 1:
((C0053d) this.f550b).t(true);
return;
case 2:
l lVar = (l) this.f550b;
boolean isPopupShowing = lVar.h.isPopupShowing();
lVar.t(isPopupShowing);
lVar.f830m = isPopupShowing;
return;
case 3:
((TextInputLayout) this.f550b).f5839d.requestLayout();
return;
case 4:
C0181c0 this$0 = (C0181c0) this.f550b;
Intrinsics.checkNotNullParameter(this$0, "this$0");
int i = this$0.f3338b;
L l4 = this$0.f3342f;
if (i == 0) {
this$0.f3339c = true;
l4.f(A.ON_PAUSE);
}
if (this$0.f3337a == 0 && this$0.f3339c) {
l4.f(A.ON_STOP);
this$0.f3340d = true;
return;
}
return;
case 5:
k this$02 = (k) this.f550b;
Intrinsics.checkNotNullParameter(this$02, "this$0");
Runnable runnable = this$02.f4119b;
if (runnable != null) {
Intrinsics.checkNotNull(runnable);
runnable.run();
this$02.f4119b = null;
return;
}
return;
case 6:
p.a((p) this.f550b);
return;
case 7:
n nVar = (n) this.f550b;
nVar.getClass();
((h) nVar.f4284d).Y(new I2.k(nVar, 7));
return;
case 8:
((com.google.android.material.timepicker.e) this.f550b).i();
return;
case 9:
((FirebaseInstallations) this.f550b).lambda$getId$1();
return;
case 10:
o oVar = (o) this.f550b;
synchronized (oVar.f6143d) {
try {
if (oVar.h == null) {
return;
}
try {
i c4 = oVar.c();
int i4 = c4.f1042e;
if (i4 == 2) {
synchronized (oVar.f6143d) {
}
}
if (i4 != 0) {
throw new RuntimeException("fetchFonts result is not OK. (" + i4 + ")");
}
try {
Trace.beginSection("EmojiCompat.FontRequestEmojiCompatConfig.buildTypeface");
E2.e eVar = oVar.f6142c;
Context context = oVar.f6140a;
eVar.getClass();
Typeface a2 = G.g.a(context, new i[]{c4}, 0);
MappedByteBuffer v3 = AbstractC0106b.v(oVar.f6140a, c4.f1038a);
if (v3 == null || a2 == null) {
throw new RuntimeException("Unable to open file.");
}
try {
Trace.beginSection("EmojiCompat.MetadataRepo.create");
j jVar = new j(a2, AbstractC0106b.B(v3));
Trace.endSection();
synchronized (oVar.f6143d) {
try {
m3.l lVar2 = oVar.h;
if (lVar2 != null) {
lVar2.M(jVar);
}
} finally {
}
}
oVar.b();
return;
} finally {
Trace.endSection();
}
} catch (Throwable th) {
throw th;
}
} catch (Throwable th2) {
synchronized (oVar.f6143d) {
try {
m3.l lVar3 = oVar.h;
if (lVar3 != null) {
lVar3.L(th2);
}
oVar.b();
return;
} finally {
}
}
}
} finally {
}
}
case 11:
((CarouselLayoutManager) this.f550b).t0();
return;
default:
View view = (View) this.f550b;
((InputMethodManager) D.h.getSystemService(view.getContext(), InputMethodManager.class)).showSoftInput(view, 1);
return;
}
}
}

View File

@@ -0,0 +1,74 @@
package F2;
import O.X;
import android.view.View;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.google.android.material.sidesheet.SideSheetBehavior;
import java.lang.ref.WeakReference;
import java.util.WeakHashMap;
/* loaded from: classes3.dex */
public final class g {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f551a;
/* renamed from: b, reason: collision with root package name */
public int f552b;
/* renamed from: c, reason: collision with root package name */
public boolean f553c;
/* renamed from: d, reason: collision with root package name */
public final Runnable f554d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ A.b f555e;
public g(SideSheetBehavior sideSheetBehavior) {
this.f551a = 0;
this.f555e = sideSheetBehavior;
this.f554d = new f(this, 0);
}
public final void a(int i) {
Runnable runnable = this.f554d;
A.b bVar = this.f555e;
switch (this.f551a) {
case 0:
SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) bVar;
WeakReference weakReference = sideSheetBehavior.p;
if (weakReference == null || weakReference.get() == null) {
return;
}
this.f552b = i;
if (this.f553c) {
return;
}
WeakHashMap weakHashMap = X.f1226a;
((View) sideSheetBehavior.p.get()).postOnAnimation((f) runnable);
this.f553c = true;
return;
default:
BottomSheetBehavior bottomSheetBehavior = (BottomSheetBehavior) bVar;
WeakReference weakReference2 = bottomSheetBehavior.f5556U;
if (weakReference2 == null || weakReference2.get() == null) {
return;
}
this.f552b = i;
if (this.f553c) {
return;
}
WeakHashMap weakHashMap2 = X.f1226a;
((View) bottomSheetBehavior.f5556U.get()).postOnAnimation((F0.c) runnable);
this.f553c = true;
return;
}
}
public g(BottomSheetBehavior bottomSheetBehavior) {
this.f551a = 1;
this.f555e = bottomSheetBehavior;
this.f554d = new F0.c(this, 12);
}
}