71 lines
1.9 KiB
Java
71 lines
1.9 KiB
Java
|
package com.google.android.gms.internal.p002firebaseauthapi;
|
||
|
|
||
|
import java.nio.ByteBuffer;
|
||
|
import java.nio.charset.Charset;
|
||
|
import org.bouncycastle.i18n.LocalizedMessage;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzadl {
|
||
|
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 zzacg zzf;
|
||
|
|
||
|
static {
|
||
|
byte[] bArr = new byte[0];
|
||
|
zzd = bArr;
|
||
|
zze = ByteBuffer.wrap(bArr);
|
||
|
int i = zzacg.zzd;
|
||
|
zzf = zzacg.zzu(bArr, 0, 0, false);
|
||
|
}
|
||
|
|
||
|
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 Object zze(Object obj) {
|
||
|
obj.getClass();
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static Object zzf(Object obj, String str) {
|
||
|
if (obj != null) {
|
||
|
return obj;
|
||
|
}
|
||
|
throw new NullPointerException(str);
|
||
|
}
|
||
|
|
||
|
public static boolean zzh(byte[] bArr) {
|
||
|
return zzagc.zze(bArr);
|
||
|
}
|
||
|
|
||
|
public static String zzg(byte[] bArr) {
|
||
|
return new String(bArr, zzb);
|
||
|
}
|
||
|
}
|