168 lines
4.5 KiB
Java
168 lines
4.5 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.io.IOException;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class zzje extends zzin {
|
|
private static final Logger zzb = Logger.getLogger(zzje.class.getName());
|
|
private static final boolean zzc = zzml.zzx();
|
|
zzjf zza;
|
|
|
|
public static int zzA(int i) {
|
|
if ((i & (-128)) == 0) {
|
|
return 1;
|
|
}
|
|
if ((i & (-16384)) == 0) {
|
|
return 2;
|
|
}
|
|
if (((-2097152) & i) == 0) {
|
|
return 3;
|
|
}
|
|
return (i & (-268435456)) == 0 ? 4 : 5;
|
|
}
|
|
|
|
public static int zzB(long j) {
|
|
int i;
|
|
if (((-128) & j) == 0) {
|
|
return 1;
|
|
}
|
|
if (j < 0) {
|
|
return 10;
|
|
}
|
|
if (((-34359738368L) & j) != 0) {
|
|
j >>>= 28;
|
|
i = 6;
|
|
} else {
|
|
i = 2;
|
|
}
|
|
if (((-2097152) & j) != 0) {
|
|
i += 2;
|
|
j >>>= 14;
|
|
}
|
|
return (j & (-16384)) != 0 ? i + 1 : i;
|
|
}
|
|
|
|
public static zzje zzC(byte[] bArr) {
|
|
return new zzjc(bArr, 0, bArr.length);
|
|
}
|
|
|
|
public static int zzt(zzix zzixVar) {
|
|
int zzd = zzixVar.zzd();
|
|
return zzA(zzd) + zzd;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Deprecated
|
|
public static int zzu(int i, zzlc zzlcVar, zzln zzlnVar) {
|
|
int zzA = zzA(i << 3);
|
|
zzih zzihVar = (zzih) zzlcVar;
|
|
int zzbo = zzihVar.zzbo();
|
|
if (zzbo == -1) {
|
|
zzbo = zzlnVar.zza(zzihVar);
|
|
zzihVar.zzbr(zzbo);
|
|
}
|
|
return zzA + zzA + zzbo;
|
|
}
|
|
|
|
public static int zzw(zzkk zzkkVar) {
|
|
int zza = zzkkVar.zza();
|
|
return zzA(zza) + zza;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int zzx(zzlc zzlcVar, zzln zzlnVar) {
|
|
zzih zzihVar = (zzih) zzlcVar;
|
|
int zzbo = zzihVar.zzbo();
|
|
if (zzbo == -1) {
|
|
zzbo = zzlnVar.zza(zzihVar);
|
|
zzihVar.zzbr(zzbo);
|
|
}
|
|
return zzA(zzbo) + zzbo;
|
|
}
|
|
|
|
public static int zzy(String str) {
|
|
int length;
|
|
try {
|
|
length = zzmq.zzc(str);
|
|
} catch (zzmp unused) {
|
|
length = str.getBytes(zzkf.zzb).length;
|
|
}
|
|
return zzA(length) + length;
|
|
}
|
|
|
|
public final void zzD() {
|
|
if (zza() != 0) {
|
|
throw new IllegalStateException("Did not write as much data as expected.");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void zzE(String str, zzmp zzmpVar) throws IOException {
|
|
zzb.logp(Level.WARNING, "com.google.protobuf.CodedOutputStream", "inefficientWriteStringNoTag", "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!", (Throwable) zzmpVar);
|
|
byte[] bytes = str.getBytes(zzkf.zzb);
|
|
try {
|
|
int length = bytes.length;
|
|
zzq(length);
|
|
zzl(bytes, 0, length);
|
|
} catch (zzjd e) {
|
|
throw e;
|
|
} catch (IndexOutOfBoundsException e2) {
|
|
throw new zzjd(e2);
|
|
}
|
|
}
|
|
|
|
public abstract int zza();
|
|
|
|
public abstract void zzb(byte b) throws IOException;
|
|
|
|
public abstract void zzd(int i, boolean z) throws IOException;
|
|
|
|
public abstract void zze(int i, zzix zzixVar) throws IOException;
|
|
|
|
public abstract void zzf(int i, int i2) throws IOException;
|
|
|
|
public abstract void zzg(int i) throws IOException;
|
|
|
|
public abstract void zzh(int i, long j) throws IOException;
|
|
|
|
public abstract void zzi(long j) throws IOException;
|
|
|
|
public abstract void zzj(int i, int i2) throws IOException;
|
|
|
|
public abstract void zzk(int i) throws IOException;
|
|
|
|
public abstract void zzl(byte[] bArr, int i, int i2) throws IOException;
|
|
|
|
public abstract void zzm(int i, String str) throws IOException;
|
|
|
|
public abstract void zzo(int i, int i2) throws IOException;
|
|
|
|
public abstract void zzp(int i, int i2) throws IOException;
|
|
|
|
public abstract void zzq(int i) throws IOException;
|
|
|
|
public abstract void zzr(int i, long j) throws IOException;
|
|
|
|
public abstract void zzs(long j) throws IOException;
|
|
|
|
public static int zzz(int i) {
|
|
return zzA(i << 3);
|
|
}
|
|
|
|
public static int zzv(int i) {
|
|
if (i >= 0) {
|
|
return zzA(i);
|
|
}
|
|
return 10;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public /* synthetic */ zzje(zzjb zzjbVar) {
|
|
}
|
|
|
|
private zzje() {
|
|
}
|
|
}
|