what-the-bank/sources/com/google/android/gms/internal/gtm/zzci.java

104 lines
3.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Map;
/* loaded from: classes.dex */
public class zzci extends zzan {
private static zzci zzabl;
public zzci(zzap zzapVar) {
super(zzapVar);
}
@Override // com.google.android.gms.internal.gtm.zzan
protected final void zzaw() {
synchronized (zzci.class) {
zzabl = this;
}
}
public final void zza(zzcd zzcdVar, String str) {
String zzcdVar2 = zzcdVar != null ? zzcdVar.toString() : "no hit data";
String valueOf = String.valueOf(str);
zzd(valueOf.length() != 0 ? "Discarding hit. ".concat(valueOf) : new String("Discarding hit. "), zzcdVar2);
}
public final void zza(Map<String, String> map, String str) {
String str2;
if (map != null) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, String> entry : map.entrySet()) {
if (sb.length() > 0) {
sb.append(',');
}
sb.append(entry.getKey());
sb.append('=');
sb.append(entry.getValue());
}
str2 = sb.toString();
} else {
str2 = "no hit data";
}
String valueOf = String.valueOf(str);
zzd(valueOf.length() != 0 ? "Discarding hit. ".concat(valueOf) : new String("Discarding hit. "), str2);
}
public final void zzb(int i, String str, Object obj, Object obj2, Object obj3) {
synchronized (this) {
Preconditions.checkNotNull(str);
if (i < 0) {
i = 0;
}
if (i >= 9) {
i = 8;
}
char c = zzcp().zzem() ? 'C' : 'c';
char charAt = "01VDIWEA?".charAt(i);
String str2 = zzao.VERSION;
String zzc = zzc(str, zzd(obj), zzd(obj2), zzd(obj3));
StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 4 + String.valueOf(zzc).length());
sb.append("3");
sb.append(charAt);
sb.append(c);
sb.append(str2);
sb.append(":");
sb.append(zzc);
String sb2 = sb.toString();
if (sb2.length() > 1024) {
sb2 = sb2.substring(0, 1024);
}
zzcm zzdf = zzcm().zzdf();
if (zzdf != null) {
zzdf.zzga().zzae(sb2);
}
}
}
private static String zzd(Object obj) {
if (obj == null) {
return null;
}
if (obj instanceof Integer) {
obj = Long.valueOf(((Integer) obj).intValue());
}
if (obj instanceof Long) {
Long l = (Long) obj;
if (Math.abs(l.longValue()) < 100) {
return String.valueOf(obj);
}
String str = String.valueOf(obj).charAt(0) != '-' ? "" : "-";
String valueOf = String.valueOf(Math.abs(l.longValue()));
return str + Math.round(Math.pow(10.0d, valueOf.length() - 1)) + "..." + str + Math.round(Math.pow(10.0d, valueOf.length()) - 1.0d);
}
if (obj instanceof Boolean) {
return String.valueOf(obj);
}
return obj instanceof Throwable ? obj.getClass().getCanonicalName() : "-";
}
public static zzci zzfn() {
return zzabl;
}
}