what-the-bank/sources/com/google/android/gms/internal/gtm/zzae.java

120 lines
3.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import com.google.android.gms.analytics.zzk;
import com.google.android.gms.common.internal.Preconditions;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/* loaded from: classes.dex */
public final class zzae extends zzan {
private final zzbb zzvu;
public zzae(zzap zzapVar, zzar zzarVar) {
super(zzapVar);
Preconditions.checkNotNull(zzarVar);
this.zzvu = new zzbb(zzapVar, zzarVar);
}
@Override // com.google.android.gms.internal.gtm.zzan
protected final void zzaw() {
this.zzvu.zzag();
}
public final void start() {
this.zzvu.start();
}
public final void setLocalDispatchPeriod(int i) {
zzdb();
zzb("setLocalDispatchPeriod (sec)", Integer.valueOf(i));
zzcq().zza(new zzaf(this, i));
}
public final long zza(zzas zzasVar) {
zzdb();
Preconditions.checkNotNull(zzasVar);
zzk.zzav();
long zza = this.zzvu.zza(zzasVar, true);
if (zza == 0) {
this.zzvu.zzb(zzasVar);
}
return zza;
}
public final void zza(zzcd zzcdVar) {
Preconditions.checkNotNull(zzcdVar);
zzdb();
zzb("Hit delivery requested", zzcdVar);
zzcq().zza(new zzai(this, zzcdVar));
}
public final void zzch() {
zzdb();
zzcq().zza(new zzaj(this));
}
public final void zza(zzbw zzbwVar) {
zzdb();
zzcq().zza(new zzak(this, zzbwVar));
}
public final void zzci() {
zzdb();
Context context = getContext();
if (zzcp.zza(context) && zzcq.zze(context)) {
Intent intent = new Intent("com.google.android.gms.analytics.ANALYTICS_DISPATCH");
intent.setComponent(new ComponentName(context, "com.google.android.gms.analytics.AnalyticsService"));
context.startService(intent);
return;
}
zza((zzbw) null);
}
public final boolean zzcj() {
zzdb();
try {
zzcq().zza(new zzal(this)).get(4L, TimeUnit.SECONDS);
return true;
} catch (InterruptedException e) {
zzd("syncDispatchLocalHits interrupted", e);
return false;
} catch (ExecutionException e2) {
zze("syncDispatchLocalHits failed", e2);
return false;
} catch (TimeoutException e3) {
zzd("syncDispatchLocalHits timed out", e3);
return false;
}
}
public final void zzck() {
zzdb();
zzk.zzav();
zzbb zzbbVar = this.zzvu;
zzk.zzav();
zzbbVar.zzdb();
zzbbVar.zzq("Service disconnected");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void onServiceConnected() {
zzk.zzav();
this.zzvu.onServiceConnected();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzcl() {
zzk.zzav();
this.zzvu.zzcl();
}
public final void zza(String str, Runnable runnable) {
Preconditions.checkNotEmpty(str, "campaign param can't be empty");
zzcq().zza(new zzah(this, str, runnable));
}
}