package com.google.android.gms.measurement.internal; import android.os.Handler; import com.google.android.gms.common.internal.Preconditions; /* loaded from: classes.dex */ abstract class zzan { private static volatile Handler zza; private final zzgy zzb; private final Runnable zzc; private volatile long zzd; zzan(zzgy zzgyVar) { Preconditions.checkNotNull(zzgyVar); this.zzb = zzgyVar; this.zzc = new zzam(this, zzgyVar); } private final Handler zzf() { Handler handler; if (zza != null) { return zza; } synchronized (zzan.class) { if (zza == null) { zza = new com.google.android.gms.internal.measurement.zzby(this.zzb.zzaw().getMainLooper()); } handler = zza; } return handler; } final void zzb() { this.zzd = 0L; zzf().removeCallbacks(this.zzc); } public abstract void zzc(); public final void zzd(long j10) { zzb(); if (j10 >= 0) { this.zzd = this.zzb.zzax().currentTimeMillis(); if (zzf().postDelayed(this.zzc, j10)) { return; } this.zzb.zzaA().zzd().zzb("Failed to schedule delayed post. time", Long.valueOf(j10)); } } public final boolean zze() { return this.zzd != 0; } }