package defpackage;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.text.TextUtils;
import android.util.Log;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

/* renamed from: ˁᵿᵨ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class BinderC0769 extends AbstractBinderC2915 implements InterfaceC3519 {

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public Boolean f3655;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final C0524 f3656;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public String f3657;

    public BinderC0769(C0524 c0524) {
        super("com.google.android.gms.measurement.internal.IMeasurementService");
        ᵩʛʽ.ᵝᵵᵺ(c0524);
        this.f3656 = c0524;
        this.f3657 = null;
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ˀᵗᵝᵭ */
    public final void mo2188(C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        m2856(new RunnableC4843(this, c1331, 0));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ˇʼʤˎ */
    public final List mo2189(String str, String str2, String str3, boolean z) throws PackageManager.NameNotFoundException {
        m2855(str, true);
        C0524 c0524 = this.f3656;
        try {
            List<C5428> list = (List) c0524.mo2307().m4045(new CallableC4237(this, str, str2, str3, 1)).get();
            ArrayList arrayList = new ArrayList(list.size());
            for (C5428 c5428 : list) {
                if (z || !C4864.m10197(c5428.f20350)) {
                    arrayList.add(new C3861(c5428));
                }
            }
            return arrayList;
        } catch (InterruptedException e) {
            e = e;
            c0524.mo2272().f6937.m6037("Failed to get user properties as. appId", C1736.m4941(str), e);
            return Collections.EMPTY_LIST;
        } catch (ExecutionException e2) {
            e = e2;
            c0524.mo2272().f6937.m6037("Failed to get user properties as. appId", C1736.m4941(str), e);
            return Collections.EMPTY_LIST;
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ˌʾˀ */
    public final void mo2190(C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        m2856(new RunnableC4843(this, c1331, 1));
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m2853(C1331 c1331) throws PackageManager.NameNotFoundException {
        ᵩʛʽ.ᵝᵵᵺ(c1331);
        String str = c1331.f5474;
        ᵩʛʽ.ˏˋٴ(str);
        m2855(str, false);
        this.f3656.m2288().m10244(c1331.f5471);
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final void m2854(Runnable runnable) {
        C0524 c0524 = this.f3656;
        if (c0524.mo2307().m4052()) {
            runnable.run();
        } else {
            c0524.mo2307().m4046(runnable);
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ˑᵥˁ */
    public final void mo2191(C1331 c1331) {
        ᵩʛʽ.ˏˋٴ(c1331.f5474);
        ᵩʛʽ.ᵝᵵᵺ(c1331.f5468);
        m2854(new RunnableC4843(this, c1331, 2));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ˑᵱ */
    public final void mo2192(Bundle bundle, C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str = c1331.f5474;
        ᵩʛʽ.ᵝᵵᵺ(str);
        m2856(new RunnableC5068(this, bundle, str, c1331, 5, false));
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final void m2855(String str, boolean z) throws PackageManager.NameNotFoundException {
        boolean zIsEmpty = TextUtils.isEmpty(str);
        C0524 c0524 = this.f3656;
        if (zIsEmpty) {
            c0524.mo2272().f6937.m6038("Measurement Service called without app package");
            throw new SecurityException("Measurement Service called without app package");
        }
        if (z) {
            try {
                if (this.f3655 == null) {
                    boolean z2 = true;
                    if (!"com.google.android.gms".equals(this.f3657)) {
                        Context context = c0524.f2728.f15719;
                        if (ᵱᵞᵪ.ᵡˎ(Binder.getCallingUid(), context, "com.google.android.gms")) {
                            try {
                                PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.google.android.gms", 64);
                                C3672 c3672M8267 = C3672.m8267(context);
                                c3672M8267.getClass();
                                if (packageInfo != null && (C3672.m8266(packageInfo, false) || (C3672.m8266(packageInfo, true) && AbstractC0388.m1848(c3672M8267.f13683)))) {
                                }
                            } catch (PackageManager.NameNotFoundException unused) {
                                Log.isLoggable("UidVerifier", 3);
                            }
                        }
                        if (!C3672.m8267(c0524.f2728.f15719).m8269(Binder.getCallingUid())) {
                            z2 = false;
                        }
                    }
                    this.f3655 = Boolean.valueOf(z2);
                }
                if (this.f3655.booleanValue()) {
                    return;
                }
            } catch (SecurityException e) {
                c0524.mo2272().f6937.m6039(C1736.m4941(str), "Measurement Service called with invalid calling package. appId");
                throw e;
            }
        }
        if (this.f3657 == null) {
            Context context2 = c0524.f2728.f15719;
            int callingUid = Binder.getCallingUid();
            int i = AbstractC0388.f2245;
            if (ᵱᵞᵪ.ᵡˎ(callingUid, context2, str)) {
                this.f3657 = str;
            }
        }
        if (str.equals(this.f3657)) {
            return;
        }
        throw new SecurityException("Unknown calling package name '" + str + "'.");
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵝᵵᵺ */
    public final void mo2193(C1331 c1331, C3450 c3450) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        m2856(new ᵗʞˑᵾ(this, c1331, c3450, 13));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵞʡ */
    public final void mo2194(C3122 c3122, C1331 c1331) throws PackageManager.NameNotFoundException {
        ᵩʛʽ.ᵝᵵᵺ(c3122);
        ᵩʛʽ.ᵝᵵᵺ(c3122.f11895);
        m2853(c1331);
        C3122 c31222 = new C3122(c3122);
        c31222.f11892 = c1331.f5474;
        m2856(new ᵗʞˑᵾ(9, this, c31222, c1331, false));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵡʠ */
    public final void mo2195(C1331 c1331, Bundle bundle, InterfaceC2339 interfaceC2339) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str = c1331.f5474;
        ᵩʛʽ.ᵝᵵᵺ(str);
        this.f3656.mo2307().m4043(new RunnableC5152(this, c1331, bundle, interfaceC2339, str));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵡˎ */
    public final void mo2196(C1331 c1331) throws PackageManager.NameNotFoundException {
        String str = c1331.f5474;
        ᵩʛʽ.ˏˋٴ(str);
        m2855(str, false);
        m2856(new RunnableC4027(this, c1331, 1));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵢˇᵭ */
    public final void mo2197(C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        m2856(new RunnableC4027(this, c1331, 0));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵤᵙᵷ */
    public final List mo2198(String str, String str2, C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str3 = c1331.f5474;
        ᵩʛʽ.ᵝᵵᵺ(str3);
        C0524 c0524 = this.f3656;
        try {
            return (List) c0524.mo2307().m4045(new CallableC4237(this, str3, str, str2, 2)).get();
        } catch (InterruptedException | ExecutionException e) {
            c0524.mo2272().f6937.m6039(e, "Failed to get conditional user properties");
            return Collections.EMPTY_LIST;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // defpackage.AbstractBinderC2915
    /* renamed from: ᵥᵯˎ */
    public final boolean mo1486(int i, Parcel parcel, Parcel parcel2) throws PackageManager.NameNotFoundException {
        boolean z;
        List list;
        C0524 c0524 = this.f3656;
        ArrayList arrayList = null;
        InterfaceC2339 c4055 = null;
        InterfaceC3316 c4876 = null;
        switch (i) {
            case 1:
                C2850 c2850 = (C2850) AbstractC3092.m7423(parcel, C2850.CREATOR);
                C1331 c1331 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2206(c2850, c1331);
                parcel2.writeNoException();
                return true;
            case 2:
                C3861 c3861 = (C3861) AbstractC3092.m7423(parcel, C3861.CREATOR);
                C1331 c13312 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2203(c3861, c13312);
                parcel2.writeNoException();
                return true;
            case 3:
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
            case 22:
            case 23:
            case 28:
            default:
                return false;
            case 4:
                C1331 c13313 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2197(c13313);
                parcel2.writeNoException();
                return true;
            case 5:
                C2850 c28502 = (C2850) AbstractC3092.m7423(parcel, C2850.CREATOR);
                String string = parcel.readString();
                parcel.readString();
                AbstractC3092.m7425(parcel);
                ᵩʛʽ.ᵝᵵᵺ(c28502);
                ᵩʛʽ.ˏˋٴ(string);
                m2855(string, true);
                m2856(new ᵗʞˑᵾ(11, this, c28502, string, false));
                parcel2.writeNoException();
                return true;
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                C1331 c13314 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2190(c13314);
                parcel2.writeNoException();
                return true;
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                C1331 c13315 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                Object[] objArr = parcel.readInt() != 0;
                AbstractC3092.m7425(parcel);
                m2853(c13315);
                String str = c13315.f5474;
                ᵩʛʽ.ᵝᵵᵺ(str);
                try {
                    List<C5428> list2 = (List) c0524.mo2307().m4045(new CallableC4818(this, str, 0)).get();
                    ArrayList arrayList2 = new ArrayList(list2.size());
                    for (C5428 c5428 : list2) {
                        if (objArr != false || !C4864.m10197(c5428.f20350)) {
                            arrayList2.add(new C3861(c5428));
                        }
                    }
                    arrayList = arrayList2;
                } catch (InterruptedException e) {
                    e = e;
                    c0524.mo2272().f6937.m6037("Failed to get user properties. appId", C1736.m4941(str), e);
                    parcel2.writeNoException();
                    parcel2.writeTypedList(arrayList);
                    return true;
                } catch (ExecutionException e2) {
                    e = e2;
                    c0524.mo2272().f6937.m6037("Failed to get user properties. appId", C1736.m4941(str), e);
                    parcel2.writeNoException();
                    parcel2.writeTypedList(arrayList);
                    return true;
                }
                parcel2.writeNoException();
                parcel2.writeTypedList(arrayList);
                return true;
            case 9:
                C2850 c28503 = (C2850) AbstractC3092.m7423(parcel, C2850.CREATOR);
                String string2 = parcel.readString();
                AbstractC3092.m7425(parcel);
                byte[] bArrMo2205 = mo2205(string2, c28503);
                parcel2.writeNoException();
                parcel2.writeByteArray(bArrMo2205);
                return true;
            case 10:
                long j = parcel.readLong();
                String string3 = parcel.readString();
                String string4 = parcel.readString();
                String string5 = parcel.readString();
                AbstractC3092.m7425(parcel);
                mo2208(j, string3, string4, string5);
                parcel2.writeNoException();
                return true;
            case 11:
                C1331 c13316 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                String strMo2199 = mo2199(c13316);
                parcel2.writeNoException();
                parcel2.writeString(strMo2199);
                return true;
            case 12:
                C3122 c3122 = (C3122) AbstractC3092.m7423(parcel, C3122.CREATOR);
                C1331 c13317 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2194(c3122, c13317);
                parcel2.writeNoException();
                return true;
            case 13:
                C3122 c31222 = (C3122) AbstractC3092.m7423(parcel, C3122.CREATOR);
                AbstractC3092.m7425(parcel);
                ᵩʛʽ.ᵝᵵᵺ(c31222);
                ᵩʛʽ.ᵝᵵᵺ(c31222.f11895);
                ᵩʛʽ.ˏˋٴ(c31222.f11892);
                m2855(c31222.f11892, true);
                m2856(new RunnableC1011(this, 12, new C3122(c31222)));
                parcel2.writeNoException();
                return true;
            case 14:
                String string6 = parcel.readString();
                String string7 = parcel.readString();
                ClassLoader classLoader = AbstractC3092.f11788;
                z = parcel.readInt() != 0;
                C1331 c13318 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                List listMo2209 = mo2209(string6, string7, z, c13318);
                parcel2.writeNoException();
                parcel2.writeTypedList(listMo2209);
                return true;
            case 15:
                String string8 = parcel.readString();
                String string9 = parcel.readString();
                String string10 = parcel.readString();
                ClassLoader classLoader2 = AbstractC3092.f11788;
                z = parcel.readInt() != 0;
                AbstractC3092.m7425(parcel);
                List listMo2189 = mo2189(string8, string9, string10, z);
                parcel2.writeNoException();
                parcel2.writeTypedList(listMo2189);
                return true;
            case 16:
                String string11 = parcel.readString();
                String string12 = parcel.readString();
                C1331 c13319 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                List listMo2198 = mo2198(string11, string12, c13319);
                parcel2.writeNoException();
                parcel2.writeTypedList(listMo2198);
                return true;
            case 17:
                String string13 = parcel.readString();
                String string14 = parcel.readString();
                String string15 = parcel.readString();
                AbstractC3092.m7425(parcel);
                List listMo2204 = mo2204(string13, string14, string15);
                parcel2.writeNoException();
                parcel2.writeTypedList(listMo2204);
                return true;
            case 18:
                C1331 c133110 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2196(c133110);
                parcel2.writeNoException();
                return true;
            case 19:
                Bundle bundle = (Bundle) AbstractC3092.m7423(parcel, Bundle.CREATOR);
                C1331 c133111 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2192(bundle, c133111);
                parcel2.writeNoException();
                return true;
            case 20:
                C1331 c133112 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2191(c133112);
                parcel2.writeNoException();
                return true;
            case 21:
                C1331 c133113 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                C5170 c5170Mo2201 = mo2201(c133113);
                parcel2.writeNoException();
                if (c5170Mo2201 == null) {
                    parcel2.writeInt(0);
                    return true;
                }
                parcel2.writeInt(1);
                c5170Mo2201.writeToParcel(parcel2, 1);
                return true;
            case 24:
                C1331 c133114 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                Bundle bundle2 = (Bundle) AbstractC3092.m7423(parcel, Bundle.CREATOR);
                AbstractC3092.m7425(parcel);
                m2853(c133114);
                String str2 = c133114.f5474;
                ᵩʛʽ.ᵝᵵᵺ(str2);
                if (c0524.m2254().m5353(null, AbstractC5018.f18705)) {
                    try {
                        list = (List) c0524.mo2307().m4051(new CallableC1949(this, c133114, bundle2, 0)).get(10000L, TimeUnit.MILLISECONDS);
                    } catch (InterruptedException | ExecutionException | TimeoutException e3) {
                        c0524.mo2272().f6937.m6037("Failed to get trigger URIs. appId", C1736.m4941(str2), e3);
                        list = Collections.EMPTY_LIST;
                    }
                } else {
                    try {
                        list = (List) c0524.mo2307().m4045(new CallableC1949(this, c133114, bundle2, 1)).get();
                    } catch (InterruptedException | ExecutionException e4) {
                        c0524.mo2272().f6937.m6037("Failed to get trigger URIs. appId", C1736.m4941(str2), e4);
                        list = Collections.EMPTY_LIST;
                    }
                }
                parcel2.writeNoException();
                parcel2.writeTypedList(list);
                return true;
            case 25:
                C1331 c133115 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2202(c133115);
                parcel2.writeNoException();
                return true;
            case 26:
                C1331 c133116 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2207(c133116);
                parcel2.writeNoException();
                return true;
            case 27:
                C1331 c133117 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2188(c133117);
                parcel2.writeNoException();
                return true;
            case 29:
                C1331 c133118 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                C0418 c0418 = (C0418) AbstractC3092.m7423(parcel, C0418.CREATOR);
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder != null) {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.measurement.internal.IUploadBatchesCallback");
                    c4876 = iInterfaceQueryLocalInterface instanceof InterfaceC3316 ? (InterfaceC3316) iInterfaceQueryLocalInterface : new C4876(strongBinder, "com.google.android.gms.measurement.internal.IUploadBatchesCallback", 3);
                }
                AbstractC3092.m7425(parcel);
                mo2200(c133118, c0418, c4876);
                parcel2.writeNoException();
                return true;
            case 30:
                C1331 c133119 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                C3450 c3450 = (C3450) AbstractC3092.m7423(parcel, C3450.CREATOR);
                AbstractC3092.m7425(parcel);
                mo2193(c133119, c3450);
                parcel2.writeNoException();
                return true;
            case 31:
                C1331 c133120 = (C1331) AbstractC3092.m7423(parcel, C1331.CREATOR);
                Bundle bundle3 = (Bundle) AbstractC3092.m7423(parcel, Bundle.CREATOR);
                IBinder strongBinder2 = parcel.readStrongBinder();
                if (strongBinder2 != null) {
                    IInterface iInterfaceQueryLocalInterface2 = strongBinder2.queryLocalInterface("com.google.android.gms.measurement.internal.ITriggerUrisCallback");
                    c4055 = iInterfaceQueryLocalInterface2 instanceof InterfaceC2339 ? (InterfaceC2339) iInterfaceQueryLocalInterface2 : new C4055(strongBinder2, "com.google.android.gms.measurement.internal.ITriggerUrisCallback", 3);
                }
                AbstractC3092.m7425(parcel);
                mo2195(c133120, bundle3, c4055);
                parcel2.writeNoException();
                return true;
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵧـˌᵎ */
    public final String mo2199(C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        C0524 c0524 = this.f3656;
        try {
            return (String) c0524.mo2307().m4045(new CallableC4818(c0524, c1331)).get(30000L, TimeUnit.MILLISECONDS);
        } catch (InterruptedException | ExecutionException | TimeoutException e) {
            c0524.mo2272().f6937.m6037("Failed to get app instance id. appId", C1736.m4941(c1331.f5474), e);
            return null;
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵧᵾˀˈ */
    public final void mo2200(C1331 c1331, C0418 c0418, InterfaceC3316 interfaceC3316) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str = c1331.f5474;
        ᵩʛʽ.ᵝᵵᵺ(str);
        this.f3656.mo2307().m4043(new RunnableC5068(this, str, c0418, interfaceC3316, 3, false));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵨᵳʝ */
    public final C5170 mo2201(C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str = c1331.f5474;
        ᵩʛʽ.ˏˋٴ(str);
        C0524 c0524 = this.f3656;
        try {
            return (C5170) c0524.mo2307().m4051(new CallableC4818(this, c1331, 1)).get(10000L, TimeUnit.MILLISECONDS);
        } catch (InterruptedException | ExecutionException | TimeoutException e) {
            c0524.mo2272().f6937.m6037("Failed to get consent. appId", C1736.m4941(str), e);
            return new C5170(null);
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵪʩ */
    public final void mo2202(C1331 c1331) {
        ᵩʛʽ.ˏˋٴ(c1331.f5474);
        ᵩʛʽ.ᵝᵵᵺ(c1331.f5468);
        m2854(new RunnableC4843(this, c1331, 3));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵮᵠـˌ */
    public final void mo2203(C3861 c3861, C1331 c1331) throws PackageManager.NameNotFoundException {
        ᵩʛʽ.ᵝᵵᵺ(c3861);
        m2853(c1331);
        m2856(new ᵗʞˑᵾ(12, this, c3861, c1331, false));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵯٴᵦ */
    public final List mo2204(String str, String str2, String str3) throws PackageManager.NameNotFoundException {
        m2855(str, true);
        C0524 c0524 = this.f3656;
        try {
            return (List) c0524.mo2307().m4045(new CallableC4237(this, str, str2, str3, 3)).get();
        } catch (InterruptedException | ExecutionException e) {
            c0524.mo2272().f6937.m6039(e, "Failed to get conditional user properties as");
            return Collections.EMPTY_LIST;
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵳٴᵶ */
    public final byte[] mo2205(String str, C2850 c2850) throws PackageManager.NameNotFoundException {
        ᵩʛʽ.ˏˋٴ(str);
        ᵩʛʽ.ᵝᵵᵺ(c2850);
        m2855(str, true);
        C0524 c0524 = this.f3656;
        C2319 c2319 = c0524.mo2272().f6941;
        C4205 c4205 = c0524.f2728;
        C2862 c2862 = c4205.f15705;
        String str2 = c2850.f11011;
        c2319.m6039(c2862.m7000(str2), "Log and bundle. event");
        c0524.mo2310().getClass();
        long jNanoTime = System.nanoTime() / 1000000;
        try {
            byte[] bArr = (byte[]) c0524.mo2307().m4051(new CallableC3631(this, c2850, str)).get();
            if (bArr == null) {
                c0524.mo2272().f6937.m6039(C1736.m4941(str), "Log and bundle returned null. appId");
                bArr = new byte[0];
            }
            c0524.mo2310().getClass();
            c0524.mo2272().f6941.m6040("Log and bundle processed. event, size, time_ms", c4205.f15705.m7000(str2), Integer.valueOf(bArr.length), Long.valueOf((System.nanoTime() / 1000000) - jNanoTime));
            return bArr;
        } catch (InterruptedException e) {
            e = e;
            c0524.mo2272().f6937.m6040("Failed to log and bundle. appId, event, error", C1736.m4941(str), c4205.f15705.m7000(str2), e);
            return null;
        } catch (ExecutionException e2) {
            e = e2;
            c0524.mo2272().f6937.m6040("Failed to log and bundle. appId, event, error", C1736.m4941(str), c4205.f15705.m7000(str2), e);
            return null;
        }
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final void m2856(Runnable runnable) {
        C0524 c0524 = this.f3656;
        if (c0524.mo2307().m4052()) {
            runnable.run();
        } else {
            c0524.mo2307().m4043(runnable);
        }
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵶᵷᵕ */
    public final void mo2206(C2850 c2850, C1331 c1331) throws PackageManager.NameNotFoundException {
        ᵩʛʽ.ᵝᵵᵺ(c2850);
        m2853(c1331);
        m2856(new ᵗʞˑᵾ(10, this, c2850, c1331, false));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵸʓᵠ */
    public final void mo2207(C1331 c1331) {
        ᵩʛʽ.ˏˋٴ(c1331.f5474);
        ᵩʛʽ.ᵝᵵᵺ(c1331.f5468);
        m2854(new RunnableC4027(this, c1331, 2));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵸˑ */
    public final void mo2208(long j, String str, String str2, String str3) {
        m2856(new RunnableC0214(this, str2, str3, str, j, 0));
    }

    @Override // defpackage.InterfaceC3519
    /* renamed from: ᵺʙ */
    public final List mo2209(String str, String str2, boolean z, C1331 c1331) throws PackageManager.NameNotFoundException {
        m2853(c1331);
        String str3 = c1331.f5474;
        ᵩʛʽ.ᵝᵵᵺ(str3);
        C0524 c0524 = this.f3656;
        try {
            List<C5428> list = (List) c0524.mo2307().m4045(new CallableC4237(this, str3, str, str2, 0)).get();
            ArrayList arrayList = new ArrayList(list.size());
            for (C5428 c5428 : list) {
                if (z || !C4864.m10197(c5428.f20350)) {
                    arrayList.add(new C3861(c5428));
                }
            }
            return arrayList;
        } catch (InterruptedException e) {
            e = e;
            c0524.mo2272().f6937.m6037("Failed to query user properties. appId", C1736.m4941(str3), e);
            return Collections.EMPTY_LIST;
        } catch (ExecutionException e2) {
            e = e2;
            c0524.mo2272().f6937.m6037("Failed to query user properties. appId", C1736.m4941(str3), e);
            return Collections.EMPTY_LIST;
        }
    }
}
