- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
1295 lines
48 KiB
Java
1295 lines
48 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.annotation.TargetApi;
|
|
import android.content.Context;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.WorkerThread;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
|
import com.google.android.gms.common.util.Clock;
|
|
import com.google.android.gms.internal.measurement.zzff;
|
|
import com.google.android.gms.internal.measurement.zzfn;
|
|
import com.google.android.gms.internal.measurement.zzpd;
|
|
import com.google.android.gms.internal.measurement.zzpi;
|
|
import com.google.android.gms.internal.measurement.zzpo;
|
|
import com.google.android.gms.measurement.internal.zzin;
|
|
import com.ironsource.ad;
|
|
import com.ironsource.v8;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.tapjoy.TJAdUnitConstants;
|
|
import csdk.gluads.Consts;
|
|
import java.io.ByteArrayInputStream;
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.IOException;
|
|
import java.nio.charset.Charset;
|
|
import java.security.MessageDigest;
|
|
import java.util.ArrayList;
|
|
import java.util.BitSet;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Objects;
|
|
import java.util.Set;
|
|
import java.util.zip.GZIPInputStream;
|
|
import java.util.zip.GZIPOutputStream;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zznp extends zznb {
|
|
@Override // com.google.android.gms.measurement.internal.zznb
|
|
public final boolean zzc() {
|
|
return false;
|
|
}
|
|
|
|
public static int zza(zzfn.zzj.zza zzaVar, String str) {
|
|
if (zzaVar == null) {
|
|
return -1;
|
|
}
|
|
for (int i = 0; i < zzaVar.zzd(); i++) {
|
|
if (str.equals(zzaVar.zzk(i).zzg())) {
|
|
return i;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public final long zza(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return 0L;
|
|
}
|
|
return zza(str.getBytes(Charset.forName("UTF-8")));
|
|
}
|
|
|
|
@WorkerThread
|
|
public final long zza(byte[] bArr) {
|
|
Preconditions.checkNotNull(bArr);
|
|
zzq().zzt();
|
|
MessageDigest zzu = zznt.zzu();
|
|
if (zzu == null) {
|
|
zzj().zzg().zza("Failed to get MD5");
|
|
return 0L;
|
|
}
|
|
return zznt.zza(zzu.digest(bArr));
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
|
|
public final /* bridge */ /* synthetic */ Context zza() {
|
|
return super.zza();
|
|
}
|
|
|
|
public static Bundle zza(List<zzfn.zzg> list) {
|
|
Bundle bundle = new Bundle();
|
|
for (zzfn.zzg zzgVar : list) {
|
|
String zzg = zzgVar.zzg();
|
|
if (zzgVar.zzj()) {
|
|
bundle.putDouble(zzg, zzgVar.zza());
|
|
} else if (zzgVar.zzk()) {
|
|
bundle.putFloat(zzg, zzgVar.zzb());
|
|
} else if (zzgVar.zzn()) {
|
|
bundle.putString(zzg, zzgVar.zzh());
|
|
} else if (zzgVar.zzl()) {
|
|
bundle.putLong(zzg, zzgVar.zzd());
|
|
}
|
|
}
|
|
return bundle;
|
|
}
|
|
|
|
private final Bundle zza(Map<String, Object> map, boolean z) {
|
|
Bundle bundle = new Bundle();
|
|
for (String str : map.keySet()) {
|
|
Object obj = map.get(str);
|
|
if (obj == null) {
|
|
bundle.putString(str, null);
|
|
} else if (obj instanceof Long) {
|
|
bundle.putLong(str, ((Long) obj).longValue());
|
|
} else if (obj instanceof Double) {
|
|
bundle.putDouble(str, ((Double) obj).doubleValue());
|
|
} else if (!(obj instanceof ArrayList)) {
|
|
bundle.putString(str, obj.toString());
|
|
} else if (z) {
|
|
ArrayList arrayList = (ArrayList) obj;
|
|
ArrayList arrayList2 = new ArrayList();
|
|
int size = arrayList.size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
Object obj2 = arrayList.get(i);
|
|
i++;
|
|
arrayList2.add(zza((Map<String, Object>) obj2, false));
|
|
}
|
|
bundle.putParcelableArray(str, (Parcelable[]) arrayList2.toArray(new Parcelable[0]));
|
|
}
|
|
}
|
|
return bundle;
|
|
}
|
|
|
|
public final <T extends Parcelable> T zza(byte[] bArr, Parcelable.Creator<T> creator) {
|
|
if (bArr == null) {
|
|
return null;
|
|
}
|
|
Parcel obtain = Parcel.obtain();
|
|
try {
|
|
obtain.unmarshall(bArr, 0, bArr.length);
|
|
obtain.setDataPosition(0);
|
|
return creator.createFromParcel(obtain);
|
|
} catch (SafeParcelReader.ParseException unused) {
|
|
zzj().zzg().zza("Failed to load parcelable from buffer");
|
|
return null;
|
|
} finally {
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
|
|
public final /* bridge */ /* synthetic */ Clock zzb() {
|
|
return super.zzb();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zzs zzg() {
|
|
return super.zzg();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
|
|
public final /* bridge */ /* synthetic */ zzad zzd() {
|
|
return super.zzd();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ zzae zze() {
|
|
return super.zze();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zzan zzh() {
|
|
return super.zzh();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ zzaz zzf() {
|
|
return super.zzf();
|
|
}
|
|
|
|
public final zzbf zza(com.google.android.gms.internal.measurement.zzad zzadVar) {
|
|
Object obj;
|
|
Bundle zza = zza(zzadVar.zzc(), true);
|
|
String obj2 = (!zza.containsKey("_o") || (obj = zza.get("_o")) == null) ? MBridgeConstans.DYNAMIC_VIEW_WX_APP : obj.toString();
|
|
String zzb = zzir.zzb(zzadVar.zzb());
|
|
if (zzb == null) {
|
|
zzb = zzadVar.zzb();
|
|
}
|
|
return new zzbf(zzb, new zzba(zza), obj2, zzadVar.zza());
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ zzfv zzi() {
|
|
return super.zzi();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
|
|
public final /* bridge */ /* synthetic */ zzfw zzj() {
|
|
return super.zzj();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ zzgl zzk() {
|
|
return super.zzk();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zzgw zzm() {
|
|
return super.zzm();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
|
|
public final /* bridge */ /* synthetic */ zzhg zzl() {
|
|
return super.zzl();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zzmc zzn() {
|
|
return super.zzn();
|
|
}
|
|
|
|
@TargetApi(30)
|
|
public final zzmu zza(String str, zzfn.zzj.zza zzaVar, zzfn.zze.zza zzaVar2, String str2) {
|
|
int indexOf;
|
|
if (!zzpd.zza() || !zze().zze(str, zzbh.zzcb)) {
|
|
return null;
|
|
}
|
|
long currentTimeMillis = zzb().currentTimeMillis();
|
|
String[] split = zze().zzd(str, zzbh.zzbe).split(",");
|
|
HashSet hashSet = new HashSet(split.length);
|
|
for (String str3 : split) {
|
|
Objects.requireNonNull(str3);
|
|
if (!hashSet.add(str3)) {
|
|
throw new IllegalArgumentException("duplicate element: " + ((Object) str3));
|
|
}
|
|
}
|
|
Set unmodifiableSet = Collections.unmodifiableSet(hashSet);
|
|
zzna zzo = zzo();
|
|
String zzf = zzo.zzm().zzf(str);
|
|
Uri.Builder builder = new Uri.Builder();
|
|
builder.scheme(zzo.zze().zzd(str, zzbh.zzax));
|
|
if (!TextUtils.isEmpty(zzf)) {
|
|
builder.authority(zzf + Consts.STRING_PERIOD + zzo.zze().zzd(str, zzbh.zzay));
|
|
} else {
|
|
builder.authority(zzo.zze().zzd(str, zzbh.zzay));
|
|
}
|
|
builder.path(zzo.zze().zzd(str, zzbh.zzaz));
|
|
zza(builder, "gmp_app_id", zzaVar.zzw(), (Set<String>) unmodifiableSet);
|
|
zza(builder, "gmp_version", "95001", (Set<String>) unmodifiableSet);
|
|
String zzt = zzaVar.zzt();
|
|
zzae zze = zze();
|
|
zzfn<Boolean> zzfnVar = zzbh.zzce;
|
|
if (zze.zze(str, zzfnVar) && zzm().zzp(str)) {
|
|
zzt = "";
|
|
}
|
|
zza(builder, "app_instance_id", zzt, (Set<String>) unmodifiableSet);
|
|
zza(builder, "rdid", zzaVar.zzy(), (Set<String>) unmodifiableSet);
|
|
zza(builder, "bundle_id", zzaVar.zzs(), (Set<String>) unmodifiableSet);
|
|
String zze2 = zzaVar2.zze();
|
|
String zza = zzir.zza(zze2);
|
|
if (!TextUtils.isEmpty(zza)) {
|
|
zze2 = zza;
|
|
}
|
|
zza(builder, "app_event_name", zze2, (Set<String>) unmodifiableSet);
|
|
zza(builder, "app_version", String.valueOf(zzaVar.zzb()), (Set<String>) unmodifiableSet);
|
|
String zzx = zzaVar.zzx();
|
|
if (zze().zze(str, zzfnVar) && zzm().zzt(str) && !TextUtils.isEmpty(zzx) && (indexOf = zzx.indexOf(Consts.STRING_PERIOD)) != -1) {
|
|
zzx = zzx.substring(0, indexOf);
|
|
}
|
|
zza(builder, "os_version", zzx, (Set<String>) unmodifiableSet);
|
|
zza(builder, "timestamp", String.valueOf(zzaVar2.zzc()), (Set<String>) unmodifiableSet);
|
|
if (zzaVar.zzac()) {
|
|
zza(builder, ad.q, "1", (Set<String>) unmodifiableSet);
|
|
}
|
|
zza(builder, "privacy_sandbox_version", String.valueOf(zzaVar.zza()), (Set<String>) unmodifiableSet);
|
|
zza(builder, "trigger_uri_source", "1", (Set<String>) unmodifiableSet);
|
|
zza(builder, "trigger_uri_timestamp", String.valueOf(currentTimeMillis), (Set<String>) unmodifiableSet);
|
|
zza(builder, "request_uuid", str2, (Set<String>) unmodifiableSet);
|
|
List<zzfn.zzg> zzf2 = zzaVar2.zzf();
|
|
Bundle bundle = new Bundle();
|
|
for (zzfn.zzg zzgVar : zzf2) {
|
|
String zzg = zzgVar.zzg();
|
|
if (zzgVar.zzj()) {
|
|
bundle.putString(zzg, String.valueOf(zzgVar.zza()));
|
|
} else if (zzgVar.zzk()) {
|
|
bundle.putString(zzg, String.valueOf(zzgVar.zzb()));
|
|
} else if (zzgVar.zzn()) {
|
|
bundle.putString(zzg, zzgVar.zzh());
|
|
} else if (zzgVar.zzl()) {
|
|
bundle.putString(zzg, String.valueOf(zzgVar.zzd()));
|
|
}
|
|
}
|
|
zza(builder, zze().zzd(str, zzbh.zzbd).split("\\|"), bundle, (Set<String>) unmodifiableSet);
|
|
List<zzfn.zzn> zzaa = zzaVar.zzaa();
|
|
Bundle bundle2 = new Bundle();
|
|
for (zzfn.zzn zznVar : zzaa) {
|
|
String zzg2 = zznVar.zzg();
|
|
if (zznVar.zzi()) {
|
|
bundle2.putString(zzg2, String.valueOf(zznVar.zza()));
|
|
} else if (zznVar.zzj()) {
|
|
bundle2.putString(zzg2, String.valueOf(zznVar.zzb()));
|
|
} else if (zznVar.zzm()) {
|
|
bundle2.putString(zzg2, zznVar.zzh());
|
|
} else if (zznVar.zzk()) {
|
|
bundle2.putString(zzg2, String.valueOf(zznVar.zzc()));
|
|
}
|
|
}
|
|
zza(builder, zze().zzd(str, zzbh.zzbc).split("\\|"), bundle2, (Set<String>) unmodifiableSet);
|
|
zza(builder, "dma", zzaVar.zzab() ? "1" : "0", (Set<String>) unmodifiableSet);
|
|
if (!zzaVar.zzv().isEmpty()) {
|
|
zza(builder, "dma_cps", zzaVar.zzv(), (Set<String>) unmodifiableSet);
|
|
}
|
|
return new zzmu(builder.build().toString(), currentTimeMillis, 1);
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zzna zzo() {
|
|
return super.zzo();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzmy
|
|
public final /* bridge */ /* synthetic */ zznp g_() {
|
|
return super.g_();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ zznt zzq() {
|
|
return super.zzq();
|
|
}
|
|
|
|
public final zzfn.zze zza(zzay zzayVar) {
|
|
zzfn.zze.zza zza = zzfn.zze.zze().zza(zzayVar.zzd);
|
|
Iterator<String> it = zzayVar.zze.iterator();
|
|
while (it.hasNext()) {
|
|
String next = it.next();
|
|
zzfn.zzg.zza zza2 = zzfn.zzg.zze().zza(next);
|
|
Object zzc = zzayVar.zze.zzc(next);
|
|
Preconditions.checkNotNull(zzc);
|
|
zza(zza2, zzc);
|
|
zza.zza(zza2);
|
|
}
|
|
return (zzfn.zze) ((com.google.android.gms.internal.measurement.zzjk) zza.zzag());
|
|
}
|
|
|
|
public static zzfn.zzg zza(zzfn.zze zzeVar, String str) {
|
|
for (zzfn.zzg zzgVar : zzeVar.zzh()) {
|
|
if (zzgVar.zzg().equals(str)) {
|
|
return zzgVar;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static <BuilderT extends com.google.android.gms.internal.measurement.zzkt> BuilderT zza(BuilderT buildert, byte[] bArr) throws com.google.android.gms.internal.measurement.zzjt {
|
|
com.google.android.gms.internal.measurement.zzix zza = com.google.android.gms.internal.measurement.zzix.zza();
|
|
if (zza != null) {
|
|
return (BuilderT) buildert.zza(bArr, zza);
|
|
}
|
|
return (BuilderT) buildert.zza(bArr);
|
|
}
|
|
|
|
public static Object zzb(zzfn.zze zzeVar, String str) {
|
|
zzfn.zzg zza = zza(zzeVar, str);
|
|
if (zza == null) {
|
|
return null;
|
|
}
|
|
if (zza.zzn()) {
|
|
return zza.zzh();
|
|
}
|
|
if (zza.zzl()) {
|
|
return Long.valueOf(zza.zzd());
|
|
}
|
|
if (zza.zzj()) {
|
|
return Double.valueOf(zza.zza());
|
|
}
|
|
if (zza.zzc() <= 0) {
|
|
return null;
|
|
}
|
|
List<zzfn.zzg> zzi = zza.zzi();
|
|
ArrayList arrayList = new ArrayList();
|
|
for (zzfn.zzg zzgVar : zzi) {
|
|
if (zzgVar != null) {
|
|
Bundle bundle = new Bundle();
|
|
for (zzfn.zzg zzgVar2 : zzgVar.zzi()) {
|
|
if (zzgVar2.zzn()) {
|
|
bundle.putString(zzgVar2.zzg(), zzgVar2.zzh());
|
|
} else if (zzgVar2.zzl()) {
|
|
bundle.putLong(zzgVar2.zzg(), zzgVar2.zzd());
|
|
} else if (zzgVar2.zzj()) {
|
|
bundle.putDouble(zzgVar2.zzg(), zzgVar2.zza());
|
|
}
|
|
}
|
|
if (!bundle.isEmpty()) {
|
|
arrayList.add(bundle);
|
|
}
|
|
}
|
|
}
|
|
return (Bundle[]) arrayList.toArray(new Bundle[arrayList.size()]);
|
|
}
|
|
|
|
public final String zza(zzfn.zzi zziVar) {
|
|
zzfn.zzb zzu;
|
|
if (zziVar == null) {
|
|
return "";
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("\nbatch {\n");
|
|
if (zzpo.zza() && zze().zza(zzbh.zzbu) && zziVar.zza() > 0) {
|
|
zzq();
|
|
if (zznt.zzf(zziVar.zza(0).zzy()) && zziVar.zzf()) {
|
|
zza(sb, 0, "UploadSubdomain", zziVar.zzd());
|
|
}
|
|
}
|
|
for (zzfn.zzj zzjVar : zziVar.zze()) {
|
|
if (zzjVar != null) {
|
|
zza(sb, 1);
|
|
sb.append("bundle {\n");
|
|
if (zzjVar.zzbm()) {
|
|
zza(sb, 1, "protocol_version", Integer.valueOf(zzjVar.zzf()));
|
|
}
|
|
if (zzpi.zza() && zze().zze(zzjVar.zzy(), zzbh.zzbt) && zzjVar.zzbp()) {
|
|
zza(sb, 1, "session_stitching_token", zzjVar.zzan());
|
|
}
|
|
zza(sb, 1, "platform", zzjVar.zzal());
|
|
if (zzjVar.zzbh()) {
|
|
zza(sb, 1, "gmp_version", Long.valueOf(zzjVar.zzn()));
|
|
}
|
|
if (zzjVar.zzbu()) {
|
|
zza(sb, 1, "uploading_gmp_version", Long.valueOf(zzjVar.zzt()));
|
|
}
|
|
if (zzjVar.zzbf()) {
|
|
zza(sb, 1, "dynamite_version", Long.valueOf(zzjVar.zzl()));
|
|
}
|
|
if (zzjVar.zzaz()) {
|
|
zza(sb, 1, "config_version", Long.valueOf(zzjVar.zzj()));
|
|
}
|
|
zza(sb, 1, "gmp_app_id", zzjVar.h_());
|
|
zza(sb, 1, "admob_app_id", zzjVar.zzx());
|
|
zza(sb, 1, "app_id", zzjVar.zzy());
|
|
zza(sb, 1, "app_version", zzjVar.zzab());
|
|
if (zzjVar.zzaw()) {
|
|
zza(sb, 1, "app_version_major", Integer.valueOf(zzjVar.zzb()));
|
|
}
|
|
zza(sb, 1, "firebase_instance_id", zzjVar.zzah());
|
|
if (zzjVar.zzbe()) {
|
|
zza(sb, 1, "dev_cert_hash", Long.valueOf(zzjVar.zzk()));
|
|
}
|
|
zza(sb, 1, "app_store", zzjVar.zzaa());
|
|
if (zzjVar.zzbt()) {
|
|
zza(sb, 1, "upload_timestamp_millis", Long.valueOf(zzjVar.zzs()));
|
|
}
|
|
if (zzjVar.zzbq()) {
|
|
zza(sb, 1, "start_timestamp_millis", Long.valueOf(zzjVar.zzq()));
|
|
}
|
|
if (zzjVar.zzbg()) {
|
|
zza(sb, 1, "end_timestamp_millis", Long.valueOf(zzjVar.zzm()));
|
|
}
|
|
if (zzjVar.zzbl()) {
|
|
zza(sb, 1, "previous_bundle_start_timestamp_millis", Long.valueOf(zzjVar.zzp()));
|
|
}
|
|
if (zzjVar.zzbk()) {
|
|
zza(sb, 1, "previous_bundle_end_timestamp_millis", Long.valueOf(zzjVar.zzo()));
|
|
}
|
|
zza(sb, 1, "app_instance_id", zzjVar.zzz());
|
|
zza(sb, 1, "resettable_device_id", zzjVar.zzam());
|
|
zza(sb, 1, "ds_id", zzjVar.zzag());
|
|
if (zzjVar.zzbj()) {
|
|
zza(sb, 1, "limited_ad_tracking", Boolean.valueOf(zzjVar.zzau()));
|
|
}
|
|
zza(sb, 1, "os_version", zzjVar.zzak());
|
|
zza(sb, 1, "device_model", zzjVar.zzaf());
|
|
zza(sb, 1, "user_default_language", zzjVar.zzao());
|
|
if (zzjVar.zzbs()) {
|
|
zza(sb, 1, "time_zone_offset_minutes", Integer.valueOf(zzjVar.zzh()));
|
|
}
|
|
if (zzjVar.zzay()) {
|
|
zza(sb, 1, "bundle_sequential_index", Integer.valueOf(zzjVar.zzc()));
|
|
}
|
|
if (zzpo.zza()) {
|
|
zzq();
|
|
if (zznt.zzf(zzjVar.zzy()) && zze().zza(zzbh.zzbu) && zzjVar.zzbd()) {
|
|
zza(sb, 1, "delivery_index", Integer.valueOf(zzjVar.zzd()));
|
|
}
|
|
}
|
|
if (zzjVar.zzbo()) {
|
|
zza(sb, 1, "service_upload", Boolean.valueOf(zzjVar.zzav()));
|
|
}
|
|
zza(sb, 1, "health_monitor", zzjVar.zzaj());
|
|
if (zzjVar.zzbn()) {
|
|
zza(sb, 1, "retry_counter", Integer.valueOf(zzjVar.zzg()));
|
|
}
|
|
if (zzjVar.zzbb()) {
|
|
zza(sb, 1, "consent_signals", zzjVar.zzad());
|
|
}
|
|
if (zzjVar.zzbi()) {
|
|
zza(sb, 1, "is_dma_region", Boolean.valueOf(zzjVar.zzat()));
|
|
}
|
|
if (zzjVar.zzbc()) {
|
|
zza(sb, 1, "core_platform_services", zzjVar.zzae());
|
|
}
|
|
if (zzjVar.zzba()) {
|
|
zza(sb, 1, "consent_diagnostics", zzjVar.zzac());
|
|
}
|
|
if (zzjVar.zzbr()) {
|
|
zza(sb, 1, "target_os_version", Long.valueOf(zzjVar.zzr()));
|
|
}
|
|
if (zzpd.zza() && zze().zze(zzjVar.zzy(), zzbh.zzcb)) {
|
|
zza(sb, 1, "ad_services_version", Integer.valueOf(zzjVar.zza()));
|
|
if (zzjVar.zzax() && (zzu = zzjVar.zzu()) != null) {
|
|
zza(sb, 2);
|
|
sb.append("attribution_eligibility_status {\n");
|
|
zza(sb, 2, "eligible", Boolean.valueOf(zzu.zzf()));
|
|
zza(sb, 2, "no_access_adservices_attribution_permission", Boolean.valueOf(zzu.zzh()));
|
|
zza(sb, 2, "pre_r", Boolean.valueOf(zzu.zzi()));
|
|
zza(sb, 2, "r_extensions_too_old", Boolean.valueOf(zzu.zzj()));
|
|
zza(sb, 2, "adservices_extension_too_old", Boolean.valueOf(zzu.zze()));
|
|
zza(sb, 2, "ad_storage_not_allowed", Boolean.valueOf(zzu.zzd()));
|
|
zza(sb, 2, "measurement_manager_disabled", Boolean.valueOf(zzu.zzg()));
|
|
zza(sb, 2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
List<zzfn.zzn> zzar = zzjVar.zzar();
|
|
if (zzar != null) {
|
|
for (zzfn.zzn zznVar : zzar) {
|
|
if (zznVar != null) {
|
|
zza(sb, 2);
|
|
sb.append("user_property {\n");
|
|
zza(sb, 2, "set_timestamp_millis", zznVar.zzl() ? Long.valueOf(zznVar.zzd()) : null);
|
|
zza(sb, 2, "name", zzi().zzc(zznVar.zzg()));
|
|
zza(sb, 2, "string_value", zznVar.zzh());
|
|
zza(sb, 2, "int_value", zznVar.zzk() ? Long.valueOf(zznVar.zzc()) : null);
|
|
zza(sb, 2, "double_value", zznVar.zzi() ? Double.valueOf(zznVar.zza()) : null);
|
|
zza(sb, 2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
}
|
|
List<zzfn.zzc> zzap = zzjVar.zzap();
|
|
zzjVar.zzy();
|
|
if (zzap != null) {
|
|
for (zzfn.zzc zzcVar : zzap) {
|
|
if (zzcVar != null) {
|
|
zza(sb, 2);
|
|
sb.append("audience_membership {\n");
|
|
if (zzcVar.zzg()) {
|
|
zza(sb, 2, "audience_id", Integer.valueOf(zzcVar.zza()));
|
|
}
|
|
if (zzcVar.zzh()) {
|
|
zza(sb, 2, "new_audience", Boolean.valueOf(zzcVar.zzf()));
|
|
}
|
|
zza(sb, 2, "current_data", zzcVar.zzd());
|
|
if (zzcVar.zzi()) {
|
|
zza(sb, 2, "previous_data", zzcVar.zze());
|
|
}
|
|
zza(sb, 2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
}
|
|
List<zzfn.zze> zzaq = zzjVar.zzaq();
|
|
if (zzaq != null) {
|
|
for (zzfn.zze zzeVar : zzaq) {
|
|
if (zzeVar != null) {
|
|
zza(sb, 2);
|
|
sb.append("event {\n");
|
|
zza(sb, 2, "name", zzi().zza(zzeVar.zzg()));
|
|
if (zzeVar.zzk()) {
|
|
zza(sb, 2, "timestamp_millis", Long.valueOf(zzeVar.zzd()));
|
|
}
|
|
if (zzeVar.zzj()) {
|
|
zza(sb, 2, "previous_timestamp_millis", Long.valueOf(zzeVar.zzc()));
|
|
}
|
|
if (zzeVar.zzi()) {
|
|
zza(sb, 2, "count", Integer.valueOf(zzeVar.zza()));
|
|
}
|
|
if (zzeVar.zzb() != 0) {
|
|
zza(sb, 2, zzeVar.zzh());
|
|
}
|
|
zza(sb, 2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
}
|
|
zza(sb, 1);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
sb.append("}\n");
|
|
return sb.toString();
|
|
}
|
|
|
|
public final String zza(zzff.zzb zzbVar) {
|
|
if (zzbVar == null) {
|
|
return "null";
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("\nevent_filter {\n");
|
|
if (zzbVar.zzl()) {
|
|
zza(sb, 0, "filter_id", Integer.valueOf(zzbVar.zzb()));
|
|
}
|
|
zza(sb, 0, TJAdUnitConstants.PARAM_PLACEMENT_NAME, zzi().zza(zzbVar.zzf()));
|
|
String zza = zza(zzbVar.zzh(), zzbVar.zzi(), zzbVar.zzj());
|
|
if (!zza.isEmpty()) {
|
|
zza(sb, 0, "filter_type", zza);
|
|
}
|
|
if (zzbVar.zzk()) {
|
|
zza(sb, 1, "event_count_filter", zzbVar.zze());
|
|
}
|
|
if (zzbVar.zza() > 0) {
|
|
sb.append(" filters {\n");
|
|
Iterator<zzff.zzc> it = zzbVar.zzg().iterator();
|
|
while (it.hasNext()) {
|
|
zza(sb, 2, it.next());
|
|
}
|
|
}
|
|
zza(sb, 1);
|
|
sb.append("}\n}\n");
|
|
return sb.toString();
|
|
}
|
|
|
|
private static String zza(boolean z, boolean z2, boolean z3) {
|
|
StringBuilder sb = new StringBuilder();
|
|
if (z) {
|
|
sb.append("Dynamic ");
|
|
}
|
|
if (z2) {
|
|
sb.append("Sequence ");
|
|
}
|
|
if (z3) {
|
|
sb.append("Session-Scoped ");
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
public final String zza(zzff.zze zzeVar) {
|
|
if (zzeVar == null) {
|
|
return "null";
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("\nproperty_filter {\n");
|
|
if (zzeVar.zzi()) {
|
|
zza(sb, 0, "filter_id", Integer.valueOf(zzeVar.zza()));
|
|
}
|
|
zza(sb, 0, "property_name", zzi().zzc(zzeVar.zze()));
|
|
String zza = zza(zzeVar.zzf(), zzeVar.zzg(), zzeVar.zzh());
|
|
if (!zza.isEmpty()) {
|
|
zza(sb, 0, "filter_type", zza);
|
|
}
|
|
zza(sb, 1, zzeVar.zzb());
|
|
sb.append("}\n");
|
|
return sb.toString();
|
|
}
|
|
|
|
public final List<Long> zza(List<Long> list, List<Integer> list2) {
|
|
int i;
|
|
ArrayList arrayList = new ArrayList(list);
|
|
for (Integer num : list2) {
|
|
if (num.intValue() < 0) {
|
|
zzj().zzu().zza("Ignoring negative bit index to be cleared", num);
|
|
} else {
|
|
int intValue = num.intValue() / 64;
|
|
if (intValue >= arrayList.size()) {
|
|
zzj().zzu().zza("Ignoring bit index greater than bitSet size", num, Integer.valueOf(arrayList.size()));
|
|
} else {
|
|
arrayList.set(intValue, Long.valueOf(((Long) arrayList.get(intValue)).longValue() & (~(1 << (num.intValue() % 64)))));
|
|
}
|
|
}
|
|
}
|
|
int size = arrayList.size();
|
|
int size2 = arrayList.size() - 1;
|
|
while (true) {
|
|
int i2 = size2;
|
|
i = size;
|
|
size = i2;
|
|
if (size < 0 || ((Long) arrayList.get(size)).longValue() != 0) {
|
|
break;
|
|
}
|
|
size2 = size - 1;
|
|
}
|
|
return arrayList.subList(0, i);
|
|
}
|
|
|
|
public final List<Integer> zzu() {
|
|
Map<String, String> zza = zzbh.zza(this.zzf.zza());
|
|
if (zza == null || zza.isEmpty()) {
|
|
return null;
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
int intValue = zzbh.zzap.zza(null).intValue();
|
|
for (Map.Entry<String, String> entry : zza.entrySet()) {
|
|
if (entry.getKey().startsWith("measurement.id.")) {
|
|
try {
|
|
int parseInt = Integer.parseInt(entry.getValue());
|
|
if (parseInt != 0) {
|
|
arrayList.add(Integer.valueOf(parseInt));
|
|
if (arrayList.size() >= intValue) {
|
|
zzj().zzu().zza("Too many experiment IDs. Number of IDs", Integer.valueOf(arrayList.size()));
|
|
break;
|
|
}
|
|
continue;
|
|
} else {
|
|
continue;
|
|
}
|
|
} catch (NumberFormatException e) {
|
|
zzj().zzu().zza("Experiment ID NumberFormatException", e);
|
|
}
|
|
}
|
|
}
|
|
if (arrayList.isEmpty()) {
|
|
return null;
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public static List<Long> zza(BitSet bitSet) {
|
|
int length = (bitSet.length() + 63) / 64;
|
|
ArrayList arrayList = new ArrayList(length);
|
|
for (int i = 0; i < length; i++) {
|
|
long j = 0;
|
|
for (int i2 = 0; i2 < 64; i2++) {
|
|
int i3 = (i << 6) + i2;
|
|
if (i3 < bitSet.length()) {
|
|
if (bitSet.get(i3)) {
|
|
j |= 1 << i2;
|
|
}
|
|
}
|
|
}
|
|
arrayList.add(Long.valueOf(j));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0032, code lost:
|
|
|
|
r5 = new java.util.ArrayList();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0038, code lost:
|
|
|
|
if (r4 == false) goto L23;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x003a, code lost:
|
|
|
|
r3 = (android.os.Parcelable[]) r3;
|
|
r4 = r3.length;
|
|
r7 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x003e, code lost:
|
|
|
|
if (r7 >= r4) goto L47;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0040, code lost:
|
|
|
|
r8 = r3[r7];
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0044, code lost:
|
|
|
|
if ((r8 instanceof android.os.Bundle) == false) goto L49;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0046, code lost:
|
|
|
|
r5.add(zza((android.os.Bundle) r8, false));
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x004f, code lost:
|
|
|
|
r7 = r7 + 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0080, code lost:
|
|
|
|
r0.put(r2, r5);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0054, code lost:
|
|
|
|
if ((r3 instanceof java.util.ArrayList) == false) goto L30;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x0056, code lost:
|
|
|
|
r3 = (java.util.ArrayList) r3;
|
|
r4 = r3.size();
|
|
r7 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x005d, code lost:
|
|
|
|
if (r7 >= r4) goto L51;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x005f, code lost:
|
|
|
|
r8 = r3.get(r7);
|
|
r7 = r7 + 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0067, code lost:
|
|
|
|
if ((r8 instanceof android.os.Bundle) == false) goto L53;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x0069, code lost:
|
|
|
|
r5.add(zza((android.os.Bundle) r8, false));
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x0075, code lost:
|
|
|
|
if ((r3 instanceof android.os.Bundle) == false) goto L33;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:41:0x0077, code lost:
|
|
|
|
r5.add(zza((android.os.Bundle) r3, false));
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.util.Map<java.lang.String, java.lang.Object> zza(android.os.Bundle r11, boolean r12) {
|
|
/*
|
|
r10 = this;
|
|
java.util.HashMap r0 = new java.util.HashMap
|
|
r0.<init>()
|
|
java.util.Set r1 = r11.keySet()
|
|
java.util.Iterator r1 = r1.iterator()
|
|
Ld:
|
|
boolean r2 = r1.hasNext()
|
|
if (r2 == 0) goto L84
|
|
java.lang.Object r2 = r1.next()
|
|
java.lang.String r2 = (java.lang.String) r2
|
|
java.lang.Object r3 = r11.get(r2)
|
|
boolean r4 = r3 instanceof android.os.Parcelable[]
|
|
if (r4 != 0) goto L30
|
|
boolean r5 = r3 instanceof java.util.ArrayList
|
|
if (r5 != 0) goto L30
|
|
boolean r5 = r3 instanceof android.os.Bundle
|
|
if (r5 == 0) goto L2a
|
|
goto L30
|
|
L2a:
|
|
if (r3 == 0) goto Ld
|
|
r0.put(r2, r3)
|
|
goto Ld
|
|
L30:
|
|
if (r12 == 0) goto Ld
|
|
java.util.ArrayList r5 = new java.util.ArrayList
|
|
r5.<init>()
|
|
r6 = 0
|
|
if (r4 == 0) goto L52
|
|
android.os.Parcelable[] r3 = (android.os.Parcelable[]) r3
|
|
int r4 = r3.length
|
|
r7 = r6
|
|
L3e:
|
|
if (r7 >= r4) goto L80
|
|
r8 = r3[r7]
|
|
boolean r9 = r8 instanceof android.os.Bundle
|
|
if (r9 == 0) goto L4f
|
|
android.os.Bundle r8 = (android.os.Bundle) r8
|
|
java.util.Map r8 = r10.zza(r8, r6)
|
|
r5.add(r8)
|
|
L4f:
|
|
int r7 = r7 + 1
|
|
goto L3e
|
|
L52:
|
|
boolean r4 = r3 instanceof java.util.ArrayList
|
|
if (r4 == 0) goto L73
|
|
java.util.ArrayList r3 = (java.util.ArrayList) r3
|
|
int r4 = r3.size()
|
|
r7 = r6
|
|
L5d:
|
|
if (r7 >= r4) goto L80
|
|
java.lang.Object r8 = r3.get(r7)
|
|
int r7 = r7 + 1
|
|
boolean r9 = r8 instanceof android.os.Bundle
|
|
if (r9 == 0) goto L5d
|
|
android.os.Bundle r8 = (android.os.Bundle) r8
|
|
java.util.Map r8 = r10.zza(r8, r6)
|
|
r5.add(r8)
|
|
goto L5d
|
|
L73:
|
|
boolean r4 = r3 instanceof android.os.Bundle
|
|
if (r4 == 0) goto L80
|
|
android.os.Bundle r3 = (android.os.Bundle) r3
|
|
java.util.Map r3 = r10.zza(r3, r6)
|
|
r5.add(r3)
|
|
L80:
|
|
r0.put(r2, r5)
|
|
goto Ld
|
|
L84:
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zznp.zza(android.os.Bundle, boolean):java.util.Map");
|
|
}
|
|
|
|
public zznp(zznc zzncVar) {
|
|
super(zzncVar);
|
|
}
|
|
|
|
public static void zza(zzfn.zze.zza zzaVar, String str, Object obj) {
|
|
List<zzfn.zzg> zzf = zzaVar.zzf();
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= zzf.size()) {
|
|
i = -1;
|
|
break;
|
|
} else if (str.equals(zzf.get(i).zzg())) {
|
|
break;
|
|
} else {
|
|
i++;
|
|
}
|
|
}
|
|
zzfn.zzg.zza zza = zzfn.zzg.zze().zza(str);
|
|
if (obj instanceof Long) {
|
|
zza.zza(((Long) obj).longValue());
|
|
} else if (obj instanceof String) {
|
|
zza.zzb((String) obj);
|
|
} else if (obj instanceof Double) {
|
|
zza.zza(((Double) obj).doubleValue());
|
|
}
|
|
if (i >= 0) {
|
|
zzaVar.zza(i, zza);
|
|
} else {
|
|
zzaVar.zza(zza);
|
|
}
|
|
}
|
|
|
|
private static void zza(Uri.Builder builder, String[] strArr, Bundle bundle, Set<String> set) {
|
|
for (String str : strArr) {
|
|
String[] split = str.split(",");
|
|
String str2 = split[0];
|
|
String str3 = split[split.length - 1];
|
|
String string = bundle.getString(str2);
|
|
if (string != null) {
|
|
zza(builder, str3, string, set);
|
|
}
|
|
}
|
|
}
|
|
|
|
private static void zza(StringBuilder sb, int i, String str, zzfn.zzl zzlVar) {
|
|
if (zzlVar == null) {
|
|
return;
|
|
}
|
|
zza(sb, 3);
|
|
sb.append(str);
|
|
sb.append(" {\n");
|
|
if (zzlVar.zzb() != 0) {
|
|
zza(sb, 4);
|
|
sb.append("results: ");
|
|
int i2 = 0;
|
|
for (Long l : zzlVar.zzi()) {
|
|
int i3 = i2 + 1;
|
|
if (i2 != 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(l);
|
|
i2 = i3;
|
|
}
|
|
sb.append('\n');
|
|
}
|
|
if (zzlVar.zzd() != 0) {
|
|
zza(sb, 4);
|
|
sb.append("status: ");
|
|
int i4 = 0;
|
|
for (Long l2 : zzlVar.zzk()) {
|
|
int i5 = i4 + 1;
|
|
if (i4 != 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(l2);
|
|
i4 = i5;
|
|
}
|
|
sb.append('\n');
|
|
}
|
|
if (zzlVar.zza() != 0) {
|
|
zza(sb, 4);
|
|
sb.append("dynamic_filter_timestamps: {");
|
|
int i6 = 0;
|
|
for (zzfn.zzd zzdVar : zzlVar.zzh()) {
|
|
int i7 = i6 + 1;
|
|
if (i6 != 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(zzdVar.zzf() ? Integer.valueOf(zzdVar.zza()) : null);
|
|
sb.append(CertificateUtil.DELIMITER);
|
|
sb.append(zzdVar.zze() ? Long.valueOf(zzdVar.zzb()) : null);
|
|
i6 = i7;
|
|
}
|
|
sb.append("}\n");
|
|
}
|
|
if (zzlVar.zzc() != 0) {
|
|
zza(sb, 4);
|
|
sb.append("sequence_filter_timestamps: {");
|
|
int i8 = 0;
|
|
for (zzfn.zzm zzmVar : zzlVar.zzj()) {
|
|
int i9 = i8 + 1;
|
|
if (i8 != 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(zzmVar.zzf() ? Integer.valueOf(zzmVar.zzb()) : null);
|
|
sb.append(": [");
|
|
Iterator<Long> it = zzmVar.zze().iterator();
|
|
int i10 = 0;
|
|
while (it.hasNext()) {
|
|
long longValue = it.next().longValue();
|
|
int i11 = i10 + 1;
|
|
if (i10 != 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(longValue);
|
|
i10 = i11;
|
|
}
|
|
sb.append(v8.i.e);
|
|
i8 = i9;
|
|
}
|
|
sb.append("}\n");
|
|
}
|
|
zza(sb, 3);
|
|
sb.append("}\n");
|
|
}
|
|
|
|
private final void zza(StringBuilder sb, int i, List<zzfn.zzg> list) {
|
|
if (list == null) {
|
|
return;
|
|
}
|
|
int i2 = i + 1;
|
|
for (zzfn.zzg zzgVar : list) {
|
|
if (zzgVar != null) {
|
|
zza(sb, i2);
|
|
sb.append("param {\n");
|
|
zza(sb, i2, "name", zzgVar.zzm() ? zzi().zzb(zzgVar.zzg()) : null);
|
|
zza(sb, i2, "string_value", zzgVar.zzn() ? zzgVar.zzh() : null);
|
|
zza(sb, i2, "int_value", zzgVar.zzl() ? Long.valueOf(zzgVar.zzd()) : null);
|
|
zza(sb, i2, "double_value", zzgVar.zzj() ? Double.valueOf(zzgVar.zza()) : null);
|
|
if (zzgVar.zzc() > 0) {
|
|
zza(sb, i2, zzgVar.zzi());
|
|
}
|
|
zza(sb, i2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
}
|
|
|
|
private final void zza(StringBuilder sb, int i, zzff.zzc zzcVar) {
|
|
if (zzcVar == null) {
|
|
return;
|
|
}
|
|
zza(sb, i);
|
|
sb.append("filter {\n");
|
|
if (zzcVar.zzg()) {
|
|
zza(sb, i, "complement", Boolean.valueOf(zzcVar.zzf()));
|
|
}
|
|
if (zzcVar.zzi()) {
|
|
zza(sb, i, "param_name", zzi().zzb(zzcVar.zze()));
|
|
}
|
|
if (zzcVar.zzj()) {
|
|
int i2 = i + 1;
|
|
zzff.zzf zzd = zzcVar.zzd();
|
|
if (zzd != null) {
|
|
zza(sb, i2);
|
|
sb.append("string_filter");
|
|
sb.append(" {\n");
|
|
if (zzd.zzj()) {
|
|
zza(sb, i2, "match_type", zzd.zzb().name());
|
|
}
|
|
if (zzd.zzi()) {
|
|
zza(sb, i2, "expression", zzd.zze());
|
|
}
|
|
if (zzd.zzh()) {
|
|
zza(sb, i2, "case_sensitive", Boolean.valueOf(zzd.zzg()));
|
|
}
|
|
if (zzd.zza() > 0) {
|
|
zza(sb, i + 2);
|
|
sb.append("expression_list {\n");
|
|
for (String str : zzd.zzf()) {
|
|
zza(sb, i + 3);
|
|
sb.append(str);
|
|
sb.append("\n");
|
|
}
|
|
sb.append("}\n");
|
|
}
|
|
zza(sb, i2);
|
|
sb.append("}\n");
|
|
}
|
|
}
|
|
if (zzcVar.zzh()) {
|
|
zza(sb, i + 1, "number_filter", zzcVar.zzc());
|
|
}
|
|
zza(sb, i);
|
|
sb.append("}\n");
|
|
}
|
|
|
|
private static void zza(StringBuilder sb, int i) {
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
sb.append(" ");
|
|
}
|
|
}
|
|
|
|
private static void zza(StringBuilder sb, int i, String str, zzff.zzd zzdVar) {
|
|
if (zzdVar == null) {
|
|
return;
|
|
}
|
|
zza(sb, i);
|
|
sb.append(str);
|
|
sb.append(" {\n");
|
|
if (zzdVar.zzh()) {
|
|
zza(sb, i, "comparison_type", zzdVar.zza().name());
|
|
}
|
|
if (zzdVar.zzj()) {
|
|
zza(sb, i, "match_as_float", Boolean.valueOf(zzdVar.zzg()));
|
|
}
|
|
if (zzdVar.zzi()) {
|
|
zza(sb, i, "comparison_value", zzdVar.zzd());
|
|
}
|
|
if (zzdVar.zzl()) {
|
|
zza(sb, i, "min_comparison_value", zzdVar.zzf());
|
|
}
|
|
if (zzdVar.zzk()) {
|
|
zza(sb, i, "max_comparison_value", zzdVar.zze());
|
|
}
|
|
zza(sb, i);
|
|
sb.append("}\n");
|
|
}
|
|
|
|
private static void zza(Uri.Builder builder, String str, String str2, Set<String> set) {
|
|
if (set.contains(str) || TextUtils.isEmpty(str2)) {
|
|
return;
|
|
}
|
|
builder.appendQueryParameter(str, str2);
|
|
}
|
|
|
|
private static void zza(StringBuilder sb, int i, String str, Object obj) {
|
|
if (obj == null) {
|
|
return;
|
|
}
|
|
zza(sb, i + 1);
|
|
sb.append(str);
|
|
sb.append(": ");
|
|
sb.append(obj);
|
|
sb.append('\n');
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ void zzr() {
|
|
super.zzr();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ void zzs() {
|
|
super.zzs();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzij
|
|
public final /* bridge */ /* synthetic */ void zzt() {
|
|
super.zzt();
|
|
}
|
|
|
|
public final void zza(zzfn.zzj.zza zzaVar) {
|
|
zzj().zzp().zza("Checking account type status for ad personalization signals");
|
|
if (zzc(zzaVar.zzs())) {
|
|
zzj().zzc().zza("Turning off ad personalization due to account type");
|
|
zzfn.zzn zznVar = (zzfn.zzn) ((com.google.android.gms.internal.measurement.zzjk) zzfn.zzn.zze().zza("_npa").zzb(zzf().zzc()).zza(1L).zzag());
|
|
int i = 0;
|
|
while (true) {
|
|
if (i < zzaVar.zzd()) {
|
|
if ("_npa".equals(zzaVar.zzk(i).zzg())) {
|
|
zzaVar.zza(i, zznVar);
|
|
break;
|
|
}
|
|
i++;
|
|
} else {
|
|
zzaVar.zza(zznVar);
|
|
break;
|
|
}
|
|
}
|
|
zzaj zza = zzaj.zza(zzaVar.zzu());
|
|
zza.zza(zzin.zza.AD_PERSONALIZATION, zzai.CHILD_ACCOUNT);
|
|
zzaVar.zzf(zza.toString());
|
|
}
|
|
}
|
|
|
|
public final void zza(zzfn.zzg.zza zzaVar, Object obj) {
|
|
Preconditions.checkNotNull(obj);
|
|
zzaVar.zze().zzc().zzb().zzd();
|
|
if (obj instanceof String) {
|
|
zzaVar.zzb((String) obj);
|
|
return;
|
|
}
|
|
if (obj instanceof Long) {
|
|
zzaVar.zza(((Long) obj).longValue());
|
|
return;
|
|
}
|
|
if (obj instanceof Double) {
|
|
zzaVar.zza(((Double) obj).doubleValue());
|
|
return;
|
|
}
|
|
if (obj instanceof Bundle[]) {
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Bundle bundle : (Bundle[]) obj) {
|
|
if (bundle != null) {
|
|
zzfn.zzg.zza zze = zzfn.zzg.zze();
|
|
for (String str : bundle.keySet()) {
|
|
zzfn.zzg.zza zza = zzfn.zzg.zze().zza(str);
|
|
Object obj2 = bundle.get(str);
|
|
if (obj2 instanceof Long) {
|
|
zza.zza(((Long) obj2).longValue());
|
|
} else if (obj2 instanceof String) {
|
|
zza.zzb((String) obj2);
|
|
} else if (obj2 instanceof Double) {
|
|
zza.zza(((Double) obj2).doubleValue());
|
|
}
|
|
zze.zza(zza);
|
|
}
|
|
if (zze.zza() > 0) {
|
|
arrayList.add((zzfn.zzg) ((com.google.android.gms.internal.measurement.zzjk) zze.zzag()));
|
|
}
|
|
}
|
|
}
|
|
zzaVar.zza(arrayList);
|
|
return;
|
|
}
|
|
zzj().zzg().zza("Ignoring invalid (type) event param value", obj);
|
|
}
|
|
|
|
public final void zza(zzfn.zzn.zza zzaVar, Object obj) {
|
|
Preconditions.checkNotNull(obj);
|
|
zzaVar.zzc().zzb().zza();
|
|
if (obj instanceof String) {
|
|
zzaVar.zzb((String) obj);
|
|
return;
|
|
}
|
|
if (obj instanceof Long) {
|
|
zzaVar.zza(((Long) obj).longValue());
|
|
} else if (obj instanceof Double) {
|
|
zzaVar.zza(((Double) obj).doubleValue());
|
|
} else {
|
|
zzj().zzg().zza("Ignoring invalid (type) user attribute value", obj);
|
|
}
|
|
}
|
|
|
|
@WorkerThread
|
|
public static boolean zza(zzbf zzbfVar, zzn zznVar) {
|
|
Preconditions.checkNotNull(zzbfVar);
|
|
Preconditions.checkNotNull(zznVar);
|
|
return (TextUtils.isEmpty(zznVar.zzb) && TextUtils.isEmpty(zznVar.zzp)) ? false : true;
|
|
}
|
|
|
|
public static boolean zza(List<Long> list, int i) {
|
|
if (i < (list.size() << 6)) {
|
|
return ((1 << (i % 64)) & list.get(i / 64).longValue()) != 0;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final boolean zza(long j, long j2) {
|
|
return j == 0 || j2 <= 0 || Math.abs(zzb().currentTimeMillis() - j) > j2;
|
|
}
|
|
|
|
public static boolean zzb(String str) {
|
|
return str != null && str.matches("([+-])?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)") && str.length() <= 310;
|
|
}
|
|
|
|
public final boolean zzc(String str) {
|
|
if (com.google.android.gms.internal.measurement.zznn.zza() && zze().zza(zzbh.zzct)) {
|
|
return false;
|
|
}
|
|
Preconditions.checkNotNull(str);
|
|
zzf zze = zzh().zze(str);
|
|
return zze != null && zzf().zzn() && zze.zzaq() && zzm().zzk(str);
|
|
}
|
|
|
|
public final byte[] zzb(byte[] bArr) throws IOException {
|
|
try {
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream);
|
|
gZIPOutputStream.write(bArr);
|
|
gZIPOutputStream.close();
|
|
byteArrayOutputStream.close();
|
|
return byteArrayOutputStream.toByteArray();
|
|
} catch (IOException e) {
|
|
zzj().zzg().zza("Failed to gzip content", e);
|
|
throw e;
|
|
}
|
|
}
|
|
|
|
public final byte[] zzc(byte[] bArr) throws IOException {
|
|
try {
|
|
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bArr);
|
|
GZIPInputStream gZIPInputStream = new GZIPInputStream(byteArrayInputStream);
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
byte[] bArr2 = new byte[1024];
|
|
while (true) {
|
|
int read = gZIPInputStream.read(bArr2);
|
|
if (read > 0) {
|
|
byteArrayOutputStream.write(bArr2, 0, read);
|
|
} else {
|
|
gZIPInputStream.close();
|
|
byteArrayInputStream.close();
|
|
return byteArrayOutputStream.toByteArray();
|
|
}
|
|
}
|
|
} catch (IOException e) {
|
|
zzj().zzg().zza("Failed to ungzip content", e);
|
|
throw e;
|
|
}
|
|
}
|
|
}
|