79 lines
2.1 KiB
Java
79 lines
2.1 KiB
Java
package com.google.android.gms.internal.vision;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.charset.Charset;
|
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzga {
|
|
public static final byte[] zzxn;
|
|
private static final ByteBuffer zzxo;
|
|
private static final zzez zzxp;
|
|
static final Charset UTF_8 = Charset.forName("UTF-8");
|
|
private static final Charset ISO_8859_1 = Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean zzf(zzhf zzhfVar) {
|
|
return false;
|
|
}
|
|
|
|
public static int zzj(boolean z) {
|
|
return z ? 1231 : 1237;
|
|
}
|
|
|
|
public static int zzo(long j) {
|
|
return (int) (j ^ (j >>> 32));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> T checkNotNull(T t) {
|
|
t.getClass();
|
|
return t;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> T zza(T t, String str) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
throw new NullPointerException(str);
|
|
}
|
|
|
|
public static boolean zzi(byte[] bArr) {
|
|
return zziw.zzi(bArr);
|
|
}
|
|
|
|
public static String zzj(byte[] bArr) {
|
|
return new String(bArr, UTF_8);
|
|
}
|
|
|
|
public static int hashCode(byte[] bArr) {
|
|
int length = bArr.length;
|
|
int zza = zza(length, bArr, 0, length);
|
|
if (zza == 0) {
|
|
return 1;
|
|
}
|
|
return zza;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int zza(int i, byte[] bArr, int i2, int i3) {
|
|
for (int i4 = i2; i4 < i2 + i3; i4++) {
|
|
i = (i * 31) + bArr[i4];
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static Object zza(Object obj, Object obj2) {
|
|
return ((zzhf) obj).zzez().zza((zzhf) obj2).zzff();
|
|
}
|
|
|
|
static {
|
|
byte[] bArr = new byte[0];
|
|
zzxn = bArr;
|
|
zzxo = ByteBuffer.wrap(bArr);
|
|
zzxp = zzez.zzf(bArr);
|
|
}
|
|
}
|