- 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
202 lines
9.3 KiB
Java
202 lines
9.3 KiB
Java
package androidx.credentials.provider;
|
|
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import kotlin.collections.CollectionsKt__CollectionsKt;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class BeginGetCredentialResponse {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final List<Action> actions;
|
|
private final List<AuthenticationAction> authenticationActions;
|
|
private final List<CredentialEntry> credentialEntries;
|
|
private final RemoteEntry remoteEntry;
|
|
|
|
public BeginGetCredentialResponse() {
|
|
this(null, null, null, null, 15, null);
|
|
}
|
|
|
|
public static final Bundle asBundle(BeginGetCredentialResponse beginGetCredentialResponse) {
|
|
return Companion.asBundle(beginGetCredentialResponse);
|
|
}
|
|
|
|
public static final BeginGetCredentialResponse fromBundle(Bundle bundle) {
|
|
return Companion.fromBundle(bundle);
|
|
}
|
|
|
|
public final List<Action> getActions() {
|
|
return this.actions;
|
|
}
|
|
|
|
public final List<AuthenticationAction> getAuthenticationActions() {
|
|
return this.authenticationActions;
|
|
}
|
|
|
|
public final List<CredentialEntry> getCredentialEntries() {
|
|
return this.credentialEntries;
|
|
}
|
|
|
|
public final RemoteEntry getRemoteEntry() {
|
|
return this.remoteEntry;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public BeginGetCredentialResponse(List<? extends CredentialEntry> credentialEntries, List<Action> actions, List<AuthenticationAction> authenticationActions, RemoteEntry remoteEntry) {
|
|
Intrinsics.checkNotNullParameter(credentialEntries, "credentialEntries");
|
|
Intrinsics.checkNotNullParameter(actions, "actions");
|
|
Intrinsics.checkNotNullParameter(authenticationActions, "authenticationActions");
|
|
this.credentialEntries = credentialEntries;
|
|
this.actions = actions;
|
|
this.authenticationActions = authenticationActions;
|
|
this.remoteEntry = remoteEntry;
|
|
}
|
|
|
|
public /* synthetic */ BeginGetCredentialResponse(List list, List list2, List list3, RemoteEntry remoteEntry, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? CollectionsKt__CollectionsKt.emptyList() : list, (i & 2) != 0 ? CollectionsKt__CollectionsKt.emptyList() : list2, (i & 4) != 0 ? CollectionsKt__CollectionsKt.emptyList() : list3, (i & 8) != 0 ? null : remoteEntry);
|
|
}
|
|
|
|
public static final class Builder {
|
|
private RemoteEntry remoteEntry;
|
|
private List<CredentialEntry> credentialEntries = new ArrayList();
|
|
private List<Action> actions = new ArrayList();
|
|
private List<AuthenticationAction> authenticationActions = new ArrayList();
|
|
|
|
public final Builder setRemoteEntry(RemoteEntry remoteEntry) {
|
|
this.remoteEntry = remoteEntry;
|
|
return this;
|
|
}
|
|
|
|
public final Builder addCredentialEntry(CredentialEntry entry) {
|
|
Intrinsics.checkNotNullParameter(entry, "entry");
|
|
this.credentialEntries.add(entry);
|
|
return this;
|
|
}
|
|
|
|
public final Builder setCredentialEntries(List<? extends CredentialEntry> entries) {
|
|
Intrinsics.checkNotNullParameter(entries, "entries");
|
|
this.credentialEntries = CollectionsKt___CollectionsKt.toMutableList((Collection) entries);
|
|
return this;
|
|
}
|
|
|
|
public final Builder addAction(Action action) {
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
this.actions.add(action);
|
|
return this;
|
|
}
|
|
|
|
public final Builder setActions(List<Action> actions) {
|
|
Intrinsics.checkNotNullParameter(actions, "actions");
|
|
this.actions = CollectionsKt___CollectionsKt.toMutableList((Collection) actions);
|
|
return this;
|
|
}
|
|
|
|
public final Builder addAuthenticationAction(AuthenticationAction authenticationAction) {
|
|
Intrinsics.checkNotNullParameter(authenticationAction, "authenticationAction");
|
|
this.authenticationActions.add(authenticationAction);
|
|
return this;
|
|
}
|
|
|
|
public final Builder setAuthenticationActions(List<AuthenticationAction> authenticationEntries) {
|
|
Intrinsics.checkNotNullParameter(authenticationEntries, "authenticationEntries");
|
|
this.authenticationActions = CollectionsKt___CollectionsKt.toMutableList((Collection) authenticationEntries);
|
|
return this;
|
|
}
|
|
|
|
public final BeginGetCredentialResponse build() {
|
|
return new BeginGetCredentialResponse(CollectionsKt___CollectionsKt.toList(this.credentialEntries), CollectionsKt___CollectionsKt.toList(this.actions), CollectionsKt___CollectionsKt.toList(this.authenticationActions), this.remoteEntry);
|
|
}
|
|
}
|
|
|
|
@RequiresApi(34)
|
|
public static final class Api34Impl {
|
|
public static final Api34Impl INSTANCE = new Api34Impl();
|
|
private static final String REQUEST_KEY = "androidx.credentials.provider.BeginGetCredentialResponse";
|
|
|
|
private Api34Impl() {
|
|
}
|
|
|
|
public static final void asBundle(Bundle bundle, BeginGetCredentialResponse response) {
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
Intrinsics.checkNotNullParameter(response, "response");
|
|
bundle.putParcelable(REQUEST_KEY, BeginGetCredentialUtil.Companion.convertToFrameworkResponse(response));
|
|
}
|
|
|
|
public static final BeginGetCredentialResponse fromBundle(Bundle bundle) {
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
android.service.credentials.BeginGetCredentialResponse beginGetCredentialResponse = (android.service.credentials.BeginGetCredentialResponse) bundle.getParcelable(REQUEST_KEY, android.service.credentials.BeginGetCredentialResponse.class);
|
|
if (beginGetCredentialResponse != null) {
|
|
return BeginGetCredentialUtil.Companion.convertToJetpackResponse(beginGetCredentialResponse);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|
|
@RequiresApi(23)
|
|
public static final class Api23Impl {
|
|
public static final Api23Impl INSTANCE = new Api23Impl();
|
|
|
|
private Api23Impl() {
|
|
}
|
|
|
|
public static final void asBundle(Bundle bundle, BeginGetCredentialResponse response) {
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
Intrinsics.checkNotNullParameter(response, "response");
|
|
CredentialEntry.Companion.marshall$credentials_release(response.getCredentialEntries(), bundle);
|
|
Action.Companion.marshall$credentials_release(response.getActions(), bundle);
|
|
AuthenticationAction.Companion.marshall$credentials_release(response.getAuthenticationActions(), bundle);
|
|
RemoteEntry remoteEntry = response.getRemoteEntry();
|
|
if (remoteEntry != null) {
|
|
RemoteEntry.Companion.marshall$credentials_release(remoteEntry, bundle);
|
|
}
|
|
}
|
|
|
|
public static final BeginGetCredentialResponse fromBundle(Bundle bundle) {
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
List<CredentialEntry> unmarshallCredentialEntries$credentials_release = CredentialEntry.Companion.unmarshallCredentialEntries$credentials_release(bundle);
|
|
List<Action> unmarshallActionList$credentials_release = Action.Companion.unmarshallActionList$credentials_release(bundle);
|
|
List<AuthenticationAction> unmarshallAuthActionList$credentials_release = AuthenticationAction.Companion.unmarshallAuthActionList$credentials_release(bundle);
|
|
RemoteEntry unmarshallRemoteEntry$credentials_release = RemoteEntry.Companion.unmarshallRemoteEntry$credentials_release(bundle);
|
|
if (unmarshallCredentialEntries$credentials_release.isEmpty() && unmarshallActionList$credentials_release.isEmpty() && unmarshallAuthActionList$credentials_release.isEmpty() && unmarshallRemoteEntry$credentials_release == null) {
|
|
return null;
|
|
}
|
|
return new BeginGetCredentialResponse(unmarshallCredentialEntries$credentials_release, unmarshallActionList$credentials_release, unmarshallAuthActionList$credentials_release, unmarshallRemoteEntry$credentials_release);
|
|
}
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final Bundle asBundle(BeginGetCredentialResponse response) {
|
|
Intrinsics.checkNotNullParameter(response, "response");
|
|
Bundle bundle = new Bundle();
|
|
if (Build.VERSION.SDK_INT >= 34) {
|
|
Api34Impl.asBundle(bundle, response);
|
|
} else {
|
|
Api23Impl.asBundle(bundle, response);
|
|
}
|
|
return bundle;
|
|
}
|
|
|
|
public final BeginGetCredentialResponse fromBundle(Bundle bundle) {
|
|
Intrinsics.checkNotNullParameter(bundle, "bundle");
|
|
if (Build.VERSION.SDK_INT >= 34) {
|
|
return Api34Impl.fromBundle(bundle);
|
|
}
|
|
return Api23Impl.fromBundle(bundle);
|
|
}
|
|
}
|
|
}
|