82 lines
2.2 KiB
Java
82 lines
2.2 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.charset.Charset;
|
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzkf {
|
|
static final Charset zza = Charset.forName("US-ASCII");
|
|
static final Charset zzb = Charset.forName("UTF-8");
|
|
static final Charset zzc = Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
|
|
public static final byte[] zzd;
|
|
public static final ByteBuffer zze;
|
|
public static final zzja zzf;
|
|
|
|
static {
|
|
byte[] bArr = new byte[0];
|
|
zzd = bArr;
|
|
zze = ByteBuffer.wrap(bArr);
|
|
int i = zzja.zza;
|
|
zziz zzizVar = new zziz(bArr, 0, 0, false, null);
|
|
try {
|
|
zzizVar.zza(0);
|
|
zzf = zzizVar;
|
|
} catch (zzkh e) {
|
|
throw new IllegalArgumentException(e);
|
|
}
|
|
}
|
|
|
|
public static int zza(boolean z) {
|
|
return z ? 1231 : 1237;
|
|
}
|
|
|
|
public static int zzb(byte[] bArr) {
|
|
int length = bArr.length;
|
|
int zzd2 = zzd(length, bArr, 0, length);
|
|
if (zzd2 == 0) {
|
|
return 1;
|
|
}
|
|
return zzd2;
|
|
}
|
|
|
|
public static int zzc(long j) {
|
|
return (int) (j ^ (j >>> 32));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int zzd(int i, byte[] bArr, int i2, int i3) {
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
i = (i * 31) + bArr[i4];
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> T zze(T t) {
|
|
t.getClass();
|
|
return t;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> T zzf(T t, String str) {
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
throw new NullPointerException(str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static Object zzg(Object obj, Object obj2) {
|
|
return ((zzlc) obj).zzbD().zzau((zzlc) obj2).zzaC();
|
|
}
|
|
|
|
public static boolean zzi(byte[] bArr) {
|
|
return zzmq.zze(bArr);
|
|
}
|
|
|
|
public static String zzh(byte[] bArr) {
|
|
return new String(bArr, zzb);
|
|
}
|
|
}
|