Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

110 lines
3.6 KiB
Java

package com.google.android.gms.internal.measurement;
import com.google.android.gms.internal.measurement.zzft;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Callable;
/* loaded from: classes3.dex */
public final class zzb {
zzac zza;
private final zzf zzb;
private zzh zzc;
private final zzaa zzd;
public final zzac zza() {
return this.zza;
}
public final /* synthetic */ zzal zzb() throws Exception {
return new zzw(this.zzd);
}
public zzb() {
this(new zzf());
}
private zzb(zzf zzfVar) {
this.zzb = zzfVar;
this.zzc = zzfVar.zza.zza();
this.zza = new zzac();
this.zzd = new zzaa();
zzfVar.zza("internal.registerCallback", new Callable() { // from class: com.google.android.gms.internal.measurement.zza
@Override // java.util.concurrent.Callable
public final Object call() {
return zzb.this.zzb();
}
});
zzfVar.zza("internal.eventLogger", new Callable() { // from class: com.google.android.gms.internal.measurement.zzd
@Override // java.util.concurrent.Callable
public final Object call() {
return new zzk(zzb.this.zza);
}
});
}
public final void zza(zzft.zzc zzcVar) throws zzc {
zzal zzalVar;
try {
this.zzc = this.zzb.zza.zza();
if (this.zzb.zza(this.zzc, (zzft.zzd[]) zzcVar.zzc().toArray(new zzft.zzd[0])) instanceof zzaj) {
throw new IllegalStateException("Program loading failed");
}
for (zzft.zzb zzbVar : zzcVar.zza().zzd()) {
List<zzft.zzd> zzc = zzbVar.zzc();
String zzb = zzbVar.zzb();
Iterator<zzft.zzd> it = zzc.iterator();
while (it.hasNext()) {
zzaq zza = this.zzb.zza(this.zzc, it.next());
if (!(zza instanceof zzap)) {
throw new IllegalArgumentException("Invalid rule definition");
}
zzh zzhVar = this.zzc;
if (zzhVar.zzb(zzb)) {
zzaq zza2 = zzhVar.zza(zzb);
if (!(zza2 instanceof zzal)) {
throw new IllegalStateException("Invalid function name: " + zzb);
}
zzalVar = (zzal) zza2;
} else {
zzalVar = null;
}
if (zzalVar == null) {
throw new IllegalStateException("Rule function is undefined: " + zzb);
}
zzalVar.zza(this.zzc, Collections.singletonList(zza));
}
}
} catch (Throwable th) {
throw new zzc(th);
}
}
public final void zza(String str, Callable<? extends zzal> callable) {
this.zzb.zza(str, callable);
}
public final boolean zza(zzad zzadVar) throws zzc {
try {
this.zza.zza(zzadVar);
this.zzb.zzb.zzc("runtime.counter", new zzai(Double.valueOf(0.0d)));
this.zzd.zza(this.zzc.zza(), this.zza);
if (zzd()) {
return true;
}
return zzc();
} catch (Throwable th) {
throw new zzc(th);
}
}
public final boolean zzc() {
return !this.zza.zzc().isEmpty();
}
public final boolean zzd() {
return !this.zza.zzb().equals(this.zza.zza());
}
}