package defpackage;

import android.os.RemoteException;

/* renamed from: ᵘᵜˁ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC2522 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ C1331 f9840;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f9841;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C0323 f9842;

    public /* synthetic */ RunnableC2522(C0323 c0323, C1331 c1331, int i) {
        this.f9841 = i;
        this.f9840 = c1331;
        this.f9842 = c0323;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i = this.f9841;
        C1331 c1331 = this.f9840;
        C0323 c0323 = this.f9842;
        switch (i) {
            case 0:
                InterfaceC3519 interfaceC3519 = c0323.f2002;
                C4205 c4205 = (C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ;
                if (interfaceC3519 != null) {
                    try {
                        interfaceC3519.mo2196(c1331);
                    } catch (RemoteException e) {
                        C1736 c1736 = c4205.f15715;
                        C4205.m9132(c1736);
                        c1736.f6937.m6039(e, "Failed to reset data on the service: remote exception");
                    }
                    c0323.m1736();
                    break;
                } else {
                    C1736 c17362 = c4205.f15715;
                    C4205.m9132(c17362);
                    c17362.f6937.m6038("Failed to reset data on the service: not connected to service");
                    break;
                }
            case 1:
                InterfaceC3519 interfaceC35192 = c0323.f2002;
                C4205 c42052 = (C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ;
                if (interfaceC35192 == null) {
                    C1736 c17363 = c42052.f15715;
                    C4205.m9132(c17363);
                    c17363.f6934.m6038("Failed to send app backgrounded");
                    break;
                } else {
                    try {
                        interfaceC35192.mo2188(c1331);
                        c0323.m1736();
                        break;
                    } catch (RemoteException e2) {
                        C1736 c17364 = c42052.f15715;
                        C4205.m9132(c17364);
                        c17364.f6937.m6039(e2, "Failed to send app backgrounded to the service");
                        return;
                    }
                }
            default:
                InterfaceC3519 interfaceC35193 = c0323.f2002;
                C4205 c42053 = (C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ;
                if (interfaceC35193 == null) {
                    C1736 c17365 = c42053.f15715;
                    C4205.m9132(c17365);
                    c17365.f6937.m6038("Failed to send measurementEnabled to service");
                    break;
                } else {
                    try {
                        interfaceC35193.mo2190(c1331);
                        c0323.m1736();
                        break;
                    } catch (RemoteException e3) {
                        C1736 c17366 = c42053.f15715;
                        C4205.m9132(c17366);
                        c17366.f6937.m6039(e3, "Failed to send measurementEnabled to the service");
                    }
                }
        }
    }
}
