- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
176 lines
11 KiB
Java
176 lines
11 KiB
Java
package androidx.credentials.provider;
|
|
|
|
import android.content.ComponentName;
|
|
import android.os.Bundle;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.CredentialOption;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.collections.SetsKt__SetsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ProviderGetCredentialRequest {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final String EXTRA_CREDENTIAL_OPTION_ALLOWED_PROVIDERS_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_ALLOWED_PROVIDERS_";
|
|
private static final String EXTRA_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_";
|
|
private static final String EXTRA_CREDENTIAL_OPTION_CREDENTIAL_RETRIEVAL_DATA_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_CREDENTIAL_RETRIEVAL_DATA_";
|
|
private static final String EXTRA_CREDENTIAL_OPTION_IS_SYSTEM_PROVIDER_REQUIRED_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_IS_SYSTEM_PROVIDER_REQUIRED_";
|
|
private static final String EXTRA_CREDENTIAL_OPTION_SIZE = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_SIZE";
|
|
private static final String EXTRA_CREDENTIAL_OPTION_TYPE_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_TYPE_";
|
|
private final BiometricPromptResult biometricPromptResult;
|
|
private final CallingAppInfo callingAppInfo;
|
|
private final List<CredentialOption> credentialOptions;
|
|
private final Bundle sourceBundle;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public ProviderGetCredentialRequest(List<? extends CredentialOption> credentialOptions, CallingAppInfo callingAppInfo) {
|
|
this(credentialOptions, callingAppInfo, null, 4, null);
|
|
Intrinsics.checkNotNullParameter(credentialOptions, "credentialOptions");
|
|
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
|
|
}
|
|
|
|
public static final Bundle asBundle(ProviderGetCredentialRequest providerGetCredentialRequest) {
|
|
return Companion.asBundle(providerGetCredentialRequest);
|
|
}
|
|
|
|
public static final ProviderGetCredentialRequest fromBundle(Bundle bundle) {
|
|
return Companion.fromBundle(bundle);
|
|
}
|
|
|
|
public final BiometricPromptResult getBiometricPromptResult() {
|
|
return this.biometricPromptResult;
|
|
}
|
|
|
|
public final CallingAppInfo getCallingAppInfo() {
|
|
return this.callingAppInfo;
|
|
}
|
|
|
|
public final List<CredentialOption> getCredentialOptions() {
|
|
return this.credentialOptions;
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public final Bundle getSourceBundle() {
|
|
return this.sourceBundle;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public ProviderGetCredentialRequest(List<? extends CredentialOption> credentialOptions, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, Bundle bundle) {
|
|
Intrinsics.checkNotNullParameter(credentialOptions, "credentialOptions");
|
|
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
|
|
this.credentialOptions = credentialOptions;
|
|
this.callingAppInfo = callingAppInfo;
|
|
this.biometricPromptResult = biometricPromptResult;
|
|
this.sourceBundle = bundle;
|
|
}
|
|
|
|
public /* synthetic */ ProviderGetCredentialRequest(List list, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(list, callingAppInfo, (i & 4) != 0 ? null : biometricPromptResult);
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public ProviderGetCredentialRequest(List<? extends CredentialOption> credentialOptions, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult) {
|
|
this(credentialOptions, callingAppInfo, biometricPromptResult, null);
|
|
Intrinsics.checkNotNullParameter(credentialOptions, "credentialOptions");
|
|
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
|
|
}
|
|
|
|
@SourceDebugExtension({"SMAP\nProviderGetCredentialRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ProviderGetCredentialRequest.kt\nandroidx/credentials/provider/ProviderGetCredentialRequest$Companion\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 3 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,207:1\n37#2,2:208\n11653#3,9:210\n13579#3:219\n13580#3:221\n11662#3:222\n1#4:220\n*S KotlinDebug\n*F\n+ 1 ProviderGetCredentialRequest.kt\nandroidx/credentials/provider/ProviderGetCredentialRequest$Companion\n*L\n133#1:208,2\n187#1:210,9\n187#1:219\n187#1:221\n187#1:222\n187#1:220\n*E\n"})
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public static /* synthetic */ ProviderGetCredentialRequest createFrom$credentials_release$default(Companion companion, List list, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, Bundle bundle, int i, Object obj) {
|
|
if ((i & 4) != 0) {
|
|
biometricPromptResult = null;
|
|
}
|
|
return companion.createFrom$credentials_release(list, callingAppInfo, biometricPromptResult, bundle);
|
|
}
|
|
|
|
public final ProviderGetCredentialRequest createFrom$credentials_release(List<? extends CredentialOption> options, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, Bundle bundle) {
|
|
Intrinsics.checkNotNullParameter(options, "options");
|
|
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
|
|
return new ProviderGetCredentialRequest(options, callingAppInfo, biometricPromptResult, bundle);
|
|
}
|
|
|
|
public final Bundle asBundle(ProviderGetCredentialRequest request) {
|
|
Intrinsics.checkNotNullParameter(request, "request");
|
|
Bundle bundle = new Bundle();
|
|
int size = request.getCredentialOptions().size();
|
|
bundle.putInt(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_SIZE, size);
|
|
for (int i = 0; i < size; i++) {
|
|
CredentialOption credentialOption = request.getCredentialOptions().get(i);
|
|
bundle.putString("androidx.credentials.provider.extra.CREDENTIAL_OPTION_TYPE_" + i, credentialOption.getType());
|
|
bundle.putBundle(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX + i, credentialOption.getCandidateQueryData());
|
|
bundle.putBundle(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_CREDENTIAL_RETRIEVAL_DATA_PREFIX + i, credentialOption.getRequestData());
|
|
bundle.putBoolean(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_IS_SYSTEM_PROVIDER_REQUIRED_PREFIX + i, credentialOption.isSystemProviderRequired());
|
|
bundle.putParcelableArray(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_ALLOWED_PROVIDERS_PREFIX + i, (Parcelable[]) credentialOption.getAllowedProviders().toArray(new ComponentName[0]));
|
|
}
|
|
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, request.getCallingAppInfo());
|
|
return bundle;
|
|
}
|
|
|
|
public final ProviderGetCredentialRequest fromBundle(Bundle bundle) {
|
|
Set<ComponentName> emptySet;
|
|
Parcelable[] parcelableArray;
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
CallingAppInfo extractCallingAppInfo$credentials_release = CallingAppInfo.Companion.extractCallingAppInfo$credentials_release(bundle);
|
|
if (extractCallingAppInfo$credentials_release == null) {
|
|
throw new IllegalArgumentException("Bundle was missing CallingAppInfo.");
|
|
}
|
|
int i = bundle.getInt(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_SIZE, -1);
|
|
if (i < 0) {
|
|
throw new IllegalArgumentException("Bundle had invalid option size as " + i + '.');
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
String string = bundle.getString("androidx.credentials.provider.extra.CREDENTIAL_OPTION_TYPE_" + i2);
|
|
if (string == null) {
|
|
throw new IllegalArgumentException("Bundle was missing option type at index " + i + '.');
|
|
}
|
|
Bundle bundle2 = bundle.getBundle(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX + i2);
|
|
if (bundle2 == null) {
|
|
throw new IllegalArgumentException("Bundle was missing candidate query data at index " + i + '.');
|
|
}
|
|
Bundle bundle3 = bundle.getBundle(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_CREDENTIAL_RETRIEVAL_DATA_PREFIX + i2);
|
|
if (bundle3 == null) {
|
|
throw new IllegalArgumentException("Bundle was missing request data at index " + i + '.');
|
|
}
|
|
boolean z = bundle.getBoolean(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_IS_SYSTEM_PROVIDER_REQUIRED_PREFIX + i2, false);
|
|
try {
|
|
parcelableArray = bundle.getParcelableArray(ProviderGetCredentialRequest.EXTRA_CREDENTIAL_OPTION_ALLOWED_PROVIDERS_PREFIX + i2);
|
|
} catch (Exception unused) {
|
|
emptySet = SetsKt__SetsKt.emptySet();
|
|
}
|
|
if (parcelableArray != null) {
|
|
ArrayList arrayList2 = new ArrayList();
|
|
for (Parcelable parcelable : parcelableArray) {
|
|
ComponentName componentName = (ComponentName) parcelable;
|
|
if (componentName != null) {
|
|
arrayList2.add(componentName);
|
|
}
|
|
}
|
|
emptySet = CollectionsKt___CollectionsKt.toSet(arrayList2);
|
|
if (emptySet != null) {
|
|
arrayList.add(CredentialOption.Companion.createFrom(string, bundle3, bundle2, z, emptySet));
|
|
}
|
|
}
|
|
emptySet = SetsKt__SetsKt.emptySet();
|
|
arrayList.add(CredentialOption.Companion.createFrom(string, bundle3, bundle2, z, emptySet));
|
|
}
|
|
return createFrom$credentials_release(arrayList, extractCallingAppInfo$credentials_release, null, bundle);
|
|
}
|
|
}
|
|
}
|