导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - JvmBuiltInsCustomizer.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 JvmBuiltInsCustomizer.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.content.pm.Signature;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Process;
import android.os.RemoteException;
import android.os.SystemClock;
import android.text.TextUtils;
import com.google.android.gms.internal.measurement.zzdq;
import com.google.android.libraries.barhopper.RecognitionOptions;
import java.io.ByteArrayInputStream;
import java.math.BigInteger;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Random;
import java.util.TreeSet;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicLong;
import javax.security.auth.x500.X500Principal;
import o.access5902;
import o.ensureUpperBoundIdIsMutable;
import o.renderonlyOutDiffers;

public final class JvmBuiltInsCustomizer extends getNullableAnyType {
    private static final String[] setBackground = {"firebase_", "google_", "ga_"};
    private static final String[] setOptions = {"_err"};
    private Integer RemoteActionCompatParcelizer;
    private callOnSendError read;
    private Boolean setElement;
    private final AtomicLong setError;
    private SecureRandom setFieldValue;
    private int setLabel;

    private final int setOptions(java.lang.String r18, java.lang.String r19, java.lang.String r20, java.lang.Object r21, android.os.Bundle r22, java.util.List<java.lang.String> r23, boolean r24, boolean r25) {
        throw new UnsupportedOperationException("Method not decompiled: o.JvmBuiltInsCustomizer.setOptions(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, android.os.Bundle, java.util.List, boolean, boolean):int");
    }

    @Override
    protected final boolean write() {
        return true;
    }

    final int setLabel(String str, Object obj) {
        boolean background;
        if ("_ldl".equals(str)) {
            background = setBackground("user property referrer", str, MediaBrowserCompatCustomActionResultReceiver(str), obj);
        } else {
            background = setBackground("user property", str, MediaBrowserCompatCustomActionResultReceiver(str), obj);
        }
        return background ? 0 : 7;
    }

    final int setLabel(String str) {
        if (!setError("event", str)) {
            return 2;
        }
        if (setBackground("event", setBuiltInsModule.setBackground, setBuiltInsModule.setOptions, str)) {
            return !setLabel("event", 40, str) ? 2 : 0;
        }
        return 13;
    }

    private final int write(String str) {
        if (!setError("event param", str)) {
            return 3;
        }
        if (setOptions("event param", (String[]) null, str)) {
            return !setLabel("event param", 40, str) ? 3 : 0;
        }
        return 14;
    }

    private final int read(String str) {
        if (!setBackground("event param", str)) {
            return 3;
        }
        if (setOptions("event param", (String[]) null, str)) {
            return !setLabel("event param", 40, str) ? 3 : 0;
        }
        return 14;
    }

    final int setElement(String str) {
        if (!setError("user property", str)) {
            return 6;
        }
        if (setOptions("user property", getSuspendFunction.setOptions, str)) {
            return !setLabel("user property", 24, str) ? 6 : 0;
        }
        return 15;
    }

    static int setLabel() {
        if (Build.VERSION.SDK_INT < 30 || setMenuPrepared.setLabel(30) <= 3) {
            return 0;
        }
        return setMenuPrepared.setLabel(1000000);
    }

    @cJd(setFieldValue = {"this.apkVersion"})
    public final int AudioAttributesCompatParcelizer() {
        if (this.RemoteActionCompatParcelizer == null) {
            this.RemoteActionCompatParcelizer = Integer.valueOf(swig_module_init.setError().setFieldValue(setOptions()) / 1000);
        }
        return this.RemoteActionCompatParcelizer.intValue();
    }

    private static int MediaBrowserCompatCustomActionResultReceiver(String str) {
        return "_ldl".equals(str) ? RecognitionOptions.PDF417 : "_id".equals(str) ? RecognitionOptions.QR_CODE : "_lgclid".equals(str) ? 100 : 36;
    }

    public final int setBackground(int i) {
        return swig_module_init.setError().setError(setOptions(), 12451000);
    }

    final long IconCompatParcelizer(String str) {
        if (setOptions().getPackageManager() == null) {
            return 0L;
        }
        int i = 0;
        try {
            ApplicationInfo label = accessorKClassImplDatalambda11.setFieldValue(setOptions()).setLabel(str, 0);
            if (label != null) {
                i = label.targetSdkVersion;
            }
        } catch (PackageManager.NameNotFoundException unused) {
            IconCompatParcelizer().MediaBrowserCompatItemReceiver().setFieldValue("PackageManager failed to find running app: app_id", str);
        }
        return i;
    }

    final long MediaDescriptionCompat() {
        long j;
        RatingCompat();
        if (!setError(this.RatingCompat.MediaBrowserCompatMediaItem().ComponentActivity6())) {
            return 0L;
        }
        if (Build.VERSION.SDK_INT < 30) {
            j = 4;
        } else if (setMenuPrepared.setLabel(30) < 4) {
            j = 8;
        } else {
            j = setLabel() < AnnotationConstructorCaller.ComponentActivity6.setLabel(null).intValue() ? 16L : 0L;
        }
        if (!RemoteActionCompatParcelizer("android.permission.ACCESS_ADSERVICES_ATTRIBUTION")) {
            j |= 2;
        }
        if (j == 0 && !ComponentActivity2()) {
            j |= 64;
        }
        if (j == 0) {
            return 1L;
        }
        return j;
    }

    final long setFieldValue(Context context, String str) {
        RatingCompat();
        accessorKClasseslambda2.setOptions(context);
        accessorKClasseslambda2.setBackground(str);
        PackageManager packageManager = context.getPackageManager();
        MessageDigest AudioAttributesImplApi21Parcelizer = AudioAttributesImplApi21Parcelizer();
        if (AudioAttributesImplApi21Parcelizer != null) {
            if (packageManager != null) {
                try {
                    if (!setLabel(context, str)) {
                        Signature[] signatureArr = accessorKClassImplDatalambda11.setFieldValue(context).setBackground(setOptions().getPackageName(), 64).signatures;
                        if (signatureArr != null && signatureArr.length > 0) {
                            return setBackground(AudioAttributesImplApi21Parcelizer.digest(signatureArr[0].toByteArray()));
                        }
                        Object[] objArr = {IconCompatParcelizer()};
                        ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Could not get signatures");
                    }
                } catch (PackageManager.NameNotFoundException e) {
                    Object[] objArr2 = {IconCompatParcelizer()};
                    ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), objArr2)).setFieldValue("Package name not found", e);
                }
            }
            return 0L;
        }
        Object[] objArr3 = {IconCompatParcelizer()};
        ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), objArr3)).setFieldValue("Could not get MD5 instance");
        return -1L;
    }

    static long setBackground(byte[] bArr) {
        accessorKClasseslambda2.setOptions(bArr);
        int i = 0;
        accessorKClasseslambda2.setLabel(bArr.length > 0);
        long j = 0;
        for (int length = bArr.length - 1; length >= 0 && length >= bArr.length - 8; length--) {
            j += (bArr[length] & 255) << i;
            i += 8;
        }
        return j;
    }

    public static long setBackground(loadClassdefault loadclassdefault) {
        long j = 0;
        if (loadclassdefault == null) {
            return 0L;
        }
        Iterator<String> it = loadclassdefault.iterator();
        while (it.hasNext()) {
            if (loadclassdefault.setFieldValue(it.next()) instanceof Parcelable[]) {
                j += ((Parcelable[]) r3).length;
            }
        }
        return j;
    }

    public final long MediaBrowserCompatItemReceiver() {
        long andIncrement;
        long nextLong;
        long j;
        if (this.setError.get() == 0) {
            synchronized (this.setError) {
                nextLong = new Random(System.nanoTime() ^ setError().setBackground()).nextLong();
                int i = this.setLabel + 1;
                this.setLabel = i;
                j = i;
            }
            return nextLong + j;
        }
        synchronized (this.setError) {
            this.setError.compareAndSet(-1L, 1L);
            andIncrement = this.setError.getAndIncrement();
        }
        return andIncrement;
    }

    public static long setLabel(long j, long j2) {
        return (j + (j2 * 60000)) / 86400000;
    }

    @Override
    @cMl
    public final Context setOptions() {
        return super.setOptions();
    }

    public static Bundle setLabel(List<JvmBuiltInsWhenMappings> list) {
        Bundle bundle = new Bundle();
        if (list == null) {
            return bundle;
        }
        for (JvmBuiltInsWhenMappings jvmBuiltInsWhenMappings : list) {
            String str = jvmBuiltInsWhenMappings.setLabel;
            if (str != null) {
                bundle.putString(jvmBuiltInsWhenMappings.setFieldValue, str);
            } else {
                Long l = jvmBuiltInsWhenMappings.setBackground;
                if (l != null) {
                    bundle.putLong(jvmBuiltInsWhenMappings.setFieldValue, l.longValue());
                } else {
                    Double d = jvmBuiltInsWhenMappings.RemoteActionCompatParcelizer;
                    if (d != null) {
                        bundle.putDouble(jvmBuiltInsWhenMappings.setFieldValue, d.doubleValue());
                    }
                }
            }
        }
        return bundle;
    }

    final Bundle setLabel(Uri uri) {
        String str;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        if (uri == null) {
            return null;
        }
        try {
            if (uri.isHierarchical()) {
                str = uri.getQueryParameter(access5902.setOptions.setError);
                str2 = uri.getQueryParameter(access5902.setOptions.setLabel);
                str3 = uri.getQueryParameter(access5902.setOptions.setOptions);
                str4 = uri.getQueryParameter("gclid");
                str5 = uri.getQueryParameter("gbraid");
                str6 = uri.getQueryParameter("utm_id");
                str7 = uri.getQueryParameter("dclid");
                str8 = uri.getQueryParameter("srsltid");
                str9 = uri.getQueryParameter("sfmc_id");
            } else {
                str = null;
                str2 = null;
                str3 = null;
                str4 = null;
                str5 = null;
                str6 = null;
                str7 = null;
                str8 = null;
                str9 = null;
            }
            if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2) && TextUtils.isEmpty(str3) && TextUtils.isEmpty(str4) && TextUtils.isEmpty(str5) && TextUtils.isEmpty(str6) && TextUtils.isEmpty(str7) && TextUtils.isEmpty(str8) && TextUtils.isEmpty(str9)) {
                return null;
            }
            Bundle bundle = new Bundle();
            if (TextUtils.isEmpty(str)) {
                str10 = "sfmc_id";
            } else {
                str10 = "sfmc_id";
                bundle.putString(ensureUpperBoundIdIsMutable.IconCompatParcelizer.RemoteActionCompatParcelizer, str);
            }
            if (!TextUtils.isEmpty(str2)) {
                bundle.putString(ensureUpperBoundIdIsMutable.IconCompatParcelizer.MediaBrowserCompatSearchResultReceiver, str2);
            }
            if (!TextUtils.isEmpty(str3)) {
                bundle.putString(ensureUpperBoundIdIsMutable.IconCompatParcelizer.read, str3);
            }
            if (!TextUtils.isEmpty(str4)) {
                bundle.putString("gclid", str4);
            }
            if (!TextUtils.isEmpty(str5)) {
                bundle.putString("gbraid", str5);
            }
            String queryParameter = uri.getQueryParameter("gad_source");
            if (!TextUtils.isEmpty(queryParameter)) {
                bundle.putString("gad_source", queryParameter);
            }
            String queryParameter2 = uri.getQueryParameter(access5902.setOptions.setFieldValue);
            if (!TextUtils.isEmpty(queryParameter2)) {
                bundle.putString("term", queryParameter2);
            }
            String queryParameter3 = uri.getQueryParameter(access5902.setOptions.setBackground);
            if (!TextUtils.isEmpty(queryParameter3)) {
                bundle.putString("content", queryParameter3);
            }
            String queryParameter4 = uri.getQueryParameter("aclid");
            if (!TextUtils.isEmpty(queryParameter4)) {
                bundle.putString("aclid", queryParameter4);
            }
            String queryParameter5 = uri.getQueryParameter("cp1");
            if (!TextUtils.isEmpty(queryParameter5)) {
                bundle.putString("cp1", queryParameter5);
            }
            String queryParameter6 = uri.getQueryParameter("anid");
            if (!TextUtils.isEmpty(queryParameter6)) {
                bundle.putString("anid", queryParameter6);
            }
            if (!TextUtils.isEmpty(str6)) {
                bundle.putString("campaign_id", str6);
            }
            if (!TextUtils.isEmpty(str7)) {
                bundle.putString("dclid", str7);
            }
            String queryParameter7 = uri.getQueryParameter("utm_source_platform");
            if (!TextUtils.isEmpty(queryParameter7)) {
                bundle.putString("source_platform", queryParameter7);
            }
            String queryParameter8 = uri.getQueryParameter("utm_creative_format");
            if (!TextUtils.isEmpty(queryParameter8)) {
                bundle.putString("creative_format", queryParameter8);
            }
            String queryParameter9 = uri.getQueryParameter("utm_marketing_tactic");
            if (!TextUtils.isEmpty(queryParameter9)) {
                bundle.putString("marketing_tactic", queryParameter9);
            }
            if (!TextUtils.isEmpty(str8)) {
                bundle.putString("srsltid", str8);
            }
            if (!TextUtils.isEmpty(str9)) {
                bundle.putString(str10, str9);
            }
            return bundle;
        } catch (UnsupportedOperationException e) {
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Install referrer url isn't a hierarchical URI", e);
            return null;
        }
    }

    public static Bundle setLabel(Bundle bundle) {
        if (bundle == null) {
            return new Bundle();
        }
        Bundle bundle2 = new Bundle(bundle);
        for (String str : bundle2.keySet()) {
            Object obj = bundle2.get(str);
            if (obj instanceof Bundle) {
                bundle2.putBundle(str, new Bundle((Bundle) obj));
            } else {
                int i = 0;
                if (obj instanceof Parcelable[]) {
                    Parcelable[] parcelableArr = (Parcelable[]) obj;
                    while (i < parcelableArr.length) {
                        if (parcelableArr[i] instanceof Bundle) {
                            parcelableArr[i] = new Bundle((Bundle) parcelableArr[i]);
                        }
                        i++;
                    }
                } else if (obj instanceof List) {
                    List list = (List) obj;
                    while (i < list.size()) {
                        Object obj2 = list.get(i);
                        if (obj2 instanceof Bundle) {
                            list.set(i, new Bundle((Bundle) obj2));
                        }
                        i++;
                    }
                }
            }
        }
        return bundle2;
    }

    final Bundle setError(Bundle bundle, String str) {
        Bundle bundle2 = new Bundle();
        if (bundle != null) {
            for (String str2 : bundle.keySet()) {
                Object options = setOptions(str2, bundle.get(str2));
                if (options == null) {
                    Object[] objArr = {IconCompatParcelizer()};
                    ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), (int) Process.getStartElapsedRealtime(), -2033887414, (int) SystemClock.elapsedRealtime(), 2033887416, Process.myPid(), objArr)).setFieldValue("Param value can't be null", RemoteActionCompatParcelizer().setFieldValue(str2));
                } else {
                    setLabel(bundle2, str2, options);
                }
            }
        }
        return bundle2;
    }

    final Bundle setError(String str, String str2, Bundle bundle, List<String> list, boolean z) {
        int read;
        int i;
        JvmBuiltInsCustomizer jvmBuiltInsCustomizer = this;
        boolean fieldValue = setFieldValue(str2, setBuiltInsModule.setFieldValue);
        if (bundle == null) {
            return null;
        }
        Bundle bundle2 = new Bundle(bundle);
        int MediaBrowserCompatItemReceiver = setFieldValue().MediaBrowserCompatItemReceiver();
        int i2 = 0;
        for (String str3 : new TreeSet(bundle.keySet())) {
            if (list == null || !list.contains(str3)) {
                read = !z ? jvmBuiltInsCustomizer.read(str3) : 0;
                if (read == 0) {
                    read = jvmBuiltInsCustomizer.write(str3);
                }
            } else {
                read = 0;
            }
            if (read != 0) {
                setBackground(bundle2, read, str3, read == 3 ? str3 : null);
                bundle2.remove(str3);
                i = MediaBrowserCompatItemReceiver;
            } else {
                i = MediaBrowserCompatItemReceiver;
                int options = setOptions(str, str2, str3, bundle.get(str3), bundle2, list, z, fieldValue);
                if (options == 17) {
                    setBackground(bundle2, options, str3, Boolean.FALSE);
                } else if (options != 0 && !"_ev".equals(str3)) {
                    setBackground(bundle2, options, options == 21 ? str2 : str3, bundle.get(str3));
                    bundle2.remove(str3);
                }
                if (setFieldValue(str3)) {
                    int i3 = i2 + 1;
                    if (i3 > i) {
                        IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Event can't contain more than " + i + " params", RemoteActionCompatParcelizer().setError(str2), RemoteActionCompatParcelizer().setLabel(bundle));
                        setLabel(bundle2, 5);
                        bundle2.remove(str3);
                    }
                    i2 = i3;
                }
            }
            MediaBrowserCompatItemReceiver = i;
            jvmBuiltInsCustomizer = this;
        }
        return bundle2;
    }

    final callOnSendError MediaBrowserCompatMediaItem() {
        if (this.read == null) {
            this.read = callOnSendError.setLabel(setOptions());
        }
        return this.read;
    }

    @Override
    @cMl
    public final accessorKCallableImpllambda8 setError() {
        return super.setError();
    }

    @Override
    @cMl
    public final mapName setBackground() {
        return super.setBackground();
    }

    @Override
    @cMl
    public final accessgetSignature setFieldValue() {
        return super.setFieldValue();
    }

    @Override
    @cMl
    public final getJVM_STATIC setElement() {
        return super.setElement();
    }

    final unwrapRepeatableAnnotations setFieldValue(String str, String str2, Bundle bundle, String str3, long j, boolean z, boolean z2) {
        if (TextUtils.isEmpty(str2)) {
            return null;
        }
        if (setLabel(str2) != 0) {
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Invalid conditional property event name", RemoteActionCompatParcelizer().setBackground(str2));
            throw new IllegalArgumentException();
        }
        Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle();
        bundle2.putString("_o", str3);
        Bundle error = setError(str, str2, bundle2, accessorKCallableImpllambda6.setError("_o"), true);
        if (z) {
            error = setError(error, str);
        }
        accessorKClasseslambda2.setOptions(error);
        return new unwrapRepeatableAnnotations(str2, new loadClassdefault(error), str3, j);
    }

    @Override
    @cMl
    public final getContextReceiverTypesFromFunctionType RemoteActionCompatParcelizer() {
        return super.RemoteActionCompatParcelizer();
    }

    @Override
    @cMl
    public final getFunctionTypeArgumentProjections IconCompatParcelizer() {
        return super.IconCompatParcelizer();
    }

    @Override
    @cMl
    public final getElementTypeForUnsignedArray AudioAttributesImplApi26Parcelizer() {
        return super.AudioAttributesImplApi26Parcelizer();
    }

    @Override
    @cMl
    public final isNullableAny MediaBrowserCompatCustomActionResultReceiver() {
        return super.MediaBrowserCompatCustomActionResultReceiver();
    }

    @Override
    @cMl
    public final accessgetFunctionClassIdcp AudioAttributesImplBaseParcelizer() {
        return super.AudioAttributesImplBaseParcelizer();
    }

    @Override
    @cMl
    public final JvmBuiltInsCustomizer MediaMetadataCompat() {
        return super.MediaMetadataCompat();
    }

    final Object setOptions(String str, Object obj) {
        int options;
        if ("_ev".equals(str)) {
            return setFieldValue(setFieldValue().setFieldValue((String) null, false), obj, true, true, (String) null);
        }
        if (setBackground(str)) {
            options = setFieldValue().setFieldValue((String) null, false);
        } else {
            options = setFieldValue().setOptions((String) null, false);
        }
        return setFieldValue(options, obj, false, true, (String) null);
    }

    final Object setError(String str, Object obj) {
        if ("_ldl".equals(str)) {
            return setFieldValue(MediaBrowserCompatCustomActionResultReceiver(str), obj, true, false, (String) null);
        }
        return setFieldValue(MediaBrowserCompatCustomActionResultReceiver(str), obj, false, false, (String) null);
    }

    private final Object setFieldValue(int i, Object obj, boolean z, boolean z2, String str) {
        Bundle error;
        if (obj == null) {
            return null;
        }
        if ((obj instanceof Long) || (obj instanceof Double)) {
            return obj;
        }
        if (obj instanceof Integer) {
            return Long.valueOf(((Integer) obj).intValue());
        }
        if (obj instanceof Byte) {
            return Long.valueOf(((Byte) obj).byteValue());
        }
        if (obj instanceof Short) {
            return Long.valueOf(((Short) obj).shortValue());
        }
        if (obj instanceof Boolean) {
            return Long.valueOf(((Boolean) obj).booleanValue() ? 1L : 0L);
        }
        if (obj instanceof Float) {
            return Double.valueOf(((Float) obj).doubleValue());
        }
        if ((obj instanceof String) || (obj instanceof Character) || (obj instanceof CharSequence)) {
            return setOptions(String.valueOf(obj), i, z);
        }
        if (!z2 || (!(obj instanceof Bundle[]) && !(obj instanceof Parcelable[]))) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        for (Parcelable parcelable : (Parcelable[]) obj) {
            if ((parcelable instanceof Bundle) && (error = setError((Bundle) parcelable, (String) null)) != null && !error.isEmpty()) {
                arrayList.add(error);
            }
        }
        return arrayList.toArray(new Bundle[arrayList.size()]);
    }

    final String MediaSessionCompatQueueItem() {
        byte[] bArr = new byte[16];
        MediaSessionCompatToken().nextBytes(bArr);
        return String.format(Locale.US, "%032x", new BigInteger(1, bArr));
    }

    public static String setOptions(String str, int i, boolean z) {
        if (str == null) {
            return null;
        }
        if (str.codePointCount(0, str.length()) <= i) {
            return str;
        }
        if (!z) {
            return null;
        }
        return str.substring(0, str.offsetByCodePoints(0, i)) + "...";
    }

    public final URL setFieldValue(long j, String str, String str2, long j2, String str3) {
        try {
            accessorKClasseslambda2.setBackground(str2);
            accessorKClasseslambda2.setBackground(str);
            String format = String.format("https://www.googleadservices.com/pagead/conversion/app/deeplink?id_type=adid&sdk_version=%s&rdid=%s&bundleid=%s&retry=%s", String.format("v%s.%s", Long.valueOf(j), Integer.valueOf(AudioAttributesCompatParcelizer())), str2, str, Long.valueOf(j2));
            if (str.equals(setFieldValue().MediaSessionCompatQueueItem())) {
                format = format.concat("&ddl_test=1");
            }
            if (!str3.isEmpty()) {
                if (str3.charAt(0) != '&') {
                    format = format.concat("&");
                }
                format = format.concat(str3);
            }
            return new URL(format);
        } catch (IllegalArgumentException | MalformedURLException e) {
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Failed to create BOW URL for Deferred Deep Link. exception", e.getMessage());
            return null;
        }
    }

    static MessageDigest AudioAttributesImplApi21Parcelizer() {
        MessageDigest messageDigest;
        for (int i = 0; i < 2; i++) {
            try {
                messageDigest = MessageDigest.getInstance("MD5");
            } catch (NoSuchAlgorithmException unused) {
            }
            if (messageDigest != null) {
                return messageDigest;
            }
        }
        return null;
    }

    @cJd(setFieldValue = {"this.secureRandom"})
    final SecureRandom MediaSessionCompatToken() {
        RatingCompat();
        if (this.setFieldValue == null) {
            this.setFieldValue = new SecureRandom();
        }
        return this.setFieldValue;
    }

    public static ArrayList<Bundle> setOptions(List<mapJvmClassToKotlinClassId> list) {
        if (list == null) {
            return new ArrayList<>(0);
        }
        ArrayList<Bundle> arrayList = new ArrayList<>(list.size());
        for (mapJvmClassToKotlinClassId mapjvmclasstokotlinclassid : list) {
            Bundle bundle = new Bundle();
            bundle.putString("app_id", mapjvmclasstokotlinclassid.setError);
            bundle.putString(renderonlyOutDiffers.setBackground.setError, mapjvmclasstokotlinclassid.setBackground);
            bundle.putLong("creation_timestamp", mapjvmclasstokotlinclassid.setLabel);
            bundle.putString("name", mapjvmclasstokotlinclassid.setFieldValue.setFieldValue);
            getStorageManager.setOptions(bundle, accessorKClasseslambda2.setOptions(mapjvmclasstokotlinclassid.setFieldValue.setError()));
            bundle.putBoolean("active", mapjvmclasstokotlinclassid.setOptions);
            String str = mapjvmclasstokotlinclassid.setElement;
            if (str != null) {
                bundle.putString("trigger_event_name", str);
            }
            unwrapRepeatableAnnotations unwraprepeatableannotations = mapjvmclasstokotlinclassid.RemoteActionCompatParcelizer;
            if (unwraprepeatableannotations != null) {
                bundle.putString("timed_out_event_name", unwraprepeatableannotations.setFieldValue);
                loadClassdefault loadclassdefault = unwraprepeatableannotations.setOptions;
                if (loadclassdefault != null) {
                    bundle.putBundle("timed_out_event_params", loadclassdefault.setBackground());
                }
            }
            bundle.putLong("trigger_timeout", mapjvmclasstokotlinclassid.read);
            unwrapRepeatableAnnotations unwraprepeatableannotations2 = mapjvmclasstokotlinclassid.write;
            if (unwraprepeatableannotations2 != null) {
                bundle.putString("triggered_event_name", unwraprepeatableannotations2.setFieldValue);
                loadClassdefault loadclassdefault2 = unwraprepeatableannotations2.setOptions;
                if (loadclassdefault2 != null) {
                    bundle.putBundle("triggered_event_params", loadclassdefault2.setBackground());
                }
            }
            bundle.putLong("triggered_timestamp", mapjvmclasstokotlinclassid.setFieldValue.setOptions);
            bundle.putLong("time_to_live", mapjvmclasstokotlinclassid.IconCompatParcelizer);
            unwrapRepeatableAnnotations unwraprepeatableannotations3 = mapjvmclasstokotlinclassid.AudioAttributesImplBaseParcelizer;
            if (unwraprepeatableannotations3 != null) {
                bundle.putString("expired_event_name", unwraprepeatableannotations3.setFieldValue);
                loadClassdefault loadclassdefault3 = unwraprepeatableannotations3.setOptions;
                if (loadclassdefault3 != null) {
                    bundle.putBundle("expired_event_params", loadclassdefault3.setBackground());
                }
            }
            arrayList.add(bundle);
        }
        return arrayList;
    }

    JvmBuiltInsCustomizer(isUnderKotlinPackage isunderkotlinpackage) {
        super(isunderkotlinpackage);
        this.RemoteActionCompatParcelizer = null;
        this.setError = new AtomicLong(0L);
    }

    final void setError(Bundle bundle, long j) {
        long j2 = bundle.getLong("_et");
        if (j2 != 0) {
            Object[] objArr = {IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Params already contained engagement", Long.valueOf(j2));
        }
        bundle.putLong("_et", j + j2);
    }

    private static void setBackground(Bundle bundle, int i, String str, Object obj) {
        if (setLabel(bundle, i)) {
            bundle.putString("_ev", setOptions(str, 40, true));
            if (obj != null) {
                accessorKClasseslambda2.setOptions(bundle);
                if ((obj instanceof String) || (obj instanceof CharSequence)) {
                    bundle.putLong("_el", String.valueOf(obj).length());
                }
            }
        }
    }

    public static void setFieldValue(accessgetParametersp accessgetparametersp, Bundle bundle, boolean z) {
        if (bundle == null || accessgetparametersp == null || (bundle.containsKey("_sc") && !z)) {
            if (bundle != null && accessgetparametersp == null && z) {
                bundle.remove("_sn");
                bundle.remove("_sc");
                bundle.remove("_si");
                return;
            }
            return;
        }
        String str = accessgetparametersp.setError;
        if (str != null) {
            bundle.putString("_sn", str);
        } else {
            bundle.remove("_sn");
        }
        String str2 = accessgetparametersp.setOptions;
        if (str2 != null) {
            bundle.putString("_sc", str2);
        } else {
            bundle.remove("_sc");
        }
        bundle.putLong("_si", accessgetparametersp.setFieldValue);
    }

    final void setFieldValue(Bundle bundle, Bundle bundle2) {
        if (bundle2 == null) {
            return;
        }
        for (String str : bundle2.keySet()) {
            if (!bundle.containsKey(str)) {
                MediaMetadataCompat().setLabel(bundle, str, bundle2.get(str));
            }
        }
    }

    @Override
    public final void MediaBrowserCompatSearchResultReceiver() {
        super.MediaBrowserCompatSearchResultReceiver();
    }

    @Override
    public final void MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() {
        super.MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver();
    }

    @Override
    public final void RatingCompat() {
        super.RatingCompat();
    }

    final void setFieldValue(Parcelable[] parcelableArr, int i) {
        accessorKClasseslambda2.setOptions(parcelableArr);
        for (Parcelable parcelable : parcelableArr) {
            Bundle bundle = (Bundle) parcelable;
            int i2 = 0;
            for (String str : new TreeSet(bundle.keySet())) {
                if (setFieldValue(str) && !setFieldValue(str, getStringType.setFieldValue) && (i2 = i2 + 1) > i) {
                    IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Param can't contain more than " + i + " item-scoped custom parameters", RemoteActionCompatParcelizer().setFieldValue(str), RemoteActionCompatParcelizer().setLabel(bundle));
                    setLabel(bundle, 28);
                    bundle.remove(str);
                }
            }
        }
    }

    final void setLabel(getValueParameterTypesFromFunctionType getvalueparametertypesfromfunctiontype, int i) {
        int i2 = 0;
        for (String str : new TreeSet(getvalueparametertypesfromfunctiontype.setLabel.keySet())) {
            if (setFieldValue(str) && (i2 = i2 + 1) > i) {
                IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Event can't contain more than " + i + " params", RemoteActionCompatParcelizer().setError(getvalueparametertypesfromfunctiontype.setOptions), RemoteActionCompatParcelizer().setLabel(getvalueparametertypesfromfunctiontype.setLabel));
                setLabel(getvalueparametertypesfromfunctiontype.setLabel, 5);
                getvalueparametertypesfromfunctiontype.setLabel.remove(str);
            }
        }
    }

    public static void setFieldValue(JvmBuiltInsSettings jvmBuiltInsSettings, int i, String str, String str2, int i2) {
        setError(jvmBuiltInsSettings, null, i, str, str2, i2);
    }

    static void setError(JvmBuiltInsSettings jvmBuiltInsSettings, String str, int i, String str2, String str3, int i2) {
        Bundle bundle = new Bundle();
        setLabel(bundle, i);
        if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) {
            bundle.putString(str2, str3);
        }
        if (i == 6 || i == 7 || i == 2) {
            bundle.putLong("_el", i2);
        }
        jvmBuiltInsSettings.setError(str, "_err", bundle);
    }

    @Override
    protected final void aB_() {
        RatingCompat();
        SecureRandom secureRandom = new SecureRandom();
        long nextLong = secureRandom.nextLong();
        if (nextLong == 0) {
            nextLong = secureRandom.nextLong();
            if (nextLong == 0) {
                Object[] objArr = {IconCompatParcelizer()};
                ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Utils falling back to Random for random id");
            }
        }
        this.setError.set(nextLong);
    }

    final void setLabel(Bundle bundle, String str, Object obj) {
        if (bundle == null) {
            return;
        }
        if (obj instanceof Long) {
            bundle.putLong(str, ((Long) obj).longValue());
            return;
        }
        if (obj instanceof String) {
            bundle.putString(str, String.valueOf(obj));
            return;
        }
        if (obj instanceof Double) {
            bundle.putDouble(str, ((Double) obj).doubleValue());
            return;
        }
        if (obj instanceof Bundle[]) {
            bundle.putParcelableArray(str, (Bundle[]) obj);
        } else if (str != null) {
            String simpleName = obj != null ? obj.getClass().getSimpleName() : null;
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), (int) Process.getStartElapsedRealtime(), -2033887414, (int) SystemClock.elapsedRealtime(), 2033887416, Process.myPid(), new Object[]{IconCompatParcelizer()})).setError("Not putting event parameter. Invalid value type. name, type", RemoteActionCompatParcelizer().setFieldValue(str), simpleName);
        }
    }

    public final void setFieldValue(zzdq zzdqVar, boolean z) {
        Bundle bundle = new Bundle();
        bundle.putBoolean("r", z);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning boolean value to wrapper", e);
        }
    }

    public final void setOptions(zzdq zzdqVar, ArrayList<Bundle> arrayList) {
        Bundle bundle = new Bundle();
        bundle.putParcelableArrayList("r", arrayList);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning bundle list to wrapper", e);
        }
    }

    public final void setBackground(zzdq zzdqVar, Bundle bundle) {
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning bundle value to wrapper", e);
        }
    }

    public final void setBackground(zzdq zzdqVar, byte[] bArr) {
        Bundle bundle = new Bundle();
        bundle.putByteArray("r", bArr);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning byte array to wrapper", e);
        }
    }

    public final void setError(zzdq zzdqVar, int i) {
        Bundle bundle = new Bundle();
        bundle.putInt("r", i);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning int value to wrapper", e);
        }
    }

    public final void setError(zzdq zzdqVar, long j) {
        Bundle bundle = new Bundle();
        bundle.putLong("r", j);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning long value to wrapper", e);
        }
    }

    public final void setLabel(zzdq zzdqVar, String str) {
        Bundle bundle = new Bundle();
        bundle.putString("r", str);
        try {
            zzdqVar.zza(bundle);
        } catch (RemoteException e) {
            Object[] objArr = {this.RatingCompat.IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), objArr)).setFieldValue("Error returning string value to wrapper", e);
        }
    }

    private final void setFieldValue(String str, String str2, String str3, Bundle bundle, List<String> list, boolean z) {
        int read;
        int i;
        String str4;
        int options;
        int i2;
        if (bundle == null) {
            return;
        }
        int i3 = setFieldValue().MediaMetadataCompat().setLabel(231100000, true) ? 35 : 0;
        int i4 = 0;
        for (String str5 : new TreeSet(bundle.keySet())) {
            if (list == null || !list.contains(str5)) {
                read = !z ? read(str5) : 0;
                if (read == 0) {
                    read = write(str5);
                }
            } else {
                read = 0;
            }
            if (read != 0) {
                setBackground(bundle, read, str5, read == 3 ? str5 : null);
                bundle.remove(str5);
                i = i3;
            } else {
                if (setBackground(bundle.get(str5))) {
                    ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), (int) Process.getStartElapsedRealtime(), -2033887414, (int) SystemClock.elapsedRealtime(), 2033887416, Process.myPid(), new Object[]{IconCompatParcelizer()})).setBackground("Nested Bundle parameters are not allowed; discarded. event name, param name, child param name", str2, str3, str5);
                    options = 22;
                    str4 = str5;
                    i = i3;
                } else {
                    str4 = str5;
                    i = i3;
                    options = setOptions(str, str2, str5, bundle.get(str5), bundle, list, z, false);
                }
                if (options != 0 && !"_ev".equals(str4)) {
                    setBackground(bundle, options, str4, bundle.get(str4));
                    bundle.remove(str4);
                } else {
                    if (!setFieldValue(str4) || setFieldValue(str4, getStringType.setFieldValue)) {
                        i2 = i;
                    } else {
                        int i5 = i4 + 1;
                        if (setLabel(231100000, true)) {
                            i2 = i;
                            if (i5 > i2) {
                                IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Item can't contain more than " + i2 + " item-scoped custom params", RemoteActionCompatParcelizer().setError(str2), RemoteActionCompatParcelizer().setLabel(bundle));
                                setLabel(bundle, 28);
                                bundle.remove(str4);
                            }
                        } else {
                            IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Item array not supported on client's version of Google Play Services (Android Only)", RemoteActionCompatParcelizer().setError(str2), RemoteActionCompatParcelizer().setLabel(bundle));
                            setLabel(bundle, 23);
                            bundle.remove(str4);
                            i2 = i;
                        }
                        i4 = i5;
                    }
                    i3 = i2;
                }
            }
            i3 = i;
        }
    }

    private static boolean setLabel(Bundle bundle, int i) {
        if (bundle == null || bundle.getLong("_err") != 0) {
            return false;
        }
        bundle.putLong("_err", i);
        return true;
    }

    static boolean setError(String str) {
        String label = AnnotationConstructorCaller.getLifecycle.setLabel(null);
        return label.equals("*") || Arrays.asList(label.split(",")).contains(str);
    }

    private static boolean setFieldValue(String str, String[] strArr) {
        accessorKClasseslambda2.setOptions(strArr);
        for (String str2 : strArr) {
            if (Objects.equals(str, str2)) {
                return true;
            }
        }
        return false;
    }

    final boolean setLabel(String str, String str2) {
        if (!TextUtils.isEmpty(str)) {
            if (AudioAttributesImplApi26Parcelizer(str)) {
                return true;
            }
            if (this.RatingCompat.AudioAttributesCompatParcelizer()) {
                IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Invalid google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI. provided id", getFunctionTypeArgumentProjections.setError(str));
            }
            return false;
        }
        if (!TextUtils.isEmpty(str2)) {
            if (AudioAttributesImplApi26Parcelizer(str2)) {
                return true;
            }
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Invalid admob_app_id. Analytics disabled.", getFunctionTypeArgumentProjections.setError(str2));
            return false;
        }
        if (this.RatingCompat.AudioAttributesCompatParcelizer()) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI");
        }
        return false;
    }

    final boolean setLabel(String str, int i, String str2) {
        if (str2 == null) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be null. Type", str);
            return false;
        }
        if (str2.codePointCount(0, str2.length()) <= i) {
            return true;
        }
        IconCompatParcelizer().AudioAttributesCompatParcelizer().setBackground("Name is too long. Type, maximum supported length, name", str, Integer.valueOf(i), str2);
        return false;
    }

    final boolean setOptions(String str, String[] strArr, String str2) {
        return setBackground(str, strArr, (String[]) null, str2);
    }

    final boolean setBackground(String str, String[] strArr, String[] strArr2, String str2) {
        if (str2 == null) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be null. Type", str);
            return false;
        }
        accessorKClasseslambda2.setOptions(str2);
        for (String str3 : setBackground) {
            if (str2.startsWith(str3)) {
                IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name starts with reserved prefix. Type, name", str, str2);
                return false;
            }
        }
        if (strArr == null || !setFieldValue(str2, strArr)) {
            return true;
        }
        if (strArr2 != null && setFieldValue(str2, strArr2)) {
            return true;
        }
        IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name is reserved. Type, name", str, str2);
        return false;
    }

    final boolean setBackground(String str, String str2, int i, Object obj) {
        if (obj != null && !(obj instanceof Long) && !(obj instanceof Float) && !(obj instanceof Integer) && !(obj instanceof Byte) && !(obj instanceof Short) && !(obj instanceof Boolean) && !(obj instanceof Double)) {
            if (!(obj instanceof String) && !(obj instanceof Character) && !(obj instanceof CharSequence)) {
                return false;
            }
            String valueOf = String.valueOf(obj);
            if (valueOf.codePointCount(0, valueOf.length()) > i) {
                Object[] objArr = {IconCompatParcelizer()};
                ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), (int) Process.getStartElapsedRealtime(), -2033887414, (int) SystemClock.elapsedRealtime(), 2033887416, Process.myPid(), objArr)).setBackground("Value is too long; discarded. Value kind, name, value length", str, str2, Integer.valueOf(valueOf.length()));
                return false;
            }
        }
        return true;
    }

    final boolean setError(String str, String str2) {
        if (str2 == null) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be null. Type", str);
            return false;
        }
        if (str2.length() == 0) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be empty. Type", str);
            return false;
        }
        int codePointAt = str2.codePointAt(0);
        if (!Character.isLetter(codePointAt) && codePointAt != 95) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name must start with a letter or _ (underscore). Type, name", str, str2);
            return false;
        }
        int length = str2.length();
        int charCount = Character.charCount(codePointAt);
        while (charCount < length) {
            int codePointAt2 = str2.codePointAt(charCount);
            if (codePointAt2 != 95 && !Character.isLetterOrDigit(codePointAt2)) {
                IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name must consist of letters, digits or _ (underscores). Type, name", str, str2);
                return false;
            }
            charCount += Character.charCount(codePointAt2);
        }
        return true;
    }

    final boolean setBackground(String str, String str2) {
        if (str2 == null) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be null. Type", str);
            return false;
        }
        if (str2.length() == 0) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setFieldValue("Name is required and can't be empty. Type", str);
            return false;
        }
        int codePointAt = str2.codePointAt(0);
        if (!Character.isLetter(codePointAt)) {
            IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name must start with a letter. Type, name", str, str2);
            return false;
        }
        int length = str2.length();
        int charCount = Character.charCount(codePointAt);
        while (charCount < length) {
            int codePointAt2 = str2.codePointAt(charCount);
            if (codePointAt2 != 95 && !Character.isLetterOrDigit(codePointAt2)) {
                IconCompatParcelizer().AudioAttributesCompatParcelizer().setError("Name must consist of letters, digits or _ (underscores). Type, name", str, str2);
                return false;
            }
            charCount += Character.charCount(codePointAt2);
        }
        return true;
    }

    static boolean setBackground(Bundle bundle, int i) {
        int i2 = 0;
        if (bundle.size() <= i) {
            return false;
        }
        for (String str : new TreeSet(bundle.keySet())) {
            i2++;
            if (i2 > i) {
                bundle.remove(str);
            }
        }
        return true;
    }

    private final boolean ComponentActivity2() {
        Object e;
        Integer num;
        if (this.setElement == null) {
            callOnSendError MediaBrowserCompatMediaItem = MediaBrowserCompatMediaItem();
            boolean z = false;
            if (MediaBrowserCompatMediaItem == null) {
                return false;
            }
            Integer num2 = null;
            try {
                num = (Integer) MediaBrowserCompatMediaItem.setOptions().get(10000L, TimeUnit.MILLISECONDS);
                if (num != null) {
                    try {
                        if (num.intValue() == 1) {
                            z = true;
                        }
                    } catch (InterruptedException | CancellationException | ExecutionException | TimeoutException e2) {
                        e = e2;
                        num2 = num;
                        ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().totalMemory(), Process.myUid(), -730500344, Process.myPid(), 730500347, (int) Runtime.getRuntime().maxMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Measurement manager api exception", e);
                        this.setElement = Boolean.FALSE;
                        num = num2;
                        ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().freeMemory(), Process.myPid(), -36129410, (int) Runtime.getRuntime().maxMemory(), 36129410, Process.myTid(), new Object[]{IconCompatParcelizer()})).setFieldValue("Measurement manager api status result", num);
                        return this.setElement.booleanValue();
                    }
                }
                this.setElement = Boolean.valueOf(z);
            } catch (InterruptedException | CancellationException | ExecutionException | TimeoutException e3) {
                e = e3;
            }
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel((int) Runtime.getRuntime().freeMemory(), Process.myPid(), -36129410, (int) Runtime.getRuntime().maxMemory(), 36129410, Process.myTid(), new Object[]{IconCompatParcelizer()})).setFieldValue("Measurement manager api status result", num);
        }
        return this.setElement.booleanValue();
    }

    final boolean RemoteActionCompatParcelizer(String str) {
        RatingCompat();
        if (accessorKClassImplDatalambda11.setFieldValue(setOptions()).setOptions(str) == 0) {
            return true;
        }
        Object[] objArr = {IconCompatParcelizer()};
        ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), (int) Runtime.getRuntime().maxMemory(), 1696686675, (int) Process.getElapsedCpuTime(), -1696686669, (int) Runtime.getRuntime().totalMemory(), objArr)).setFieldValue("Permission not granted", str);
        return false;
    }

    final boolean setFieldValue(String str, String str2) {
        if (!TextUtils.isEmpty(str2)) {
            return true;
        }
        if (TextUtils.isEmpty(str)) {
            return false;
        }
        return setFieldValue().MediaDescriptionCompat().equals(str);
    }

    static boolean setBackground(Object obj) {
        return (obj instanceof Parcelable[]) || (obj instanceof ArrayList) || (obj instanceof Bundle);
    }

    private final boolean setLabel(Context context, String str) {
        Signature[] signatureArr;
        X500Principal x500Principal = new X500Principal("CN=Android Debug,O=Android,C=US");
        try {
            PackageInfo background = accessorKClassImplDatalambda11.setFieldValue(context).setBackground(str, 64);
            if (background == null || (signatureArr = background.signatures) == null || signatureArr.length <= 0) {
                return true;
            }
            return ((X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(signatureArr[0].toByteArray()))).getSubjectX500Principal().equals(x500Principal);
        } catch (PackageManager.NameNotFoundException e) {
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Package name not found", e);
            return true;
        } catch (CertificateException e2) {
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), new Object[]{IconCompatParcelizer()})).setFieldValue("Error obtaining certificate", e2);
            return true;
        }
    }

    final boolean MediaSessionCompatResultReceiverWrapper() {
        RatingCompat();
        return MediaDescriptionCompat() == 1;
    }

    public final boolean setContentView() {
        try {
            setOptions().getClassLoader().loadClass("com.google.firebase.remoteconfig.FirebaseRemoteConfig");
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

    public final boolean setLabel(int i, boolean z) {
        Boolean ParcelableVolumeInfo = this.RatingCompat.PlaybackStateCompatCustomAction().ParcelableVolumeInfo();
        if (AudioAttributesCompatParcelizer() < i / 1000) {
            return (ParcelableVolumeInfo == null || ParcelableVolumeInfo.booleanValue()) ? false : true;
        }
        return true;
    }

    static boolean setBackground(String str) {
        return !TextUtils.isEmpty(str) && str.startsWith("_");
    }

    static boolean setFieldValue(String str) {
        accessorKClasseslambda2.setBackground(str);
        return str.charAt(0) != '_' || str.equals("_ep");
    }

    static boolean setLabel(Context context) {
        ActivityInfo receiverInfo;
        accessorKClasseslambda2.setOptions(context);
        try {
            PackageManager packageManager = context.getPackageManager();
            if (packageManager != null && (receiverInfo = packageManager.getReceiverInfo(new ComponentName(context, "com.google.android.gms.measurement.AppMeasurementReceiver"), 0)) != null) {
                if (receiverInfo.enabled) {
                    return true;
                }
            }
        } catch (PackageManager.NameNotFoundException unused) {
        }
        return false;
    }

    static boolean setOptions(Context context, String str) {
        ServiceInfo serviceInfo;
        try {
            PackageManager packageManager = context.getPackageManager();
            if (packageManager != null && (serviceInfo = packageManager.getServiceInfo(new ComponentName(context, str), 0)) != null) {
                if (serviceInfo.enabled) {
                    return true;
                }
            }
        } catch (PackageManager.NameNotFoundException unused) {
        }
        return false;
    }

    static boolean setOptions(Context context, boolean z) {
        accessorKClasseslambda2.setOptions(context);
        return setOptions(context, "com.google.android.gms.measurement.AppMeasurementJobService");
    }

    final boolean setOptions(String str, double d) {
        try {
            SharedPreferences.Editor edit = setOptions().getSharedPreferences("google.analytics.deferred.deeplink.prefs", 0).edit();
            edit.putString("deeplink", str);
            edit.putLong("timestamp", Double.doubleToRawLongBits(d));
            return edit.commit();
        } catch (RuntimeException e) {
            Object[] objArr = {IconCompatParcelizer()};
            ((isBuiltinExtensionFunctionalType) getFunctionTypeArgumentProjections.setLabel(new Random().nextInt(), Thread.currentThread().getPriority(), 937512687, (int) Thread.currentThread().getId(), -937512683, (int) Runtime.getRuntime().freeMemory(), objArr)).setFieldValue("Failed to persist Deferred Deep Link. exception", e);
            return false;
        }
    }

    static boolean setOptions(Intent intent) {
        String stringExtra = intent.getStringExtra("android.intent.extra.REFERRER_NAME");
        return "android-app://com.google.android.googlequicksearchbox/https/www.google.com".equals(stringExtra) || "https://www.google.com".equals(stringExtra) || "android-app://com.google.appcrawler".equals(stringExtra);
    }

    public static boolean setOptions(String str) {
        for (String str2 : setOptions) {
            if (str2.equals(str)) {
                return false;
            }
        }
        return true;
    }

    static boolean setBackground(String str, String str2, String str3, String str4) {
        boolean isEmpty = TextUtils.isEmpty(str);
        boolean isEmpty2 = TextUtils.isEmpty(str2);
        if (!isEmpty && !isEmpty2) {
            accessorKClasseslambda2.setOptions(str);
            return !str.equals(str2);
        }
        if (isEmpty && isEmpty2) {
            return (TextUtils.isEmpty(str3) || TextUtils.isEmpty(str4)) ? !TextUtils.isEmpty(str4) : !str3.equals(str4);
        }
        if (isEmpty || !isEmpty2) {
            return TextUtils.isEmpty(str3) || !str3.equals(str4);
        }
        if (TextUtils.isEmpty(str4)) {
            return false;
        }
        return TextUtils.isEmpty(str3) || !str3.equals(str4);
    }

    private static boolean AudioAttributesImplApi26Parcelizer(String str) {
        accessorKClasseslambda2.setOptions(str);
        return str.matches("^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$");
    }

    static byte[] setError(Parcelable parcelable) {
        if (parcelable == null) {
            return null;
        }
        Parcel obtain = Parcel.obtain();
        try {
            parcelable.writeToParcel(obtain, 0);
            return obtain.marshall();
        } finally {
            obtain.recycle();
        }
    }

    static Bundle[] setError(Object obj) {
        if (obj instanceof Bundle) {
            return new Bundle[]{(Bundle) obj};
        }
        if (obj instanceof Parcelable[]) {
            Parcelable[] parcelableArr = (Parcelable[]) obj;
            return (Bundle[]) Arrays.copyOf(parcelableArr, parcelableArr.length, Bundle[].class);
        }
        if (!(obj instanceof ArrayList)) {
            return null;
        }
        ArrayList arrayList = (ArrayList) obj;
        return (Bundle[]) arrayList.toArray(new Bundle[arrayList.size()]);
    }
}