- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
159 lines
4.8 KiB
Java
159 lines
4.8 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.os.Bundle;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.ironsource.v8;
|
|
import java.util.ArrayList;
|
|
import java.util.Objects;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzfv {
|
|
private static final AtomicReference<String[]> zza = new AtomicReference<>();
|
|
private static final AtomicReference<String[]> zzb = new AtomicReference<>();
|
|
private static final AtomicReference<String[]> zzc = new AtomicReference<>();
|
|
private final zzfu zzd;
|
|
|
|
private final String zza(Object[] objArr) {
|
|
String valueOf;
|
|
if (objArr == null) {
|
|
return "[]";
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(v8.i.d);
|
|
for (Object obj : objArr) {
|
|
if (obj instanceof Bundle) {
|
|
valueOf = zza((Bundle) obj);
|
|
} else {
|
|
valueOf = String.valueOf(obj);
|
|
}
|
|
if (valueOf != null) {
|
|
if (sb.length() != 1) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(valueOf);
|
|
}
|
|
}
|
|
sb.append(v8.i.e);
|
|
return sb.toString();
|
|
}
|
|
|
|
public final String zza(Bundle bundle) {
|
|
String valueOf;
|
|
if (bundle == null) {
|
|
return null;
|
|
}
|
|
if (!this.zzd.zza()) {
|
|
return bundle.toString();
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("Bundle[{");
|
|
for (String str : bundle.keySet()) {
|
|
if (sb.length() != 8) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(zzb(str));
|
|
sb.append(v8.i.b);
|
|
Object obj = bundle.get(str);
|
|
if (obj instanceof Bundle) {
|
|
valueOf = zza(new Object[]{obj});
|
|
} else if (obj instanceof Object[]) {
|
|
valueOf = zza((Object[]) obj);
|
|
} else if (obj instanceof ArrayList) {
|
|
valueOf = zza(((ArrayList) obj).toArray());
|
|
} else {
|
|
valueOf = String.valueOf(obj);
|
|
}
|
|
sb.append(valueOf);
|
|
}
|
|
sb.append("}]");
|
|
return sb.toString();
|
|
}
|
|
|
|
public final String zza(zzbf zzbfVar) {
|
|
String str = null;
|
|
if (zzbfVar == null) {
|
|
return null;
|
|
}
|
|
if (!this.zzd.zza()) {
|
|
return zzbfVar.toString();
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("origin=");
|
|
sb.append(zzbfVar.zzc);
|
|
sb.append(",name=");
|
|
sb.append(zza(zzbfVar.zza));
|
|
sb.append(",params=");
|
|
zzba zzbaVar = zzbfVar.zzb;
|
|
if (zzbaVar != null) {
|
|
if (!this.zzd.zza()) {
|
|
str = zzbaVar.toString();
|
|
} else {
|
|
str = zza(zzbaVar.zzb());
|
|
}
|
|
}
|
|
sb.append(str);
|
|
return sb.toString();
|
|
}
|
|
|
|
public final String zza(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !this.zzd.zza() ? str : zza(str, zzir.zzc, zzir.zza, zza);
|
|
}
|
|
|
|
public final String zzb(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !this.zzd.zza() ? str : zza(str, zzit.zzb, zzit.zza, zzb);
|
|
}
|
|
|
|
public final String zzc(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
if (!this.zzd.zza()) {
|
|
return str;
|
|
}
|
|
if (str.startsWith("_exp_")) {
|
|
return "experiment_id(" + str + ")";
|
|
}
|
|
return zza(str, zzis.zzb, zzis.zza, zzc);
|
|
}
|
|
|
|
private static String zza(String str, String[] strArr, String[] strArr2, AtomicReference<String[]> atomicReference) {
|
|
String str2;
|
|
Preconditions.checkNotNull(strArr);
|
|
Preconditions.checkNotNull(strArr2);
|
|
Preconditions.checkNotNull(atomicReference);
|
|
Preconditions.checkArgument(strArr.length == strArr2.length);
|
|
for (int i = 0; i < strArr.length; i++) {
|
|
if (Objects.equals(str, strArr[i])) {
|
|
synchronized (atomicReference) {
|
|
try {
|
|
String[] strArr3 = atomicReference.get();
|
|
if (strArr3 == null) {
|
|
strArr3 = new String[strArr2.length];
|
|
atomicReference.set(strArr3);
|
|
}
|
|
if (strArr3[i] == null) {
|
|
strArr3[i] = strArr2[i] + "(" + strArr[i] + ")";
|
|
}
|
|
str2 = strArr3[i];
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return str2;
|
|
}
|
|
}
|
|
return str;
|
|
}
|
|
|
|
public zzfv(zzfu zzfuVar) {
|
|
this.zzd = zzfuVar;
|
|
}
|
|
}
|