what-the-bank/sources/com/facetec/sdk/lt.java

117 lines
4.0 KiB
Java

package com.facetec.sdk;
import com.airbnb.deeplinkdispatch.base.MatchIndex;
import java.io.IOException;
/* loaded from: classes.dex */
public final class lt {
static final mt d = mt.c("PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n");
private static final String[] b = {"DATA", "HEADERS", "PRIORITY", "RST_STREAM", "SETTINGS", "PUSH_PROMISE", "PING", "GOAWAY", "WINDOW_UPDATE", "CONTINUATION"};
private static String[] a = new String[64];
private static String[] e = new String[256];
static {
int i = 0;
int i2 = 0;
while (true) {
String[] strArr = e;
if (i2 >= strArr.length) {
break;
}
strArr[i2] = km.a("%8s", Integer.toBinaryString(i2)).replace(' ', '0');
i2++;
}
String[] strArr2 = a;
strArr2[0] = "";
strArr2[1] = "END_STREAM";
int[] iArr = {1};
strArr2[8] = "PADDED";
for (int i3 = 0; i3 <= 0; i3++) {
int i4 = iArr[i3];
StringBuilder sb = new StringBuilder();
sb.append(a[i4]);
sb.append("|PADDED");
a[i4 | 8] = sb.toString();
}
String[] strArr3 = a;
strArr3[4] = "END_HEADERS";
strArr3[32] = "PRIORITY";
strArr3[36] = "END_HEADERS|PRIORITY";
int[] iArr2 = {4, 32, 36};
for (int i5 = 0; i5 < 3; i5++) {
int i6 = iArr2[i5];
for (int i7 = 0; i7 <= 0; i7++) {
int i8 = iArr[i7];
String[] strArr4 = a;
int i9 = i8 | i6;
StringBuilder sb2 = new StringBuilder();
sb2.append(a[i8]);
sb2.append(MatchIndex.ALLOWED_VALUES_SEPARATOR);
sb2.append(a[i6]);
strArr4[i9] = sb2.toString();
StringBuilder sb3 = new StringBuilder();
sb3.append(a[i8]);
sb3.append(MatchIndex.ALLOWED_VALUES_SEPARATOR);
sb3.append(a[i6]);
sb3.append("|PADDED");
a[i9 | 8] = sb3.toString();
}
}
while (true) {
String[] strArr5 = a;
if (i >= strArr5.length) {
return;
}
if (strArr5[i] == null) {
strArr5[i] = e[i];
}
i++;
}
}
private lt() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public static IllegalArgumentException e(String str, Object... objArr) {
throw new IllegalArgumentException(km.a(str, objArr));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static IOException b(String str, Object... objArr) throws IOException {
throw new IOException(km.a(str, objArr));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String e(boolean z, int i, int i2, byte b2, byte b3) {
String str;
String[] strArr = b;
String a2 = b2 < strArr.length ? strArr[b2] : km.a("0x%02x", Byte.valueOf(b2));
if (b3 == 0) {
str = "";
} else {
if (b2 != 2 && b2 != 3) {
if (b2 == 4 || b2 == 6) {
str = b3 == 1 ? "ACK" : e[b3];
} else if (b2 != 7 && b2 != 8) {
String[] strArr2 = a;
String str2 = b3 < strArr2.length ? strArr2[b3] : e[b3];
if (b2 == 5 && (b3 & 4) != 0) {
str = str2.replace("HEADERS", "PUSH_PROMISE");
} else {
str = (b2 != 0 || (b3 & 32) == 0) ? str2 : str2.replace("PRIORITY", "COMPRESSED");
}
}
}
str = e[b3];
}
Object[] objArr = new Object[5];
objArr[0] = z ? "<<" : ">>";
objArr[1] = Integer.valueOf(i);
objArr[2] = Integer.valueOf(i2);
objArr[3] = a2;
objArr[4] = str;
return km.a("%s 0x%08x %5d %-13s %s", objArr);
}
}