what-the-bank/sources/com/google/android/gms/measurement/internal/zzt.java

162 lines
5.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzoa;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import o.nyh;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zzt {
final zzz zza;
private String zzb;
private boolean zzc;
private com.google.android.gms.internal.measurement.zzgd zzd;
private BitSet zze;
private BitSet zzf;
private Map<Integer, Long> zzg;
private Map<Integer, List<Long>> zzh;
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzt(zzz zzzVar, String str, zzs zzsVar) {
this.zza = zzzVar;
this.zzb = str;
this.zzc = true;
this.zze = new BitSet();
this.zzf = new BitSet();
this.zzg = new nyh();
this.zzh = new nyh();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final com.google.android.gms.internal.measurement.zzfk zza(int i) {
ArrayList arrayList;
List list;
com.google.android.gms.internal.measurement.zzfj zzb = com.google.android.gms.internal.measurement.zzfk.zzb();
zzb.zza(i);
zzb.zzc(this.zzc);
com.google.android.gms.internal.measurement.zzgd zzgdVar = this.zzd;
if (zzgdVar != null) {
zzb.zzd(zzgdVar);
}
com.google.android.gms.internal.measurement.zzgc zzf = com.google.android.gms.internal.measurement.zzgd.zzf();
zzf.zzb(zzku.zzs(this.zze));
zzf.zzd(zzku.zzs(this.zzf));
Map<Integer, Long> map = this.zzg;
if (map == null) {
arrayList = null;
} else {
ArrayList arrayList2 = new ArrayList(map.size());
Iterator<Integer> it = this.zzg.keySet().iterator();
while (it.hasNext()) {
int intValue = it.next().intValue();
Long l = this.zzg.get(Integer.valueOf(intValue));
if (l != null) {
com.google.android.gms.internal.measurement.zzfl zzc = com.google.android.gms.internal.measurement.zzfm.zzc();
zzc.zzb(intValue);
zzc.zza(l.longValue());
arrayList2.add(zzc.zzaA());
}
}
arrayList = arrayList2;
}
if (arrayList != null) {
zzf.zza(arrayList);
}
Map<Integer, List<Long>> map2 = this.zzh;
if (map2 == null) {
list = Collections.emptyList();
} else {
ArrayList arrayList3 = new ArrayList(map2.size());
for (Integer num : this.zzh.keySet()) {
com.google.android.gms.internal.measurement.zzge zzd = com.google.android.gms.internal.measurement.zzgf.zzd();
zzd.zzb(num.intValue());
List<Long> list2 = this.zzh.get(num);
if (list2 != null) {
Collections.sort(list2);
zzd.zza(list2);
}
arrayList3.add((com.google.android.gms.internal.measurement.zzgf) zzd.zzaA());
}
list = arrayList3;
}
zzf.zzc(list);
zzb.zzb(zzf);
return zzb.zzaA();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzc(zzx zzxVar) {
int zza = zzxVar.zza();
Boolean bool = zzxVar.zzd;
if (bool != null) {
this.zzf.set(zza, bool.booleanValue());
}
Boolean bool2 = zzxVar.zze;
if (bool2 != null) {
this.zze.set(zza, bool2.booleanValue());
}
if (zzxVar.zzf != null) {
Map<Integer, Long> map = this.zzg;
Integer valueOf = Integer.valueOf(zza);
Long l = map.get(valueOf);
long longValue = zzxVar.zzf.longValue() / 1000;
if (l == null || longValue > l.longValue()) {
this.zzg.put(valueOf, Long.valueOf(longValue));
}
}
if (zzxVar.zzg != null) {
Map<Integer, List<Long>> map2 = this.zzh;
Integer valueOf2 = Integer.valueOf(zza);
List<Long> list = map2.get(valueOf2);
if (list == null) {
list = new ArrayList<>();
this.zzh.put(valueOf2, list);
}
if (zzxVar.zzc()) {
list.clear();
}
zzoa.zzc();
if (this.zza.zzs.zzf().zzs(this.zzb, zzdy.zzY) && zzxVar.zzb()) {
list.clear();
}
zzoa.zzc();
if (!this.zza.zzs.zzf().zzs(this.zzb, zzdy.zzY)) {
list.add(Long.valueOf(zzxVar.zzg.longValue() / 1000));
return;
}
Long valueOf3 = Long.valueOf(zzxVar.zzg.longValue() / 1000);
if (list.contains(valueOf3)) {
return;
}
list.add(valueOf3);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzt(zzz zzzVar, String str, com.google.android.gms.internal.measurement.zzgd zzgdVar, BitSet bitSet, BitSet bitSet2, Map map, Map map2, zzs zzsVar) {
this.zza = zzzVar;
this.zzb = str;
this.zze = bitSet;
this.zzf = bitSet2;
this.zzg = map;
this.zzh = new nyh();
for (Integer num : map2.keySet()) {
ArrayList arrayList = new ArrayList();
arrayList.add((Long) map2.get(num));
this.zzh.put(num, arrayList);
}
this.zzc = false;
this.zzd = zzgdVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* bridge */ /* synthetic */ BitSet zzb(zzt zztVar) {
return zztVar.zze;
}
}