Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
24
apk_decompiled/sources/f0/C0337a.java
Normal file
24
apk_decompiled/sources/f0/C0337a.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package f0;
|
||||
|
||||
import android.text.Editable;
|
||||
import d0.s;
|
||||
|
||||
/* renamed from: f0.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0337a extends Editable.Factory {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final Object f6445a = new Object();
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public static volatile C0337a f6446b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public static Class f6447c;
|
||||
|
||||
@Override // android.text.Editable.Factory
|
||||
public final Editable newEditable(CharSequence charSequence) {
|
||||
Class cls = f6447c;
|
||||
return cls != null ? new s(cls, charSequence) : super.newEditable(charSequence);
|
||||
}
|
||||
}
|
||||
507
apk_decompiled/sources/f0/C0338b.java
Normal file
507
apk_decompiled/sources/f0/C0338b.java
Normal file
@@ -0,0 +1,507 @@
|
||||
package f0;
|
||||
|
||||
import O.D0;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemClock;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import androidx.cardview.widget.CardView;
|
||||
import androidx.lifecycle.B;
|
||||
import e3.G;
|
||||
import g.InterfaceC0355b;
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.WeakHashMap;
|
||||
import kotlin.UByte;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.Charsets;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
import l.m;
|
||||
import l.x;
|
||||
import o0.C0537n;
|
||||
import o0.C0545w;
|
||||
import o0.E;
|
||||
import okhttp3.internal.publicsuffix.PublicSuffixDatabase;
|
||||
import q2.AbstractC0562d;
|
||||
import r.C0564a;
|
||||
import r3.AbstractC0569a;
|
||||
import r3.C0579k;
|
||||
import r3.z;
|
||||
import s0.InterfaceC0584c;
|
||||
import x2.o;
|
||||
import x2.p;
|
||||
|
||||
/* renamed from: f0.b, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public class C0338b implements InterfaceC0355b, x, o, InterfaceC0584c {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f6448a;
|
||||
|
||||
public /* synthetic */ C0338b(int i) {
|
||||
this.f6448a = i;
|
||||
}
|
||||
|
||||
public static final String d(byte[] bArr, byte[][] bArr2, int i) {
|
||||
int i4;
|
||||
boolean z3;
|
||||
int i5;
|
||||
int i6;
|
||||
int i7 = -1;
|
||||
byte[] bArr3 = PublicSuffixDatabase.f8101e;
|
||||
int length = bArr.length;
|
||||
int i8 = 0;
|
||||
while (i8 < length) {
|
||||
int i9 = (i8 + length) / 2;
|
||||
while (i9 > i7 && bArr[i9] != 10) {
|
||||
i9 += i7;
|
||||
}
|
||||
int i10 = i9 + 1;
|
||||
int i11 = 1;
|
||||
while (true) {
|
||||
i4 = i10 + i11;
|
||||
if (bArr[i4] == 10) {
|
||||
break;
|
||||
}
|
||||
i11++;
|
||||
}
|
||||
int i12 = i4 - i10;
|
||||
int i13 = i;
|
||||
boolean z4 = false;
|
||||
int i14 = 0;
|
||||
int i15 = 0;
|
||||
while (true) {
|
||||
if (z4) {
|
||||
i5 = 46;
|
||||
z3 = false;
|
||||
} else {
|
||||
byte b4 = bArr2[i13][i14];
|
||||
byte[] bArr4 = f3.c.f6469a;
|
||||
int i16 = b4 & UByte.MAX_VALUE;
|
||||
z3 = z4;
|
||||
i5 = i16;
|
||||
}
|
||||
byte b5 = bArr[i10 + i15];
|
||||
byte[] bArr5 = f3.c.f6469a;
|
||||
i6 = i5 - (b5 & UByte.MAX_VALUE);
|
||||
if (i6 != 0) {
|
||||
break;
|
||||
}
|
||||
i15++;
|
||||
i14++;
|
||||
if (i15 == i12) {
|
||||
break;
|
||||
}
|
||||
if (bArr2[i13].length != i14) {
|
||||
z4 = z3;
|
||||
} else {
|
||||
if (i13 == bArr2.length - 1) {
|
||||
break;
|
||||
}
|
||||
i13++;
|
||||
z4 = true;
|
||||
i14 = -1;
|
||||
}
|
||||
}
|
||||
if (i6 >= 0) {
|
||||
if (i6 <= 0) {
|
||||
int i17 = i12 - i15;
|
||||
int length2 = bArr2[i13].length - i14;
|
||||
int length3 = bArr2.length;
|
||||
for (int i18 = i13 + 1; i18 < length3; i18++) {
|
||||
length2 += bArr2[i18].length;
|
||||
}
|
||||
if (length2 >= i17) {
|
||||
if (length2 <= i17) {
|
||||
Charset UTF_8 = StandardCharsets.UTF_8;
|
||||
Intrinsics.checkNotNullExpressionValue(UTF_8, "UTF_8");
|
||||
return new String(bArr, i10, i12, UTF_8);
|
||||
}
|
||||
}
|
||||
}
|
||||
i8 = i4 + 1;
|
||||
i7 = -1;
|
||||
}
|
||||
length = i9;
|
||||
i7 = -1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final boolean e(z zVar) {
|
||||
boolean endsWith;
|
||||
z zVar2 = s3.h.f8485e;
|
||||
zVar.getClass();
|
||||
C0579k c0579k = s3.c.f8474a;
|
||||
C0579k c0579k2 = zVar.f8322a;
|
||||
int k4 = C0579k.k(c0579k2, c0579k);
|
||||
if (k4 == -1) {
|
||||
k4 = C0579k.k(c0579k2, s3.c.f8475b);
|
||||
}
|
||||
if (k4 != -1) {
|
||||
c0579k2 = C0579k.o(c0579k2, k4 + 1, 0, 2);
|
||||
} else if (zVar.g() != null && c0579k2.d() == 2) {
|
||||
c0579k2 = C0579k.f8285d;
|
||||
}
|
||||
endsWith = StringsKt__StringsJVMKt.endsWith(c0579k2.q(), ".class", true);
|
||||
return !endsWith;
|
||||
}
|
||||
|
||||
public static ArrayList g(List protocols) {
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : protocols) {
|
||||
if (((G) obj) != G.HTTP_1_0) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList(CollectionsKt.g(arrayList));
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(((G) it.next()).f6261a);
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v1, types: [java.lang.Object, r3.h] */
|
||||
public static byte[] j(List protocols) {
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
?? obj = new Object();
|
||||
Iterator it = g(protocols).iterator();
|
||||
while (it.hasNext()) {
|
||||
String str = (String) it.next();
|
||||
obj.j0(str.length());
|
||||
obj.o0(str);
|
||||
}
|
||||
return obj.b0(obj.f8284b);
|
||||
}
|
||||
|
||||
public static C0537n k(Context context, E destination, Bundle bundle, B hostLifecycleState, C0545w c0545w) {
|
||||
String id = UUID.randomUUID().toString();
|
||||
Intrinsics.checkNotNullExpressionValue(id, "randomUUID().toString()");
|
||||
Intrinsics.checkNotNullParameter(destination, "destination");
|
||||
Intrinsics.checkNotNullParameter(hostLifecycleState, "hostLifecycleState");
|
||||
Intrinsics.checkNotNullParameter(id, "id");
|
||||
return new C0537n(context, destination, bundle, hostLifecycleState, c0545w, id, null);
|
||||
}
|
||||
|
||||
public static C0579k l(String str) {
|
||||
char c4;
|
||||
int i;
|
||||
char charAt;
|
||||
char c5 = 'A';
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
byte[] bArr = AbstractC0569a.f8269a;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
int length = str.length();
|
||||
while (true) {
|
||||
c4 = '\t';
|
||||
if (length <= 0 || !((charAt = str.charAt(length - 1)) == '=' || charAt == '\n' || charAt == '\r' || charAt == ' ' || charAt == '\t')) {
|
||||
break;
|
||||
}
|
||||
length--;
|
||||
}
|
||||
int i4 = (int) ((length * 6) / 8);
|
||||
byte[] bArr2 = new byte[i4];
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
int i7 = 0;
|
||||
int i8 = 0;
|
||||
while (true) {
|
||||
if (i5 < length) {
|
||||
char charAt2 = str.charAt(i5);
|
||||
char c6 = c5;
|
||||
if (c5 <= charAt2 && charAt2 < '[') {
|
||||
i = charAt2 - 'A';
|
||||
} else if ('a' <= charAt2 && charAt2 < '{') {
|
||||
i = charAt2 - 'G';
|
||||
} else if ('0' <= charAt2 && charAt2 < ':') {
|
||||
i = charAt2 + 4;
|
||||
} else if (charAt2 == '+' || charAt2 == '-') {
|
||||
i = 62;
|
||||
} else if (charAt2 == '/' || charAt2 == '_') {
|
||||
i = 63;
|
||||
} else {
|
||||
if (charAt2 != '\n' && charAt2 != '\r' && charAt2 != ' ' && charAt2 != c4) {
|
||||
break;
|
||||
}
|
||||
i5++;
|
||||
c5 = c6;
|
||||
c4 = '\t';
|
||||
}
|
||||
int i9 = i | (i7 << 6);
|
||||
i6++;
|
||||
if (i6 % 4 == 0) {
|
||||
bArr2[i8] = (byte) (i9 >> 16);
|
||||
int i10 = i8 + 2;
|
||||
bArr2[i8 + 1] = (byte) (i9 >> 8);
|
||||
i8 += 3;
|
||||
bArr2[i10] = (byte) i9;
|
||||
}
|
||||
i7 = i9;
|
||||
i5++;
|
||||
c5 = c6;
|
||||
c4 = '\t';
|
||||
} else {
|
||||
int i11 = i6 % 4;
|
||||
if (i11 != 1) {
|
||||
if (i11 == 2) {
|
||||
bArr2[i8] = (byte) ((i7 << 12) >> 16);
|
||||
i8 = 1 + i8;
|
||||
} else if (i11 == 3) {
|
||||
int i12 = i7 << 6;
|
||||
int i13 = 1 + i8;
|
||||
bArr2[i8] = (byte) (i12 >> 16);
|
||||
i8 += 2;
|
||||
bArr2[i13] = (byte) (i12 >> 8);
|
||||
}
|
||||
if (i8 != i4) {
|
||||
bArr2 = Arrays.copyOf(bArr2, i8);
|
||||
Intrinsics.checkNotNullExpressionValue(bArr2, "copyOf(this, newSize)");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
bArr2 = null;
|
||||
if (bArr2 != null) {
|
||||
return new C0579k(bArr2);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static C0579k m(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
if (str.length() % 2 != 0) {
|
||||
throw new IllegalArgumentException("Unexpected hex string: ".concat(str).toString());
|
||||
}
|
||||
int length = str.length() / 2;
|
||||
byte[] bArr = new byte[length];
|
||||
for (int i = 0; i < length; i++) {
|
||||
int i4 = i * 2;
|
||||
bArr[i] = (byte) (s3.b.a(str.charAt(i4 + 1)) + (s3.b.a(str.charAt(i4)) << 4));
|
||||
}
|
||||
return new C0579k(bArr);
|
||||
}
|
||||
|
||||
public static C0579k n(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
byte[] bytes = str.getBytes(Charsets.UTF_8);
|
||||
Intrinsics.checkNotNullExpressionValue(bytes, "this as java.lang.String).getBytes(charset)");
|
||||
C0579k c0579k = new C0579k(bytes);
|
||||
c0579k.f8288c = str;
|
||||
return c0579k;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v1, types: [java.lang.Object, r3.h] */
|
||||
public static z o(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
C0579k c0579k = s3.c.f8474a;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
?? obj = new Object();
|
||||
obj.o0(str);
|
||||
return s3.c.d(obj, false);
|
||||
}
|
||||
|
||||
public static z p(File file) {
|
||||
String str = z.f8321b;
|
||||
Intrinsics.checkNotNullParameter(file, "<this>");
|
||||
String file2 = file.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(file2, "toString(...)");
|
||||
return o(file2);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:35:0x0045, code lost:
|
||||
|
||||
if (java.lang.Character.isHighSurrogate(r5) != false) goto L33;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:64:0x0082, code lost:
|
||||
|
||||
if (java.lang.Character.isLowSurrogate(r5) != false) goto L58;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:68:0x0075, code lost:
|
||||
|
||||
if (r11 != false) goto L46;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:70:0x00a2, code lost:
|
||||
|
||||
if (r10 != (-1)) goto L70;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static boolean r(f0.C0339c r7, android.text.Editable r8, int r9, int r10, boolean r11) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 240
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: f0.C0338b.r(f0.c, android.text.Editable, int, int, boolean):boolean");
|
||||
}
|
||||
|
||||
public static boolean s() {
|
||||
return Intrinsics.areEqual("Dalvik", System.getProperty("java.vm.name"));
|
||||
}
|
||||
|
||||
public static C0579k t(byte[] bArr) {
|
||||
C0579k c0579k = C0579k.f8285d;
|
||||
Intrinsics.checkNotNullParameter(bArr, "<this>");
|
||||
Intrinsics.checkNotNullParameter(bArr, "<this>");
|
||||
int length = bArr.length;
|
||||
m3.d.j(bArr.length, 0, length);
|
||||
return new C0579k(ArraysKt.copyOfRange(bArr, 0, length));
|
||||
}
|
||||
|
||||
private final void u() {
|
||||
}
|
||||
|
||||
private final void v(int i, Serializable serializable) {
|
||||
}
|
||||
|
||||
@Override // s0.InterfaceC0584c
|
||||
public void a(int i, Serializable serializable) {
|
||||
String str;
|
||||
switch (this.f6448a) {
|
||||
case 14:
|
||||
return;
|
||||
default:
|
||||
switch (i) {
|
||||
case 1:
|
||||
str = "RESULT_INSTALL_SUCCESS";
|
||||
break;
|
||||
case 2:
|
||||
str = "RESULT_ALREADY_INSTALLED";
|
||||
break;
|
||||
case 3:
|
||||
str = "RESULT_UNSUPPORTED_ART_VERSION";
|
||||
break;
|
||||
case 4:
|
||||
str = "RESULT_NOT_WRITABLE";
|
||||
break;
|
||||
case 5:
|
||||
str = "RESULT_DESIRED_FORMAT_UNSUPPORTED";
|
||||
break;
|
||||
case 6:
|
||||
str = "RESULT_BASELINE_PROFILE_NOT_FOUND";
|
||||
break;
|
||||
case 7:
|
||||
str = "RESULT_IO_EXCEPTION";
|
||||
break;
|
||||
case 8:
|
||||
str = "RESULT_PARSE_EXCEPTION";
|
||||
break;
|
||||
case 9:
|
||||
default:
|
||||
str = "";
|
||||
break;
|
||||
case 10:
|
||||
str = "RESULT_INSTALL_SKIP_FILE_SUCCESS";
|
||||
break;
|
||||
case 11:
|
||||
str = "RESULT_DELETE_SKIP_FILE_SUCCESS";
|
||||
break;
|
||||
}
|
||||
if (i == 6 || i == 7 || i == 8) {
|
||||
Log.e("ProfileInstaller", str, (Throwable) serializable);
|
||||
return;
|
||||
} else {
|
||||
Log.d("ProfileInstaller", str);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l.x
|
||||
public void b(m mVar, boolean z3) {
|
||||
}
|
||||
|
||||
@Override // x2.o
|
||||
public D0 c(View view, D0 d02, p pVar) {
|
||||
pVar.f8972d = d02.a() + pVar.f8972d;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
boolean z3 = view.getLayoutDirection() == 1;
|
||||
int b4 = d02.b();
|
||||
int c4 = d02.c();
|
||||
int i = pVar.f8969a + (z3 ? c4 : b4);
|
||||
pVar.f8969a = i;
|
||||
int i4 = pVar.f8971c;
|
||||
if (!z3) {
|
||||
b4 = c4;
|
||||
}
|
||||
int i5 = i4 + b4;
|
||||
pVar.f8971c = i5;
|
||||
view.setPaddingRelative(i, pVar.f8970b, i5, pVar.f8972d);
|
||||
return d02;
|
||||
}
|
||||
|
||||
@Override // l.x
|
||||
public boolean f(m mVar) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // s0.InterfaceC0584c
|
||||
public void h() {
|
||||
switch (this.f6448a) {
|
||||
case 14:
|
||||
return;
|
||||
default:
|
||||
Log.d("ProfileInstaller", "DIAGNOSTIC_PROFILE_IS_COMPRESSED");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public float i(float f2, float f4) {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
public long q() {
|
||||
switch (this.f6448a) {
|
||||
case 2:
|
||||
return SystemClock.elapsedRealtime();
|
||||
default:
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
public void w(F.i iVar, float f2) {
|
||||
C0564a c0564a = (C0564a) ((Drawable) iVar.f490b);
|
||||
CardView cardView = (CardView) iVar.f491c;
|
||||
boolean useCompatPadding = cardView.getUseCompatPadding();
|
||||
boolean preventCornerOverlap = cardView.getPreventCornerOverlap();
|
||||
if (f2 != c0564a.f8197e || c0564a.f8198f != useCompatPadding || c0564a.f8199g != preventCornerOverlap) {
|
||||
c0564a.f8197e = f2;
|
||||
c0564a.f8198f = useCompatPadding;
|
||||
c0564a.f8199g = preventCornerOverlap;
|
||||
c0564a.b(null);
|
||||
c0564a.invalidateSelf();
|
||||
}
|
||||
if (!cardView.getUseCompatPadding()) {
|
||||
iVar.G(0, 0, 0, 0);
|
||||
return;
|
||||
}
|
||||
C0564a c0564a2 = (C0564a) ((Drawable) iVar.f490b);
|
||||
float f4 = c0564a2.f8197e;
|
||||
float f5 = c0564a2.f8193a;
|
||||
int ceil = (int) Math.ceil(r.b.a(f4, f5, cardView.getPreventCornerOverlap()));
|
||||
int ceil2 = (int) Math.ceil(r.b.b(f4, f5, cardView.getPreventCornerOverlap()));
|
||||
iVar.G(ceil, ceil2, ceil, ceil2);
|
||||
}
|
||||
|
||||
public C0338b(Context context, String str, AbstractC0562d callback) {
|
||||
this.f6448a = 19;
|
||||
Intrinsics.checkNotNullParameter(context, "context");
|
||||
Intrinsics.checkNotNullParameter(callback, "callback");
|
||||
}
|
||||
}
|
||||
60
apk_decompiled/sources/f0/C0339c.java
Normal file
60
apk_decompiled/sources/f0/C0339c.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package f0;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputConnectionWrapper;
|
||||
import android.widget.EditText;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
/* renamed from: f0.c, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0339c extends InputConnectionWrapper {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final EditText f6449a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final C0338b f6450b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public C0339c(EditText editText, InputConnection inputConnection, EditorInfo editorInfo) {
|
||||
super(inputConnection, false);
|
||||
C0338b c0338b = new C0338b(0);
|
||||
this.f6449a = editText;
|
||||
this.f6450b = c0338b;
|
||||
if (d0.h.f6123k != null) {
|
||||
d0.h a2 = d0.h.a();
|
||||
if (a2.b() != 1 || editorInfo == null) {
|
||||
return;
|
||||
}
|
||||
if (editorInfo.extras == null) {
|
||||
editorInfo.extras = new Bundle();
|
||||
}
|
||||
d0.e eVar = a2.f6128e;
|
||||
eVar.getClass();
|
||||
Bundle bundle = editorInfo.extras;
|
||||
e0.b bVar = (e0.b) eVar.f6121c.f27a;
|
||||
int a4 = bVar.a(4);
|
||||
bundle.putInt("android.support.text.emoji.emojiCompat_metadataVersion", a4 != 0 ? ((ByteBuffer) bVar.f1221d).getInt(a4 + bVar.f1218a) : 0);
|
||||
Bundle bundle2 = editorInfo.extras;
|
||||
eVar.f6119a.getClass();
|
||||
bundle2.putBoolean("android.support.text.emoji.emojiCompat_replaceAll", false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
|
||||
public final boolean deleteSurroundingText(int i, int i4) {
|
||||
Editable editableText = this.f6449a.getEditableText();
|
||||
this.f6450b.getClass();
|
||||
return C0338b.r(this, editableText, i, i4, false) || super.deleteSurroundingText(i, i4);
|
||||
}
|
||||
|
||||
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
|
||||
public final boolean deleteSurroundingTextInCodePoints(int i, int i4) {
|
||||
Editable editableText = this.f6449a.getEditableText();
|
||||
this.f6450b.getClass();
|
||||
return C0338b.r(this, editableText, i, i4, true) || super.deleteSurroundingTextInCodePoints(i, i4);
|
||||
}
|
||||
}
|
||||
73
apk_decompiled/sources/f0/C0340d.java
Normal file
73
apk_decompiled/sources/f0/C0340d.java
Normal file
@@ -0,0 +1,73 @@
|
||||
package f0;
|
||||
|
||||
import android.text.InputFilter;
|
||||
import android.text.Selection;
|
||||
import android.text.Spannable;
|
||||
import android.widget.TextView;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/* renamed from: f0.d, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0340d extends d0.f {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final WeakReference f6451a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final WeakReference f6452b;
|
||||
|
||||
public C0340d(TextView textView, C0341e c0341e) {
|
||||
this.f6451a = new WeakReference(textView);
|
||||
this.f6452b = new WeakReference(c0341e);
|
||||
}
|
||||
|
||||
@Override // d0.f
|
||||
public final void b() {
|
||||
InputFilter[] filters;
|
||||
int length;
|
||||
TextView textView = (TextView) this.f6451a.get();
|
||||
InputFilter inputFilter = (InputFilter) this.f6452b.get();
|
||||
if (inputFilter == null || textView == null || (filters = textView.getFilters()) == null) {
|
||||
return;
|
||||
}
|
||||
for (InputFilter inputFilter2 : filters) {
|
||||
if (inputFilter2 == inputFilter) {
|
||||
if (textView.isAttachedToWindow()) {
|
||||
CharSequence text = textView.getText();
|
||||
d0.h a2 = d0.h.a();
|
||||
if (text == null) {
|
||||
length = 0;
|
||||
} else {
|
||||
a2.getClass();
|
||||
length = text.length();
|
||||
}
|
||||
CharSequence e4 = a2.e(text, 0, length);
|
||||
if (text == e4) {
|
||||
return;
|
||||
}
|
||||
int selectionStart = Selection.getSelectionStart(e4);
|
||||
int selectionEnd = Selection.getSelectionEnd(e4);
|
||||
textView.setText(e4);
|
||||
if (e4 instanceof Spannable) {
|
||||
Spannable spannable = (Spannable) e4;
|
||||
if (selectionStart >= 0 && selectionEnd >= 0) {
|
||||
Selection.setSelection(spannable, selectionStart, selectionEnd);
|
||||
return;
|
||||
} else if (selectionStart >= 0) {
|
||||
Selection.setSelection(spannable, selectionStart);
|
||||
return;
|
||||
} else {
|
||||
if (selectionEnd >= 0) {
|
||||
Selection.setSelection(spannable, selectionEnd);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
83
apk_decompiled/sources/f0/C0341e.java
Normal file
83
apk_decompiled/sources/f0/C0341e.java
Normal file
@@ -0,0 +1,83 @@
|
||||
package f0;
|
||||
|
||||
import android.text.InputFilter;
|
||||
import android.widget.TextView;
|
||||
|
||||
/* renamed from: f0.e, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0341e implements InputFilter {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TextView f6453a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public C0340d f6454b;
|
||||
|
||||
public C0341e(TextView textView) {
|
||||
this.f6453a = textView;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:8:0x0017, code lost:
|
||||
|
||||
if (r1 != 3) goto L27;
|
||||
*/
|
||||
@Override // android.text.InputFilter
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.CharSequence filter(java.lang.CharSequence r4, int r5, int r6, android.text.Spanned r7, int r8, int r9) {
|
||||
/*
|
||||
r3 = this;
|
||||
android.widget.TextView r0 = r3.f6453a
|
||||
boolean r1 = r0.isInEditMode()
|
||||
if (r1 == 0) goto L9
|
||||
goto L48
|
||||
L9:
|
||||
d0.h r1 = d0.h.a()
|
||||
int r1 = r1.b()
|
||||
if (r1 == 0) goto L49
|
||||
r2 = 1
|
||||
if (r1 == r2) goto L1a
|
||||
r5 = 3
|
||||
if (r1 == r5) goto L49
|
||||
goto L48
|
||||
L1a:
|
||||
if (r9 != 0) goto L2b
|
||||
if (r8 != 0) goto L2b
|
||||
int r3 = r7.length()
|
||||
if (r3 != 0) goto L2b
|
||||
java.lang.CharSequence r3 = r0.getText()
|
||||
if (r4 != r3) goto L2b
|
||||
goto L48
|
||||
L2b:
|
||||
if (r4 == 0) goto L48
|
||||
if (r5 != 0) goto L36
|
||||
int r3 = r4.length()
|
||||
if (r6 != r3) goto L36
|
||||
goto L3a
|
||||
L36:
|
||||
java.lang.CharSequence r4 = r4.subSequence(r5, r6)
|
||||
L3a:
|
||||
d0.h r3 = d0.h.a()
|
||||
int r5 = r4.length()
|
||||
r6 = 0
|
||||
java.lang.CharSequence r3 = r3.e(r4, r6, r5)
|
||||
return r3
|
||||
L48:
|
||||
return r4
|
||||
L49:
|
||||
d0.h r5 = d0.h.a()
|
||||
f0.d r6 = r3.f6454b
|
||||
if (r6 != 0) goto L58
|
||||
f0.d r6 = new f0.d
|
||||
r6.<init>(r0, r3)
|
||||
r3.f6454b = r6
|
||||
L58:
|
||||
f0.d r3 = r3.f6454b
|
||||
r5.f(r3)
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: f0.C0341e.filter(java.lang.CharSequence, int, int, android.text.Spanned, int, int):java.lang.CharSequence");
|
||||
}
|
||||
}
|
||||
57
apk_decompiled/sources/f0/C0342f.java
Normal file
57
apk_decompiled/sources/f0/C0342f.java
Normal file
@@ -0,0 +1,57 @@
|
||||
package f0;
|
||||
|
||||
import android.text.Editable;
|
||||
import android.text.method.KeyListener;
|
||||
import android.text.method.MetaKeyKeyListener;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
|
||||
/* renamed from: f0.f, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0342f implements KeyListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final KeyListener f6455a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final C0338b f6456b;
|
||||
|
||||
public C0342f(KeyListener keyListener) {
|
||||
C0338b c0338b = new C0338b(1);
|
||||
this.f6455a = keyListener;
|
||||
this.f6456b = c0338b;
|
||||
}
|
||||
|
||||
@Override // android.text.method.KeyListener
|
||||
public final void clearMetaKeyState(View view, Editable editable, int i) {
|
||||
this.f6455a.clearMetaKeyState(view, editable, i);
|
||||
}
|
||||
|
||||
@Override // android.text.method.KeyListener
|
||||
public final int getInputType() {
|
||||
return this.f6455a.getInputType();
|
||||
}
|
||||
|
||||
@Override // android.text.method.KeyListener
|
||||
public final boolean onKeyDown(View view, Editable editable, int i, KeyEvent keyEvent) {
|
||||
boolean z3;
|
||||
this.f6456b.getClass();
|
||||
if (i != 67 ? i != 112 ? false : R0.h.c(editable, keyEvent, true) : R0.h.c(editable, keyEvent, false)) {
|
||||
MetaKeyKeyListener.adjustMetaAfterKeypress(editable);
|
||||
z3 = true;
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
return z3 || this.f6455a.onKeyDown(view, editable, i, keyEvent);
|
||||
}
|
||||
|
||||
@Override // android.text.method.KeyListener
|
||||
public final boolean onKeyOther(View view, Editable editable, KeyEvent keyEvent) {
|
||||
return this.f6455a.onKeyOther(view, editable, keyEvent);
|
||||
}
|
||||
|
||||
@Override // android.text.method.KeyListener
|
||||
public final boolean onKeyUp(View view, Editable editable, int i, KeyEvent keyEvent) {
|
||||
return this.f6455a.onKeyUp(view, editable, i, keyEvent);
|
||||
}
|
||||
}
|
||||
94
apk_decompiled/sources/f0/C0343g.java
Normal file
94
apk_decompiled/sources/f0/C0343g.java
Normal file
@@ -0,0 +1,94 @@
|
||||
package f0;
|
||||
|
||||
import android.text.InputFilter;
|
||||
import android.text.method.PasswordTransformationMethod;
|
||||
import android.text.method.TransformationMethod;
|
||||
import android.util.SparseArray;
|
||||
import android.widget.TextView;
|
||||
import m3.l;
|
||||
|
||||
/* renamed from: f0.g, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0343g extends l {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TextView f6457a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final C0341e f6458b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f6459c = true;
|
||||
|
||||
public C0343g(TextView textView) {
|
||||
this.f6457a = textView;
|
||||
this.f6458b = new C0341e(textView);
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final boolean F() {
|
||||
return this.f6459c;
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final void W(boolean z3) {
|
||||
if (z3) {
|
||||
TextView textView = this.f6457a;
|
||||
textView.setTransformationMethod(e0(textView.getTransformationMethod()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final void X(boolean z3) {
|
||||
this.f6459c = z3;
|
||||
TextView textView = this.f6457a;
|
||||
textView.setTransformationMethod(e0(textView.getTransformationMethod()));
|
||||
textView.setFilters(u(textView.getFilters()));
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final TransformationMethod e0(TransformationMethod transformationMethod) {
|
||||
return this.f6459c ? ((transformationMethod instanceof k) || (transformationMethod instanceof PasswordTransformationMethod)) ? transformationMethod : new k(transformationMethod) : transformationMethod instanceof k ? ((k) transformationMethod).f6466a : transformationMethod;
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final InputFilter[] u(InputFilter[] inputFilterArr) {
|
||||
if (!this.f6459c) {
|
||||
SparseArray sparseArray = new SparseArray(1);
|
||||
for (int i = 0; i < inputFilterArr.length; i++) {
|
||||
InputFilter inputFilter = inputFilterArr[i];
|
||||
if (inputFilter instanceof C0341e) {
|
||||
sparseArray.put(i, inputFilter);
|
||||
}
|
||||
}
|
||||
if (sparseArray.size() == 0) {
|
||||
return inputFilterArr;
|
||||
}
|
||||
int length = inputFilterArr.length;
|
||||
InputFilter[] inputFilterArr2 = new InputFilter[inputFilterArr.length - sparseArray.size()];
|
||||
int i4 = 0;
|
||||
for (int i5 = 0; i5 < length; i5++) {
|
||||
if (sparseArray.indexOfKey(i5) < 0) {
|
||||
inputFilterArr2[i4] = inputFilterArr[i5];
|
||||
i4++;
|
||||
}
|
||||
}
|
||||
return inputFilterArr2;
|
||||
}
|
||||
int length2 = inputFilterArr.length;
|
||||
int i6 = 0;
|
||||
while (true) {
|
||||
C0341e c0341e = this.f6458b;
|
||||
if (i6 >= length2) {
|
||||
InputFilter[] inputFilterArr3 = new InputFilter[inputFilterArr.length + 1];
|
||||
System.arraycopy(inputFilterArr, 0, inputFilterArr3, 0, length2);
|
||||
inputFilterArr3[length2] = c0341e;
|
||||
return inputFilterArr3;
|
||||
}
|
||||
if (inputFilterArr[i6] == c0341e) {
|
||||
return inputFilterArr;
|
||||
}
|
||||
i6++;
|
||||
}
|
||||
}
|
||||
}
|
||||
51
apk_decompiled/sources/f0/C0344h.java
Normal file
51
apk_decompiled/sources/f0/C0344h.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package f0;
|
||||
|
||||
import android.text.InputFilter;
|
||||
import android.text.method.TransformationMethod;
|
||||
import android.widget.TextView;
|
||||
import m3.l;
|
||||
|
||||
/* renamed from: f0.h, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0344h extends l {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0343g f6460a;
|
||||
|
||||
public C0344h(TextView textView) {
|
||||
this.f6460a = new C0343g(textView);
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final boolean F() {
|
||||
return this.f6460a.f6459c;
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final void W(boolean z3) {
|
||||
if (d0.h.f6123k != null) {
|
||||
this.f6460a.W(z3);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final void X(boolean z3) {
|
||||
boolean z4 = d0.h.f6123k != null;
|
||||
C0343g c0343g = this.f6460a;
|
||||
if (z4) {
|
||||
c0343g.X(z3);
|
||||
} else {
|
||||
c0343g.f6459c = z3;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final TransformationMethod e0(TransformationMethod transformationMethod) {
|
||||
return !(d0.h.f6123k != null) ? transformationMethod : this.f6460a.e0(transformationMethod);
|
||||
}
|
||||
|
||||
@Override // m3.l
|
||||
public final InputFilter[] u(InputFilter[] inputFilterArr) {
|
||||
return !(d0.h.f6123k != null) ? inputFilterArr : this.f6460a.u(inputFilterArr);
|
||||
}
|
||||
}
|
||||
55
apk_decompiled/sources/f0/C0345i.java
Normal file
55
apk_decompiled/sources/f0/C0345i.java
Normal file
@@ -0,0 +1,55 @@
|
||||
package f0;
|
||||
|
||||
import android.widget.EditText;
|
||||
import java.lang.ref.WeakReference;
|
||||
import m.J0;
|
||||
|
||||
/* renamed from: f0.i, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0345i extends d0.f {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f6461a = 0;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final WeakReference f6462b;
|
||||
|
||||
public C0345i(EditText editText) {
|
||||
this.f6462b = new WeakReference(editText);
|
||||
}
|
||||
|
||||
@Override // d0.f
|
||||
public void a() {
|
||||
switch (this.f6461a) {
|
||||
case 1:
|
||||
J0 j02 = (J0) this.f6462b.get();
|
||||
if (j02 != null) {
|
||||
j02.c();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // d0.f
|
||||
public final void b() {
|
||||
switch (this.f6461a) {
|
||||
case 0:
|
||||
C0346j.a((EditText) this.f6462b.get(), 1);
|
||||
return;
|
||||
default:
|
||||
J0 j02 = (J0) this.f6462b.get();
|
||||
if (j02 != null) {
|
||||
j02.c();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public C0345i(J0 j02) {
|
||||
this.f6462b = new WeakReference(j02);
|
||||
}
|
||||
}
|
||||
79
apk_decompiled/sources/f0/C0346j.java
Normal file
79
apk_decompiled/sources/f0/C0346j.java
Normal file
@@ -0,0 +1,79 @@
|
||||
package f0;
|
||||
|
||||
import android.text.Editable;
|
||||
import android.text.Selection;
|
||||
import android.text.Spannable;
|
||||
import android.text.TextWatcher;
|
||||
import android.widget.EditText;
|
||||
|
||||
/* renamed from: f0.j, reason: case insensitive filesystem */
|
||||
/* loaded from: classes.dex */
|
||||
public final class C0346j implements TextWatcher {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final EditText f6463a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public C0345i f6464b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f6465c = true;
|
||||
|
||||
public C0346j(EditText editText) {
|
||||
this.f6463a = editText;
|
||||
}
|
||||
|
||||
public static void a(EditText editText, int i) {
|
||||
int length;
|
||||
if (i == 1 && editText != null && editText.isAttachedToWindow()) {
|
||||
Editable editableText = editText.getEditableText();
|
||||
int selectionStart = Selection.getSelectionStart(editableText);
|
||||
int selectionEnd = Selection.getSelectionEnd(editableText);
|
||||
d0.h a2 = d0.h.a();
|
||||
if (editableText == null) {
|
||||
length = 0;
|
||||
} else {
|
||||
a2.getClass();
|
||||
length = editableText.length();
|
||||
}
|
||||
a2.e(editableText, 0, length);
|
||||
if (selectionStart >= 0 && selectionEnd >= 0) {
|
||||
Selection.setSelection(editableText, selectionStart, selectionEnd);
|
||||
} else if (selectionStart >= 0) {
|
||||
Selection.setSelection(editableText, selectionStart);
|
||||
} else if (selectionEnd >= 0) {
|
||||
Selection.setSelection(editableText, selectionEnd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public final void afterTextChanged(Editable editable) {
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public final void beforeTextChanged(CharSequence charSequence, int i, int i4, int i5) {
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public final void onTextChanged(CharSequence charSequence, int i, int i4, int i5) {
|
||||
EditText editText = this.f6463a;
|
||||
if (editText.isInEditMode() || !this.f6465c || d0.h.f6123k == null || i4 > i5 || !(charSequence instanceof Spannable)) {
|
||||
return;
|
||||
}
|
||||
int b4 = d0.h.a().b();
|
||||
if (b4 != 0) {
|
||||
if (b4 == 1) {
|
||||
d0.h.a().e((Spannable) charSequence, i, i5 + i);
|
||||
return;
|
||||
} else if (b4 != 3) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
d0.h a2 = d0.h.a();
|
||||
if (this.f6464b == null) {
|
||||
this.f6464b = new C0345i(editText);
|
||||
}
|
||||
a2.f(this.f6464b);
|
||||
}
|
||||
}
|
||||
41
apk_decompiled/sources/f0/k.java
Normal file
41
apk_decompiled/sources/f0/k.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package f0;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import android.text.method.TransformationMethod;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k implements TransformationMethod {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TransformationMethod f6466a;
|
||||
|
||||
public k(TransformationMethod transformationMethod) {
|
||||
this.f6466a = transformationMethod;
|
||||
}
|
||||
|
||||
@Override // android.text.method.TransformationMethod
|
||||
public final CharSequence getTransformation(CharSequence charSequence, View view) {
|
||||
if (view.isInEditMode()) {
|
||||
return charSequence;
|
||||
}
|
||||
TransformationMethod transformationMethod = this.f6466a;
|
||||
if (transformationMethod != null) {
|
||||
charSequence = transformationMethod.getTransformation(charSequence, view);
|
||||
}
|
||||
if (charSequence == null || d0.h.a().b() != 1) {
|
||||
return charSequence;
|
||||
}
|
||||
d0.h a2 = d0.h.a();
|
||||
a2.getClass();
|
||||
return a2.e(charSequence, 0, charSequence.length());
|
||||
}
|
||||
|
||||
@Override // android.text.method.TransformationMethod
|
||||
public final void onFocusChanged(View view, CharSequence charSequence, boolean z3, int i, Rect rect) {
|
||||
TransformationMethod transformationMethod = this.f6466a;
|
||||
if (transformationMethod != null) {
|
||||
transformationMethod.onFocusChanged(view, charSequence, z3, i, rect);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user