Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
package androidx.core.view.animation;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.view.animation.Interpolator;
/* loaded from: classes.dex */
class PathInterpolatorApi14 implements Interpolator {
private static final float PRECISION = 0.002f;
private final float[] mX;
private final float[] mY;
public PathInterpolatorApi14(Path path) {
PathMeasure pathMeasure = new PathMeasure(path, false);
float length = pathMeasure.getLength();
int i = (int) (length / PRECISION);
int i2 = i + 1;
this.mX = new float[i2];
this.mY = new float[i2];
float[] fArr = new float[2];
for (int i3 = 0; i3 < i2; i3++) {
pathMeasure.getPosTan((i3 * length) / i, fArr, null);
this.mX[i3] = fArr[0];
this.mY[i3] = fArr[1];
}
}
public PathInterpolatorApi14(float f, float f2) {
this(createQuad(f, f2));
}
public PathInterpolatorApi14(float f, float f2, float f3, float f4) {
this(createCubic(f, f2, f3, f4));
}
@Override // android.animation.TimeInterpolator
public float getInterpolation(float f) {
if (f <= 0.0f) {
return 0.0f;
}
if (f >= 1.0f) {
return 1.0f;
}
int length = this.mX.length - 1;
int i = 0;
while (length - i > 1) {
int i2 = (i + length) / 2;
if (f < this.mX[i2]) {
length = i2;
} else {
i = i2;
}
}
float[] fArr = this.mX;
float f2 = fArr[length];
float f3 = fArr[i];
float f4 = f2 - f3;
if (f4 == 0.0f) {
return this.mY[i];
}
float f5 = (f - f3) / f4;
float[] fArr2 = this.mY;
float f6 = fArr2[i];
return f6 + (f5 * (fArr2[length] - f6));
}
private static Path createQuad(float f, float f2) {
Path path = new Path();
path.moveTo(0.0f, 0.0f);
path.quadTo(f, f2, 1.0f, 1.0f);
return path;
}
private static Path createCubic(float f, float f2, float f3, float f4) {
Path path = new Path();
path.moveTo(0.0f, 0.0f);
path.cubicTo(f, f2, f3, f4, 1.0f, 1.0f);
return path;
}
}

View File

@@ -0,0 +1,46 @@
package androidx.core.view.animation;
import android.graphics.Path;
import android.view.animation.Interpolator;
import android.view.animation.PathInterpolator;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
/* loaded from: classes.dex */
public final class PathInterpolatorCompat {
private PathInterpolatorCompat() {
}
@NonNull
public static Interpolator create(@NonNull Path path) {
return Api21Impl.createPathInterpolator(path);
}
@NonNull
public static Interpolator create(float f, float f2) {
return Api21Impl.createPathInterpolator(f, f2);
}
@NonNull
public static Interpolator create(float f, float f2, float f3, float f4) {
return Api21Impl.createPathInterpolator(f, f2, f3, f4);
}
@RequiresApi(21)
public static class Api21Impl {
private Api21Impl() {
}
public static Interpolator createPathInterpolator(Path path) {
return new PathInterpolator(path);
}
public static Interpolator createPathInterpolator(float f, float f2) {
return new PathInterpolator(f, f2);
}
public static Interpolator createPathInterpolator(float f, float f2, float f3, float f4) {
return new PathInterpolator(f, f2, f3, f4);
}
}
}