package com.google.android.gms.internal.measurement;

import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import java.util.HashMap;

/* JADX INFO: loaded from: classes.dex */
public abstract class I extends AbstractBinderC0720x implements J {
    public static J asInterface(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.measurement.api.internal.IAppMeasurementDynamiteService");
        return iInterfaceQueryLocalInterface instanceof J ? (J) iInterfaceQueryLocalInterface : new H(iBinder, "com.google.android.gms.measurement.api.internal.IAppMeasurementDynamiteService", 1);
    }

    @Override // com.google.android.gms.internal.measurement.AbstractBinderC0720x
    public final boolean c(int i, Parcel parcel, Parcel parcel2) {
        boolean z8;
        L k8 = null;
        O m8 = null;
        L k9 = null;
        L k10 = null;
        L k11 = null;
        L k12 = null;
        Q p3 = null;
        Q p4 = null;
        Q p8 = null;
        L k13 = null;
        L k14 = null;
        L k15 = null;
        L k16 = null;
        L k17 = null;
        L k18 = null;
        T s8 = null;
        L k19 = null;
        L k20 = null;
        L k21 = null;
        L k22 = null;
        L k23 = null;
        switch (i) {
            case 1:
                V2.a aVarL = V2.b.L(parcel.readStrongBinder());
                U u8 = (U) AbstractC0725y.a(parcel, U.CREATOR);
                long j8 = parcel.readLong();
                AbstractC0725y.b(parcel);
                initialize(aVarL, u8, j8);
                break;
            case 2:
                String string = parcel.readString();
                String string2 = parcel.readString();
                Bundle bundle = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                boolean z9 = parcel.readInt() != 0;
                boolean z10 = parcel.readInt() != 0;
                long j9 = parcel.readLong();
                AbstractC0725y.b(parcel);
                logEvent(string, string2, bundle, z9, z10, j9);
                break;
            case 3:
                String string3 = parcel.readString();
                String string4 = parcel.readString();
                Bundle bundle2 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder != null) {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k8 = iInterfaceQueryLocalInterface instanceof L ? (L) iInterfaceQueryLocalInterface : new K(strongBinder);
                }
                L l8 = k8;
                long j10 = parcel.readLong();
                AbstractC0725y.b(parcel);
                logEventAndBundle(string3, string4, bundle2, l8, j10);
                break;
            case 4:
                String string5 = parcel.readString();
                String string6 = parcel.readString();
                V2.a aVarL2 = V2.b.L(parcel.readStrongBinder());
                ClassLoader classLoader = AbstractC0725y.f10069a;
                z8 = parcel.readInt() != 0;
                long j11 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setUserProperty(string5, string6, aVarL2, z8, j11);
                break;
            case 5:
                String string7 = parcel.readString();
                String string8 = parcel.readString();
                ClassLoader classLoader2 = AbstractC0725y.f10069a;
                z8 = parcel.readInt() != 0;
                IBinder strongBinder2 = parcel.readStrongBinder();
                if (strongBinder2 != null) {
                    IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k23 = iInterfaceQueryLocalInterface2 instanceof L ? (L) iInterfaceQueryLocalInterface2 : new K(strongBinder2);
                }
                AbstractC0725y.b(parcel);
                getUserProperties(string7, string8, z8, k23);
                break;
            case Z.g.STRING_SET_FIELD_NUMBER /* 6 */:
                String string9 = parcel.readString();
                IBinder strongBinder3 = parcel.readStrongBinder();
                if (strongBinder3 != null) {
                    IInterface iInterfaceQueryLocalInterface3 = strongBinder3.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k22 = iInterfaceQueryLocalInterface3 instanceof L ? (L) iInterfaceQueryLocalInterface3 : new K(strongBinder3);
                }
                AbstractC0725y.b(parcel);
                getMaxUserProperties(string9, k22);
                break;
            case Z.g.DOUBLE_FIELD_NUMBER /* 7 */:
                String string10 = parcel.readString();
                long j12 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setUserId(string10, j12);
                break;
            case Z.g.BYTES_FIELD_NUMBER /* 8 */:
                Bundle bundle3 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                long j13 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setConditionalUserProperty(bundle3, j13);
                break;
            case 9:
                String string11 = parcel.readString();
                String string12 = parcel.readString();
                Bundle bundle4 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                AbstractC0725y.b(parcel);
                clearConditionalUserProperty(string11, string12, bundle4);
                break;
            case 10:
                String string13 = parcel.readString();
                String string14 = parcel.readString();
                IBinder strongBinder4 = parcel.readStrongBinder();
                if (strongBinder4 != null) {
                    IInterface iInterfaceQueryLocalInterface4 = strongBinder4.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k21 = iInterfaceQueryLocalInterface4 instanceof L ? (L) iInterfaceQueryLocalInterface4 : new K(strongBinder4);
                }
                AbstractC0725y.b(parcel);
                getConditionalUserProperties(string13, string14, k21);
                break;
            case 11:
                ClassLoader classLoader3 = AbstractC0725y.f10069a;
                z8 = parcel.readInt() != 0;
                long j14 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setMeasurementEnabled(z8, j14);
                break;
            case 12:
                long j15 = parcel.readLong();
                AbstractC0725y.b(parcel);
                resetAnalyticsData(j15);
                break;
            case 13:
                long j16 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setMinimumSessionDuration(j16);
                break;
            case 14:
                long j17 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setSessionTimeoutDuration(j17);
                break;
            case 15:
                V2.a aVarL3 = V2.b.L(parcel.readStrongBinder());
                String string15 = parcel.readString();
                String string16 = parcel.readString();
                long j18 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setCurrentScreen(aVarL3, string15, string16, j18);
                break;
            case 16:
                IBinder strongBinder5 = parcel.readStrongBinder();
                if (strongBinder5 != null) {
                    IInterface iInterfaceQueryLocalInterface5 = strongBinder5.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k20 = iInterfaceQueryLocalInterface5 instanceof L ? (L) iInterfaceQueryLocalInterface5 : new K(strongBinder5);
                }
                AbstractC0725y.b(parcel);
                getCurrentScreenName(k20);
                break;
            case 17:
                IBinder strongBinder6 = parcel.readStrongBinder();
                if (strongBinder6 != null) {
                    IInterface iInterfaceQueryLocalInterface6 = strongBinder6.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k19 = iInterfaceQueryLocalInterface6 instanceof L ? (L) iInterfaceQueryLocalInterface6 : new K(strongBinder6);
                }
                AbstractC0725y.b(parcel);
                getCurrentScreenClass(k19);
                break;
            case 18:
                IBinder strongBinder7 = parcel.readStrongBinder();
                if (strongBinder7 != null) {
                    IInterface iInterfaceQueryLocalInterface7 = strongBinder7.queryLocalInterface("com.google.android.gms.measurement.api.internal.IStringProvider");
                    s8 = iInterfaceQueryLocalInterface7 instanceof T ? (T) iInterfaceQueryLocalInterface7 : new S(strongBinder7, "com.google.android.gms.measurement.api.internal.IStringProvider", 1);
                }
                AbstractC0725y.b(parcel);
                setInstanceIdProvider(s8);
                break;
            case 19:
                IBinder strongBinder8 = parcel.readStrongBinder();
                if (strongBinder8 != null) {
                    IInterface iInterfaceQueryLocalInterface8 = strongBinder8.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k18 = iInterfaceQueryLocalInterface8 instanceof L ? (L) iInterfaceQueryLocalInterface8 : new K(strongBinder8);
                }
                AbstractC0725y.b(parcel);
                getCachedAppInstanceId(k18);
                break;
            case 20:
                IBinder strongBinder9 = parcel.readStrongBinder();
                if (strongBinder9 != null) {
                    IInterface iInterfaceQueryLocalInterface9 = strongBinder9.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k17 = iInterfaceQueryLocalInterface9 instanceof L ? (L) iInterfaceQueryLocalInterface9 : new K(strongBinder9);
                }
                AbstractC0725y.b(parcel);
                getAppInstanceId(k17);
                break;
            case 21:
                IBinder strongBinder10 = parcel.readStrongBinder();
                if (strongBinder10 != null) {
                    IInterface iInterfaceQueryLocalInterface10 = strongBinder10.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k16 = iInterfaceQueryLocalInterface10 instanceof L ? (L) iInterfaceQueryLocalInterface10 : new K(strongBinder10);
                }
                AbstractC0725y.b(parcel);
                getGmpAppId(k16);
                break;
            case 22:
                IBinder strongBinder11 = parcel.readStrongBinder();
                if (strongBinder11 != null) {
                    IInterface iInterfaceQueryLocalInterface11 = strongBinder11.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k15 = iInterfaceQueryLocalInterface11 instanceof L ? (L) iInterfaceQueryLocalInterface11 : new K(strongBinder11);
                }
                AbstractC0725y.b(parcel);
                generateEventId(k15);
                break;
            case 23:
                String string17 = parcel.readString();
                long j19 = parcel.readLong();
                AbstractC0725y.b(parcel);
                beginAdUnitExposure(string17, j19);
                break;
            case 24:
                String string18 = parcel.readString();
                long j20 = parcel.readLong();
                AbstractC0725y.b(parcel);
                endAdUnitExposure(string18, j20);
                break;
            case 25:
                V2.a aVarL4 = V2.b.L(parcel.readStrongBinder());
                long j21 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityStarted(aVarL4, j21);
                break;
            case 26:
                V2.a aVarL5 = V2.b.L(parcel.readStrongBinder());
                long j22 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityStopped(aVarL5, j22);
                break;
            case 27:
                V2.a aVarL6 = V2.b.L(parcel.readStrongBinder());
                Bundle bundle5 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                long j23 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityCreated(aVarL6, bundle5, j23);
                break;
            case 28:
                V2.a aVarL7 = V2.b.L(parcel.readStrongBinder());
                long j24 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityDestroyed(aVarL7, j24);
                break;
            case 29:
                V2.a aVarL8 = V2.b.L(parcel.readStrongBinder());
                long j25 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityPaused(aVarL8, j25);
                break;
            case 30:
                V2.a aVarL9 = V2.b.L(parcel.readStrongBinder());
                long j26 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityResumed(aVarL9, j26);
                break;
            case 31:
                V2.a aVarL10 = V2.b.L(parcel.readStrongBinder());
                IBinder strongBinder12 = parcel.readStrongBinder();
                if (strongBinder12 != null) {
                    IInterface iInterfaceQueryLocalInterface12 = strongBinder12.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k14 = iInterfaceQueryLocalInterface12 instanceof L ? (L) iInterfaceQueryLocalInterface12 : new K(strongBinder12);
                }
                long j27 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivitySaveInstanceState(aVarL10, k14, j27);
                break;
            case 32:
                Bundle bundle6 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                IBinder strongBinder13 = parcel.readStrongBinder();
                if (strongBinder13 != null) {
                    IInterface iInterfaceQueryLocalInterface13 = strongBinder13.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k13 = iInterfaceQueryLocalInterface13 instanceof L ? (L) iInterfaceQueryLocalInterface13 : new K(strongBinder13);
                }
                long j28 = parcel.readLong();
                AbstractC0725y.b(parcel);
                performAction(bundle6, k13, j28);
                break;
            case 33:
                int i5 = parcel.readInt();
                String string19 = parcel.readString();
                V2.a aVarL11 = V2.b.L(parcel.readStrongBinder());
                V2.a aVarL12 = V2.b.L(parcel.readStrongBinder());
                V2.a aVarL13 = V2.b.L(parcel.readStrongBinder());
                AbstractC0725y.b(parcel);
                logHealthData(i5, string19, aVarL11, aVarL12, aVarL13);
                break;
            case 34:
                IBinder strongBinder14 = parcel.readStrongBinder();
                if (strongBinder14 != null) {
                    IInterface iInterfaceQueryLocalInterface14 = strongBinder14.queryLocalInterface("com.google.android.gms.measurement.api.internal.IEventHandlerProxy");
                    p8 = iInterfaceQueryLocalInterface14 instanceof Q ? (Q) iInterfaceQueryLocalInterface14 : new P(strongBinder14);
                }
                AbstractC0725y.b(parcel);
                setEventInterceptor(p8);
                break;
            case 35:
                IBinder strongBinder15 = parcel.readStrongBinder();
                if (strongBinder15 != null) {
                    IInterface iInterfaceQueryLocalInterface15 = strongBinder15.queryLocalInterface("com.google.android.gms.measurement.api.internal.IEventHandlerProxy");
                    p4 = iInterfaceQueryLocalInterface15 instanceof Q ? (Q) iInterfaceQueryLocalInterface15 : new P(strongBinder15);
                }
                AbstractC0725y.b(parcel);
                registerOnMeasurementEventListener(p4);
                break;
            case 36:
                IBinder strongBinder16 = parcel.readStrongBinder();
                if (strongBinder16 != null) {
                    IInterface iInterfaceQueryLocalInterface16 = strongBinder16.queryLocalInterface("com.google.android.gms.measurement.api.internal.IEventHandlerProxy");
                    p3 = iInterfaceQueryLocalInterface16 instanceof Q ? (Q) iInterfaceQueryLocalInterface16 : new P(strongBinder16);
                }
                AbstractC0725y.b(parcel);
                unregisterOnMeasurementEventListener(p3);
                break;
            case 37:
                HashMap hashMap = parcel.readHashMap(AbstractC0725y.f10069a);
                AbstractC0725y.b(parcel);
                initForTests(hashMap);
                break;
            case 38:
                IBinder strongBinder17 = parcel.readStrongBinder();
                if (strongBinder17 != null) {
                    IInterface iInterfaceQueryLocalInterface17 = strongBinder17.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k12 = iInterfaceQueryLocalInterface17 instanceof L ? (L) iInterfaceQueryLocalInterface17 : new K(strongBinder17);
                }
                int i8 = parcel.readInt();
                AbstractC0725y.b(parcel);
                getTestFlag(k12, i8);
                break;
            case 39:
                ClassLoader classLoader4 = AbstractC0725y.f10069a;
                z8 = parcel.readInt() != 0;
                AbstractC0725y.b(parcel);
                setDataCollectionEnabled(z8);
                break;
            case 40:
                IBinder strongBinder18 = parcel.readStrongBinder();
                if (strongBinder18 != null) {
                    IInterface iInterfaceQueryLocalInterface18 = strongBinder18.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k11 = iInterfaceQueryLocalInterface18 instanceof L ? (L) iInterfaceQueryLocalInterface18 : new K(strongBinder18);
                }
                AbstractC0725y.b(parcel);
                isDataCollectionEnabled(k11);
                break;
            case 41:
            case 47:
            case 49:
            default:
                return false;
            case 42:
                Bundle bundle7 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                AbstractC0725y.b(parcel);
                setDefaultEventParameters(bundle7);
                break;
            case 43:
                long j29 = parcel.readLong();
                AbstractC0725y.b(parcel);
                clearMeasurementEnabled(j29);
                break;
            case 44:
                Bundle bundle8 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                long j30 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setConsent(bundle8, j30);
                break;
            case 45:
                Bundle bundle9 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                long j31 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setConsentThirdParty(bundle9, j31);
                break;
            case 46:
                IBinder strongBinder19 = parcel.readStrongBinder();
                if (strongBinder19 != null) {
                    IInterface iInterfaceQueryLocalInterface19 = strongBinder19.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k10 = iInterfaceQueryLocalInterface19 instanceof L ? (L) iInterfaceQueryLocalInterface19 : new K(strongBinder19);
                }
                AbstractC0725y.b(parcel);
                getSessionId(k10);
                break;
            case 48:
                Intent intent = (Intent) AbstractC0725y.a(parcel, Intent.CREATOR);
                AbstractC0725y.b(parcel);
                setSgtmDebugInfo(intent);
                break;
            case 50:
                W w4 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                String string20 = parcel.readString();
                String string21 = parcel.readString();
                long j32 = parcel.readLong();
                AbstractC0725y.b(parcel);
                setCurrentScreenByScionActivityInfo(w4, string20, string21, j32);
                break;
            case 51:
                W w6 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                long j33 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityStartedByScionActivityInfo(w6, j33);
                break;
            case 52:
                W w8 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                long j34 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityStoppedByScionActivityInfo(w8, j34);
                break;
            case 53:
                W w9 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                Bundle bundle10 = (Bundle) AbstractC0725y.a(parcel, Bundle.CREATOR);
                long j35 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityCreatedByScionActivityInfo(w9, bundle10, j35);
                break;
            case 54:
                W w10 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                long j36 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityDestroyedByScionActivityInfo(w10, j36);
                break;
            case 55:
                W w11 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                long j37 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityPausedByScionActivityInfo(w11, j37);
                break;
            case 56:
                W w12 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                long j38 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivityResumedByScionActivityInfo(w12, j38);
                break;
            case 57:
                W w13 = (W) AbstractC0725y.a(parcel, W.CREATOR);
                IBinder strongBinder20 = parcel.readStrongBinder();
                if (strongBinder20 != null) {
                    IInterface iInterfaceQueryLocalInterface20 = strongBinder20.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver");
                    k9 = iInterfaceQueryLocalInterface20 instanceof L ? (L) iInterfaceQueryLocalInterface20 : new K(strongBinder20);
                }
                long j39 = parcel.readLong();
                AbstractC0725y.b(parcel);
                onActivitySaveInstanceStateByScionActivityInfo(w13, k9, j39);
                break;
            case 58:
                IBinder strongBinder21 = parcel.readStrongBinder();
                if (strongBinder21 != null) {
                    IInterface iInterfaceQueryLocalInterface21 = strongBinder21.queryLocalInterface("com.google.android.gms.measurement.api.internal.IDynamiteUploadBatchesCallback");
                    m8 = iInterfaceQueryLocalInterface21 instanceof O ? (O) iInterfaceQueryLocalInterface21 : new M(strongBinder21, "com.google.android.gms.measurement.api.internal.IDynamiteUploadBatchesCallback", 1);
                }
                AbstractC0725y.b(parcel);
                retrieveAndUploadBatches(m8);
                break;
        }
        parcel2.writeNoException();
        return true;
    }
}
