131 lines
3.7 KiB
Java
131 lines
3.7 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.os.Bundle;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzaq extends zzcs {
|
|
private static final AtomicReference<String[]> c = new AtomicReference<>();
|
|
private static final AtomicReference<String[]> d = new AtomicReference<>();
|
|
private static final AtomicReference<String[]> e = new AtomicReference<>();
|
|
|
|
zzaq(zzbw zzbwVar) {
|
|
super(zzbwVar);
|
|
}
|
|
|
|
private final boolean t() {
|
|
c();
|
|
return this.a.z() && this.a.e().a(3);
|
|
}
|
|
|
|
protected final String a(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !t() ? str : a(str, zzcu.b, zzcu.a, c);
|
|
}
|
|
|
|
protected final String b(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !t() ? str : a(str, zzcv.b, zzcv.a, d);
|
|
}
|
|
|
|
protected final String c(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
if (!t()) {
|
|
return str;
|
|
}
|
|
if (!str.startsWith("_exp_")) {
|
|
return a(str, zzcw.b, zzcw.a, e);
|
|
}
|
|
return "experiment_id(" + str + ")";
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzcs
|
|
protected final boolean q() {
|
|
return false;
|
|
}
|
|
|
|
private static String a(String str, String[] strArr, String[] strArr2, AtomicReference<String[]> atomicReference) {
|
|
String str2;
|
|
Preconditions.a(strArr);
|
|
Preconditions.a(strArr2);
|
|
Preconditions.a(atomicReference);
|
|
Preconditions.a(strArr.length == strArr2.length);
|
|
for (int i = 0; i < strArr.length; i++) {
|
|
if (zzfy.e(str, strArr[i])) {
|
|
synchronized (atomicReference) {
|
|
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];
|
|
}
|
|
return str2;
|
|
}
|
|
}
|
|
return str;
|
|
}
|
|
|
|
protected final String a(zzag zzagVar) {
|
|
if (zzagVar == null) {
|
|
return null;
|
|
}
|
|
if (!t()) {
|
|
return zzagVar.toString();
|
|
}
|
|
return "origin=" + zzagVar.origin + ",name=" + a(zzagVar.name) + ",params=" + a(zzagVar.zzahu);
|
|
}
|
|
|
|
protected final String a(zzab zzabVar) {
|
|
if (zzabVar == null) {
|
|
return null;
|
|
}
|
|
if (!t()) {
|
|
return zzabVar.toString();
|
|
}
|
|
return "Event{appId='" + zzabVar.a + "', name='" + a(zzabVar.b) + "', params=" + a(zzabVar.f) + "}";
|
|
}
|
|
|
|
private final String a(zzad zzadVar) {
|
|
if (zzadVar == null) {
|
|
return null;
|
|
}
|
|
if (!t()) {
|
|
return zzadVar.toString();
|
|
}
|
|
return a(zzadVar.zziy());
|
|
}
|
|
|
|
protected final String a(Bundle bundle) {
|
|
if (bundle == null) {
|
|
return null;
|
|
}
|
|
if (!t()) {
|
|
return bundle.toString();
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
for (String str : bundle.keySet()) {
|
|
if (sb.length() != 0) {
|
|
sb.append(", ");
|
|
} else {
|
|
sb.append("Bundle[{");
|
|
}
|
|
sb.append(b(str));
|
|
sb.append("=");
|
|
sb.append(bundle.get(str));
|
|
}
|
|
sb.append("}]");
|
|
return sb.toString();
|
|
}
|
|
}
|