package o;

import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.n20, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ExecutorC1921n20 implements Executor {
    public final /* synthetic */ int l;
    public final Object m;

    public /* synthetic */ ExecutorC1921n20(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    @Override // java.util.concurrent.Executor
    public final void execute(Runnable runnable) {
        switch (this.l) {
            case 0:
                Handler handler = (Handler) this.m;
                runnable.getClass();
                if (handler.post(runnable)) {
                    return;
                }
                throw new RejectedExecutionException(handler + " is shutting down");
            case 1:
                ((Executor) this.m).execute(new V30(runnable, 0));
                return;
            case 2:
                ((Handler) ((C2062oc0) this.m).c).post(runnable);
                return;
            case 3:
                Fr0 fr0 = ((Kr0) ((Xs0) this.m).a).g;
                Kr0.l(fr0);
                fr0.B(runnable);
                return;
            default:
                ((Gn0) this.m).post(runnable);
                return;
        }
    }

    public ExecutorC1921n20() {
        this.l = 4;
        Gn0 gn0 = new Gn0(Looper.getMainLooper());
        Looper.getMainLooper();
        this.m = gn0;
    }
}
