package L1;

import android.os.RemoteException;

/* JADX INFO: renamed from: L1.w1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class RunnableC0147w1 implements Runnable {

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

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

    public /* synthetic */ RunnableC0147w1(C0153y1 c0153y1, int i) {
        this.f2046k = i;
        this.f2047l = c0153y1;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f2046k) {
            case 0:
                this.f2047l.q();
                break;
            case 1:
                C0153y1 c0153y1 = this.f2047l;
                I i = c0153y1.f2064n;
                C0146w0 c0146w0 = (C0146w0) c0153y1.f29k;
                if (i == null) {
                    X x5 = c0146w0.p;
                    C0146w0.l(x5);
                    x5.p.b("Failed to send Dma consent settings to service");
                } else {
                    try {
                        i.i(c0153y1.A(false));
                        c0153y1.x();
                    } catch (RemoteException e2) {
                        X x6 = c0146w0.p;
                        C0146w0.l(x6);
                        x6.p.c("Failed to send Dma consent settings to the service", e2);
                        return;
                    }
                }
                break;
            default:
                C0153y1 c0153y12 = this.f2047l;
                I i5 = c0153y12.f2064n;
                C0146w0 c0146w02 = (C0146w0) c0153y12.f29k;
                if (i5 == null) {
                    X x7 = c0146w02.p;
                    C0146w0.l(x7);
                    x7.p.b("Failed to send storage consent settings to service");
                } else {
                    try {
                        i5.q(c0153y12.A(false));
                        c0153y12.x();
                    } catch (RemoteException e6) {
                        X x8 = c0146w02.p;
                        C0146w0.l(x8);
                        x8.p.c("Failed to send storage consent settings to the service", e6);
                    }
                }
                break;
        }
    }
}
