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 i2;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import j0.AbstractInterpolatorC0400b;
import j0.C0399a;
/* renamed from: i2.a, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public abstract class AbstractC0396a {
/* renamed from: a, reason: collision with root package name */
public static final LinearInterpolator f6815a = new LinearInterpolator();
/* renamed from: b, reason: collision with root package name */
public static final C0399a f6816b = new C0399a(1);
/* renamed from: c, reason: collision with root package name */
public static final C0399a f6817c = new C0399a(0);
/* renamed from: d, reason: collision with root package name */
public static final C0399a f6818d = new AbstractInterpolatorC0400b(C0399a.f6902e);
/* JADX WARN: Type inference failed for: r0v3, types: [j0.a, j0.b] */
static {
new DecelerateInterpolator();
}
public static float a(float f2, float f4, float f5) {
return com.google.android.gms.measurement.internal.a.a(f4, f2, f5, f2);
}
public static float b(float f2, float f4, float f5, float f6, float f7) {
return f7 <= f5 ? f2 : f7 >= f6 ? f4 : a(f2, f4, (f7 - f5) / (f6 - f5));
}
public static int c(float f2, int i, int i4) {
return Math.round(f2 * (i4 - i)) + i;
}
}

View File

@@ -0,0 +1,97 @@
package i2;
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.content.Context;
import android.util.Log;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import java.util.ArrayList;
import s.j;
/* renamed from: i2.b, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0397b {
/* renamed from: a, reason: collision with root package name */
public final j f6819a = new j(0);
/* renamed from: b, reason: collision with root package name */
public final j f6820b = new j(0);
public static C0397b a(Context context, int i) {
try {
Animator loadAnimator = AnimatorInflater.loadAnimator(context, i);
if (loadAnimator instanceof AnimatorSet) {
return b(((AnimatorSet) loadAnimator).getChildAnimations());
}
if (loadAnimator == null) {
return null;
}
ArrayList arrayList = new ArrayList();
arrayList.add(loadAnimator);
return b(arrayList);
} catch (Exception e4) {
Log.w("MotionSpec", "Can't load animation resource ID #0x" + Integer.toHexString(i), e4);
return null;
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r6v1, types: [java.lang.Object, i2.c] */
public static C0397b b(ArrayList arrayList) {
C0397b c0397b = new C0397b();
int size = arrayList.size();
for (int i = 0; i < size; i++) {
Animator animator = (Animator) arrayList.get(i);
if (!(animator instanceof ObjectAnimator)) {
throw new IllegalArgumentException("Animator must be an ObjectAnimator: " + animator);
}
ObjectAnimator objectAnimator = (ObjectAnimator) animator;
c0397b.f6820b.put(objectAnimator.getPropertyName(), objectAnimator.getValues());
String propertyName = objectAnimator.getPropertyName();
long startDelay = objectAnimator.getStartDelay();
long duration = objectAnimator.getDuration();
TimeInterpolator interpolator = objectAnimator.getInterpolator();
if ((interpolator instanceof AccelerateDecelerateInterpolator) || interpolator == null) {
interpolator = AbstractC0396a.f6816b;
} else if (interpolator instanceof AccelerateInterpolator) {
interpolator = AbstractC0396a.f6817c;
} else if (interpolator instanceof DecelerateInterpolator) {
interpolator = AbstractC0396a.f6818d;
}
?? obj = new Object();
obj.f6824d = 0;
obj.f6825e = 1;
obj.f6821a = startDelay;
obj.f6822b = duration;
obj.f6823c = interpolator;
obj.f6824d = objectAnimator.getRepeatCount();
obj.f6825e = objectAnimator.getRepeatMode();
c0397b.f6819a.put(propertyName, obj);
}
return c0397b;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof C0397b) {
return this.f6819a.equals(((C0397b) obj).f6819a);
}
return false;
}
public final int hashCode() {
return this.f6819a.hashCode();
}
public final String toString() {
return "\n" + C0397b.class.getName() + '{' + Integer.toHexString(System.identityHashCode(this)) + " timings: " + this.f6819a + "}\n";
}
}

View File

@@ -0,0 +1,65 @@
package i2;
import android.animation.TimeInterpolator;
/* renamed from: i2.c, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0398c {
/* renamed from: a, reason: collision with root package name */
public long f6821a;
/* renamed from: b, reason: collision with root package name */
public long f6822b;
/* renamed from: c, reason: collision with root package name */
public TimeInterpolator f6823c;
/* renamed from: d, reason: collision with root package name */
public int f6824d;
/* renamed from: e, reason: collision with root package name */
public int f6825e;
public final TimeInterpolator a() {
TimeInterpolator timeInterpolator = this.f6823c;
return timeInterpolator != null ? timeInterpolator : AbstractC0396a.f6816b;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof C0398c)) {
return false;
}
C0398c c0398c = (C0398c) obj;
if (this.f6821a == c0398c.f6821a && this.f6822b == c0398c.f6822b && this.f6824d == c0398c.f6824d && this.f6825e == c0398c.f6825e) {
return a().getClass().equals(c0398c.a().getClass());
}
return false;
}
public final int hashCode() {
long j4 = this.f6821a;
long j5 = this.f6822b;
return ((((a().getClass().hashCode() + (((((int) (j4 ^ (j4 >>> 32))) * 31) + ((int) ((j5 >>> 32) ^ j5))) * 31)) * 31) + this.f6824d) * 31) + this.f6825e;
}
public final String toString() {
StringBuilder sb = new StringBuilder("\n");
sb.append(C0398c.class.getName());
sb.append('{');
sb.append(Integer.toHexString(System.identityHashCode(this)));
sb.append(" delay: ");
sb.append(this.f6821a);
sb.append(" duration: ");
sb.append(this.f6822b);
sb.append(" interpolator: ");
sb.append(a().getClass());
sb.append(" repeatCount: ");
sb.append(this.f6824d);
sb.append(" repeatMode: ");
return com.google.android.gms.measurement.internal.a.m(sb, this.f6825e, "}\n");
}
}