package O2;

import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class d implements h {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ int f2289k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ g f2290l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ Runnable f2291m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ long f2292n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final /* synthetic */ long f2293o;
    public final /* synthetic */ TimeUnit p;

    public /* synthetic */ d(g gVar, Runnable runnable, long j5, long j6, TimeUnit timeUnit, int i) {
        this.f2289k = i;
        this.f2290l = gVar;
        this.f2291m = runnable;
        this.f2292n = j5;
        this.f2293o = j6;
        this.p = timeUnit;
    }

    @Override // O2.h
    public final ScheduledFuture b(g3.c cVar) {
        switch (this.f2289k) {
            case 0:
                g gVar = this.f2290l;
                return gVar.f2302l.scheduleAtFixedRate(new e(gVar, this.f2291m, cVar, 0), this.f2292n, this.f2293o, this.p);
            default:
                g gVar2 = this.f2290l;
                return gVar2.f2302l.scheduleWithFixedDelay(new e(gVar2, this.f2291m, cVar, 2), this.f2292n, this.f2293o, this.p);
        }
    }
}
