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,92 @@
package androidx.emoji2.text.flatbuffer;
import com.applovin.exoplayer2.common.base.Ascii;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
public abstract class Utf8 {
private static Utf8 DEFAULT;
public static void setDefault(Utf8 utf8) {
DEFAULT = utf8;
}
public abstract String decodeUtf8(ByteBuffer byteBuffer, int i, int i2);
public abstract void encodeUtf8(CharSequence charSequence, ByteBuffer byteBuffer);
public abstract int encodedLength(CharSequence charSequence);
public static Utf8 getDefault() {
if (DEFAULT == null) {
DEFAULT = new Utf8Safe();
}
return DEFAULT;
}
public static class DecodeUtil {
private static char highSurrogate(int i) {
return (char) ((i >>> 10) + 55232);
}
private static boolean isNotTrailingByte(byte b) {
return b > -65;
}
public static boolean isOneByte(byte b) {
return b >= 0;
}
public static boolean isThreeBytes(byte b) {
return b < -16;
}
public static boolean isTwoBytes(byte b) {
return b < -32;
}
private static char lowSurrogate(int i) {
return (char) ((i & 1023) + 56320);
}
private static int trailingByteValue(byte b) {
return b & 63;
}
public static void handleOneByte(byte b, char[] cArr, int i) {
cArr[i] = (char) b;
}
public static void handleTwoBytes(byte b, byte b2, char[] cArr, int i) throws IllegalArgumentException {
if (b < -62) {
throw new IllegalArgumentException("Invalid UTF-8: Illegal leading byte in 2 bytes utf");
}
if (isNotTrailingByte(b2)) {
throw new IllegalArgumentException("Invalid UTF-8: Illegal trailing byte in 2 bytes utf");
}
cArr[i] = (char) (((b & Ascii.US) << 6) | trailingByteValue(b2));
}
public static void handleThreeBytes(byte b, byte b2, byte b3, char[] cArr, int i) throws IllegalArgumentException {
if (isNotTrailingByte(b2) || ((b == -32 && b2 < -96) || ((b == -19 && b2 >= -96) || isNotTrailingByte(b3)))) {
throw new IllegalArgumentException("Invalid UTF-8");
}
cArr[i] = (char) (((b & Ascii.SI) << 12) | (trailingByteValue(b2) << 6) | trailingByteValue(b3));
}
public static void handleFourBytes(byte b, byte b2, byte b3, byte b4, char[] cArr, int i) throws IllegalArgumentException {
if (isNotTrailingByte(b2) || (((b << Ascii.FS) + (b2 + 112)) >> 30) != 0 || isNotTrailingByte(b3) || isNotTrailingByte(b4)) {
throw new IllegalArgumentException("Invalid UTF-8");
}
int trailingByteValue = ((b & 7) << 18) | (trailingByteValue(b2) << 12) | (trailingByteValue(b3) << 6) | trailingByteValue(b4);
cArr[i] = highSurrogate(trailingByteValue);
cArr[i + 1] = lowSurrogate(trailingByteValue);
}
}
public static class UnpairedSurrogateException extends IllegalArgumentException {
public UnpairedSurrogateException(int i, int i2) {
super("Unpaired surrogate at index " + i + " of " + i2);
}
}
}