143 lines
4.2 KiB
Java
143 lines
4.2 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.annotation.Nullable;
|
|
import c.d.b.a.a;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.gms.measurement.internal.zzap;
|
|
import com.google.android.gms.measurement.internal.zzaq;
|
|
import java.util.ArrayList;
|
|
import java.util.Objects;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public final class o3 extends r5 {
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public static final AtomicReference<String[]> f1173c = new AtomicReference<>();
|
|
public static final AtomicReference<String[]> d = new AtomicReference<>();
|
|
public static final AtomicReference<String[]> e = new AtomicReference<>();
|
|
|
|
public o3(u4 u4Var) {
|
|
super(u4Var);
|
|
}
|
|
|
|
@Nullable
|
|
public static String v(String str, String[] strArr, String[] strArr2, AtomicReference<String[]> atomicReference) {
|
|
String str2;
|
|
Objects.requireNonNull(atomicReference, "null reference");
|
|
AnimatableValueParser.m(strArr.length == strArr2.length);
|
|
for (int i = 0; i < strArr.length; i++) {
|
|
if (t9.q0(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;
|
|
}
|
|
|
|
@Override // c.i.a.f.i.b.r5
|
|
public final boolean r() {
|
|
return false;
|
|
}
|
|
|
|
@Nullable
|
|
public final String s(Bundle bundle) {
|
|
if (bundle == null) {
|
|
return null;
|
|
}
|
|
if (!z()) {
|
|
return bundle.toString();
|
|
}
|
|
StringBuilder L = a.L("Bundle[{");
|
|
for (String str : bundle.keySet()) {
|
|
if (L.length() != 8) {
|
|
L.append(", ");
|
|
}
|
|
L.append(x(str));
|
|
L.append("=");
|
|
Object obj = bundle.get(str);
|
|
L.append(obj instanceof Bundle ? w(new Object[]{obj}) : obj instanceof Object[] ? w((Object[]) obj) : obj instanceof ArrayList ? w(((ArrayList) obj).toArray()) : String.valueOf(obj));
|
|
}
|
|
L.append("}]");
|
|
return L.toString();
|
|
}
|
|
|
|
@Nullable
|
|
public final String t(zzaq zzaq) {
|
|
if (!z()) {
|
|
return zzaq.toString();
|
|
}
|
|
StringBuilder L = a.L("origin=");
|
|
L.append(zzaq.k);
|
|
L.append(",name=");
|
|
L.append(u(zzaq.i));
|
|
L.append(",params=");
|
|
zzap zzap = zzaq.j;
|
|
L.append(zzap == null ? null : !z() ? zzap.toString() : s(zzap.w0()));
|
|
return L.toString();
|
|
}
|
|
|
|
@Nullable
|
|
public final String u(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !z() ? str : v(str, v5.f1202c, v5.a, f1173c);
|
|
}
|
|
|
|
@Nullable
|
|
public final String w(Object[] objArr) {
|
|
if (objArr == null) {
|
|
return "[]";
|
|
}
|
|
StringBuilder L = a.L("[");
|
|
for (Object obj : objArr) {
|
|
String s2 = obj instanceof Bundle ? s((Bundle) obj) : String.valueOf(obj);
|
|
if (s2 != null) {
|
|
if (L.length() != 1) {
|
|
L.append(", ");
|
|
}
|
|
L.append(s2);
|
|
}
|
|
}
|
|
L.append("]");
|
|
return L.toString();
|
|
}
|
|
|
|
@Nullable
|
|
public final String x(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return !z() ? str : v(str, u5.b, u5.a, d);
|
|
}
|
|
|
|
@Nullable
|
|
public final String y(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
if (!z()) {
|
|
return str;
|
|
}
|
|
if (!str.startsWith("_exp_")) {
|
|
return v(str, x5.b, x5.a, e);
|
|
}
|
|
return "experiment_id(" + str + ")";
|
|
}
|
|
|
|
public final boolean z() {
|
|
return this.a.v() && this.a.g().x(3);
|
|
}
|
|
}
|