79 lines
2.1 KiB
Java
79 lines
2.1 KiB
Java
package com.google.android.gms.internal.firebase_ml;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.charset.Charset;
|
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzug {
|
|
public static final byte[] zzbpe;
|
|
private static final ByteBuffer zzbpf;
|
|
private static final zzti zzbpg;
|
|
static final Charset UTF_8 = Charset.forName("UTF-8");
|
|
private static final Charset ISO_8859_1 = Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
|
|
|
|
public static int zzaj(boolean z) {
|
|
return z ? 1231 : 1237;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean zzf(zzvo zzvoVar) {
|
|
return false;
|
|
}
|
|
|
|
public static int zzz(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 zzxe.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 zze(Object obj, Object obj2) {
|
|
return ((zzvo) obj).zzrc().zza((zzvo) obj2).zzri();
|
|
}
|
|
|
|
static {
|
|
byte[] bArr = new byte[0];
|
|
zzbpe = bArr;
|
|
zzbpf = ByteBuffer.wrap(bArr);
|
|
zzbpg = zzti.zza(bArr, 0, 0, false);
|
|
}
|
|
}
|