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

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.RemoteException;
import com.google.android.gms.common.util.DynamiteApi;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicReference;
import p000.p001.p002.p003.p004.C0567;
import p037.p057.C1714;
import p138.p176.p177.p242.p256.BinderC4341;
import p138.p176.p177.p242.p256.InterfaceC4338;
import p138.p176.p177.p242.p258.p263.AbstractBinderC4702;
import p138.p176.p177.p242.p258.p263.C4494;
import p138.p176.p177.p242.p258.p263.C4517;
import p138.p176.p177.p242.p258.p263.InterfaceC4385;
import p138.p176.p177.p242.p258.p263.InterfaceC4388;
import p138.p176.p177.p242.p258.p263.InterfaceC4535;
import p138.p176.p177.p242.p258.p263.InterfaceC4618;
import p138.p176.p177.p242.p265.p266.C4754;
import p138.p176.p177.p242.p265.p266.C4757;
import p138.p176.p177.p242.p265.p266.C4765;
import p138.p176.p177.p242.p265.p266.C4771;
import p138.p176.p177.p242.p265.p266.C4887;
import p138.p176.p177.p242.p265.p266.C4894;
import p138.p176.p177.p242.p265.p266.C4908;
import p138.p176.p177.p242.p265.p266.C4913;
import p138.p176.p177.p242.p265.p266.C4956;
import p138.p176.p177.p242.p265.p266.C4974;
import p138.p176.p177.p242.p265.p266.InterfaceC4767;
import p138.p176.p177.p242.p265.p266.InterfaceC5003;
import p138.p176.p177.p242.p265.p266.RunnableC4758;
import p138.p176.p177.p242.p265.p266.RunnableC4766;
import p138.p176.p177.p242.p265.p266.RunnableC4769;
import p138.p176.p177.p242.p265.p266.RunnableC4786;
import p138.p176.p177.p242.p265.p266.RunnableC4787;
import p138.p176.p177.p242.p265.p266.RunnableC4844;
import p138.p176.p177.p242.p265.p266.RunnableC4845;
import p138.p176.p177.p242.p265.p266.RunnableC4846;
import p138.p176.p177.p242.p265.p266.RunnableC4897;
import p138.p176.p177.p242.p265.p266.RunnableC4971;
import p138.p176.p177.p242.p265.p266.RunnableC4986;
import p138.p176.p177.p242.p265.p266.RunnableC4988;
import p138.p176.p177.p242.p265.p266.RunnableC5001;
import p138.p176.p177.p242.p265.p266.RunnableC5002;

/* JADX INFO: loaded from: classes.dex */
@DynamiteApi
public class AppMeasurementDynamiteService extends AbstractBinderC4702 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C4974 f2128 = null;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Map<Integer, InterfaceC5003> f2129 = new C1714();

    /* JADX INFO: renamed from: com.google.android.gms.measurement.internal.AppMeasurementDynamiteService$֏, reason: contains not printable characters */
    public class C0336 implements InterfaceC4767 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public InterfaceC4535 f2130;

        public C0336(InterfaceC4535 interfaceC4535) {
            this.f2130 = interfaceC4535;
        }
    }

    /* JADX INFO: renamed from: com.google.android.gms.measurement.internal.AppMeasurementDynamiteService$ؠ, reason: contains not printable characters */
    public class C0337 implements InterfaceC5003 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public InterfaceC4535 f2132;

        public C0337(InterfaceC4535 interfaceC4535) {
            this.f2132 = interfaceC4535;
        }

        @Override // p138.p176.p177.p242.p265.p266.InterfaceC5003
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final void mo1419(String str, String str2, Bundle bundle, long j) {
            try {
                this.f2132.mo7281(str, str2, bundle, j);
            } catch (RemoteException e) {
                AppMeasurementDynamiteService.this.f2128.mo8165().f14447.m8035("Event listener threw exception", e);
            }
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void beginAdUnitExposure(String str, long j) {
        m1418();
        this.f2128.m8511().m8476(str, j);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void clearConditionalUserProperty(String str, String str2, Bundle bundle) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.mo8055();
        c4757M8503.m7977((String) null, str, str2, bundle);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void endAdUnitExposure(String str, long j) {
        m1418();
        this.f2128.m8511().m8479(str, j);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void generateEventId(InterfaceC4385 interfaceC4385) {
        m1418();
        this.f2128.m8504().m8249(interfaceC4385, this.f2128.m8504().m8272());
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getAppInstanceId(InterfaceC4385 interfaceC4385) {
        m1418();
        C4771 c4771Mo8163 = this.f2128.mo8163();
        RunnableC4845 runnableC4845 = new RunnableC4845(this, interfaceC4385);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4845);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4845, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getCachedAppInstanceId(InterfaceC4385 interfaceC4385) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.mo8055();
        this.f2128.m8504().m8251(interfaceC4385, c4757M8503.f14331.get());
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getConditionalUserProperties(String str, String str2, InterfaceC4385 interfaceC4385) {
        m1418();
        C4771 c4771Mo8163 = this.f2128.mo8163();
        RunnableC4766 runnableC4766 = new RunnableC4766(this, interfaceC4385, str, str2);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4766);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4766, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getCurrentScreenClass(InterfaceC4385 interfaceC4385) {
        m1418();
        C4765 c4765M8507 = this.f2128.m8503().f14588.m8507();
        c4765M8507.mo8055();
        C4754 c4754 = c4765M8507.f14358;
        this.f2128.m8504().m8251(interfaceC4385, c4754 != null ? c4754.f14285 : null);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getCurrentScreenName(InterfaceC4385 interfaceC4385) {
        m1418();
        C4765 c4765M8507 = this.f2128.m8503().f14588.m8507();
        c4765M8507.mo8055();
        C4754 c4754 = c4765M8507.f14358;
        this.f2128.m8504().m8251(interfaceC4385, c4754 != null ? c4754.f14284 : null);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getGmpAppId(InterfaceC4385 interfaceC4385) {
        m1418();
        this.f2128.m8504().m8251(interfaceC4385, this.f2128.m8503().m7985());
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getMaxUserProperties(String str, InterfaceC4385 interfaceC4385) {
        m1418();
        this.f2128.m8503();
        C0567.m1926(str);
        this.f2128.m8504().m8248(interfaceC4385, 25);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getTestFlag(InterfaceC4385 interfaceC4385, int i) {
        m1418();
        if (i == 0) {
            C4887 c4887M8504 = this.f2128.m8504();
            C4757 c4757M8503 = this.f2128.m8503();
            if (c4757M8503 == null) {
                throw null;
            }
            AtomicReference atomicReference = new AtomicReference();
            c4887M8504.m8251(interfaceC4385, (String) c4757M8503.mo8163().m8002(atomicReference, 15000L, "String test flag value", new RunnableC4846(c4757M8503, atomicReference)));
            return;
        }
        if (i == 1) {
            C4887 c4887M85042 = this.f2128.m8504();
            C4757 c4757M85032 = this.f2128.m8503();
            if (c4757M85032 == null) {
                throw null;
            }
            AtomicReference atomicReference2 = new AtomicReference();
            c4887M85042.m8249(interfaceC4385, ((Long) c4757M85032.mo8163().m8002(atomicReference2, 15000L, "long test flag value", new RunnableC4844(c4757M85032, atomicReference2))).longValue());
            return;
        }
        if (i == 2) {
            C4887 c4887M85043 = this.f2128.m8504();
            C4757 c4757M85033 = this.f2128.m8503();
            if (c4757M85033 == null) {
                throw null;
            }
            AtomicReference atomicReference3 = new AtomicReference();
            double dDoubleValue = ((Double) c4757M85033.mo8163().m8002(atomicReference3, 15000L, "double test flag value", new RunnableC4988(c4757M85033, atomicReference3))).doubleValue();
            Bundle bundle = new Bundle();
            bundle.putDouble("r", dDoubleValue);
            try {
                interfaceC4385.mo7283(bundle);
                return;
            } catch (RemoteException e) {
                c4887M85043.f14588.mo8165().f14447.m8035("Error returning double value to wrapper", e);
                return;
            }
        }
        if (i == 3) {
            C4887 c4887M85044 = this.f2128.m8504();
            C4757 c4757M85034 = this.f2128.m8503();
            if (c4757M85034 == null) {
                throw null;
            }
            AtomicReference atomicReference4 = new AtomicReference();
            c4887M85044.m8248(interfaceC4385, ((Integer) c4757M85034.mo8163().m8002(atomicReference4, 15000L, "int test flag value", new RunnableC5001(c4757M85034, atomicReference4))).intValue());
            return;
        }
        if (i != 4) {
            return;
        }
        C4887 c4887M85045 = this.f2128.m8504();
        C4757 c4757M85035 = this.f2128.m8503();
        if (c4757M85035 == null) {
            throw null;
        }
        AtomicReference atomicReference5 = new AtomicReference();
        c4887M85045.m8253(interfaceC4385, ((Boolean) c4757M85035.mo8163().m8002(atomicReference5, 15000L, "boolean test flag value", new RunnableC4986(c4757M85035, atomicReference5))).booleanValue());
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void getUserProperties(String str, String str2, boolean z, InterfaceC4385 interfaceC4385) {
        m1418();
        C4771 c4771Mo8163 = this.f2128.mo8163();
        RunnableC4769 runnableC4769 = new RunnableC4769(this, interfaceC4385, str, str2, z);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4769);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4769, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void initForTests(Map map) {
        m1418();
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void initialize(InterfaceC4338 interfaceC4338, C4517 c4517, long j) {
        Context context = (Context) BinderC4341.m7237(interfaceC4338);
        C4974 c4974 = this.f2128;
        if (c4974 == null) {
            this.f2128 = C4974.m8490(context, c4517, Long.valueOf(j));
        } else {
            c4974.mo8165().f14447.m8034("Attempting to initialize multiple times");
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void isDataCollectionEnabled(InterfaceC4385 interfaceC4385) {
        m1418();
        C4771 c4771Mo8163 = this.f2128.mo8163();
        RunnableC4971 runnableC4971 = new RunnableC4971(this, interfaceC4385);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4971);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4971, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void logEvent(String str, String str2, Bundle bundle, boolean z, boolean z2, long j) {
        m1418();
        this.f2128.m8503().m7973(str, str2, bundle, z, z2, j);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void logEventAndBundle(String str, String str2, Bundle bundle, InterfaceC4385 interfaceC4385, long j) {
        m1418();
        C0567.m1926(str2);
        (bundle != null ? new Bundle(bundle) : new Bundle()).putString("_o", "app");
        C4913 c4913 = new C4913(str2, new C4908(bundle), "app", j);
        C4771 c4771Mo8163 = this.f2128.mo8163();
        RunnableC5002 runnableC5002 = new RunnableC5002(this, interfaceC4385, c4913, str);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC5002);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC5002, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void logHealthData(int i, String str, InterfaceC4338 interfaceC4338, InterfaceC4338 interfaceC43382, InterfaceC4338 interfaceC43383) {
        m1418();
        this.f2128.mo8165().m8043(i, true, false, str, interfaceC4338 == null ? null : BinderC4341.m7237(interfaceC4338), interfaceC43382 == null ? null : BinderC4341.m7237(interfaceC43382), interfaceC43383 != null ? BinderC4341.m7237(interfaceC43383) : null);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityCreated(InterfaceC4338 interfaceC4338, Bundle bundle, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityCreated((Activity) BinderC4341.m7237(interfaceC4338), bundle);
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityDestroyed(InterfaceC4338 interfaceC4338, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityDestroyed((Activity) BinderC4341.m7237(interfaceC4338));
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityPaused(InterfaceC4338 interfaceC4338, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityPaused((Activity) BinderC4341.m7237(interfaceC4338));
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityResumed(InterfaceC4338 interfaceC4338, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityResumed((Activity) BinderC4341.m7237(interfaceC4338));
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivitySaveInstanceState(InterfaceC4338 interfaceC4338, InterfaceC4385 interfaceC4385, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        Bundle bundle = new Bundle();
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivitySaveInstanceState((Activity) BinderC4341.m7237(interfaceC4338), bundle);
        }
        try {
            interfaceC4385.mo7283(bundle);
        } catch (RemoteException e) {
            this.f2128.mo8165().f14447.m8035("Error returning bundle value to wrapper", e);
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityStarted(InterfaceC4338 interfaceC4338, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityStarted((Activity) BinderC4341.m7237(interfaceC4338));
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void onActivityStopped(InterfaceC4338 interfaceC4338, long j) {
        m1418();
        C4956 c4956 = this.f2128.m8503().f14327;
        if (c4956 != null) {
            this.f2128.m8503().m7983();
            c4956.onActivityStopped((Activity) BinderC4341.m7237(interfaceC4338));
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void performAction(Bundle bundle, InterfaceC4385 interfaceC4385, long j) {
        m1418();
        interfaceC4385.mo7283(null);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void registerOnMeasurementEventListener(InterfaceC4535 interfaceC4535) {
        m1418();
        InterfaceC5003 c0337 = this.f2129.get(Integer.valueOf(interfaceC4535.mo7280()));
        if (c0337 == null) {
            c0337 = new C0337(interfaceC4535);
            this.f2129.put(Integer.valueOf(interfaceC4535.mo7280()), c0337);
        }
        this.f2128.m8503().m7978(c0337);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void resetAnalyticsData(long j) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.f14331.set(null);
        C4771 c4771Mo8163 = c4757M8503.mo8163();
        RunnableC4897 runnableC4897 = new RunnableC4897(c4757M8503, j);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4897);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4897, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setConditionalUserProperty(Bundle bundle, long j) {
        m1418();
        if (bundle == null) {
            this.f2128.mo8165().f14444.m8034("Conditional user property must not be null");
        } else {
            this.f2128.m8503().m7968(bundle, j);
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setCurrentScreen(InterfaceC4338 interfaceC4338, String str, String str2, long j) {
        m1418();
        this.f2128.m8507().m7992((Activity) BinderC4341.m7237(interfaceC4338), str, str2);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setDataCollectionEnabled(boolean z) {
        m1418();
        this.f2128.m8503().m7981(z);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setDefaultEventParameters(Bundle bundle) {
        m1418();
        final C4757 c4757M8503 = this.f2128.m8503();
        final Bundle bundle2 = bundle == null ? null : new Bundle(bundle);
        C4771 c4771Mo8163 = c4757M8503.mo8163();
        Runnable runnable = new Runnable(c4757M8503, bundle2) { // from class: ދ.ހ.֏.ހ.ބ.֏.ߺ

            /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
            public final C4757 f14978;

            /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
            public final Bundle f14979;

            {
                this.f14978 = c4757M8503;
                this.f14979 = bundle2;
            }

            @Override // java.lang.Runnable
            public final void run() {
                boolean z;
                C4757 c4757 = this.f14978;
                Bundle bundle3 = this.f14979;
                if (((InterfaceC4388) C4494.f13901.mo7259()).mo7285() && c4757.f14588.f15015.m8177(C4915.f14921)) {
                    if (bundle3 == null) {
                        c4757.m8168().f14673.m8091(new Bundle());
                        return;
                    }
                    Bundle bundleM8090 = c4757.m8168().f14673.m8090();
                    for (String str : bundle3.keySet()) {
                        Object obj = bundle3.get(str);
                        if (obj != null && !(obj instanceof String) && !(obj instanceof Long) && !(obj instanceof Double)) {
                            c4757.m8167();
                            if (C4887.m8225(obj)) {
                                c4757.m8167().m8244(27, (String) null, (String) null, 0);
                            }
                            c4757.mo8165().f14449.m8036("Invalid default event parameter type. Name, value", str, obj);
                        } else if (C4887.m8234(str)) {
                            c4757.mo8165().f14449.m8035("Invalid default event parameter name. Name", str);
                        } else if (obj == null) {
                            bundleM8090.remove(str);
                        } else if (c4757.m8167().m8259("param", str, 100, obj)) {
                            c4757.m8167().m8246(bundleM8090, str, obj);
                        }
                    }
                    c4757.m8167();
                    int iM8185 = c4757.f14588.f15015.m8185();
                    if (bundleM8090.size() > iM8185) {
                        Iterator it = new TreeSet(bundleM8090.keySet()).iterator();
                        int i = 0;
                        while (true) {
                            z = true;
                            if (!it.hasNext()) {
                                break;
                            }
                            String str2 = (String) it.next();
                            i++;
                            if (i > iM8185) {
                                bundleM8090.remove(str2);
                            }
                        }
                    } else {
                        z = false;
                    }
                    if (z) {
                        c4757.m8167().m8244(26, (String) null, (String) null, 0);
                        c4757.mo8165().f14449.m8034("Too many default event parameters set. Discarding beyond event parameter limit");
                    }
                    c4757.m8168().f14673.m8091(bundleM8090);
                }
            }
        };
        c4771Mo8163.m8482();
        C0567.m1910(runnable);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnable, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setEventInterceptor(InterfaceC4535 interfaceC4535) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        C0336 c0336 = new C0336(interfaceC4535);
        c4757M8503.mo8055();
        c4757M8503.m8066();
        C4771 c4771Mo8163 = c4757M8503.mo8163();
        RunnableC4787 runnableC4787 = new RunnableC4787(c4757M8503, c0336);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4787);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4787, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setInstanceIdProvider(InterfaceC4618 interfaceC4618) {
        m1418();
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setMeasurementEnabled(boolean z, long j) {
        m1418();
        this.f2128.m8503().m7979(z);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setMinimumSessionDuration(long j) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.mo8055();
        C4771 c4771Mo8163 = c4757M8503.mo8163();
        RunnableC4758 runnableC4758 = new RunnableC4758(c4757M8503, j);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4758);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4758, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setSessionTimeoutDuration(long j) {
        m1418();
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.mo8055();
        C4771 c4771Mo8163 = c4757M8503.mo8163();
        RunnableC4786 runnableC4786 = new RunnableC4786(c4757M8503, j);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4786);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4786, "Task exception on worker thread"));
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setUserId(String str, long j) {
        m1418();
        this.f2128.m8503().m7976(null, "_id", str, true, j);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void setUserProperty(String str, String str2, InterfaceC4338 interfaceC4338, boolean z, long j) {
        m1418();
        this.f2128.m8503().m7976(str, str2, BinderC4341.m7237(interfaceC4338), z, j);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4649
    public void unregisterOnMeasurementEventListener(InterfaceC4535 interfaceC4535) {
        m1418();
        InterfaceC5003 interfaceC5003Remove = this.f2129.remove(Integer.valueOf(interfaceC4535.mo7280()));
        if (interfaceC5003Remove == null) {
            interfaceC5003Remove = new C0337(interfaceC4535);
        }
        C4757 c4757M8503 = this.f2128.m8503();
        c4757M8503.mo8055();
        c4757M8503.m8066();
        C0567.m1910(interfaceC5003Remove);
        if (c4757M8503.f14329.remove(interfaceC5003Remove)) {
            return;
        }
        c4757M8503.mo8165().f14447.m8034("OnEventListener had not been registered");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m1418() {
        if (this.f2128 == null) {
            throw new IllegalStateException("Attempting to perform action before initialize.");
        }
    }
}
