package o;

import android.os.Handler;
import com.google.android.gms.common.internal.Preconditions;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.yo0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC3035yo0 {
    public static volatile Gn0 d;
    public final InterfaceC1619js0 a;
    public final RunnableC0890cD b;
    public volatile long c;

    public AbstractC3035yo0(InterfaceC1619js0 interfaceC1619js0) {
        Preconditions.checkNotNull(interfaceC1619js0);
        this.a = interfaceC1619js0;
        this.b = new RunnableC0890cD(21, this, interfaceC1619js0, false);
    }

    public abstract void a();

    public final void b(long j) {
        c();
        if (j >= 0) {
            InterfaceC1619js0 interfaceC1619js0 = this.a;
            this.c = interfaceC1619js0.e().currentTimeMillis();
            if (d().postDelayed(this.b, j)) {
                return;
            }
            interfaceC1619js0.b().f.c(Long.valueOf(j), "Failed to schedule delayed post. time");
        }
    }

    public final void c() {
        this.c = 0L;
        d().removeCallbacks(this.b);
    }

    public final Handler d() {
        Gn0 gn0;
        if (d != null) {
            return d;
        }
        synchronized (AbstractC3035yo0.class) {
            try {
                if (d == null) {
                    d = new Gn0(this.a.d().getMainLooper());
                }
                gn0 = d;
            } catch (Throwable th) {
                throw th;
            }
        }
        return gn0;
    }
}
