Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,12 @@
package androidx.credentials.provider;
import android.app.slice.Slice;
import android.app.slice.SliceSpec;
import android.net.Uri;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline10 {
public static /* synthetic */ Slice.Builder m(Uri uri, SliceSpec sliceSpec) {
return new Slice.Builder(uri, sliceSpec);
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.app.slice.Slice;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline11 {
public static /* synthetic */ Slice.Builder m(Slice.Builder builder) {
return new Slice.Builder(builder);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline12 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline2 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline3 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline4 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.app.slice.SliceItem;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline5 {
public static /* bridge */ /* synthetic */ SliceItem m(Object obj) {
return (SliceItem) obj;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline6 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline7 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline8 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.app.slice.SliceSpec;
/* loaded from: classes.dex */
public abstract /* synthetic */ class Action$Companion$$ExternalSyntheticApiModelOutline9 {
public static /* synthetic */ SliceSpec m(String str, int i) {
return new SliceSpec(str, i);
}
}

View File

@@ -0,0 +1,250 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nAction.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Action.kt\nandroidx/credentials/provider/Action\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,261:1\n1#2:262\n*E\n"})
/* loaded from: classes.dex */
public final class Action {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_ACTION_PENDING_INTENT_PREFIX = "androidx.credentials.provider.extra.ACTION_PENDING_INTENT_";
private static final String EXTRA_ACTION_SIZE = "androidx.credentials.provider.extra.ACTION_SIZE";
private static final String EXTRA_ACTION_SUBTITLE_PREFIX = "androidx.credentials.provider.extra.ACTION_SUBTITLE_";
private static final String EXTRA_ACTION_TITLE_PREFIX = "androidx.credentials.provider.extra.ACTION_TITLE_";
private static final String SLICE_HINT_PENDING_INTENT = "androidx.credentials.provider.action.SLICE_HINT_PENDING_INTENT";
private static final String SLICE_HINT_SUBTITLE = "androidx.credentials.provider.action.HINT_ACTION_SUBTEXT";
private static final String SLICE_HINT_TITLE = "androidx.credentials.provider.action.HINT_ACTION_TITLE";
private static final int SLICE_SPEC_REVISION = 0;
private static final String SLICE_SPEC_TYPE = "Action";
private static final String TAG = "Action";
private final PendingIntent pendingIntent;
private final CharSequence subtitle;
private final CharSequence title;
public static final Action fromAction(android.service.credentials.Action action) {
return Companion.fromAction(action);
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Action fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(Action action) {
return Companion.toSlice(action);
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final CharSequence getSubtitle() {
return this.subtitle;
}
public final CharSequence getTitle() {
return this.title;
}
public Action(CharSequence title, PendingIntent pendingIntent, CharSequence charSequence) {
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.title = title;
this.pendingIntent = pendingIntent;
this.subtitle = charSequence;
if (title.length() <= 0) {
throw new IllegalArgumentException("title must not be empty".toString());
}
}
public /* synthetic */ Action(CharSequence charSequence, PendingIntent pendingIntent, CharSequence charSequence2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, pendingIntent, (i & 4) != 0 ? null : charSequence2);
}
public static final class Builder {
private final PendingIntent pendingIntent;
private CharSequence subtitle;
private final CharSequence title;
public final Builder setSubtitle(CharSequence charSequence) {
this.subtitle = charSequence;
return this;
}
public Builder(CharSequence title, PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.title = title;
this.pendingIntent = pendingIntent;
}
public final Action build() {
return new Action(this.title, this.pendingIntent, this.subtitle);
}
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final Action fromAction(android.service.credentials.Action action) {
Intrinsics.checkNotNullParameter(action, "action");
Slice slice = action.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "action.slice");
return Action.Companion.fromSlice(slice);
}
}
@SourceDebugExtension({"SMAP\nAction.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Action.kt\nandroidx/credentials/provider/Action$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,261:1\n1855#2,2:262\n*S KotlinDebug\n*F\n+ 1 Action.kt\nandroidx/credentials/provider/Action$Companion\n*L\n169#1:262,2\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(Action action) {
Slice.Builder addText;
Slice.Builder addText2;
Slice.Builder addHints;
Slice build;
Slice build2;
Intrinsics.checkNotNullParameter(action, "action");
CharSequence title = action.getTitle();
CharSequence subtitle = action.getSubtitle();
PendingIntent pendingIntent = action.getPendingIntent();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
addText = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m("Action", 0)).addText(title, null, CollectionsKt__CollectionsJVMKt.listOf(Action.SLICE_HINT_TITLE));
addText2 = addText.addText(subtitle, null, CollectionsKt__CollectionsJVMKt.listOf(Action.SLICE_HINT_SUBTITLE));
addHints = Action$Companion$$ExternalSyntheticApiModelOutline11.m(addText2).addHints(Collections.singletonList(Action.SLICE_HINT_PENDING_INTENT));
build = addHints.build();
addText2.addAction(pendingIntent, build, null);
build2 = addText2.build();
Intrinsics.checkNotNullExpressionValue(build2, "sliceBuilder.build()");
return build2;
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Action fromSlice(Slice slice) {
List items;
boolean hasHint;
boolean hasHint2;
boolean hasHint3;
Intrinsics.checkNotNullParameter(slice, "slice");
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
CharSequence charSequence = "";
PendingIntent pendingIntent = null;
CharSequence charSequence2 = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(Action.SLICE_HINT_TITLE);
if (hasHint) {
charSequence = m.getText();
Intrinsics.checkNotNullExpressionValue(charSequence, "it.text");
} else {
hasHint2 = m.hasHint(Action.SLICE_HINT_SUBTITLE);
if (hasHint2) {
charSequence2 = m.getText();
} else {
hasHint3 = m.hasHint(Action.SLICE_HINT_PENDING_INTENT);
if (hasHint3) {
pendingIntent = m.getAction();
}
}
}
}
try {
Intrinsics.checkNotNull(pendingIntent);
return new Action(charSequence, pendingIntent, charSequence2);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
public final Action fromAction(android.service.credentials.Action action) {
Intrinsics.checkNotNullParameter(action, "action");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromAction(action);
}
return null;
}
public final void marshall$credentials_release(List<Action> list, Bundle bundle) {
Intrinsics.checkNotNullParameter(list, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putInt(Action.EXTRA_ACTION_SIZE, list.size());
int size = list.size();
for (int i = 0; i < size; i++) {
bundle.putParcelable(Action.EXTRA_ACTION_PENDING_INTENT_PREFIX + i, list.get(i).getPendingIntent());
bundle.putCharSequence(Action.EXTRA_ACTION_TITLE_PREFIX + i, list.get(i).getTitle());
bundle.putCharSequence(Action.EXTRA_ACTION_SUBTITLE_PREFIX + i, list.get(i).getSubtitle());
}
}
public final List<Action> unmarshallActionList$credentials_release(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "<this>");
ArrayList arrayList = new ArrayList();
int i = bundle.getInt(Action.EXTRA_ACTION_SIZE, 0);
for (int i2 = 0; i2 < i; i2++) {
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(Action.EXTRA_ACTION_PENDING_INTENT_PREFIX + i2);
CharSequence charSequence = bundle.getCharSequence(Action.EXTRA_ACTION_TITLE_PREFIX + i2);
CharSequence charSequence2 = bundle.getCharSequence(Action.EXTRA_ACTION_SUBTITLE_PREFIX + i2);
if (pendingIntent == null || charSequence == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
arrayList.add(new Action(charSequence, pendingIntent, charSequence2));
}
return arrayList;
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Action)) {
return false;
}
Action action = (Action) obj;
return Intrinsics.areEqual(this.title, action.title) && Intrinsics.areEqual(this.pendingIntent, action.pendingIntent) && Intrinsics.areEqual(this.subtitle, action.subtitle);
}
public int hashCode() {
int hashCode = ((this.title.hashCode() * 31) + this.pendingIntent.hashCode()) * 31;
CharSequence charSequence = this.subtitle;
return hashCode + (charSequence != null ? charSequence.hashCode() : 0);
}
}

View File

@@ -0,0 +1,221 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nAuthenticationAction.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AuthenticationAction.kt\nandroidx/credentials/provider/AuthenticationAction\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,231:1\n1#2:232\n*E\n"})
/* loaded from: classes.dex */
public final class AuthenticationAction {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_AUTH_ACTION_PENDING_INTENT_PREFIX = "androidx.credentials.provider.extra.AUTH_ACTION_PENDING_INTENT_";
private static final String EXTRA_AUTH_ACTION_SIZE = "androidx.credentials.provider.extra.AUTH_ACTION_SIZE";
private static final String EXTRA_AUTH_ACTION_TITLE_PREFIX = "androidx.credentials.provider.extra.AUTH_ACTION_TITLE_";
private static final String SLICE_HINT_PENDING_INTENT = "androidx.credentials.provider.authenticationAction.SLICE_HINT_PENDING_INTENT";
private static final String SLICE_HINT_TITLE = "androidx.credentials.provider.authenticationAction.SLICE_HINT_TITLE";
private static final int SLICE_SPEC_REVISION = 0;
private static final String SLICE_SPEC_TYPE = "AuthenticationAction";
private static final String TAG = "AuthenticationAction";
private final PendingIntent pendingIntent;
private final CharSequence title;
@RequiresApi(34)
public static final AuthenticationAction fromAction(android.service.credentials.Action action) {
return Companion.fromAction(action);
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final AuthenticationAction fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(AuthenticationAction authenticationAction) {
return Companion.toSlice(authenticationAction);
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final CharSequence getTitle() {
return this.title;
}
public AuthenticationAction(CharSequence title, PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.title = title;
this.pendingIntent = pendingIntent;
if (title.length() <= 0) {
throw new IllegalArgumentException("title must not be empty".toString());
}
}
public static final class Builder {
private final PendingIntent pendingIntent;
private final CharSequence title;
public Builder(CharSequence title, PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.title = title;
this.pendingIntent = pendingIntent;
}
public final AuthenticationAction build() {
return new AuthenticationAction(this.title, this.pendingIntent);
}
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final AuthenticationAction fromAction(android.service.credentials.Action authenticationAction) {
Intrinsics.checkNotNullParameter(authenticationAction, "authenticationAction");
Slice slice = authenticationAction.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "authenticationAction.slice");
return AuthenticationAction.Companion.fromSlice(slice);
}
}
@SourceDebugExtension({"SMAP\nAuthenticationAction.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AuthenticationAction.kt\nandroidx/credentials/provider/AuthenticationAction$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,231:1\n1855#2,2:232\n*S KotlinDebug\n*F\n+ 1 AuthenticationAction.kt\nandroidx/credentials/provider/AuthenticationAction$Companion\n*L\n143#1:232,2\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(AuthenticationAction authenticationAction) {
Slice.Builder addHints;
Slice build;
Slice.Builder addAction;
Slice build2;
Intrinsics.checkNotNullParameter(authenticationAction, "authenticationAction");
CharSequence title = authenticationAction.getTitle();
PendingIntent pendingIntent = authenticationAction.getPendingIntent();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
Slice.Builder m = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m("AuthenticationAction", 0));
addHints = Action$Companion$$ExternalSyntheticApiModelOutline11.m(m).addHints(Collections.singletonList(AuthenticationAction.SLICE_HINT_PENDING_INTENT));
build = addHints.build();
addAction = m.addAction(pendingIntent, build, null);
addAction.addText(title, null, CollectionsKt__CollectionsJVMKt.listOf(AuthenticationAction.SLICE_HINT_TITLE));
build2 = m.build();
Intrinsics.checkNotNullExpressionValue(build2, "sliceBuilder.build()");
return build2;
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final AuthenticationAction fromSlice(Slice slice) {
List items;
boolean hasHint;
boolean hasHint2;
Intrinsics.checkNotNullParameter(slice, "slice");
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
CharSequence charSequence = null;
PendingIntent pendingIntent = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(AuthenticationAction.SLICE_HINT_PENDING_INTENT);
if (hasHint) {
pendingIntent = m.getAction();
} else {
hasHint2 = m.hasHint(AuthenticationAction.SLICE_HINT_TITLE);
if (hasHint2) {
charSequence = m.getText();
}
}
}
try {
Intrinsics.checkNotNull(charSequence);
Intrinsics.checkNotNull(pendingIntent);
return new AuthenticationAction(charSequence, pendingIntent);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
@RequiresApi(34)
public final AuthenticationAction fromAction(android.service.credentials.Action authenticationAction) {
Intrinsics.checkNotNullParameter(authenticationAction, "authenticationAction");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromAction(authenticationAction);
}
return null;
}
public final void marshall$credentials_release(List<AuthenticationAction> list, Bundle bundle) {
Intrinsics.checkNotNullParameter(list, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putInt(AuthenticationAction.EXTRA_AUTH_ACTION_SIZE, list.size());
int size = list.size();
for (int i = 0; i < size; i++) {
bundle.putParcelable(AuthenticationAction.EXTRA_AUTH_ACTION_PENDING_INTENT_PREFIX + i, list.get(i).getPendingIntent());
bundle.putCharSequence(AuthenticationAction.EXTRA_AUTH_ACTION_TITLE_PREFIX + i, list.get(i).getTitle());
}
}
public final List<AuthenticationAction> unmarshallAuthActionList$credentials_release(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "<this>");
ArrayList arrayList = new ArrayList();
int i = bundle.getInt(AuthenticationAction.EXTRA_AUTH_ACTION_SIZE, 0);
for (int i2 = 0; i2 < i; i2++) {
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(AuthenticationAction.EXTRA_AUTH_ACTION_PENDING_INTENT_PREFIX + i2);
CharSequence charSequence = bundle.getCharSequence(AuthenticationAction.EXTRA_AUTH_ACTION_TITLE_PREFIX + i2);
if (pendingIntent == null || charSequence == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
arrayList.add(new AuthenticationAction(charSequence, pendingIntent));
}
return arrayList;
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof AuthenticationAction)) {
return false;
}
AuthenticationAction authenticationAction = (AuthenticationAction) obj;
return Intrinsics.areEqual(this.title, authenticationAction.title) && Intrinsics.areEqual(this.pendingIntent, authenticationAction.pendingIntent);
}
public int hashCode() {
return (this.title.hashCode() * 31) + this.pendingIntent.hashCode();
}
}

View File

@@ -0,0 +1,127 @@
package androidx.credentials.provider;
import androidx.annotation.RestrictTo;
import java.util.LinkedHashMap;
import java.util.Objects;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class AuthenticationError {
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_ERROR = "androidx.credentials.provider.BIOMETRIC_AUTH_ERROR_CODE";
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_ERROR_FALLBACK = "BIOMETRIC_AUTH_ERROR_CODE";
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_ERROR_MESSAGE = "androidx.credentials.provider.BIOMETRIC_AUTH_ERROR_MESSAGE";
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_ERROR_MESSAGE_FALLBACK = "BIOMETRIC_AUTH_ERROR_MESSAGE";
private static final LinkedHashMap<Integer, Integer> biometricFrameworkToJetpackErrorMap;
private final int errorCode;
private final CharSequence errorMsg;
public static final Companion Companion = new Companion(null);
private static final String TAG = "AuthenticationError";
/* JADX WARN: Multi-variable type inference failed */
public AuthenticationError(int i) {
this(i, null, 2, 0 == true ? 1 : 0);
}
public final int getErrorCode() {
return this.errorCode;
}
public final CharSequence getErrorMsg() {
return this.errorMsg;
}
public AuthenticationError(int i, CharSequence charSequence) {
this.errorCode = i;
this.errorMsg = charSequence;
}
public /* synthetic */ AuthenticationError(int i, CharSequence charSequence, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(i, (i2 & 2) != 0 ? null : charSequence);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final AuthenticationError createFrom$credentials_release(int i, CharSequence uiErrorMessage) {
Intrinsics.checkNotNullParameter(uiErrorMessage, "uiErrorMessage");
return createFrom$credentials_release$default(this, i, uiErrorMessage, false, 4, null);
}
private Companion() {
}
public final String getTAG$credentials_release() {
return AuthenticationError.TAG;
}
public final LinkedHashMap<Integer, Integer> getBiometricFrameworkToJetpackErrorMap$credentials_release() {
return AuthenticationError.biometricFrameworkToJetpackErrorMap;
}
public final int convertFrameworkBiometricErrorToJetpack$credentials_release(int i) {
if (getBiometricFrameworkToJetpackErrorMap$credentials_release().containsKey(Integer.valueOf(i))) {
Integer num = getBiometricFrameworkToJetpackErrorMap$credentials_release().get(Integer.valueOf(i));
Intrinsics.checkNotNull(num);
Intrinsics.checkNotNullExpressionValue(num, "{\n biomet…workCode]!!\n }");
return num.intValue();
}
getTAG$credentials_release();
StringBuilder sb = new StringBuilder();
sb.append("Unexpected error code, ");
sb.append(i);
sb.append(", ");
return i;
}
public static /* synthetic */ AuthenticationError createFrom$credentials_release$default(Companion companion, int i, CharSequence charSequence, boolean z, int i2, Object obj) {
if ((i2 & 4) != 0) {
z = true;
}
return companion.createFrom$credentials_release(i, charSequence, z);
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final AuthenticationError createFrom$credentials_release(int i, CharSequence uiErrorMessage, boolean z) {
Intrinsics.checkNotNullParameter(uiErrorMessage, "uiErrorMessage");
if (z) {
i = convertFrameworkBiometricErrorToJetpack$credentials_release(i);
}
return new AuthenticationError(i, uiErrorMessage);
}
}
static {
LinkedHashMap<Integer, Integer> linkedMapOf;
linkedMapOf = MapsKt__MapsKt.linkedMapOf(TuplesKt.to(5, 5), TuplesKt.to(12, 12), TuplesKt.to(1, 1), TuplesKt.to(7, 7), TuplesKt.to(9, 9), TuplesKt.to(11, 11), TuplesKt.to(14, 14), TuplesKt.to(4, 4), TuplesKt.to(15, 15), TuplesKt.to(3, 3), TuplesKt.to(2, 2), TuplesKt.to(10, 10), TuplesKt.to(8, 8));
biometricFrameworkToJetpackErrorMap = linkedMapOf;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof AuthenticationError)) {
return false;
}
AuthenticationError authenticationError = (AuthenticationError) obj;
return this.errorCode == authenticationError.errorCode && Intrinsics.areEqual(this.errorMsg, authenticationError.errorMsg);
}
public int hashCode() {
return Objects.hash(Integer.valueOf(this.errorCode), this.errorMsg);
}
}

View File

@@ -0,0 +1,14 @@
package androidx.credentials.provider;
import androidx.annotation.RestrictTo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public @interface AuthenticationErrorTypes {
}

View File

@@ -0,0 +1,95 @@
package androidx.credentials.provider;
import androidx.annotation.RestrictTo;
import java.util.LinkedHashMap;
import java.util.Objects;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class AuthenticationResult {
public static final Companion Companion = new Companion(null);
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_RESULT_TYPE = "androidx.credentials.provider.BIOMETRIC_AUTH_RESULT";
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final String EXTRA_BIOMETRIC_AUTH_RESULT_TYPE_FALLBACK = "BIOMETRIC_AUTH_RESULT";
private static final LinkedHashMap<Integer, Integer> biometricFrameworkToJetpackResultMap;
private final int authenticationType;
public final int getAuthenticationType() {
return this.authenticationType;
}
public AuthenticationResult(int i) {
this.authenticationType = i;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final AuthenticationResult createFrom$credentials_release(int i) {
return createFrom$credentials_release$default(this, i, false, 2, null);
}
private Companion() {
}
public final LinkedHashMap<Integer, Integer> getBiometricFrameworkToJetpackResultMap$credentials_release() {
return AuthenticationResult.biometricFrameworkToJetpackResultMap;
}
public final int convertFrameworkBiometricResultToJetpack$credentials_release(int i) {
if (getBiometricFrameworkToJetpackResultMap$credentials_release().containsKey(Integer.valueOf(i))) {
Integer num = getBiometricFrameworkToJetpackResultMap$credentials_release().get(Integer.valueOf(i));
Intrinsics.checkNotNull(num);
Intrinsics.checkNotNullExpressionValue(num, "{\n biomet…workCode]!!\n }");
return num.intValue();
}
AuthenticationError.Companion.getTAG$credentials_release();
StringBuilder sb = new StringBuilder();
sb.append("Non framework result code, ");
sb.append(i);
sb.append(", ");
return i;
}
public static /* synthetic */ AuthenticationResult createFrom$credentials_release$default(Companion companion, int i, boolean z, int i2, Object obj) {
if ((i2 & 2) != 0) {
z = true;
}
return companion.createFrom$credentials_release(i, z);
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final AuthenticationResult createFrom$credentials_release(int i, boolean z) {
if (z) {
i = convertFrameworkBiometricResultToJetpack$credentials_release(i);
}
return new AuthenticationResult(i);
}
}
static {
LinkedHashMap<Integer, Integer> linkedMapOf;
linkedMapOf = MapsKt__MapsKt.linkedMapOf(TuplesKt.to(2, 2), TuplesKt.to(1, 1));
biometricFrameworkToJetpackResultMap = linkedMapOf;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof AuthenticationResult) && this.authenticationType == ((AuthenticationResult) obj).authenticationType;
}
public int hashCode() {
return Objects.hash(Integer.valueOf(this.authenticationType));
}
}

View File

@@ -0,0 +1,14 @@
package androidx.credentials.provider;
import androidx.annotation.RestrictTo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public @interface AuthenticationResultTypes {
}

View File

@@ -0,0 +1,14 @@
package androidx.credentials.provider;
import androidx.annotation.RestrictTo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public @interface AuthenticatorTypes {
}

View File

@@ -0,0 +1,152 @@
package androidx.credentials.provider;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.credentials.PasswordCredential;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.internal.FrameworkClassParsingException;
import androidx.credentials.provider.utils.BeginCreateCredentialUtil;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* loaded from: classes.dex */
public abstract class BeginCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
private final CallingAppInfo callingAppInfo;
private final Bundle candidateQueryData;
private final String type;
public static final Bundle asBundle(BeginCreateCredentialRequest beginCreateCredentialRequest) {
return Companion.asBundle(beginCreateCredentialRequest);
}
public static final BeginCreateCredentialRequest fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final CallingAppInfo getCallingAppInfo() {
return this.callingAppInfo;
}
public final Bundle getCandidateQueryData() {
return this.candidateQueryData;
}
public final String getType() {
return this.type;
}
public BeginCreateCredentialRequest(String type, Bundle candidateQueryData, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
this.type = type;
this.candidateQueryData = candidateQueryData;
this.callingAppInfo = callingAppInfo;
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private static final String REQUEST_KEY = "androidx.credentials.provider.BeginCreateCredentialRequest";
private Api34Impl() {
}
public static final void asBundle(Bundle bundle, BeginCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(request, "request");
bundle.putParcelable(REQUEST_KEY, BeginCreateCredentialUtil.Companion.convertToFrameworkRequest(request));
}
public static final BeginCreateCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
android.service.credentials.BeginCreateCredentialRequest beginCreateCredentialRequest = (android.service.credentials.BeginCreateCredentialRequest) bundle.getParcelable(REQUEST_KEY, android.service.credentials.BeginCreateCredentialRequest.class);
if (beginCreateCredentialRequest != null) {
return BeginCreateCredentialUtil.Companion.convertToJetpackRequest$credentials_release(beginCreateCredentialRequest);
}
return null;
}
}
@SourceDebugExtension({"SMAP\nBeginCreateCredentialRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginCreateCredentialRequest.kt\nandroidx/credentials/provider/BeginCreateCredentialRequest$Api21Impl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,149:1\n1#2:150\n*E\n"})
public static final class Api21Impl {
private static final String EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_CANDIDATE_QUERY_DATA = "androidx.credentials.provider.extra.BEGIN_CREATE_CREDENTIAL_REQUEST_CANDIDATE_QUERY_DATA";
private static final String EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_TYPE = "androidx.credentials.provider.extra.BEGIN_CREATE_CREDENTIAL_REQUEST_TYPE";
public static final Api21Impl INSTANCE = new Api21Impl();
private Api21Impl() {
}
public static final void asBundle(Bundle bundle, BeginCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(request, "request");
bundle.putString(EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_TYPE, request.getType());
bundle.putBundle(EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_CANDIDATE_QUERY_DATA, request.getCandidateQueryData());
CallingAppInfo callingAppInfo = request.getCallingAppInfo();
if (callingAppInfo != null) {
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, callingAppInfo);
}
}
public static final BeginCreateCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
String string = bundle.getString(EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_TYPE);
if (string == null) {
return null;
}
Bundle bundle2 = bundle.getBundle(EXTRA_BEGIN_CREATE_CREDENTIAL_REQUEST_CANDIDATE_QUERY_DATA);
if (bundle2 == null) {
bundle2 = new Bundle();
}
return BeginCreateCredentialRequest.Companion.createFrom$credentials_release(string, bundle2, CallingAppInfo.Companion.extractCallingAppInfo$credentials_release(bundle));
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginCreateCredentialRequest createFrom$credentials_release(String type, Bundle candidateQueryData, CallingAppInfo callingAppInfo) {
BeginCreateCustomCredentialRequest beginCreateCustomCredentialRequest;
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
try {
} catch (FrameworkClassParsingException unused) {
beginCreateCustomCredentialRequest = new BeginCreateCustomCredentialRequest(type, candidateQueryData, callingAppInfo);
}
if (Intrinsics.areEqual(type, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
return BeginCreatePasswordCredentialRequest.Companion.createFrom$credentials_release(candidateQueryData, callingAppInfo);
}
if (Intrinsics.areEqual(type, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
return BeginCreatePublicKeyCredentialRequest.Companion.createFrom$credentials_release(candidateQueryData, callingAppInfo);
}
beginCreateCustomCredentialRequest = new BeginCreateCustomCredentialRequest(type, candidateQueryData, callingAppInfo);
return beginCreateCustomCredentialRequest;
}
public final Bundle asBundle(BeginCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Bundle bundle = new Bundle();
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.asBundle(bundle, request);
} else {
Api21Impl.asBundle(bundle, request);
}
return bundle;
}
public final BeginCreateCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromBundle(bundle);
}
return Api21Impl.fromBundle(bundle);
}
}
}

View File

@@ -0,0 +1,157 @@
package androidx.credentials.provider;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.credentials.provider.utils.BeginCreateCredentialUtil;
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 BeginCreateCredentialResponse {
public static final Companion Companion = new Companion(null);
private final List<CreateEntry> createEntries;
private final RemoteEntry remoteEntry;
/* JADX WARN: Multi-variable type inference failed */
public BeginCreateCredentialResponse() {
this(null, 0 == true ? 1 : 0, 3, 0 == true ? 1 : 0);
}
public static final Bundle asBundle(BeginCreateCredentialResponse beginCreateCredentialResponse) {
return Companion.asBundle(beginCreateCredentialResponse);
}
public static final BeginCreateCredentialResponse fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final List<CreateEntry> getCreateEntries() {
return this.createEntries;
}
public final RemoteEntry getRemoteEntry() {
return this.remoteEntry;
}
public BeginCreateCredentialResponse(List<CreateEntry> createEntries, RemoteEntry remoteEntry) {
Intrinsics.checkNotNullParameter(createEntries, "createEntries");
this.createEntries = createEntries;
this.remoteEntry = remoteEntry;
}
public /* synthetic */ BeginCreateCredentialResponse(List list, RemoteEntry remoteEntry, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? CollectionsKt__CollectionsKt.emptyList() : list, (i & 2) != 0 ? null : remoteEntry);
}
public static final class Builder {
private List<CreateEntry> createEntries = new ArrayList();
private RemoteEntry remoteEntry;
public final Builder setRemoteEntry(RemoteEntry remoteEntry) {
this.remoteEntry = remoteEntry;
return this;
}
public final Builder setCreateEntries(List<CreateEntry> createEntries) {
Intrinsics.checkNotNullParameter(createEntries, "createEntries");
this.createEntries = CollectionsKt___CollectionsKt.toMutableList((Collection) createEntries);
return this;
}
public final Builder addCreateEntry(CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
this.createEntries.add(createEntry);
return this;
}
public final BeginCreateCredentialResponse build() {
return new BeginCreateCredentialResponse(CollectionsKt___CollectionsKt.toList(this.createEntries), 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.BeginCreateCredentialResponse";
private Api34Impl() {
}
public static final void asBundle(Bundle bundle, BeginCreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(response, "response");
bundle.putParcelable(REQUEST_KEY, BeginCreateCredentialUtil.Companion.convertToFrameworkResponse(response));
}
public static final BeginCreateCredentialResponse fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
android.service.credentials.BeginCreateCredentialResponse beginCreateCredentialResponse = (android.service.credentials.BeginCreateCredentialResponse) bundle.getParcelable(REQUEST_KEY, android.service.credentials.BeginCreateCredentialResponse.class);
if (beginCreateCredentialResponse != null) {
return BeginCreateCredentialUtil.Companion.convertToJetpackResponse(beginCreateCredentialResponse);
}
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, BeginCreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(response, "response");
CreateEntry.Companion.marshall$credentials_release(response.getCreateEntries(), bundle);
RemoteEntry remoteEntry = response.getRemoteEntry();
if (remoteEntry != null) {
RemoteEntry.Companion.marshall$credentials_release(remoteEntry, bundle);
}
}
public static final BeginCreateCredentialResponse fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
List<CreateEntry> unmarshallCreateEntries$credentials_release = CreateEntry.Companion.unmarshallCreateEntries$credentials_release(bundle);
RemoteEntry unmarshallRemoteEntry$credentials_release = RemoteEntry.Companion.unmarshallRemoteEntry$credentials_release(bundle);
if (unmarshallCreateEntries$credentials_release.isEmpty() && unmarshallRemoteEntry$credentials_release == null) {
return null;
}
return new BeginCreateCredentialResponse(unmarshallCreateEntries$credentials_release, unmarshallRemoteEntry$credentials_release);
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final Bundle asBundle(BeginCreateCredentialResponse 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 BeginCreateCredentialResponse fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromBundle(bundle);
}
return Api23Impl.fromBundle(bundle);
}
}
}

View File

@@ -0,0 +1,19 @@
package androidx.credentials.provider;
import android.os.Bundle;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nBeginCreateCustomCredentialRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginCreateCustomCredentialRequest.kt\nandroidx/credentials/provider/BeginCreateCustomCredentialRequest\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,52:1\n1#2:53\n*E\n"})
/* loaded from: classes.dex */
public class BeginCreateCustomCredentialRequest extends BeginCreateCredentialRequest {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginCreateCustomCredentialRequest(String type, Bundle candidateQueryData, CallingAppInfo callingAppInfo) {
super(type, candidateQueryData, callingAppInfo);
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
if (type.length() <= 0) {
throw new IllegalArgumentException("type should not be empty".toString());
}
}
}

View File

@@ -0,0 +1,36 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.credentials.PasswordCredential;
import androidx.credentials.internal.FrameworkClassParsingException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BeginCreatePasswordCredentialRequest extends BeginCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginCreatePasswordCredentialRequest(CallingAppInfo callingAppInfo, Bundle candidateQueryData) {
super(PasswordCredential.TYPE_PASSWORD_CREDENTIAL, candidateQueryData, callingAppInfo);
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginCreatePasswordCredentialRequest createFrom$credentials_release(Bundle data, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(data, "data");
try {
return new BeginCreatePasswordCredentialRequest(callingAppInfo, data);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
}
}

View File

@@ -0,0 +1,84 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.internal.FrameworkClassParsingException;
import androidx.credentials.provider.utils.RequestValidationUtil;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BeginCreatePublicKeyCredentialRequest extends BeginCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
private final byte[] clientDataHash;
private final String requestJson;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public BeginCreatePublicKeyCredentialRequest(String requestJson, CallingAppInfo callingAppInfo, Bundle candidateQueryData) {
this(requestJson, callingAppInfo, candidateQueryData, null, 8, null);
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
}
@VisibleForTesting
public static final BeginCreatePublicKeyCredentialRequest createForTest(Bundle bundle, CallingAppInfo callingAppInfo) {
return Companion.createForTest(bundle, callingAppInfo);
}
public final byte[] getClientDataHash() {
return this.clientDataHash;
}
public final String getRequestJson() {
return this.requestJson;
}
public /* synthetic */ BeginCreatePublicKeyCredentialRequest(String str, CallingAppInfo callingAppInfo, Bundle bundle, byte[] bArr, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, callingAppInfo, bundle, (i & 8) != 0 ? null : bArr);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginCreatePublicKeyCredentialRequest(String requestJson, CallingAppInfo callingAppInfo, Bundle candidateQueryData, byte[] bArr) {
super(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, candidateQueryData, callingAppInfo);
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
this.requestJson = requestJson;
this.clientDataHash = bArr;
if (!RequestValidationUtil.Companion.isValidJSON(requestJson)) {
throw new IllegalArgumentException("requestJson must not be empty, and must be a valid JSON".toString());
}
initiateBundle(candidateQueryData, requestJson);
}
private final void initiateBundle(Bundle bundle, String str) {
bundle.putString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON", str);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@VisibleForTesting
public final BeginCreatePublicKeyCredentialRequest createForTest(Bundle data, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(data, "data");
return createFrom$credentials_release(data, callingAppInfo);
}
public final BeginCreatePublicKeyCredentialRequest createFrom$credentials_release(Bundle data, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(data, "data");
try {
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
byte[] byteArray = data.getByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH");
Intrinsics.checkNotNull(string);
return new BeginCreatePublicKeyCredentialRequest(string, callingAppInfo, data, byteArray);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
}
}

View File

@@ -0,0 +1,58 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.credentials.PasswordCredential;
import androidx.credentials.PublicKeyCredential;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public abstract class BeginGetCredentialOption {
public static final Companion Companion = new Companion(null);
private final Bundle candidateQueryData;
private final String id;
private final String type;
public final Bundle getCandidateQueryData() {
return this.candidateQueryData;
}
public final String getId() {
return this.id;
}
public final String getType() {
return this.type;
}
public BeginGetCredentialOption(String id, String type, Bundle candidateQueryData) {
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
this.id = id;
this.type = type;
this.candidateQueryData = candidateQueryData;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginGetCredentialOption createFrom$credentials_release(String id, String type, Bundle candidateQueryData) {
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
if (Intrinsics.areEqual(type, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
return BeginGetPasswordOption.Companion.createFrom$credentials_release(candidateQueryData, id);
}
if (Intrinsics.areEqual(type, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
return BeginGetPublicKeyCredentialOption.Companion.createFrom$credentials_release(candidateQueryData, id);
}
return new BeginGetCustomCredentialOption(id, type, candidateQueryData);
}
}
}

View File

@@ -0,0 +1,158 @@
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.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* loaded from: classes.dex */
public final class BeginGetCredentialRequest {
public static final Companion Companion = new Companion(null);
private final List<BeginGetCredentialOption> beginGetCredentialOptions;
private final CallingAppInfo callingAppInfo;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public BeginGetCredentialRequest(List<? extends BeginGetCredentialOption> beginGetCredentialOptions) {
this(beginGetCredentialOptions, null, 2, 0 == true ? 1 : 0);
Intrinsics.checkNotNullParameter(beginGetCredentialOptions, "beginGetCredentialOptions");
}
public static final Bundle asBundle(BeginGetCredentialRequest beginGetCredentialRequest) {
return Companion.asBundle(beginGetCredentialRequest);
}
public static final BeginGetCredentialRequest fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final List<BeginGetCredentialOption> getBeginGetCredentialOptions() {
return this.beginGetCredentialOptions;
}
public final CallingAppInfo getCallingAppInfo() {
return this.callingAppInfo;
}
/* JADX WARN: Multi-variable type inference failed */
public BeginGetCredentialRequest(List<? extends BeginGetCredentialOption> beginGetCredentialOptions, CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(beginGetCredentialOptions, "beginGetCredentialOptions");
this.beginGetCredentialOptions = beginGetCredentialOptions;
this.callingAppInfo = callingAppInfo;
}
public /* synthetic */ BeginGetCredentialRequest(List list, CallingAppInfo callingAppInfo, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(list, (i & 2) != 0 ? null : callingAppInfo);
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private static final String REQUEST_KEY = "androidx.credentials.provider.BeginGetCredentialRequest";
private Api34Impl() {
}
public static final void asBundle(Bundle bundle, BeginGetCredentialRequest request) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(request, "request");
bundle.putParcelable(REQUEST_KEY, BeginGetCredentialUtil.Companion.convertToFrameworkRequest(request));
}
public static final BeginGetCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
android.service.credentials.BeginGetCredentialRequest beginGetCredentialRequest = (android.service.credentials.BeginGetCredentialRequest) bundle.getParcelable(REQUEST_KEY, android.service.credentials.BeginGetCredentialRequest.class);
if (beginGetCredentialRequest != null) {
return BeginGetCredentialUtil.Companion.convertToJetpackRequest$credentials_release(beginGetCredentialRequest);
}
return null;
}
}
@SourceDebugExtension({"SMAP\nBeginGetCredentialRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginGetCredentialRequest.kt\nandroidx/credentials/provider/BeginGetCredentialRequest$Api21Impl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,163:1\n1#2:164\n*E\n"})
public static final class Api21Impl {
private static final String EXTRA_BEGIN_GET_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX = "androidx.credentials.provider.extra.EXTRA_BEGIN_GET_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_";
private static final String EXTRA_BEGIN_GET_CREDENTIAL_OPTION_ID_PREFIX = "androidx.credentials.provider.extra.EXTRA_BEGIN_GET_CREDENTIAL_OPTION_ID_";
private static final String EXTRA_BEGIN_GET_CREDENTIAL_OPTION_SIZE = "androidx.credentials.provider.extra.EXTRA_BEGIN_GET_CREDENTIAL_OPTION_SIZE";
private static final String EXTRA_BEGIN_GET_CREDENTIAL_OPTION_TYPE_PREFIX = "androidx.credentials.provider.extra.EXTRA_BEGIN_GET_CREDENTIAL_OPTION_TYPE_";
public static final Api21Impl INSTANCE = new Api21Impl();
private Api21Impl() {
}
public static final void asBundle(Bundle bundle, BeginGetCredentialRequest request) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(request, "request");
int size = request.getBeginGetCredentialOptions().size();
bundle.putInt(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_SIZE, size);
for (int i = 0; i < size; i++) {
bundle.putString(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_ID_PREFIX + i, request.getBeginGetCredentialOptions().get(i).getId());
bundle.putString(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_TYPE_PREFIX + i, request.getBeginGetCredentialOptions().get(i).getType());
bundle.putBundle(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX + i, request.getBeginGetCredentialOptions().get(i).getCandidateQueryData());
CallingAppInfo callingAppInfo = request.getCallingAppInfo();
if (callingAppInfo != null) {
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, callingAppInfo);
}
}
}
public static final BeginGetCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
CallingAppInfo extractCallingAppInfo$credentials_release = CallingAppInfo.Companion.extractCallingAppInfo$credentials_release(bundle);
int i = bundle.getInt(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_SIZE, -1);
if (i < 0) {
return null;
}
ArrayList arrayList = new ArrayList();
for (int i2 = 0; i2 < i; i2++) {
String string = bundle.getString(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_ID_PREFIX + i2);
if (string == null) {
return null;
}
String string2 = bundle.getString(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_TYPE_PREFIX + i2);
if (string2 == null) {
return null;
}
Bundle bundle2 = bundle.getBundle(EXTRA_BEGIN_GET_CREDENTIAL_OPTION_CANDIDATE_QUERY_DATA_PREFIX + i2);
if (bundle2 == null) {
bundle2 = new Bundle();
}
arrayList.add(BeginGetCredentialOption.Companion.createFrom$credentials_release(string, string2, bundle2));
}
return new BeginGetCredentialRequest(arrayList, extractCallingAppInfo$credentials_release);
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final Bundle asBundle(BeginGetCredentialRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Bundle bundle = new Bundle();
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.asBundle(bundle, request);
} else {
Api21Impl.asBundle(bundle, request);
}
return bundle;
}
public final BeginGetCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromBundle(bundle);
}
return Api21Impl.fromBundle(bundle);
}
}
}

View File

@@ -0,0 +1,201 @@
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);
}
}
}

View File

@@ -0,0 +1,49 @@
package androidx.credentials.provider;
import android.os.Bundle;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nBeginGetCustomCredentialOption.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginGetCustomCredentialOption.kt\nandroidx/credentials/provider/BeginGetCustomCredentialOption\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,67:1\n1#2:68\n*E\n"})
/* loaded from: classes.dex */
public class BeginGetCustomCredentialOption extends BeginGetCredentialOption {
public static final Companion Companion = new Companion(null);
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginGetCustomCredentialOption(String id, String type, Bundle candidateQueryData) {
super(id, type, candidateQueryData);
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
if (id.length() <= 0) {
throw new IllegalArgumentException("id should not be empty".toString());
}
if (type.length() <= 0) {
throw new IllegalArgumentException("type should not be empty".toString());
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginGetCustomCredentialOption createFrom$credentials_release(Bundle data, String id, String type) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(type, "type");
return new BeginGetCustomCredentialOption(id, type, data);
}
public final BeginGetCustomCredentialOption createFromEntrySlice$credentials_release(Bundle data, String id, String type) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(type, "type");
return new BeginGetCustomCredentialOption(id, type, data);
}
}
}

View File

@@ -0,0 +1,78 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.credentials.PasswordCredential;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BeginGetPasswordOption extends BeginGetCredentialOption {
public static final Companion Companion = new Companion(null);
private final Set<String> allowedUserIds;
@VisibleForTesting
public static final BeginGetPasswordOption createForTest(Bundle bundle, String str) {
return Companion.createForTest(bundle, str);
}
public final Set<String> getAllowedUserIds() {
return this.allowedUserIds;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginGetPasswordOption(Set<String> allowedUserIds, Bundle candidateQueryData, String id) {
super(id, PasswordCredential.TYPE_PASSWORD_CREDENTIAL, candidateQueryData);
Intrinsics.checkNotNullParameter(allowedUserIds, "allowedUserIds");
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
Intrinsics.checkNotNullParameter(id, "id");
this.allowedUserIds = allowedUserIds;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@VisibleForTesting
public final BeginGetPasswordOption createForTest(Bundle data, String id) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
return createFrom$credentials_release(data, id);
}
/* JADX WARN: Code restructure failed: missing block: B:3:0x0014, code lost:
r0 = kotlin.collections.CollectionsKt___CollectionsKt.toSet(r0);
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final androidx.credentials.provider.BeginGetPasswordOption createFrom$credentials_release(android.os.Bundle r3, java.lang.String r4) {
/*
r2 = this;
java.lang.String r0 = "data"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r3, r0)
java.lang.String r0 = "id"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r0)
java.lang.String r0 = "androidx.credentials.BUNDLE_KEY_ALLOWED_USER_IDS"
java.util.ArrayList r0 = r3.getStringArrayList(r0)
androidx.credentials.provider.BeginGetPasswordOption r1 = new androidx.credentials.provider.BeginGetPasswordOption
if (r0 == 0) goto L1a
java.util.Set r0 = kotlin.collections.CollectionsKt.toSet(r0)
if (r0 != 0) goto L1e
L1a:
java.util.Set r0 = kotlin.collections.SetsKt.emptySet()
L1e:
r1.<init>(r0, r3, r4)
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.BeginGetPasswordOption.Companion.createFrom$credentials_release(android.os.Bundle, java.lang.String):androidx.credentials.provider.BeginGetPasswordOption");
}
}
}

View File

@@ -0,0 +1,76 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.internal.FrameworkClassParsingException;
import androidx.credentials.provider.utils.RequestValidationUtil;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BeginGetPublicKeyCredentialOption extends BeginGetCredentialOption {
public static final Companion Companion = new Companion(null);
private final byte[] clientDataHash;
private final String requestJson;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public BeginGetPublicKeyCredentialOption(Bundle candidateQueryData, String id, String requestJson) {
this(candidateQueryData, id, requestJson, null, 8, null);
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
}
public final byte[] getClientDataHash() {
return this.clientDataHash;
}
public final String getRequestJson() {
return this.requestJson;
}
public /* synthetic */ BeginGetPublicKeyCredentialOption(Bundle bundle, String str, String str2, byte[] bArr, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(bundle, str, str2, (i & 8) != 0 ? null : bArr);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BeginGetPublicKeyCredentialOption(Bundle candidateQueryData, String id, String requestJson, byte[] bArr) {
super(id, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, candidateQueryData);
Intrinsics.checkNotNullParameter(candidateQueryData, "candidateQueryData");
Intrinsics.checkNotNullParameter(id, "id");
Intrinsics.checkNotNullParameter(requestJson, "requestJson");
this.requestJson = requestJson;
this.clientDataHash = bArr;
if (!RequestValidationUtil.Companion.isValidJSON(requestJson)) {
throw new IllegalArgumentException("requestJson must not be empty, and must be a valid JSON".toString());
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BeginGetPublicKeyCredentialOption createFrom$credentials_release(Bundle data, String id) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
try {
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
byte[] byteArray = data.getByteArray("androidx.credentials.BUNDLE_KEY_CLIENT_DATA_HASH");
Intrinsics.checkNotNull(string);
return new BeginGetPublicKeyCredentialOption(data, id, string, byteArray);
} catch (Exception unused) {
throw new FrameworkClassParsingException();
}
}
public final BeginGetPublicKeyCredentialOption createFromEntrySlice$credentials_release(Bundle data, String id) {
Intrinsics.checkNotNullParameter(data, "data");
Intrinsics.checkNotNullParameter(id, "id");
return new BeginGetPublicKeyCredentialOption(data, id, "{\"dummy_key\":\"dummy_value\"}", null, 8, null);
}
}
}

View File

@@ -0,0 +1,190 @@
package androidx.credentials.provider;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.biometric.BiometricPrompt;
import androidx.credentials.provider.utils.CryptoObjectUtils;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
import java.util.Set;
import kotlin.collections.SetsKt__SetsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BiometricPromptData {
private static final Set<Integer> ALLOWED_AUTHENTICATOR_VALUES;
public static final String BUNDLE_HINT_ALLOWED_AUTHENTICATORS = "androidx.credentials.provider.BUNDLE_HINT_ALLOWED_AUTHENTICATORS";
public static final String BUNDLE_HINT_CRYPTO_OP_ID = "androidx.credentials.provider.BUNDLE_HINT_CRYPTO_OP_ID";
public static final Companion Companion = new Companion(null);
private static final String TAG = "BiometricPromptData";
private final int allowedAuthenticators;
private final BiometricPrompt.CryptoObject cryptoObject;
private boolean isCreatedFromBundle;
/* JADX WARN: Multi-variable type inference failed */
public BiometricPromptData() {
this(null, 0, 3, 0 == true ? 1 : 0);
}
public BiometricPromptData(BiometricPrompt.CryptoObject cryptoObject) {
this(cryptoObject, 0, 2, null);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final BiometricPromptData fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Bundle toBundle(BiometricPromptData biometricPromptData) {
return Companion.toBundle(biometricPromptData);
}
public final int getAllowedAuthenticators() {
return this.allowedAuthenticators;
}
public final BiometricPrompt.CryptoObject getCryptoObject() {
return this.cryptoObject;
}
public BiometricPromptData(BiometricPrompt.CryptoObject cryptoObject, int i, boolean z) {
this.cryptoObject = cryptoObject;
this.allowedAuthenticators = i;
this.isCreatedFromBundle = z;
if (!z && !ALLOWED_AUTHENTICATOR_VALUES.contains(Integer.valueOf(i))) {
throw new IllegalArgumentException("The allowed authenticator must be specified according to the BiometricPrompt spec.".toString());
}
if (cryptoObject != null && !Companion.isStrongAuthenticationType(Integer.valueOf(i))) {
throw new IllegalArgumentException("If the cryptoObject is non-null, the allowedAuthenticator value must be Authenticators.BIOMETRIC_STRONG.".toString());
}
}
public /* synthetic */ BiometricPromptData(BiometricPrompt.CryptoObject cryptoObject, int i, boolean z, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? null : cryptoObject, (i2 & 2) != 0 ? 255 : i, (i2 & 4) != 0 ? false : z);
}
public /* synthetic */ BiometricPromptData(BiometricPrompt.CryptoObject cryptoObject, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? null : cryptoObject, (i2 & 2) != 0 ? 255 : i);
}
public BiometricPromptData(BiometricPrompt.CryptoObject cryptoObject, int i) {
this(cryptoObject, i, false);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final BiometricPromptData fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
try {
if (!bundle.containsKey(BiometricPromptData.BUNDLE_HINT_ALLOWED_AUTHENTICATORS)) {
throw new IllegalArgumentException("Bundle lacks allowed authenticator key.");
}
if (Build.VERSION.SDK_INT >= 35) {
return Api35Impl.fromBundle(bundle);
}
return ApiMinImpl.fromBundle(bundle);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Bundle toBundle(BiometricPromptData biometricPromptData) {
Intrinsics.checkNotNullParameter(biometricPromptData, "biometricPromptData");
if (Build.VERSION.SDK_INT >= 35) {
return Api35Impl.toBundle(biometricPromptData);
}
return ApiMinImpl.toBundle(biometricPromptData);
}
/* JADX INFO: Access modifiers changed from: private */
public final boolean isStrongAuthenticationType(Integer num) {
return num != null && (num.intValue() & PsExtractor.VIDEO_STREAM_MASK) == 0;
}
}
static {
Set<Integer> of;
of = SetsKt__SetsKt.setOf((Object[]) new Integer[]{15, 255, 32768, 32783, 33023});
ALLOWED_AUTHENTICATOR_VALUES = of;
}
public static final class Builder {
private Integer allowedAuthenticators;
private BiometricPrompt.CryptoObject cryptoObject;
public final Builder setCryptoObject(BiometricPrompt.CryptoObject cryptoObject) {
this.cryptoObject = cryptoObject;
return this;
}
public final Builder setAllowedAuthenticators(int i) {
this.allowedAuthenticators = Integer.valueOf(i);
return this;
}
public final BiometricPromptData build() {
Integer num = this.allowedAuthenticators;
return new BiometricPromptData(this.cryptoObject, num != null ? num.intValue() : 255);
}
}
public static final class ApiMinImpl {
public static final ApiMinImpl INSTANCE = new ApiMinImpl();
private ApiMinImpl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Bundle toBundle(BiometricPromptData biometricPromptData) {
Intrinsics.checkNotNullParameter(biometricPromptData, "biometricPromptData");
Bundle bundle = new Bundle();
bundle.putInt(BiometricPromptData.BUNDLE_HINT_ALLOWED_AUTHENTICATORS, biometricPromptData.getAllowedAuthenticators());
return bundle;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final BiometricPromptData fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
return new BiometricPromptData(null, bundle.getInt(BiometricPromptData.BUNDLE_HINT_ALLOWED_AUTHENTICATORS), true, 1, null);
}
}
@RequiresApi(35)
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Bundle toBundle(BiometricPromptData biometricPromptData) {
Intrinsics.checkNotNullParameter(biometricPromptData, "biometricPromptData");
Bundle bundle = new Bundle();
bundle.putInt(BiometricPromptData.BUNDLE_HINT_ALLOWED_AUTHENTICATORS, biometricPromptData.getAllowedAuthenticators());
if (biometricPromptData.getCryptoObject() != null) {
bundle.putLong(BiometricPromptData.BUNDLE_HINT_CRYPTO_OP_ID, CryptoObjectUtils.INSTANCE.getOperationHandle(biometricPromptData.getCryptoObject()));
}
return bundle;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final BiometricPromptData fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
return new BiometricPromptData(null, bundle.getInt(BiometricPromptData.BUNDLE_HINT_ALLOWED_AUTHENTICATORS), true);
}
}
}

View File

@@ -0,0 +1,66 @@
package androidx.credentials.provider;
import java.util.Objects;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class BiometricPromptResult {
private final AuthenticationError authenticationError;
private final AuthenticationResult authenticationResult;
private final boolean isSuccessful;
/* JADX WARN: Multi-variable type inference failed */
public BiometricPromptResult() {
this(null, 0 == true ? 1 : 0, 3, 0 == true ? 1 : 0);
}
public final AuthenticationError getAuthenticationError() {
return this.authenticationError;
}
public final AuthenticationResult getAuthenticationResult() {
return this.authenticationResult;
}
public final boolean isSuccessful() {
return this.isSuccessful;
}
public BiometricPromptResult(AuthenticationResult authenticationResult, AuthenticationError authenticationError) {
this.authenticationResult = authenticationResult;
this.authenticationError = authenticationError;
this.isSuccessful = authenticationResult != null;
}
public /* synthetic */ BiometricPromptResult(AuthenticationResult authenticationResult, AuthenticationError authenticationError, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : authenticationResult, (i & 2) != 0 ? null : authenticationError);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public BiometricPromptResult(AuthenticationError authenticationError) {
this(null, authenticationError);
Intrinsics.checkNotNullParameter(authenticationError, "authenticationError");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public BiometricPromptResult(AuthenticationResult authenticationResult) {
this(authenticationResult, null);
Intrinsics.checkNotNullParameter(authenticationResult, "authenticationResult");
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof BiometricPromptResult)) {
return false;
}
BiometricPromptResult biometricPromptResult = (BiometricPromptResult) obj;
return this.isSuccessful == biometricPromptResult.isSuccessful && Intrinsics.areEqual(this.authenticationResult, biometricPromptResult.authenticationResult) && Intrinsics.areEqual(this.authenticationError, biometricPromptResult.authenticationError);
}
public int hashCode() {
return Objects.hash(Boolean.valueOf(this.isSuccessful), this.authenticationResult, this.authenticationError);
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.content.pm.SigningInfo;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CallingAppInfo$Companion$$ExternalSyntheticApiModelOutline0 {
public static /* bridge */ /* synthetic */ SigningInfo m(Object obj) {
return (SigningInfo) obj;
}
}

View File

@@ -0,0 +1,309 @@
package androidx.credentials.provider;
import android.content.pm.Signature;
import android.content.pm.SigningInfo;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.DeprecatedSinceApi;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.annotation.VisibleForTesting;
import androidx.credentials.provider.utils.PrivilegedApp;
import androidx.credentials.provider.utils.RequestValidationUtil;
import com.facebook.internal.security.CertificateUtil;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import org.json.JSONException;
import org.json.JSONObject;
@SourceDebugExtension({"SMAP\nCallingAppInfo.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallingAppInfo.kt\nandroidx/credentials/provider/CallingAppInfo\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,339:1\n1#2:340\n*E\n"})
/* loaded from: classes.dex */
public final class CallingAppInfo {
public static final Companion Companion = new Companion(null);
public static final String EXTRA_CREDENTIAL_REQUEST_ORIGIN = "androidx.credentials.provider.extra.CREDENTIAL_REQUEST_ORIGIN";
private static final String EXTRA_CREDENTIAL_REQUEST_PACKAGE_NAME = "androidx.credentials.provider.extra.CREDENTIAL_REQUEST_PACKAGE_NAME";
private static final String EXTRA_CREDENTIAL_REQUEST_SIGNATURES = "androidx.credentials.provider.extra.CREDENTIAL_REQUEST_SIGNATURES";
private static final String EXTRA_CREDENTIAL_REQUEST_SIGNING_INFO = "androidx.credentials.provider.extra.CREDENTIAL_REQUEST_SIGNING_INFO";
private final String origin;
private final String packageName;
private SigningInfo signingInfo;
private final SigningInfoCompat signingInfoCompat;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@RequiresApi(28)
@VisibleForTesting
public CallingAppInfo(String packageName, SigningInfo signingInfo) {
this(packageName, signingInfo, (String) null, 4, (DefaultConstructorMarker) null);
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signingInfo, "signingInfo");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@DeprecatedSinceApi(api = 28, message = "Use the SigningInfo based constructor instead")
@VisibleForTesting
public CallingAppInfo(String packageName, List<? extends Signature> signatures) {
this(packageName, signatures, (String) null, 4, (DefaultConstructorMarker) null);
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signatures, "signatures");
}
public final String getOrigin$credentials_release() {
return this.origin;
}
public final String getPackageName() {
return this.packageName;
}
public final SigningInfoCompat getSigningInfoCompat() {
return this.signingInfoCompat;
}
public final boolean isOriginPopulated() {
return this.origin != null;
}
private CallingAppInfo(String str, String str2, SigningInfoCompat signingInfoCompat, SigningInfo signingInfo) {
this.packageName = str;
this.origin = str2;
this.signingInfoCompat = signingInfoCompat;
if (Build.VERSION.SDK_INT >= 28) {
Intrinsics.checkNotNull(signingInfo);
this.signingInfo = signingInfo;
}
if (str.length() <= 0) {
throw new IllegalArgumentException("packageName must not be empty".toString());
}
}
@RequiresApi(28)
public final SigningInfo getSigningInfo() {
SigningInfo signingInfo = this.signingInfo;
if (signingInfo != null) {
return signingInfo;
}
Intrinsics.throwUninitializedPropertyAccessException("signingInfo");
return null;
}
public /* synthetic */ CallingAppInfo(String str, SigningInfo signingInfo, String str2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, signingInfo, (i & 4) != 0 ? null : str2);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@RequiresApi(28)
@VisibleForTesting
public CallingAppInfo(String packageName, SigningInfo signingInfo, String str) {
this(packageName, str, SigningInfoCompat.Companion.fromSigningInfo(signingInfo), signingInfo);
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signingInfo, "signingInfo");
}
public /* synthetic */ CallingAppInfo(String str, List list, String str2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, (List<? extends Signature>) list, (i & 4) != 0 ? null : str2);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@DeprecatedSinceApi(api = 28, message = "Use the SigningInfo based constructor instead")
@VisibleForTesting
public CallingAppInfo(String packageName, List<? extends Signature> signatures, String str) {
this(packageName, str, SigningInfoCompat.Companion.fromSignatures(signatures), null);
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signatures, "signatures");
}
@SourceDebugExtension({"SMAP\nCallingAppInfo.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallingAppInfo.kt\nandroidx/credentials/provider/CallingAppInfo$Companion\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 3 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,339:1\n37#2,2:340\n11335#3:342\n11670#3,3:343\n*S KotlinDebug\n*F\n+ 1 CallingAppInfo.kt\nandroidx/credentials/provider/CallingAppInfo$Companion\n*L\n161#1:340,2\n178#1:342\n178#1:343,3\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public static /* synthetic */ CallingAppInfo create$default(Companion companion, String str, SigningInfo signingInfo, String str2, int i, Object obj) {
if ((i & 4) != 0) {
str2 = null;
}
return companion.create(str, signingInfo, str2);
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final CallingAppInfo create(String packageName, SigningInfo signingInfo, String str) {
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signingInfo, "signingInfo");
return new CallingAppInfo(packageName, signingInfo, str);
}
public static /* synthetic */ CallingAppInfo create$default(Companion companion, String str, List list, String str2, int i, Object obj) {
if ((i & 4) != 0) {
str2 = null;
}
return companion.create(str, (List<? extends Signature>) list, str2);
}
@DeprecatedSinceApi(api = 28, message = "Use the SigningInfo based constructor instead")
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final CallingAppInfo create(String packageName, List<? extends Signature> signatures, String str) {
Intrinsics.checkNotNullParameter(packageName, "packageName");
Intrinsics.checkNotNullParameter(signatures, "signatures");
return new CallingAppInfo(packageName, signatures, str);
}
public final void setCallingAppInfo$credentials_release(Bundle bundle, CallingAppInfo info) {
Intrinsics.checkNotNullParameter(bundle, "<this>");
Intrinsics.checkNotNullParameter(info, "info");
bundle.putString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_ORIGIN, info.getOrigin$credentials_release());
bundle.putString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_PACKAGE_NAME, info.getPackageName());
if (Build.VERSION.SDK_INT >= 28) {
bundle.putParcelable(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_SIGNING_INFO, info.getSigningInfo());
} else {
bundle.putParcelableArray(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_SIGNATURES, (Parcelable[]) info.getSigningInfoCompat().getSigningCertificateHistory().toArray(new Signature[0]));
}
}
public final CallingAppInfo extractCallingAppInfo$credentials_release(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
String string = bundle.getString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_ORIGIN);
String string2 = bundle.getString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_PACKAGE_NAME);
if (string2 == null) {
return null;
}
if (Build.VERSION.SDK_INT >= 28) {
SigningInfo m = CallingAppInfo$Companion$$ExternalSyntheticApiModelOutline0.m(bundle.getParcelable(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_SIGNING_INFO));
if (m == null) {
return null;
}
return create(string2, m, string);
}
Parcelable[] parcelableArray = bundle.getParcelableArray(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_SIGNATURES);
if (parcelableArray == null) {
return null;
}
ArrayList arrayList = new ArrayList(parcelableArray.length);
for (Parcelable parcelable : parcelableArray) {
Intrinsics.checkNotNull(parcelable, "null cannot be cast to non-null type android.content.pm.Signature");
arrayList.add((Signature) parcelable);
}
return create(string2, arrayList, string);
}
}
public final String getOrigin(String privilegedAllowlist) {
Intrinsics.checkNotNullParameter(privilegedAllowlist, "privilegedAllowlist");
if (!RequestValidationUtil.Companion.isValidJSON(privilegedAllowlist)) {
throw new IllegalArgumentException("privilegedAllowlist must not be empty, and must be a valid JSON");
}
String str = this.origin;
if (str == null) {
return str;
}
try {
if (isAppPrivileged(PrivilegedApp.Companion.extractPrivilegedApps$credentials_release(new JSONObject(privilegedAllowlist)))) {
return this.origin;
}
throw new IllegalStateException("Origin is not being returned as the calling app did notmatch the privileged allowlist");
} catch (JSONException unused) {
throw new IllegalArgumentException("privilegedAllowlist must be formatted properly");
}
}
private final boolean isAppPrivileged(List<PrivilegedApp> list) {
for (PrivilegedApp privilegedApp : list) {
if (Intrinsics.areEqual(privilegedApp.getPackageName(), this.packageName)) {
return isAppPrivileged(privilegedApp.getFingerprints());
}
}
return false;
}
private final boolean isAppPrivileged(Set<String> set) {
return new SignatureVerifier(this.signingInfoCompat).verifySignatureFingerprints(set);
}
public static final class SignatureVerifier {
private final SigningInfoCompat signingInfoCompat;
public SignatureVerifier(SigningInfoCompat signingInfoCompat) {
Intrinsics.checkNotNullParameter(signingInfoCompat, "signingInfoCompat");
this.signingInfoCompat = signingInfoCompat;
}
private final Set<String> getSignatureFingerprints() {
LinkedHashSet linkedHashSet = new LinkedHashSet();
List<Signature> apkContentsSigners = this.signingInfoCompat.getApkContentsSigners();
if (this.signingInfoCompat.hasMultipleSigners() && (!apkContentsSigners.isEmpty())) {
linkedHashSet.addAll(convertToFingerprints(apkContentsSigners));
} else if (!this.signingInfoCompat.getSigningCertificateHistory().isEmpty()) {
linkedHashSet.addAll(convertToFingerprints(CollectionsKt__CollectionsJVMKt.listOf(this.signingInfoCompat.getSigningCertificateHistory().get(0))));
}
return linkedHashSet;
}
private final Set<String> convertToFingerprints(List<? extends Signature> list) {
String joinToString$default;
LinkedHashSet linkedHashSet = new LinkedHashSet();
Iterator<? extends Signature> it = list.iterator();
while (it.hasNext()) {
byte[] digest = MessageDigest.getInstance("SHA-256").digest(it.next().toByteArray());
Intrinsics.checkNotNullExpressionValue(digest, "digest");
joinToString$default = ArraysKt___ArraysKt.joinToString$default(digest, CertificateUtil.DELIMITER, (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, new Function1() { // from class: androidx.credentials.provider.CallingAppInfo$SignatureVerifier$convertToFingerprints$1
public final CharSequence invoke(byte b) {
String format = String.format("%02X", Arrays.copyOf(new Object[]{Byte.valueOf(b)}, 1));
Intrinsics.checkNotNullExpressionValue(format, "format(this, *args)");
return format;
}
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
return invoke(((Number) obj).byteValue());
}
}, 30, (Object) null);
linkedHashSet.add(joinToString$default);
}
return linkedHashSet;
}
public final boolean verifySignatureFingerprints(Set<String> candidateSigFingerprints) {
Set intersect;
Intrinsics.checkNotNullParameter(candidateSigFingerprints, "candidateSigFingerprints");
Set<String> signatureFingerprints = getSignatureFingerprints();
if (this.signingInfoCompat.hasMultipleSigners()) {
return candidateSigFingerprints.containsAll(signatureFingerprints);
}
intersect = CollectionsKt___CollectionsKt.intersect(candidateSigFingerprints, signatureFingerprints);
return !intersect.isEmpty();
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CallingAppInfo)) {
return false;
}
CallingAppInfo callingAppInfo = (CallingAppInfo) obj;
return Intrinsics.areEqual(this.packageName, callingAppInfo.packageName) && Intrinsics.areEqual(this.origin, callingAppInfo.origin) && Intrinsics.areEqual(this.signingInfoCompat, callingAppInfo.signingInfoCompat);
}
public int hashCode() {
int hashCode = this.packageName.hashCode() * 31;
String str = this.origin;
return ((hashCode + (str != null ? str.hashCode() : 0)) * 31) + this.signingInfoCompat.hashCode();
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CreateEntry$Api35Impl$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CreateEntry$Api35Impl$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CreateEntry$Api35Impl$$ExternalSyntheticApiModelOutline2 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CreateEntry$Api35Impl$$ExternalSyntheticApiModelOutline3 {
}

View File

@@ -0,0 +1,624 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.app.slice.SliceSpec;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.PasswordCredential;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.provider.utils.CryptoObjectUtils;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.TypeIntrinsics;
@RequiresApi(23)
@SourceDebugExtension({"SMAP\nCreateEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,773:1\n1#2:774\n*E\n"})
/* loaded from: classes.dex */
public final class CreateEntry {
private static final String AUTO_SELECT_FALSE_STRING = "false";
private static final String AUTO_SELECT_TRUE_STRING = "true";
public static final Companion Companion = new Companion(null);
private static final int DESCRIPTION_MAX_CHAR_LIMIT = 300;
private static final String EXTRA_CREATE_ACCOUNT_NAME_PREFIX = "androidx.credentials.provider.extra.ACCOUNT_NAME_";
private static final String EXTRA_CREATE_CREDENTIAL_COUNT_INFO_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_COUNT_INFO_";
private static final String EXTRA_CREATE_DESCRIPTION_PREFIX = "androidx.credentials.provider.extra.DESCRIPTION_";
private static final String EXTRA_CREATE_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX = "androidx.credentials.provider.extra.IS_AUTO_SELECT_ALLOWED_";
private static final String EXTRA_CREATE_ENTRY_LAST_USED_TIME_PREFIX = "androidx.credentials.provider.extra.LAST_USED_TIME_";
private static final String EXTRA_CREATE_ENTRY_PENDING_INTENT_PREFIX = "androidx.credentials.provider.extra.PENDING_INTENT_";
private static final String EXTRA_CREATE_ENTRY_SIZE = "androidx.credentials.provider.extra.CREATE_ENTRY_SIZE";
private static final String EXTRA_CREATE_TYPE_ICON_PREFIX = "androidx.credentials.provider.extra.ICON_";
private static final int REVISION_ID = 1;
private static final String SLICE_HINT_ACCOUNT_NAME = "androidx.credentials.provider.createEntry.SLICE_HINT_USER_PROVIDER_ACCOUNT_NAME";
private static final String SLICE_HINT_ALLOWED_AUTHENTICATORS = "androidx.credentials.provider.createEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS";
private static final String SLICE_HINT_AUTO_SELECT_ALLOWED = "androidx.credentials.provider.createEntry.SLICE_HINT_AUTO_SELECT_ALLOWED";
private static final String SLICE_HINT_BIOMETRIC_PROMPT_DATA = "androidx.credentials.provider.createEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA";
private static final String SLICE_HINT_CREDENTIAL_COUNT_INFORMATION = "androidx.credentials.provider.createEntry.SLICE_HINT_CREDENTIAL_COUNT_INFORMATION";
private static final String SLICE_HINT_CRYPTO_OP_ID = "androidx.credentials.provider.createEntry.SLICE_HINT_CRYPTO_OP_ID";
private static final String SLICE_HINT_ICON = "androidx.credentials.provider.createEntry.SLICE_HINT_PROFILE_ICON";
private static final String SLICE_HINT_LAST_USED_TIME_MILLIS = "androidx.credentials.provider.createEntry.SLICE_HINT_LAST_USED_TIME_MILLIS";
private static final String SLICE_HINT_NOTE = "androidx.credentials.provider.createEntry.SLICE_HINT_NOTE";
private static final String SLICE_HINT_PENDING_INTENT = "androidx.credentials.provider.createEntry.SLICE_HINT_PENDING_INTENT";
private static final String SLICE_SPEC_TYPE = "CreateEntry";
private static final String TAG = "CreateEntry";
public static final String TYPE_TOTAL_CREDENTIAL = "TOTAL_CREDENTIAL_COUNT_TYPE";
private final CharSequence accountName;
private final BiometricPromptData biometricPromptData;
private final Map<String, Integer> credentialCountInformationMap;
private final CharSequence description;
private final Icon icon;
private final boolean isAutoSelectAllowed;
private final Instant lastUsedTime;
private final PendingIntent pendingIntent;
public static final CreateEntry fromCreateEntry(android.service.credentials.CreateEntry createEntry) {
return Companion.fromCreateEntry(createEntry);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CreateEntry fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CreateEntry createEntry) {
return Companion.toSlice(createEntry);
}
public final CharSequence getAccountName() {
return this.accountName;
}
public final BiometricPromptData getBiometricPromptData() {
return this.biometricPromptData;
}
public final CharSequence getDescription() {
return this.description;
}
public final Icon getIcon() {
return this.icon;
}
public final Instant getLastUsedTime() {
return this.lastUsedTime;
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final boolean isAutoSelectAllowed() {
return this.isAutoSelectAllowed;
}
public CreateEntry(CharSequence accountName, PendingIntent pendingIntent, Icon icon, CharSequence charSequence, Instant instant, Map<String, Integer> credentialCountInformationMap, boolean z, BiometricPromptData biometricPromptData) {
Intrinsics.checkNotNullParameter(accountName, "accountName");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(credentialCountInformationMap, "credentialCountInformationMap");
this.accountName = accountName;
this.pendingIntent = pendingIntent;
this.icon = icon;
this.description = charSequence;
this.lastUsedTime = instant;
this.credentialCountInformationMap = credentialCountInformationMap;
this.isAutoSelectAllowed = z;
this.biometricPromptData = biometricPromptData;
if (accountName.length() <= 0) {
throw new IllegalArgumentException("accountName must not be empty".toString());
}
if (charSequence != null && charSequence.length() > 300) {
throw new IllegalArgumentException("Description must follow a limit of 300 characters.".toString());
}
}
public /* synthetic */ CreateEntry(CharSequence charSequence, PendingIntent pendingIntent, Icon icon, CharSequence charSequence2, Instant instant, Map map, boolean z, BiometricPromptData biometricPromptData, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, pendingIntent, icon, charSequence2, instant, map, z, (i & 128) != 0 ? null : biometricPromptData);
}
public /* synthetic */ CreateEntry(CharSequence charSequence, PendingIntent pendingIntent, CharSequence charSequence2, Instant instant, Icon icon, Integer num, Integer num2, Integer num3, boolean z, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, pendingIntent, (i & 4) != 0 ? null : charSequence2, (i & 8) != 0 ? null : instant, (i & 16) != 0 ? null : icon, (i & 32) != 0 ? null : num, (i & 64) != 0 ? null : num2, (i & 128) != 0 ? null : num3, (i & 256) != 0 ? false : z);
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public CreateEntry(java.lang.CharSequence r13, android.app.PendingIntent r14, java.lang.CharSequence r15, java.time.Instant r16, android.graphics.drawable.Icon r17, java.lang.Integer r18, java.lang.Integer r19, java.lang.Integer r20, boolean r21) {
/*
r12 = this;
java.lang.String r0 = "accountName"
r2 = r13
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r13, r0)
java.lang.String r0 = "pendingIntent"
r3 = r14
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r14, r0)
java.lang.String r0 = "android.credentials.TYPE_PASSWORD_CREDENTIAL"
r1 = r18
kotlin.Pair r0 = kotlin.TuplesKt.to(r0, r1)
java.lang.String r1 = "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL"
r4 = r19
kotlin.Pair r1 = kotlin.TuplesKt.to(r1, r4)
java.lang.String r4 = "TOTAL_CREDENTIAL_COUNT_TYPE"
r5 = r20
kotlin.Pair r4 = kotlin.TuplesKt.to(r4, r5)
kotlin.Pair[] r0 = new kotlin.Pair[]{r0, r1, r4}
java.util.Map r7 = kotlin.collections.MapsKt.mutableMapOf(r0)
r9 = 0
r10 = 128(0x80, float:1.8E-43)
r11 = 0
r1 = r12
r4 = r17
r5 = r15
r6 = r16
r8 = r21
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.CreateEntry.<init>(java.lang.CharSequence, android.app.PendingIntent, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, java.lang.Integer, java.lang.Integer, java.lang.Integer, boolean):void");
}
public /* synthetic */ CreateEntry(CharSequence charSequence, PendingIntent pendingIntent, CharSequence charSequence2, Instant instant, Icon icon, Integer num, Integer num2, Integer num3, boolean z, BiometricPromptData biometricPromptData, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, pendingIntent, (i & 4) != 0 ? null : charSequence2, (i & 8) != 0 ? null : instant, (i & 16) != 0 ? null : icon, (i & 32) != 0 ? null : num, (i & 64) != 0 ? null : num2, (i & 128) != 0 ? null : num3, (i & 256) != 0 ? false : z, (i & 512) != 0 ? null : biometricPromptData);
}
/* JADX WARN: Illegal instructions before constructor call */
@androidx.annotation.RequiresApi(35)
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public CreateEntry(java.lang.CharSequence r11, android.app.PendingIntent r12, java.lang.CharSequence r13, java.time.Instant r14, android.graphics.drawable.Icon r15, java.lang.Integer r16, java.lang.Integer r17, java.lang.Integer r18, boolean r19, androidx.credentials.provider.BiometricPromptData r20) {
/*
r10 = this;
java.lang.String r0 = "accountName"
r2 = r11
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r0)
java.lang.String r0 = "pendingIntent"
r3 = r12
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
java.lang.String r0 = "android.credentials.TYPE_PASSWORD_CREDENTIAL"
r1 = r16
kotlin.Pair r0 = kotlin.TuplesKt.to(r0, r1)
java.lang.String r1 = "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL"
r4 = r17
kotlin.Pair r1 = kotlin.TuplesKt.to(r1, r4)
java.lang.String r4 = "TOTAL_CREDENTIAL_COUNT_TYPE"
r5 = r18
kotlin.Pair r4 = kotlin.TuplesKt.to(r4, r5)
kotlin.Pair[] r0 = new kotlin.Pair[]{r0, r1, r4}
java.util.Map r7 = kotlin.collections.MapsKt.mutableMapOf(r0)
r1 = r10
r4 = r15
r5 = r13
r6 = r14
r8 = r19
r9 = r20
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.CreateEntry.<init>(java.lang.CharSequence, android.app.PendingIntent, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, java.lang.Integer, java.lang.Integer, java.lang.Integer, boolean, androidx.credentials.provider.BiometricPromptData):void");
}
public final Integer getPasswordCredentialCount() {
return this.credentialCountInformationMap.get(PasswordCredential.TYPE_PASSWORD_CREDENTIAL);
}
public final Integer getPublicKeyCredentialCount() {
return this.credentialCountInformationMap.get(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL);
}
public final Integer getTotalCredentialCount() {
return this.credentialCountInformationMap.get(TYPE_TOTAL_CREDENTIAL);
}
public static final class Builder {
private final CharSequence accountName;
private boolean autoSelectAllowed;
private BiometricPromptData biometricPromptData;
private Map<String, Integer> credentialCountInformationMap;
private CharSequence description;
private Icon icon;
private Instant lastUsedTime;
private Integer passwordCredentialCount;
private final PendingIntent pendingIntent;
private Integer publicKeyCredentialCount;
private Integer totalCredentialCount;
public final Builder setAutoSelectAllowed(boolean z) {
this.autoSelectAllowed = z;
return this;
}
@RequiresApi(35)
public final Builder setBiometricPromptData(BiometricPromptData biometricPromptData) {
this.biometricPromptData = biometricPromptData;
return this;
}
public final Builder setIcon(Icon icon) {
this.icon = icon;
return this;
}
public final Builder setLastUsedTime(Instant instant) {
this.lastUsedTime = instant;
return this;
}
public Builder(CharSequence accountName, PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(accountName, "accountName");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.accountName = accountName;
this.pendingIntent = pendingIntent;
this.credentialCountInformationMap = new LinkedHashMap();
}
public final Builder setPasswordCredentialCount(int i) {
this.passwordCredentialCount = Integer.valueOf(i);
this.credentialCountInformationMap.put(PasswordCredential.TYPE_PASSWORD_CREDENTIAL, Integer.valueOf(i));
return this;
}
public final Builder setPublicKeyCredentialCount(int i) {
this.publicKeyCredentialCount = Integer.valueOf(i);
this.credentialCountInformationMap.put(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, Integer.valueOf(i));
return this;
}
public final Builder setTotalCredentialCount(int i) {
this.totalCredentialCount = Integer.valueOf(i);
this.credentialCountInformationMap.put(CreateEntry.TYPE_TOTAL_CREDENTIAL, Integer.valueOf(i));
return this;
}
public final Builder setDescription(CharSequence charSequence) {
if ((charSequence != null ? Integer.valueOf(charSequence.length()) : null) != null && charSequence.length() > 300) {
throw new IllegalArgumentException("Description must follow a limit of 300 characters.");
}
this.description = charSequence;
return this;
}
public final CreateEntry build() {
return new CreateEntry(this.accountName, this.pendingIntent, this.icon, this.description, this.lastUsedTime, this.credentialCountInformationMap, this.autoSelectAllowed, this.biometricPromptData);
}
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final CreateEntry fromCreateEntry(android.service.credentials.CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
Slice slice = createEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "createEntry.slice");
return CreateEntry.Companion.fromSlice(slice);
}
}
@RequiresApi(35)
@SourceDebugExtension({"SMAP\nCreateEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Api35Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,773:1\n1855#2,2:774\n*S KotlinDebug\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Api35Impl\n*L\n406#1:774,2\n*E\n"})
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
private final void addToSlice(CreateEntry createEntry, Slice.Builder builder) {
BiometricPromptData biometricPromptData = createEntry.getBiometricPromptData();
if (biometricPromptData != null) {
builder.addInt(biometricPromptData.getAllowedAuthenticators(), null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS));
if (biometricPromptData.getCryptoObject() != null) {
builder.addLong(CryptoObjectUtils.INSTANCE.getOperationHandle(biometricPromptData.getCryptoObject()), null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_CRYPTO_OP_ID));
}
builder.addBundle(BiometricPromptData.Companion.toBundle(biometricPromptData), null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA));
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CreateEntry createEntry) {
Slice build;
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
Slice.Builder addToSlice = Api28Impl.INSTANCE.addToSlice(createEntry);
INSTANCE.addToSlice(createEntry, addToSlice);
build = addToSlice.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CreateEntry fromSlice(Slice slice) {
List items;
boolean hasHint;
Intrinsics.checkNotNullParameter(slice, "slice");
CreateEntry fromSlice = Api28Impl.fromSlice(slice);
if (fromSlice == null) {
return null;
}
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
Bundle bundle = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA);
if (hasHint) {
bundle = m.getBundle();
}
}
try {
return new CreateEntry(fromSlice.getAccountName(), fromSlice.getPendingIntent(), fromSlice.getIcon(), fromSlice.getDescription(), fromSlice.getLastUsedTime(), fromSlice.credentialCountInformationMap, fromSlice.isAutoSelectAllowed(), bundle != null ? BiometricPromptData.Companion.fromBundle(bundle) : null);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
@RequiresApi(28)
@SourceDebugExtension({"SMAP\nCreateEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Api28Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,773:1\n1855#2,2:774\n*S KotlinDebug\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Api28Impl\n*L\n506#1:774,2\n*E\n"})
public static final class Api28Impl {
public static final Api28Impl INSTANCE = new Api28Impl();
private Api28Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
Slice build = INSTANCE.addToSlice(createEntry).build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final Slice.Builder addToSlice(CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
CharSequence accountName = createEntry.getAccountName();
Icon icon = createEntry.getIcon();
CharSequence description = createEntry.getDescription();
Instant lastUsedTime = createEntry.getLastUsedTime();
Map<String, Integer> map = createEntry.credentialCountInformationMap;
PendingIntent pendingIntent = createEntry.getPendingIntent();
Slice.Builder builder = new Slice.Builder(Uri.EMPTY, new SliceSpec("CreateEntry", 1));
String str = createEntry.isAutoSelectAllowed() ? "true" : "false";
builder.addText(accountName, null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_ACCOUNT_NAME));
if (lastUsedTime != null) {
builder.addLong(lastUsedTime.toEpochMilli(), null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_LAST_USED_TIME_MILLIS));
}
if (description != null) {
builder.addText(description, null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_NOTE));
}
if (icon != null) {
builder.addIcon(icon, null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_ICON));
}
Companion companion = CreateEntry.Companion;
if (companion.convertCredentialCountInfoToBundle$credentials_release(map) != null) {
builder.addBundle(companion.convertCredentialCountInfoToBundle$credentials_release(map), null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_CREDENTIAL_COUNT_INFORMATION));
}
builder.addAction(pendingIntent, new Slice.Builder(builder).addHints(Collections.singletonList(CreateEntry.SLICE_HINT_PENDING_INTENT)).build(), null).addText(str, null, CollectionsKt__CollectionsJVMKt.listOf(CreateEntry.SLICE_HINT_AUTO_SELECT_ALLOWED));
return builder;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v8, types: [java.util.Map] */
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CreateEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
LinkedHashMap linkedHashMap = new LinkedHashMap();
List<SliceItem> items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
LinkedHashMap linkedHashMap2 = linkedHashMap;
CharSequence charSequence = null;
PendingIntent pendingIntent = null;
Icon icon = null;
CharSequence charSequence2 = null;
Instant instant = null;
boolean z = false;
for (SliceItem sliceItem : items) {
if (sliceItem.hasHint(CreateEntry.SLICE_HINT_ACCOUNT_NAME)) {
charSequence = sliceItem.getText();
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_ICON)) {
icon = sliceItem.getIcon();
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_PENDING_INTENT)) {
pendingIntent = sliceItem.getAction();
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_CREDENTIAL_COUNT_INFORMATION)) {
Map<String, Integer> convertBundleToCredentialCountInfo$credentials_release = CreateEntry.Companion.convertBundleToCredentialCountInfo$credentials_release(sliceItem.getBundle());
Intrinsics.checkNotNull(convertBundleToCredentialCountInfo$credentials_release, "null cannot be cast to non-null type kotlin.collections.MutableMap<kotlin.String, kotlin.Int?>");
linkedHashMap2 = TypeIntrinsics.asMutableMap(convertBundleToCredentialCountInfo$credentials_release);
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_LAST_USED_TIME_MILLIS)) {
instant = Instant.ofEpochMilli(sliceItem.getLong());
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_NOTE)) {
charSequence2 = sliceItem.getText();
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_LAST_USED_TIME_MILLIS)) {
instant = Instant.ofEpochMilli(sliceItem.getLong());
} else if (sliceItem.hasHint(CreateEntry.SLICE_HINT_AUTO_SELECT_ALLOWED) && Intrinsics.areEqual(sliceItem.getText(), "true")) {
z = true;
}
}
try {
Intrinsics.checkNotNull(charSequence);
Intrinsics.checkNotNull(pendingIntent);
return new CreateEntry(charSequence, pendingIntent, icon, charSequence2, instant, linkedHashMap2, z, (BiometricPromptData) null, 128, (DefaultConstructorMarker) null);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
@SourceDebugExtension({"SMAP\nCreateEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,773:1\n1855#2,2:774\n1864#2,2:778\n1866#2:781\n215#3,2:776\n1#4:780\n*S KotlinDebug\n*F\n+ 1 CreateEntry.kt\nandroidx/credentials/provider/CreateEntry$Companion\n*L\n632#1:774,2\n680#1:778,2\n680#1:781\n648#1:776,2\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.toSlice(createEntry);
}
if (i >= 28) {
return Api28Impl.toSlice(createEntry);
}
return null;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final CreateEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.fromSlice(slice);
}
if (i >= 28) {
return Api28Impl.fromSlice(slice);
}
return null;
}
public final CreateEntry fromCreateEntry(android.service.credentials.CreateEntry createEntry) {
Intrinsics.checkNotNullParameter(createEntry, "createEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromCreateEntry(createEntry);
}
return null;
}
public final Map<String, Integer> convertBundleToCredentialCountInfo$credentials_release(Bundle bundle) {
HashMap hashMap = new HashMap();
if (bundle == null) {
return hashMap;
}
Set<String> keySet = bundle.keySet();
Intrinsics.checkNotNullExpressionValue(keySet, "bundle.keySet()");
for (String it : keySet) {
try {
Intrinsics.checkNotNullExpressionValue(it, "it");
hashMap.put(it, Integer.valueOf(bundle.getInt(it)));
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("Issue unpacking credential count info bundle: ");
sb.append(e.getMessage());
}
}
return hashMap;
}
public final Bundle convertCredentialCountInfoToBundle$credentials_release(Map<String, Integer> credentialCountInformationMap) {
Intrinsics.checkNotNullParameter(credentialCountInformationMap, "credentialCountInformationMap");
Bundle bundle = new Bundle();
boolean z = false;
for (Map.Entry<String, Integer> entry : credentialCountInformationMap.entrySet()) {
if (entry.getValue() != null) {
String key = entry.getKey();
Integer value = entry.getValue();
Intrinsics.checkNotNull(value);
bundle.putInt(key, value.intValue());
z = true;
}
}
if (z) {
return bundle;
}
return null;
}
@RequiresApi(23)
public final void marshall$credentials_release(List<CreateEntry> list, Bundle bundle) {
Intrinsics.checkNotNullParameter(list, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putInt(CreateEntry.EXTRA_CREATE_ENTRY_SIZE, list.size());
int i = 0;
for (Object obj : list) {
int i2 = i + 1;
if (i < 0) {
CollectionsKt__CollectionsKt.throwIndexOverflow();
}
CreateEntry createEntry = (CreateEntry) obj;
bundle.putCharSequence(CreateEntry.EXTRA_CREATE_ACCOUNT_NAME_PREFIX + i, createEntry.getAccountName());
bundle.putParcelable("androidx.credentials.provider.extra.PENDING_INTENT_" + i, createEntry.getPendingIntent());
Icon icon = createEntry.getIcon();
if (icon != null) {
bundle.putParcelable("androidx.credentials.provider.extra.ICON_" + i, icon);
}
CharSequence description = createEntry.getDescription();
if (description != null) {
bundle.putCharSequence(CreateEntry.EXTRA_CREATE_DESCRIPTION_PREFIX + i, description);
}
Instant lastUsedTime = createEntry.getLastUsedTime();
if (lastUsedTime != null) {
bundle.putSerializable("androidx.credentials.provider.extra.LAST_USED_TIME_" + i, lastUsedTime);
}
Bundle convertCredentialCountInfoToBundle$credentials_release = CreateEntry.Companion.convertCredentialCountInfoToBundle$credentials_release(createEntry.credentialCountInformationMap);
if (convertCredentialCountInfoToBundle$credentials_release != null) {
bundle.putBundle(CreateEntry.EXTRA_CREATE_CREDENTIAL_COUNT_INFO_PREFIX + i, convertCredentialCountInfoToBundle$credentials_release);
}
bundle.putBoolean("androidx.credentials.provider.extra.IS_AUTO_SELECT_ALLOWED_" + i, createEntry.isAutoSelectAllowed());
i = i2;
}
}
@RequiresApi(23)
public final List<CreateEntry> unmarshallCreateEntries$credentials_release(Bundle bundle) {
Map mutableMap;
Intrinsics.checkNotNullParameter(bundle, "<this>");
try {
ArrayList arrayList = new ArrayList();
int i = bundle.getInt(CreateEntry.EXTRA_CREATE_ENTRY_SIZE, 0);
for (int i2 = 0; i2 < i; i2++) {
CharSequence charSequence = bundle.getCharSequence(CreateEntry.EXTRA_CREATE_ACCOUNT_NAME_PREFIX + i2);
if (charSequence == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable("androidx.credentials.provider.extra.PENDING_INTENT_" + i2);
if (pendingIntent == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
Icon icon = (Icon) bundle.getParcelable("androidx.credentials.provider.extra.ICON_" + i2);
CharSequence charSequence2 = bundle.getCharSequence(CreateEntry.EXTRA_CREATE_DESCRIPTION_PREFIX + i2);
mutableMap = MapsKt__MapsKt.toMutableMap(convertBundleToCredentialCountInfo$credentials_release(bundle.getBundle(CreateEntry.EXTRA_CREATE_CREDENTIAL_COUNT_INFO_PREFIX + i2)));
arrayList.add(new CreateEntry(charSequence, pendingIntent, icon, charSequence2, (Instant) bundle.getSerializable("androidx.credentials.provider.extra.LAST_USED_TIME_" + i2), mutableMap, bundle.getBoolean("androidx.credentials.provider.extra.IS_AUTO_SELECT_ALLOWED_" + i2, false), (BiometricPromptData) null, 128, (DefaultConstructorMarker) null));
}
return arrayList;
} catch (Exception unused) {
return CollectionsKt__CollectionsKt.emptyList();
}
}
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialEntry$Api35Impl$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialEntry$Api35Impl$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,319 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.slice.Slice;
import android.app.slice.SliceSpec;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.PasswordCredential;
import androidx.credentials.PublicKeyCredential;
import java.util.ArrayList;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public abstract class CredentialEntry {
public static final Companion Companion = new Companion(null);
public static final String EXTRA_CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_";
public static final String EXTRA_CREDENTIAL_ENTRY_ENTRY_GROUP_ID_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_ENTRY_ENTRY_GROUP_ID_";
public static final String EXTRA_CREDENTIAL_ENTRY_ENTRY_TYPE_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_ENTRY_TYPE_";
public static final String EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX = "androidx.credentials.provider.extra.HAS_DEFAULT_ICON_";
public static final String EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX = "androidx.credentials.provider.extra.IS_AUTO_SELECT_ALLOWED_FROM_OPTION_";
public static final String EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX = "androidx.credentials.provider.extra.IS_AUTO_SELECT_ALLOWED_";
public static final String EXTRA_CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_";
public static final String EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX = "androidx.credentials.provider.extra.LAST_USED_TIME_";
public static final String EXTRA_CREDENTIAL_ENTRY_OPTION_DATA_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_DATA_";
public static final String EXTRA_CREDENTIAL_ENTRY_OPTION_ID_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_ID_";
public static final String EXTRA_CREDENTIAL_ENTRY_OPTION_TYPE_PREFIX = "androidx.credentials.provider.extra.CREDENTIAL_OPTION_TYPE_";
public static final String EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX = "androidx.credentials.provider.extra.PENDING_INTENT_";
public static final String EXTRA_CREDENTIAL_ENTRY_SIZE = "androidx.credentials.provider.extra.CREDENTIAL_ENTRY_SIZE";
public static final String EXTRA_CREDENTIAL_SUBTITLE_PREFIX = "androidx.credentials.provider.extra.SUBTITLE_";
public static final String EXTRA_CREDENTIAL_TITLE_PREFIX = "androidx.credentials.provider.extra.TITLE_";
public static final String EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX = "androidx.credentials.provider.extra.TYPE_DISPLAY_NAME_";
public static final String EXTRA_CREDENTIAL_TYPE_ICON_PREFIX = "androidx.credentials.provider.extra.ICON_";
public static final String FALSE_STRING = "false";
public static final int REVISION_ID = 1;
public static final String SLICE_HINT_AFFILIATED_DOMAIN = "androidx.credentials.provider.credentialEntry.SLICE_HINT_AFFILIATED_DOMAIN";
public static final String SLICE_HINT_ALLOWED_AUTHENTICATORS = "androidx.credentials.provider.credentialEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS";
public static final String SLICE_HINT_AUTO_ALLOWED = "androidx.credentials.provider.credentialEntry.SLICE_HINT_AUTO_ALLOWED";
public static final String SLICE_HINT_AUTO_SELECT_FROM_OPTION = "androidx.credentials.provider.credentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION";
public static final String SLICE_HINT_BIOMETRIC_PROMPT_DATA = "androidx.credentials.provider.credentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA";
public static final String SLICE_HINT_CRYPTO_OP_ID = "androidx.credentials.provider.credentialEntry.SLICE_HINT_CRYPTO_OP_ID";
public static final String SLICE_HINT_DEDUPLICATION_ID = "androidx.credentials.provider.credentialEntry.SLICE_HINT_DEDUPLICATION_ID";
public static final String SLICE_HINT_DEFAULT_ICON_RES_ID = "androidx.credentials.provider.credentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID";
public static final String SLICE_HINT_ICON = "androidx.credentials.provider.credentialEntry.SLICE_HINT_PROFILE_ICON";
public static final String SLICE_HINT_IS_DEFAULT_ICON_PREFERRED = "androidx.credentials.provider.credentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED";
public static final String SLICE_HINT_LAST_USED_TIME_MILLIS = "androidx.credentials.provider.credentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS";
public static final String SLICE_HINT_OPTION_ID = "androidx.credentials.provider.credentialEntry.SLICE_HINT_OPTION_ID";
public static final String SLICE_HINT_PENDING_INTENT = "androidx.credentials.provider.credentialEntry.SLICE_HINT_PENDING_INTENT";
public static final String SLICE_HINT_SUBTITLE = "androidx.credentials.provider.credentialEntry.SLICE_HINT_CREDENTIAL_TYPE_DISPLAY_NAME";
public static final String SLICE_HINT_TITLE = "androidx.credentials.provider.credentialEntry.SLICE_HINT_USER_NAME";
public static final String SLICE_HINT_TYPE_DISPLAY_NAME = "androidx.credentials.provider.credentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME";
public static final String TRUE_STRING = "true";
private final CharSequence affiliatedDomain;
private final BeginGetCredentialOption beginGetCredentialOption;
private final BiometricPromptData biometricPromptData;
private final CharSequence entryGroupId;
private final boolean isDefaultIconPreferredAsSingleProvider;
private final String type;
public static final CredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
return Companion.fromCredentialEntry(credentialEntry);
}
public final CharSequence getAffiliatedDomain() {
return this.affiliatedDomain;
}
public final BeginGetCredentialOption getBeginGetCredentialOption() {
return this.beginGetCredentialOption;
}
public final BiometricPromptData getBiometricPromptData() {
return this.biometricPromptData;
}
public final CharSequence getEntryGroupId() {
return this.entryGroupId;
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public String getType() {
return this.type;
}
public final boolean isDefaultIconPreferredAsSingleProvider() {
return this.isDefaultIconPreferredAsSingleProvider;
}
public CredentialEntry(String type, BeginGetCredentialOption beginGetCredentialOption, CharSequence entryGroupId, boolean z, CharSequence charSequence, BiometricPromptData biometricPromptData) {
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
Intrinsics.checkNotNullParameter(entryGroupId, "entryGroupId");
this.type = type;
this.beginGetCredentialOption = beginGetCredentialOption;
this.entryGroupId = entryGroupId;
this.isDefaultIconPreferredAsSingleProvider = z;
this.affiliatedDomain = charSequence;
this.biometricPromptData = biometricPromptData;
}
public /* synthetic */ CredentialEntry(String str, BeginGetCredentialOption beginGetCredentialOption, CharSequence charSequence, boolean z, CharSequence charSequence2, BiometricPromptData biometricPromptData, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, beginGetCredentialOption, charSequence, z, (i & 16) != 0 ? null : charSequence2, (i & 32) != 0 ? null : biometricPromptData);
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final CredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
Slice slice = credentialEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "credentialEntry.slice");
return CredentialEntry.Companion.fromSlice$credentials_release(slice);
}
}
@RequiresApi(35)
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
public static final Slice toSlice(CredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
if (entry instanceof PasswordCredentialEntry) {
return PasswordCredentialEntry.Companion.toSlice((PasswordCredentialEntry) entry);
}
if (entry instanceof PublicKeyCredentialEntry) {
return PublicKeyCredentialEntry.Companion.toSlice((PublicKeyCredentialEntry) entry);
}
if (entry instanceof CustomCredentialEntry) {
return CustomCredentialEntry.Companion.toSlice((CustomCredentialEntry) entry);
}
return null;
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CredentialEntry fromSlice(Slice slice) {
SliceSpec spec;
Intrinsics.checkNotNullParameter(slice, "slice");
try {
spec = slice.getSpec();
String type = spec != null ? spec.getType() : null;
if (Intrinsics.areEqual(type, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
PasswordCredentialEntry fromSlice = PasswordCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice);
return fromSlice;
}
if (Intrinsics.areEqual(type, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
PublicKeyCredentialEntry fromSlice2 = PublicKeyCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice2);
return fromSlice2;
}
CustomCredentialEntry fromSlice3 = CustomCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice3);
return fromSlice3;
} catch (Exception unused) {
return CustomCredentialEntry.Companion.fromSlice(slice);
}
}
}
@RequiresApi(28)
public static final class Api28Impl {
public static final Api28Impl INSTANCE = new Api28Impl();
private Api28Impl() {
}
public static final Slice toSlice(CredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
if (entry instanceof PasswordCredentialEntry) {
return PasswordCredentialEntry.Companion.toSlice((PasswordCredentialEntry) entry);
}
if (entry instanceof PublicKeyCredentialEntry) {
return PublicKeyCredentialEntry.Companion.toSlice((PublicKeyCredentialEntry) entry);
}
if (entry instanceof CustomCredentialEntry) {
return CustomCredentialEntry.Companion.toSlice((CustomCredentialEntry) entry);
}
return null;
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
try {
SliceSpec spec = slice.getSpec();
String type = spec != null ? spec.getType() : null;
if (Intrinsics.areEqual(type, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
PasswordCredentialEntry fromSlice = PasswordCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice);
return fromSlice;
}
if (Intrinsics.areEqual(type, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
PublicKeyCredentialEntry fromSlice2 = PublicKeyCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice2);
return fromSlice2;
}
CustomCredentialEntry fromSlice3 = CustomCredentialEntry.Companion.fromSlice(slice);
Intrinsics.checkNotNull(fromSlice3);
return fromSlice3;
} catch (Exception unused) {
return CustomCredentialEntry.Companion.fromSlice(slice);
}
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final CredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromCredentialEntry(credentialEntry);
}
return null;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final CredentialEntry fromSlice$credentials_release(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.fromSlice(slice);
}
if (i >= 28) {
return Api28Impl.fromSlice(slice);
}
return null;
}
public final Slice toSlice$credentials_release(CredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.toSlice(entry);
}
if (i >= 28) {
return Api28Impl.toSlice(entry);
}
return null;
}
@RequiresApi(23)
public final void marshall$credentials_release(List<? extends CredentialEntry> list, Bundle bundle) {
Intrinsics.checkNotNullParameter(list, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putInt(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_SIZE, list.size());
int size = list.size();
for (int i = 0; i < size; i++) {
CredentialEntry credentialEntry = list.get(i);
if (credentialEntry instanceof PasswordCredentialEntry) {
PasswordCredentialEntry.Companion.marshall$credentials_release((PasswordCredentialEntry) credentialEntry, bundle, i);
} else if (credentialEntry instanceof PublicKeyCredentialEntry) {
PublicKeyCredentialEntry.Companion.marshall$credentials_release((PublicKeyCredentialEntry) credentialEntry, bundle, i);
} else if (credentialEntry instanceof CustomCredentialEntry) {
CustomCredentialEntry.Companion.marshall$credentials_release((CustomCredentialEntry) credentialEntry, bundle, i);
}
}
}
public final void marshallCommonProperties$credentials_release(CredentialEntry credentialEntry, Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(credentialEntry, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_TYPE_PREFIX + i, credentialEntry.getType());
bundle.putString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_ID_PREFIX + i, credentialEntry.getBeginGetCredentialOption().getId());
bundle.putString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_TYPE_PREFIX + i, credentialEntry.getBeginGetCredentialOption().getType());
bundle.putBundle(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_DATA_PREFIX + i, credentialEntry.getBeginGetCredentialOption().getCandidateQueryData());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_GROUP_ID_PREFIX + i, credentialEntry.getEntryGroupId());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_PREFIX + i, credentialEntry.isDefaultIconPreferredAsSingleProvider());
CharSequence affiliatedDomain = credentialEntry.getAffiliatedDomain();
if (affiliatedDomain != null) {
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_PREFIX + i, affiliatedDomain);
}
}
@RequiresApi(23)
public final List<CredentialEntry> unmarshallCredentialEntries$credentials_release(Bundle bundle) {
Object unmarshall$credentials_release;
Intrinsics.checkNotNullParameter(bundle, "<this>");
ArrayList arrayList = new ArrayList();
int i = bundle.getInt(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_SIZE, 0);
for (int i2 = 0; i2 < i; i2++) {
String string = bundle.getString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_TYPE_PREFIX + i2);
if (string == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
if (Intrinsics.areEqual(string, PasswordCredential.TYPE_PASSWORD_CREDENTIAL)) {
unmarshall$credentials_release = PasswordCredentialEntry.Companion.unmarshall$credentials_release(bundle, i2);
} else if (Intrinsics.areEqual(string, PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)) {
unmarshall$credentials_release = PublicKeyCredentialEntry.Companion.unmarshall$credentials_release(bundle, i2);
} else {
unmarshall$credentials_release = CustomCredentialEntry.Companion.unmarshall$credentials_release(bundle, i2, string);
}
if (unmarshall$credentials_release == null) {
return CollectionsKt__CollectionsKt.emptyList();
}
arrayList.add(unmarshall$credentials_release);
}
return arrayList;
}
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.CreateCredentialException;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline2 {
public static /* synthetic */ CreateCredentialException m(String str, String str2) {
return new CreateCredentialException(str, str2);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline3 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.GetCredentialException;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginGetCredential$outcome$1$$ExternalSyntheticApiModelOutline0 {
public static /* synthetic */ GetCredentialException m(String str, String str2) {
return new GetCredentialException(str, str2);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onBeginGetCredential$outcome$1$$ExternalSyntheticApiModelOutline1 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.ClearCredentialStateException;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onClearCredentialState$outcome$1$$ExternalSyntheticApiModelOutline0 {
public static /* synthetic */ ClearCredentialStateException m(String str, String str2) {
return new ClearCredentialStateException(str, str2);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class CredentialProviderService$onClearCredentialState$outcome$1$$ExternalSyntheticApiModelOutline1 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,150 @@
package androidx.credentials.provider;
import android.os.CancellationSignal;
import android.os.OutcomeReceiver;
import android.service.credentials.ClearCredentialStateRequest;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.annotation.VisibleForTesting;
import androidx.core.os.OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0;
import androidx.credentials.exceptions.ClearCredentialException;
import androidx.credentials.exceptions.CreateCredentialException;
import androidx.credentials.exceptions.GetCredentialException;
import androidx.credentials.provider.utils.BeginCreateCredentialUtil;
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
import androidx.credentials.provider.utils.ClearCredentialUtil;
import kotlin.jvm.internal.Intrinsics;
@RequiresApi(34)
/* loaded from: classes.dex */
public abstract class CredentialProviderService extends android.service.credentials.CredentialProviderService {
private boolean isTestMode;
private ProviderClearCredentialStateRequest lastClearRequest;
private BeginCreateCredentialRequest lastCreateRequest;
private BeginGetCredentialRequest lastGetRequest;
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final ProviderClearCredentialStateRequest getLastClearRequest() {
return this.lastClearRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final BeginCreateCredentialRequest getLastCreateRequest() {
return this.lastCreateRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final BeginGetCredentialRequest getLastGetRequest() {
return this.lastGetRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final boolean isTestMode() {
return this.isTestMode;
}
public abstract void onBeginCreateCredentialRequest(BeginCreateCredentialRequest beginCreateCredentialRequest, CancellationSignal cancellationSignal, OutcomeReceiver outcomeReceiver);
public abstract void onBeginGetCredentialRequest(BeginGetCredentialRequest beginGetCredentialRequest, CancellationSignal cancellationSignal, OutcomeReceiver outcomeReceiver);
public abstract void onClearCredentialStateRequest(ProviderClearCredentialStateRequest providerClearCredentialStateRequest, CancellationSignal cancellationSignal, OutcomeReceiver outcomeReceiver);
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final void setLastClearRequest(ProviderClearCredentialStateRequest providerClearCredentialStateRequest) {
this.lastClearRequest = providerClearCredentialStateRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final void setLastCreateRequest(BeginCreateCredentialRequest beginCreateCredentialRequest) {
this.lastCreateRequest = beginCreateCredentialRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final void setLastGetRequest(BeginGetCredentialRequest beginGetCredentialRequest) {
this.lastGetRequest = beginGetCredentialRequest;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
@VisibleForTesting
public final void setTestMode(boolean z) {
this.isTestMode = z;
}
public final void onBeginGetCredential(android.service.credentials.BeginGetCredentialRequest request, CancellationSignal cancellationSignal, final OutcomeReceiver callback) {
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(cancellationSignal, "cancellationSignal");
Intrinsics.checkNotNullParameter(callback, "callback");
BeginGetCredentialRequest convertToJetpackRequest$credentials_release = BeginGetCredentialUtil.Companion.convertToJetpackRequest$credentials_release(request);
OutcomeReceiver outcomeReceiver = new OutcomeReceiver() { // from class: androidx.credentials.provider.CredentialProviderService$onBeginGetCredential$outcome$1
public void onResult(BeginGetCredentialResponse response) {
Intrinsics.checkNotNullParameter(response, "response");
OutcomeReceiver.this.onResult(BeginGetCredentialUtil.Companion.convertToFrameworkResponse(response));
}
public void onError(GetCredentialException error) {
Intrinsics.checkNotNullParameter(error, "error");
OutcomeReceiver outcomeReceiver2 = OutcomeReceiver.this;
CredentialProviderService$onBeginGetCredential$outcome$1$$ExternalSyntheticApiModelOutline1.m();
outcomeReceiver2.onError(CredentialProviderService$onBeginGetCredential$outcome$1$$ExternalSyntheticApiModelOutline0.m(error.getType(), error.getMessage()));
}
};
if (this.isTestMode) {
this.lastGetRequest = convertToJetpackRequest$credentials_release;
}
onBeginGetCredentialRequest(convertToJetpackRequest$credentials_release, cancellationSignal, OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0.m(outcomeReceiver));
}
public final void onBeginCreateCredential(android.service.credentials.BeginCreateCredentialRequest request, CancellationSignal cancellationSignal, final OutcomeReceiver callback) {
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(cancellationSignal, "cancellationSignal");
Intrinsics.checkNotNullParameter(callback, "callback");
OutcomeReceiver outcomeReceiver = new OutcomeReceiver() { // from class: androidx.credentials.provider.CredentialProviderService$onBeginCreateCredential$outcome$1
public void onResult(BeginCreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(response, "response");
OutcomeReceiver.this.onResult(BeginCreateCredentialUtil.Companion.convertToFrameworkResponse(response));
}
public void onError(CreateCredentialException error) {
Intrinsics.checkNotNullParameter(error, "error");
OutcomeReceiver outcomeReceiver2 = OutcomeReceiver.this;
CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline3.m();
outcomeReceiver2.onError(CredentialProviderService$onBeginCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline2.m(error.getType(), error.getMessage()));
}
};
BeginCreateCredentialRequest convertToJetpackRequest$credentials_release = BeginCreateCredentialUtil.Companion.convertToJetpackRequest$credentials_release(request);
if (this.isTestMode) {
this.lastCreateRequest = convertToJetpackRequest$credentials_release;
}
onBeginCreateCredentialRequest(convertToJetpackRequest$credentials_release, cancellationSignal, OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0.m(outcomeReceiver));
}
public final void onClearCredentialState(ClearCredentialStateRequest request, CancellationSignal cancellationSignal, final OutcomeReceiver callback) {
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(cancellationSignal, "cancellationSignal");
Intrinsics.checkNotNullParameter(callback, "callback");
OutcomeReceiver outcomeReceiver = new OutcomeReceiver() { // from class: androidx.credentials.provider.CredentialProviderService$onClearCredentialState$outcome$1
public void onResult(Void r2) {
OutcomeReceiver.this.onResult(r2);
}
public void onError(ClearCredentialException error) {
Intrinsics.checkNotNullParameter(error, "error");
OutcomeReceiver outcomeReceiver2 = OutcomeReceiver.this;
CredentialProviderService$onClearCredentialState$outcome$1$$ExternalSyntheticApiModelOutline1.m();
outcomeReceiver2.onError(CredentialProviderService$onClearCredentialState$outcome$1$$ExternalSyntheticApiModelOutline0.m(error.getType(), error.getMessage()));
}
};
ProviderClearCredentialStateRequest convertToJetpackRequest$credentials_release = ClearCredentialUtil.Companion.convertToJetpackRequest$credentials_release(request);
if (this.isTestMode) {
this.lastClearRequest = convertToJetpackRequest$credentials_release;
}
onClearCredentialStateRequest(convertToJetpackRequest$credentials_release, cancellationSignal, OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0.m(outcomeReceiver));
}
}

View File

@@ -0,0 +1,791 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.app.slice.SliceSpec;
import android.content.Context;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.CredentialOption;
import androidx.credentials.R;
import androidx.credentials.provider.utils.CryptoObjectUtils;
import java.time.Instant;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@RequiresApi(23)
@SourceDebugExtension({"SMAP\nCustomCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,907:1\n1#2:908\n*E\n"})
/* loaded from: classes.dex */
public final class CustomCredentialEntry extends CredentialEntry {
public static final Companion Companion = new Companion(null);
private static final String TAG = "CredentialEntry";
private final Icon icon;
private final boolean isAutoSelectAllowed;
private final boolean isAutoSelectAllowedFromOption;
private boolean isCreatedFromSlice;
private boolean isDefaultIconFromSlice;
private final Instant lastUsedTime;
private final PendingIntent pendingIntent;
private final CharSequence subtitle;
private final CharSequence title;
private final String type;
private final CharSequence typeDisplayName;
public static final CustomCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
return Companion.fromCredentialEntry(credentialEntry);
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CustomCredentialEntry fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CustomCredentialEntry customCredentialEntry) {
return Companion.toSlice(customCredentialEntry);
}
public final Icon getIcon() {
return this.icon;
}
public final Instant getLastUsedTime() {
return this.lastUsedTime;
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final CharSequence getSubtitle() {
return this.subtitle;
}
public final CharSequence getTitle() {
return this.title;
}
@Override // androidx.credentials.provider.CredentialEntry
public String getType() {
return this.type;
}
public final CharSequence getTypeDisplayName() {
return this.typeDisplayName;
}
public final boolean isAutoSelectAllowed() {
return this.isAutoSelectAllowed;
}
public final boolean isAutoSelectAllowedFromOption() {
return this.isAutoSelectAllowedFromOption;
}
public /* synthetic */ CustomCredentialEntry(String str, CharSequence charSequence, PendingIntent pendingIntent, boolean z, CharSequence charSequence2, CharSequence charSequence3, Icon icon, Instant instant, BeginGetCredentialOption beginGetCredentialOption, boolean z2, CharSequence charSequence4, CharSequence charSequence5, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, charSequence, pendingIntent, z, charSequence2, charSequence3, icon, instant, beginGetCredentialOption, z2, (i & 1024) != 0 ? charSequence : charSequence4, (i & 2048) != 0 ? null : charSequence5, (i & 4096) != 0 ? null : biometricPromptData, (i & 8192) != 0 ? CredentialOption.Companion.extractAutoSelectValue$credentials_release(beginGetCredentialOption.getCandidateQueryData()) : z3, (i & 16384) != 0 ? false : z4, (i & 32768) != 0 ? false : z5);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public CustomCredentialEntry(String type, CharSequence title, PendingIntent pendingIntent, boolean z, CharSequence charSequence, CharSequence charSequence2, Icon icon, Instant instant, BeginGetCredentialOption beginGetCredentialOption, boolean z2, CharSequence charSequence3, CharSequence charSequence4, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5) {
super(type, beginGetCredentialOption, charSequence3 == null ? title : charSequence3, z2, charSequence4, biometricPromptData);
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(icon, "icon");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
this.type = type;
this.title = title;
this.pendingIntent = pendingIntent;
this.isAutoSelectAllowed = z;
this.subtitle = charSequence;
this.typeDisplayName = charSequence2;
this.icon = icon;
this.lastUsedTime = instant;
this.isCreatedFromSlice = z4;
this.isDefaultIconFromSlice = z5;
this.isAutoSelectAllowedFromOption = z3;
if (getType().length() <= 0) {
throw new IllegalArgumentException("type must not be empty".toString());
}
if (title.length() <= 0) {
throw new IllegalArgumentException("title must not be empty".toString());
}
}
public final boolean hasDefaultIcon() {
if (Build.VERSION.SDK_INT >= 28) {
return Api28Impl.isDefaultIcon(this);
}
return false;
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ CustomCredentialEntry(android.content.Context r14, java.lang.CharSequence r15, android.app.PendingIntent r16, androidx.credentials.provider.BeginGetCredentialOption r17, java.lang.CharSequence r18, java.lang.CharSequence r19, java.time.Instant r20, android.graphics.drawable.Icon r21, boolean r22, int r23, kotlin.jvm.internal.DefaultConstructorMarker r24) {
/*
r13 = this;
r0 = r23
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r18
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r19
L13:
r1 = r0 & 64
if (r1 == 0) goto L19
r10 = r2
goto L1b
L19:
r10 = r20
L1b:
r1 = r0 & 128(0x80, float:1.8E-43)
if (r1 == 0) goto L2d
int r1 = androidx.credentials.R.drawable.ic_other_sign_in
r2 = r14
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r14, r1)
java.lang.String r3 = "createWithResource(conte…rawable.ic_other_sign_in)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r11 = r1
goto L30
L2d:
r2 = r14
r11 = r21
L30:
r0 = r0 & 256(0x100, float:3.59E-43)
if (r0 == 0) goto L37
r0 = 0
r12 = r0
goto L39
L37:
r12 = r22
L39:
r3 = r13
r4 = r14
r5 = r15
r6 = r16
r7 = r17
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.CustomCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetCredentialOption, java.lang.CharSequence, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public /* synthetic */ CustomCredentialEntry(Context context, CharSequence title, PendingIntent pendingIntent, BeginGetCredentialOption beginGetCredentialOption, CharSequence charSequence, CharSequence charSequence2, Instant instant, Icon icon, boolean z) {
this(beginGetCredentialOption.getType(), title, pendingIntent, z, charSequence, charSequence2, icon, instant, beginGetCredentialOption, false, null, null, null, false, false, false, 64512, null);
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
Intrinsics.checkNotNullParameter(icon, "icon");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ CustomCredentialEntry(android.content.Context r17, java.lang.CharSequence r18, android.app.PendingIntent r19, androidx.credentials.provider.BeginGetCredentialOption r20, java.lang.CharSequence r21, java.lang.CharSequence r22, java.time.Instant r23, android.graphics.drawable.Icon r24, boolean r25, java.lang.CharSequence r26, boolean r27, androidx.credentials.provider.BiometricPromptData r28, int r29, kotlin.jvm.internal.DefaultConstructorMarker r30) {
/*
r16 = this;
r0 = r29
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r21
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r22
L13:
r1 = r0 & 64
if (r1 == 0) goto L19
r10 = r2
goto L1b
L19:
r10 = r23
L1b:
r1 = r0 & 128(0x80, float:1.8E-43)
if (r1 == 0) goto L2e
int r1 = androidx.credentials.R.drawable.ic_other_sign_in
r4 = r17
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r4, r1)
java.lang.String r3 = "createWithResource(conte…rawable.ic_other_sign_in)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r11 = r1
goto L32
L2e:
r4 = r17
r11 = r24
L32:
r1 = r0 & 256(0x100, float:3.59E-43)
r3 = 0
if (r1 == 0) goto L39
r12 = r3
goto L3b
L39:
r12 = r25
L3b:
r1 = r0 & 512(0x200, float:7.17E-43)
if (r1 == 0) goto L42
r13 = r18
goto L44
L42:
r13 = r26
L44:
r1 = r0 & 1024(0x400, float:1.435E-42)
if (r1 == 0) goto L4a
r14 = r3
goto L4c
L4a:
r14 = r27
L4c:
r0 = r0 & 2048(0x800, float:2.87E-42)
if (r0 == 0) goto L52
r15 = r2
goto L54
L52:
r15 = r28
L54:
r3 = r16
r4 = r17
r5 = r18
r6 = r19
r7 = r20
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.CustomCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetCredentialOption, java.lang.CharSequence, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean, androidx.credentials.provider.BiometricPromptData, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
@RequiresApi(35)
public CustomCredentialEntry(Context context, CharSequence title, PendingIntent pendingIntent, BeginGetCredentialOption beginGetCredentialOption, CharSequence charSequence, CharSequence charSequence2, Instant instant, Icon icon, boolean z, CharSequence entryGroupId, boolean z2, BiometricPromptData biometricPromptData) {
this(beginGetCredentialOption.getType(), title, pendingIntent, z, charSequence, charSequence2, icon, instant, beginGetCredentialOption, z2, entryGroupId.length() == 0 ? title : entryGroupId, null, biometricPromptData, false, false, false, 59392, null);
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
Intrinsics.checkNotNullParameter(icon, "icon");
Intrinsics.checkNotNullParameter(entryGroupId, "entryGroupId");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ CustomCredentialEntry(android.content.Context r16, java.lang.CharSequence r17, android.app.PendingIntent r18, androidx.credentials.provider.BeginGetCredentialOption r19, java.lang.CharSequence r20, java.lang.CharSequence r21, java.time.Instant r22, android.graphics.drawable.Icon r23, boolean r24, java.lang.CharSequence r25, boolean r26, int r27, kotlin.jvm.internal.DefaultConstructorMarker r28) {
/*
r15 = this;
r0 = r27
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r20
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r21
L13:
r1 = r0 & 64
if (r1 == 0) goto L19
r10 = r2
goto L1b
L19:
r10 = r22
L1b:
r1 = r0 & 128(0x80, float:1.8E-43)
if (r1 == 0) goto L2e
int r1 = androidx.credentials.R.drawable.ic_other_sign_in
r2 = r16
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r2, r1)
java.lang.String r3 = "createWithResource(conte…rawable.ic_other_sign_in)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r11 = r1
goto L32
L2e:
r2 = r16
r11 = r23
L32:
r1 = r0 & 256(0x100, float:3.59E-43)
r3 = 0
if (r1 == 0) goto L39
r12 = r3
goto L3b
L39:
r12 = r24
L3b:
r1 = r0 & 512(0x200, float:7.17E-43)
if (r1 == 0) goto L42
r13 = r17
goto L44
L42:
r13 = r25
L44:
r0 = r0 & 1024(0x400, float:1.435E-42)
if (r0 == 0) goto L4a
r14 = r3
goto L4c
L4a:
r14 = r26
L4c:
r3 = r15
r4 = r16
r5 = r17
r6 = r18
r7 = r19
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.CustomCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetCredentialOption, java.lang.CharSequence, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public CustomCredentialEntry(Context context, CharSequence title, PendingIntent pendingIntent, BeginGetCredentialOption beginGetCredentialOption, CharSequence charSequence, CharSequence charSequence2, Instant instant, Icon icon, boolean z, CharSequence entryGroupId, boolean z2) {
this(beginGetCredentialOption.getType(), title, pendingIntent, z, charSequence, charSequence2, icon, instant, beginGetCredentialOption, z2, entryGroupId.length() == 0 ? title : entryGroupId, null, null, false, false, false, 63488, null);
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
Intrinsics.checkNotNullParameter(icon, "icon");
Intrinsics.checkNotNullParameter(entryGroupId, "entryGroupId");
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final CustomCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
Slice slice = credentialEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "credentialEntry.slice");
return CustomCredentialEntry.Companion.fromSlice(slice);
}
}
@RequiresApi(35)
@SourceDebugExtension({"SMAP\nCustomCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry$Api35Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,907:1\n1855#2,2:908\n*S KotlinDebug\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry$Api35Impl\n*L\n370#1:908,2\n*E\n"})
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CustomCredentialEntry entry) {
Slice build;
Intrinsics.checkNotNullParameter(entry, "entry");
String type = entry.getType();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
Slice.Builder m = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m(type, 1));
Api28Impl.INSTANCE.addToSlice(entry, m);
INSTANCE.addToSlice(entry, m);
build = m.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(CustomCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BiometricPromptData biometricPromptData = entry.getBiometricPromptData();
if (biometricPromptData != null) {
sliceBuilder.addInt(biometricPromptData.getAllowedAuthenticators(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS));
if (biometricPromptData.getCryptoObject() != null) {
sliceBuilder.addLong(CryptoObjectUtils.INSTANCE.getOperationHandle(biometricPromptData.getCryptoObject()), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_CRYPTO_OP_ID));
}
sliceBuilder.addBundle(BiometricPromptData.Companion.toBundle(biometricPromptData), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA));
}
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CustomCredentialEntry fromSlice(Slice slice) {
List items;
boolean hasHint;
Intrinsics.checkNotNullParameter(slice, "slice");
CustomCredentialEntry fromSlice = Api28Impl.fromSlice(slice);
if (fromSlice == null) {
return null;
}
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
Bundle bundle = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA);
if (hasHint) {
bundle = m.getBundle();
}
}
try {
return new CustomCredentialEntry(fromSlice.getType(), fromSlice.getTitle(), fromSlice.getPendingIntent(), fromSlice.isAutoSelectAllowed(), fromSlice.getSubtitle(), fromSlice.getTypeDisplayName(), fromSlice.getIcon(), fromSlice.getLastUsedTime(), fromSlice.getBeginGetCredentialOption(), fromSlice.isDefaultIconPreferredAsSingleProvider(), fromSlice.getEntryGroupId(), fromSlice.getAffiliatedDomain(), bundle != null ? BiometricPromptData.Companion.fromBundle(bundle) : null, fromSlice.isAutoSelectAllowedFromOption(), true, fromSlice.isDefaultIconFromSlice);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
@RequiresApi(28)
@SourceDebugExtension({"SMAP\nCustomCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry$Api28Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,907:1\n1855#2,2:908\n*S KotlinDebug\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry$Api28Impl\n*L\n531#1:908,2\n*E\n"})
public static final class Api28Impl {
public static final Api28Impl INSTANCE = new Api28Impl();
private Api28Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final boolean isDefaultIcon(CustomCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
if (entry.isCreatedFromSlice) {
return entry.isDefaultIconFromSlice;
}
return entry.getIcon().getType() == 2 && entry.getIcon().getResId() == R.drawable.ic_other_sign_in;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(CustomCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
Slice.Builder builder = new Slice.Builder(Uri.EMPTY, new SliceSpec(entry.getType(), 1));
INSTANCE.addToSlice(entry, builder);
Slice build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(CustomCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BeginGetCredentialOption beginGetCredentialOption = entry.getBeginGetCredentialOption();
sliceBuilder.addText(beginGetCredentialOption.getId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_OPTION_ID)).addText(entry.getEntryGroupId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)).addText(entry.isDefaultIconPreferredAsSingleProvider() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)).addText(entry.getAffiliatedDomain(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN));
CharSequence title = entry.getTitle();
CharSequence subtitle = entry.getSubtitle();
PendingIntent pendingIntent = entry.getPendingIntent();
CharSequence typeDisplayName = entry.getTypeDisplayName();
Instant lastUsedTime = entry.getLastUsedTime();
sliceBuilder.addText(typeDisplayName, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)).addText(title, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TITLE)).addText(subtitle, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_SUBTITLE)).addText(entry.isAutoSelectAllowed() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)).addIcon(entry.getIcon(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ICON));
try {
if (entry.hasDefaultIcon()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID));
}
} catch (IllegalStateException unused) {
}
if (entry.isAutoSelectAllowedFromOption()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION));
}
if (lastUsedTime != null) {
sliceBuilder.addLong(lastUsedTime.toEpochMilli(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS));
}
sliceBuilder.addAction(pendingIntent, new Slice.Builder(sliceBuilder).addHints(Collections.singletonList(CredentialEntry.SLICE_HINT_PENDING_INTENT)).build(), null);
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CustomCredentialEntry fromSlice(Slice slice) {
Iterator it;
Intrinsics.checkNotNullParameter(slice, "slice");
SliceSpec spec = slice.getSpec();
Intrinsics.checkNotNull(spec);
String type = spec.getType();
Intrinsics.checkNotNullExpressionValue(type, "slice.spec!!.type");
List<SliceItem> items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it2 = items.iterator();
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
CharSequence charSequence = null;
CharSequence charSequence2 = null;
PendingIntent pendingIntent = null;
CharSequence charSequence3 = null;
CharSequence charSequence4 = null;
Icon icon = null;
Instant instant = null;
CharSequence charSequence5 = null;
CharSequence charSequence6 = null;
while (it2.hasNext()) {
SliceItem sliceItem = (SliceItem) it2.next();
if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_OPTION_ID)) {
charSequence = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)) {
charSequence5 = sliceItem.getText();
} else {
it = it2;
if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z2 = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN)) {
charSequence6 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)) {
charSequence4 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TITLE)) {
charSequence2 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_SUBTITLE)) {
charSequence3 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_ICON)) {
icon = sliceItem.getIcon();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_PENDING_INTENT)) {
pendingIntent = sliceItem.getAction();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS)) {
instant = Instant.ofEpochMilli(sliceItem.getLong());
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION)) {
z3 = true;
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID)) {
z4 = true;
}
it2 = it;
}
it = it2;
it2 = it;
}
try {
Intrinsics.checkNotNull(charSequence2);
Intrinsics.checkNotNull(pendingIntent);
Intrinsics.checkNotNull(icon);
Intrinsics.checkNotNull(charSequence);
return new CustomCredentialEntry(type, charSequence2, pendingIntent, z, charSequence3, charSequence4, icon, instant, new BeginGetCustomCredentialOption(charSequence.toString(), type, new Bundle()), z2, charSequence5, charSequence6, null, z3, true, z4, 4096, null);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(CustomCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.toSlice(entry);
}
if (i >= 28) {
return Api28Impl.toSlice(entry);
}
return null;
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final CustomCredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.fromSlice(slice);
}
if (i >= 28) {
return Api28Impl.fromSlice(slice);
}
return null;
}
public final CustomCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromCredentialEntry(credentialEntry);
}
return null;
}
public final void marshall$credentials_release(CustomCredentialEntry customCredentialEntry, Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(customCredentialEntry, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
CredentialEntry.Companion.marshallCommonProperties$credentials_release(customCredentialEntry, bundle, i);
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i, customCredentialEntry.getPendingIntent());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, customCredentialEntry.isAutoSelectAllowed());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, customCredentialEntry.isAutoSelectAllowedFromOption());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, customCredentialEntry.hasDefaultIcon());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i, customCredentialEntry.getTitle());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i, customCredentialEntry.getTypeDisplayName());
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i, customCredentialEntry.getIcon());
CharSequence subtitle = customCredentialEntry.getSubtitle();
if (subtitle != null) {
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i, subtitle);
}
Instant lastUsedTime = customCredentialEntry.getLastUsedTime();
if (lastUsedTime != null) {
bundle.putSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i, lastUsedTime);
}
}
public final CustomCredentialEntry unmarshall$credentials_release(Bundle bundle, int i, String type) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
Intrinsics.checkNotNullParameter(type, "type");
try {
String string = bundle.getString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_ID_PREFIX + i);
Intrinsics.checkNotNull(string);
Bundle bundle2 = bundle.getBundle(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_DATA_PREFIX + i);
Intrinsics.checkNotNull(bundle2);
CharSequence charSequence = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_GROUP_ID_PREFIX + i);
boolean z = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_PREFIX + i, false);
CharSequence charSequence2 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_PREFIX + i);
Parcelable parcelable = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i);
Intrinsics.checkNotNull(parcelable);
boolean z2 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, false);
boolean z3 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, false);
boolean z4 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, false);
CharSequence charSequence3 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i);
Intrinsics.checkNotNull(charSequence3);
CharSequence charSequence4 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i);
Parcelable parcelable2 = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i);
Intrinsics.checkNotNull(parcelable2);
return new CustomCredentialEntry(type, charSequence3, (PendingIntent) parcelable, z2, bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i), charSequence4, (Icon) parcelable2, (Instant) bundle.getSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i), new BeginGetCustomCredentialOption(string, type, bundle2), z, charSequence, charSequence2, null, z3, true, z4);
} catch (Exception unused) {
return null;
}
}
}
@SourceDebugExtension({"SMAP\nCustomCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CustomCredentialEntry.kt\nandroidx/credentials/provider/CustomCredentialEntry$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,907:1\n1#2:908\n*E\n"})
public static final class Builder {
private boolean autoSelectAllowed;
private final BeginGetCredentialOption beginGetCredentialOption;
private BiometricPromptData biometricPromptData;
private final Context context;
private CharSequence entryGroupId;
private Icon icon;
private boolean isDefaultIconPreferredAsSingleProvider;
private Instant lastUsedTime;
private final PendingIntent pendingIntent;
private CharSequence subtitle;
private final CharSequence title;
private final String type;
private CharSequence typeDisplayName;
public final Builder setAutoSelectAllowed(boolean z) {
this.autoSelectAllowed = z;
return this;
}
@RequiresApi(35)
public final Builder setBiometricPromptData(BiometricPromptData biometricPromptData) {
this.biometricPromptData = biometricPromptData;
return this;
}
public final Builder setDefaultIconPreferredAsSingleProvider(boolean z) {
this.isDefaultIconPreferredAsSingleProvider = z;
return this;
}
public final Builder setIcon(Icon icon) {
Intrinsics.checkNotNullParameter(icon, "icon");
this.icon = icon;
return this;
}
public final Builder setLastUsedTime(Instant instant) {
this.lastUsedTime = instant;
return this;
}
public final Builder setSubtitle(CharSequence charSequence) {
this.subtitle = charSequence;
return this;
}
public final Builder setTypeDisplayName(CharSequence charSequence) {
this.typeDisplayName = charSequence;
return this;
}
public Builder(Context context, String type, CharSequence title, PendingIntent pendingIntent, BeginGetCredentialOption beginGetCredentialOption) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetCredentialOption, "beginGetCredentialOption");
this.context = context;
this.type = type;
this.title = title;
this.pendingIntent = pendingIntent;
this.beginGetCredentialOption = beginGetCredentialOption;
this.entryGroupId = title;
}
public final Builder setEntryGroupId(CharSequence entryGroupId) {
Intrinsics.checkNotNullParameter(entryGroupId, "entryGroupId");
if (entryGroupId.length() <= 0) {
throw new IllegalArgumentException("entryGroupId must not be empty".toString());
}
this.entryGroupId = entryGroupId;
return this;
}
public final CustomCredentialEntry build() {
if (this.icon == null) {
this.icon = Icon.createWithResource(this.context, R.drawable.ic_other_sign_in);
}
String str = this.type;
CharSequence charSequence = this.title;
PendingIntent pendingIntent = this.pendingIntent;
boolean z = this.autoSelectAllowed;
CharSequence charSequence2 = this.subtitle;
CharSequence charSequence3 = this.typeDisplayName;
Icon icon = this.icon;
Intrinsics.checkNotNull(icon);
return new CustomCredentialEntry(str, charSequence, pendingIntent, z, charSequence2, charSequence3, icon, this.lastUsedTime, this.beginGetCredentialOption, this.isDefaultIconPreferredAsSingleProvider, this.entryGroupId, null, this.biometricPromptData, false, false, false, 59392, null);
}
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.CreateCredentialResponse;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline0 {
public static /* bridge */ /* synthetic */ Class m() {
return CreateCredentialResponse.class;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.GetCredentialException;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline2 {
public static /* bridge */ /* synthetic */ Class m() {
return GetCredentialException.class;
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.GetCredentialResponse;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline3 {
public static /* bridge */ /* synthetic */ Class m() {
return GetCredentialResponse.class;
}
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider;
import android.credentials.CreateCredentialException;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline4 {
public static /* bridge */ /* synthetic */ Class m() {
return CreateCredentialException.class;
}
}

View File

@@ -0,0 +1,8 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline5 {
public static /* bridge */ /* synthetic */ Class m() {
return android.service.credentials.BeginGetCredentialResponse.class;
}
}

View File

@@ -0,0 +1,8 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class IntentHandlerConverters$$ExternalSyntheticApiModelOutline6 {
public static /* bridge */ /* synthetic */ android.service.credentials.BeginGetCredentialResponse m(Object obj) {
return (android.service.credentials.BeginGetCredentialResponse) obj;
}
}

View File

@@ -0,0 +1,76 @@
package androidx.credentials.provider;
import android.content.Intent;
import android.credentials.CreateCredentialException;
import android.credentials.CreateCredentialResponse;
import android.credentials.GetCredentialException;
import android.credentials.GetCredentialResponse;
import androidx.annotation.RequiresApi;
import androidx.credentials.Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline0;
import androidx.credentials.Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline3;
import androidx.credentials.CredentialProviderFrameworkImpl$onCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline1;
import androidx.credentials.CredentialProviderFrameworkImpl$onCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline2;
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class IntentHandlerConverters {
@RequiresApi(34)
public static final CreateCredentialException getCreateCredentialException(Intent intent) {
Object parcelableExtra;
Intrinsics.checkNotNullParameter(intent, "<this>");
if (!intent.hasExtra("android.service.credentials.extra.CREATE_CREDENTIAL_EXCEPTION")) {
return null;
}
parcelableExtra = intent.getParcelableExtra("android.service.credentials.extra.CREATE_CREDENTIAL_EXCEPTION", IntentHandlerConverters$$ExternalSyntheticApiModelOutline4.m());
return CredentialProviderFrameworkImpl$onCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline2.m(parcelableExtra);
}
@RequiresApi(34)
public static final GetCredentialException getGetCredentialException(Intent intent) {
Object parcelableExtra;
Intrinsics.checkNotNullParameter(intent, "<this>");
if (!intent.hasExtra("android.service.credentials.extra.GET_CREDENTIAL_EXCEPTION")) {
return null;
}
parcelableExtra = intent.getParcelableExtra("android.service.credentials.extra.GET_CREDENTIAL_EXCEPTION", IntentHandlerConverters$$ExternalSyntheticApiModelOutline2.m());
return Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline3.m(parcelableExtra);
}
@RequiresApi(34)
public static final BeginGetCredentialResponse getBeginGetResponse(Intent intent) {
Object parcelableExtra;
Intrinsics.checkNotNullParameter(intent, "<this>");
if (!intent.hasExtra("android.service.credentials.extra.BEGIN_GET_CREDENTIAL_RESPONSE")) {
return null;
}
parcelableExtra = intent.getParcelableExtra("android.service.credentials.extra.BEGIN_GET_CREDENTIAL_RESPONSE", IntentHandlerConverters$$ExternalSyntheticApiModelOutline5.m());
android.service.credentials.BeginGetCredentialResponse m = IntentHandlerConverters$$ExternalSyntheticApiModelOutline6.m(parcelableExtra);
if (m == null) {
return null;
}
return BeginGetCredentialUtil.Companion.convertToJetpackResponse(m);
}
@RequiresApi(34)
public static final GetCredentialResponse getGetCredentialResponse(Intent intent) {
Object parcelableExtra;
Intrinsics.checkNotNullParameter(intent, "<this>");
if (!intent.hasExtra("android.service.credentials.extra.GET_CREDENTIAL_RESPONSE")) {
return null;
}
parcelableExtra = intent.getParcelableExtra("android.service.credentials.extra.GET_CREDENTIAL_RESPONSE", IntentHandlerConverters$$ExternalSyntheticApiModelOutline3.m());
return Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline0.m(parcelableExtra);
}
@RequiresApi(34)
public static final CreateCredentialResponse getCreateCredentialCredentialResponse(Intent intent) {
Object parcelableExtra;
Intrinsics.checkNotNullParameter(intent, "<this>");
if (!intent.hasExtra("android.service.credentials.extra.CREATE_CREDENTIAL_RESPONSE")) {
return null;
}
parcelableExtra = intent.getParcelableExtra("android.service.credentials.extra.CREATE_CREDENTIAL_RESPONSE", IntentHandlerConverters$$ExternalSyntheticApiModelOutline0.m());
return CredentialProviderFrameworkImpl$onCreateCredential$outcome$1$$ExternalSyntheticApiModelOutline1.m(parcelableExtra);
}
}

View File

@@ -0,0 +1,867 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.app.slice.SliceSpec;
import android.content.Context;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.CredentialOption;
import androidx.credentials.PasswordCredential;
import androidx.credentials.R;
import androidx.credentials.provider.BeginGetPasswordOption;
import androidx.credentials.provider.utils.CryptoObjectUtils;
import java.time.Instant;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@RequiresApi(23)
@SourceDebugExtension({"SMAP\nPasswordCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PasswordCredentialEntry.kt\nandroidx/credentials/provider/PasswordCredentialEntry\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,899:1\n1#2:900\n*E\n"})
/* loaded from: classes.dex */
public final class PasswordCredentialEntry extends CredentialEntry {
public static final Companion Companion = new Companion(null);
private static final String TAG = "PasswordCredentialEntry";
private final CharSequence displayName;
private final Icon icon;
private final boolean isAutoSelectAllowed;
private final boolean isAutoSelectAllowedFromOption;
private boolean isCreatedFromSlice;
private boolean isDefaultIconFromSlice;
private final Instant lastUsedTime;
private final PendingIntent pendingIntent;
private final CharSequence typeDisplayName;
private final CharSequence username;
public static final PasswordCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
return Companion.fromCredentialEntry(credentialEntry);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PasswordCredentialEntry fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PasswordCredentialEntry passwordCredentialEntry) {
return Companion.toSlice(passwordCredentialEntry);
}
public final CharSequence getDisplayName() {
return this.displayName;
}
public final Icon getIcon() {
return this.icon;
}
public final Instant getLastUsedTime() {
return this.lastUsedTime;
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final CharSequence getTypeDisplayName() {
return this.typeDisplayName;
}
public final CharSequence getUsername() {
return this.username;
}
public final boolean isAutoSelectAllowed() {
return this.isAutoSelectAllowed;
}
public final boolean isAutoSelectAllowedFromOption() {
return this.isAutoSelectAllowedFromOption;
}
public /* synthetic */ PasswordCredentialEntry(CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, PendingIntent pendingIntent, Instant instant, Icon icon, boolean z, BeginGetPasswordOption beginGetPasswordOption, boolean z2, CharSequence charSequence4, CharSequence charSequence5, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, charSequence2, charSequence3, pendingIntent, instant, icon, z, beginGetPasswordOption, z2, (i & 512) != 0 ? charSequence : charSequence4, (i & 1024) != 0 ? null : charSequence5, (i & 2048) != 0 ? null : biometricPromptData, (i & 4096) != 0 ? CredentialOption.Companion.extractAutoSelectValue$credentials_release(beginGetPasswordOption.getCandidateQueryData()) : z3, (i & 8192) != 0 ? false : z4, (i & 16384) != 0 ? false : z5);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public PasswordCredentialEntry(CharSequence username, CharSequence charSequence, CharSequence typeDisplayName, PendingIntent pendingIntent, Instant instant, Icon icon, boolean z, BeginGetPasswordOption beginGetPasswordOption, boolean z2, CharSequence charSequence2, CharSequence charSequence3, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5) {
super(PasswordCredential.TYPE_PASSWORD_CREDENTIAL, beginGetPasswordOption, charSequence2 == null ? username : charSequence2, z2, charSequence3, biometricPromptData);
Intrinsics.checkNotNullParameter(username, "username");
Intrinsics.checkNotNullParameter(typeDisplayName, "typeDisplayName");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(icon, "icon");
Intrinsics.checkNotNullParameter(beginGetPasswordOption, "beginGetPasswordOption");
this.username = username;
this.displayName = charSequence;
this.typeDisplayName = typeDisplayName;
this.pendingIntent = pendingIntent;
this.lastUsedTime = instant;
this.icon = icon;
this.isAutoSelectAllowed = z;
this.isCreatedFromSlice = z4;
this.isDefaultIconFromSlice = z5;
this.isAutoSelectAllowedFromOption = z3;
if (username.length() <= 0) {
throw new IllegalArgumentException("username must not be empty".toString());
}
}
public final boolean hasDefaultIcon() {
if (Build.VERSION.SDK_INT >= 28) {
return Api28Impl.isDefaultIcon(this);
}
return false;
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PasswordCredentialEntry(android.content.Context r15, java.lang.CharSequence r16, android.app.PendingIntent r17, androidx.credentials.provider.BeginGetPasswordOption r18, java.lang.CharSequence r19, java.time.Instant r20, android.graphics.drawable.Icon r21, boolean r22, java.lang.CharSequence r23, boolean r24, int r25, kotlin.jvm.internal.DefaultConstructorMarker r26) {
/*
r14 = this;
r0 = r25
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r19
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r20
L13:
r1 = r0 & 64
if (r1 == 0) goto L25
int r1 = androidx.credentials.R.drawable.ic_password
r4 = r15
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r15, r1)
java.lang.String r3 = "createWithResource(conte…, R.drawable.ic_password)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L28
L25:
r4 = r15
r10 = r21
L28:
r1 = r0 & 128(0x80, float:1.8E-43)
r3 = 0
if (r1 == 0) goto L2f
r11 = r3
goto L31
L2f:
r11 = r22
L31:
r1 = r0 & 256(0x100, float:3.59E-43)
if (r1 == 0) goto L37
r12 = r2
goto L39
L37:
r12 = r23
L39:
r0 = r0 & 512(0x200, float:7.17E-43)
if (r0 == 0) goto L3f
r13 = r3
goto L41
L3f:
r13 = r24
L41:
r3 = r14
r4 = r15
r5 = r16
r6 = r17
r7 = r18
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public PasswordCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPasswordOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27, java.lang.CharSequence r28, boolean r29) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r6 = r25
r7 = r26
r8 = r27
r12 = r28
r10 = r29
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r11 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "pendingIntent"
r11 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "beginGetPasswordOption"
r11 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "icon"
r11 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
int r4 = androidx.credentials.R.string.android_credentials_TYPE_PASSWORD_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r11 = "context.getString(R.stri…TYPE_PASSWORD_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r11)
r11 = 0
r13 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 31232(0x7a00, float:4.3765E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PasswordCredentialEntry(android.content.Context r16, java.lang.CharSequence r17, android.app.PendingIntent r18, androidx.credentials.provider.BeginGetPasswordOption r19, java.lang.CharSequence r20, java.time.Instant r21, android.graphics.drawable.Icon r22, boolean r23, java.lang.CharSequence r24, boolean r25, androidx.credentials.provider.BiometricPromptData r26, int r27, kotlin.jvm.internal.DefaultConstructorMarker r28) {
/*
r15 = this;
r0 = r27
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r20
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r21
L13:
r1 = r0 & 64
if (r1 == 0) goto L26
int r1 = androidx.credentials.R.drawable.ic_password
r4 = r16
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r4, r1)
java.lang.String r3 = "createWithResource(conte…, R.drawable.ic_password)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L2a
L26:
r4 = r16
r10 = r22
L2a:
r1 = r0 & 128(0x80, float:1.8E-43)
r3 = 0
if (r1 == 0) goto L31
r11 = r3
goto L33
L31:
r11 = r23
L33:
r1 = r0 & 256(0x100, float:3.59E-43)
if (r1 == 0) goto L39
r12 = r2
goto L3b
L39:
r12 = r24
L3b:
r1 = r0 & 512(0x200, float:7.17E-43)
if (r1 == 0) goto L41
r13 = r3
goto L43
L41:
r13 = r25
L43:
r0 = r0 & 1024(0x400, float:1.435E-42)
if (r0 == 0) goto L49
r14 = r2
goto L4b
L49:
r14 = r26
L4b:
r3 = r15
r4 = r16
r5 = r17
r6 = r18
r7 = r19
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean, androidx.credentials.provider.BiometricPromptData, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
@androidx.annotation.RequiresApi(35)
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public PasswordCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPasswordOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27, java.lang.CharSequence r28, boolean r29, androidx.credentials.provider.BiometricPromptData r30) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r6 = r25
r7 = r26
r8 = r27
r12 = r28
r10 = r29
r13 = r30
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r11 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "pendingIntent"
r11 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "beginGetPasswordOption"
r11 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "icon"
r11 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
int r4 = androidx.credentials.R.string.android_credentials_TYPE_PASSWORD_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r11 = "context.getString(R.stri…TYPE_PASSWORD_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r11)
r11 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 29184(0x7200, float:4.0895E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, java.lang.CharSequence, boolean, androidx.credentials.provider.BiometricPromptData):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PasswordCredentialEntry(android.content.Context r13, java.lang.CharSequence r14, android.app.PendingIntent r15, androidx.credentials.provider.BeginGetPasswordOption r16, java.lang.CharSequence r17, java.time.Instant r18, android.graphics.drawable.Icon r19, boolean r20, int r21, kotlin.jvm.internal.DefaultConstructorMarker r22) {
/*
r12 = this;
r0 = r21
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r17
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r18
L13:
r1 = r0 & 64
if (r1 == 0) goto L25
int r1 = androidx.credentials.R.drawable.ic_password
r2 = r13
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r13, r1)
java.lang.String r3 = "createWithResource(conte…, R.drawable.ic_password)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L28
L25:
r2 = r13
r10 = r19
L28:
r0 = r0 & 128(0x80, float:1.8E-43)
if (r0 == 0) goto L2f
r0 = 0
r11 = r0
goto L31
L2f:
r11 = r20
L31:
r3 = r12
r4 = r13
r5 = r14
r6 = r15
r7 = r16
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PasswordCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPasswordOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r6 = r25
r7 = r26
r8 = r27
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r10 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "pendingIntent"
r10 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "beginGetPasswordOption"
r10 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "icon"
r10 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
int r4 = androidx.credentials.R.string.android_credentials_TYPE_PASSWORD_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r10 = "context.getString(R.stri…TYPE_PASSWORD_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r10)
r10 = 0
r11 = 0
r12 = 0
r13 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 32256(0x7e00, float:4.52E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PasswordCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPasswordOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean):void");
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final PasswordCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
Slice slice = credentialEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "credentialEntry.slice");
return PasswordCredentialEntry.Companion.fromSlice(slice);
}
}
@RequiresApi(35)
@SourceDebugExtension({"SMAP\nPasswordCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PasswordCredentialEntry.kt\nandroidx/credentials/provider/PasswordCredentialEntry$Api35Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,899:1\n1855#2,2:900\n*S KotlinDebug\n*F\n+ 1 PasswordCredentialEntry.kt\nandroidx/credentials/provider/PasswordCredentialEntry$Api35Impl\n*L\n383#1:900,2\n*E\n"})
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PasswordCredentialEntry entry) {
Slice build;
Intrinsics.checkNotNullParameter(entry, "entry");
String type = entry.getType();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
Slice.Builder m = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m(type, 1));
Api28Impl.INSTANCE.addToSlice(entry, m);
INSTANCE.addToSlice(entry, m);
build = m.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(PasswordCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BiometricPromptData biometricPromptData = entry.getBiometricPromptData();
if (biometricPromptData != null) {
sliceBuilder.addInt(biometricPromptData.getAllowedAuthenticators(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS));
if (biometricPromptData.getCryptoObject() != null) {
sliceBuilder.addLong(CryptoObjectUtils.INSTANCE.getOperationHandle(biometricPromptData.getCryptoObject()), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_CRYPTO_OP_ID));
}
sliceBuilder.addBundle(BiometricPromptData.Companion.toBundle(biometricPromptData), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA));
}
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PasswordCredentialEntry fromSlice(Slice slice) {
List items;
boolean hasHint;
Intrinsics.checkNotNullParameter(slice, "slice");
PasswordCredentialEntry fromSlice = Api28Impl.fromSlice(slice);
if (fromSlice == null) {
return null;
}
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
Bundle bundle = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA);
if (hasHint) {
bundle = m.getBundle();
}
}
try {
CharSequence username = fromSlice.getUsername();
CharSequence displayName = fromSlice.getDisplayName();
CharSequence typeDisplayName = fromSlice.getTypeDisplayName();
PendingIntent pendingIntent = fromSlice.getPendingIntent();
Instant lastUsedTime = fromSlice.getLastUsedTime();
Icon icon = fromSlice.getIcon();
boolean isAutoSelectAllowed = fromSlice.isAutoSelectAllowed();
BeginGetCredentialOption beginGetCredentialOption = fromSlice.getBeginGetCredentialOption();
Intrinsics.checkNotNull(beginGetCredentialOption, "null cannot be cast to non-null type androidx.credentials.provider.BeginGetPasswordOption");
return new PasswordCredentialEntry(username, displayName, typeDisplayName, pendingIntent, lastUsedTime, icon, isAutoSelectAllowed, (BeginGetPasswordOption) beginGetCredentialOption, fromSlice.isDefaultIconPreferredAsSingleProvider(), fromSlice.getEntryGroupId(), fromSlice.getAffiliatedDomain(), bundle != null ? BiometricPromptData.Companion.fromBundle(bundle) : null, fromSlice.isAutoSelectAllowedFromOption(), true, fromSlice.isDefaultIconFromSlice);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
@RequiresApi(28)
@SourceDebugExtension({"SMAP\nPasswordCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PasswordCredentialEntry.kt\nandroidx/credentials/provider/PasswordCredentialEntry$Api28Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,899:1\n1855#2,2:900\n*S KotlinDebug\n*F\n+ 1 PasswordCredentialEntry.kt\nandroidx/credentials/provider/PasswordCredentialEntry$Api28Impl\n*L\n543#1:900,2\n*E\n"})
public static final class Api28Impl {
public static final Api28Impl INSTANCE = new Api28Impl();
private Api28Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final boolean isDefaultIcon(PasswordCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
if (entry.isCreatedFromSlice) {
return entry.isDefaultIconFromSlice;
}
return entry.getIcon().getType() == 2 && entry.getIcon().getResId() == R.drawable.ic_password;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PasswordCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
Slice.Builder builder = new Slice.Builder(Uri.EMPTY, new SliceSpec(entry.getType(), 1));
INSTANCE.addToSlice(entry, builder);
Slice build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(PasswordCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BeginGetCredentialOption beginGetCredentialOption = entry.getBeginGetCredentialOption();
sliceBuilder.addText(beginGetCredentialOption.getId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_OPTION_ID)).addText(entry.getEntryGroupId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)).addText(entry.isDefaultIconPreferredAsSingleProvider() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)).addText(entry.getAffiliatedDomain(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN));
CharSequence username = entry.getUsername();
CharSequence displayName = entry.getDisplayName();
PendingIntent pendingIntent = entry.getPendingIntent();
CharSequence typeDisplayName = entry.getTypeDisplayName();
Instant lastUsedTime = entry.getLastUsedTime();
sliceBuilder.addText(typeDisplayName, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)).addText(username, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TITLE)).addText(displayName, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_SUBTITLE)).addText(entry.isAutoSelectAllowed() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)).addIcon(entry.getIcon(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ICON));
try {
if (entry.hasDefaultIcon()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID));
}
} catch (IllegalStateException unused) {
}
if (entry.isAutoSelectAllowedFromOption()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION));
}
if (lastUsedTime != null) {
sliceBuilder.addLong(lastUsedTime.toEpochMilli(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS));
}
sliceBuilder.addAction(pendingIntent, new Slice.Builder(sliceBuilder).addHints(Collections.singletonList(CredentialEntry.SLICE_HINT_PENDING_INTENT)).build(), null);
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PasswordCredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
List<SliceItem> items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
CharSequence charSequence = null;
CharSequence charSequence2 = null;
CharSequence charSequence3 = null;
PendingIntent pendingIntent = null;
Instant instant = null;
Icon icon = null;
CharSequence charSequence4 = null;
CharSequence charSequence5 = null;
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
CharSequence charSequence6 = null;
for (SliceItem sliceItem : items) {
if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_OPTION_ID)) {
charSequence6 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)) {
charSequence4 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z2 = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN)) {
charSequence5 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)) {
charSequence3 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TITLE)) {
charSequence = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_SUBTITLE)) {
charSequence2 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_ICON)) {
icon = sliceItem.getIcon();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_PENDING_INTENT)) {
pendingIntent = sliceItem.getAction();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS)) {
instant = Instant.ofEpochMilli(sliceItem.getLong());
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION)) {
z3 = true;
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID)) {
z4 = true;
}
}
try {
Intrinsics.checkNotNull(charSequence);
Intrinsics.checkNotNull(charSequence3);
Intrinsics.checkNotNull(pendingIntent);
Intrinsics.checkNotNull(icon);
BeginGetPasswordOption.Companion companion = BeginGetPasswordOption.Companion;
Bundle bundle = new Bundle();
Intrinsics.checkNotNull(charSequence6);
return new PasswordCredentialEntry(charSequence, charSequence2, charSequence3, pendingIntent, instant, icon, z, companion.createFrom$credentials_release(bundle, charSequence6.toString()), z2, charSequence4, charSequence5, null, z3, true, z4, 2048, null);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(PasswordCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.toSlice(entry);
}
if (i >= 28) {
return Api28Impl.toSlice(entry);
}
return null;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final PasswordCredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.fromSlice(slice);
}
if (i >= 28) {
return Api28Impl.fromSlice(slice);
}
return null;
}
public final PasswordCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromCredentialEntry(credentialEntry);
}
return null;
}
public final void marshall$credentials_release(PasswordCredentialEntry passwordCredentialEntry, Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(passwordCredentialEntry, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
CredentialEntry.Companion.marshallCommonProperties$credentials_release(passwordCredentialEntry, bundle, i);
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i, passwordCredentialEntry.getPendingIntent());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, passwordCredentialEntry.isAutoSelectAllowed());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, passwordCredentialEntry.isAutoSelectAllowedFromOption());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, passwordCredentialEntry.hasDefaultIcon());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i, passwordCredentialEntry.getUsername());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i, passwordCredentialEntry.getTypeDisplayName());
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i, passwordCredentialEntry.getIcon());
CharSequence displayName = passwordCredentialEntry.getDisplayName();
if (displayName != null) {
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i, displayName);
}
Instant lastUsedTime = passwordCredentialEntry.getLastUsedTime();
if (lastUsedTime != null) {
bundle.putSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i, lastUsedTime);
}
}
public final PasswordCredentialEntry unmarshall$credentials_release(Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
try {
String string = bundle.getString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_ID_PREFIX + i);
Intrinsics.checkNotNull(string);
Bundle bundle2 = bundle.getBundle(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_DATA_PREFIX + i);
Intrinsics.checkNotNull(bundle2);
CharSequence charSequence = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_GROUP_ID_PREFIX + i);
boolean z = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_PREFIX + i, false);
CharSequence charSequence2 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_PREFIX + i);
Parcelable parcelable = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i);
Intrinsics.checkNotNull(parcelable);
PendingIntent pendingIntent = (PendingIntent) parcelable;
boolean z2 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, false);
boolean z3 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, false);
boolean z4 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, false);
CharSequence charSequence3 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i);
Intrinsics.checkNotNull(charSequence3);
CharSequence charSequence4 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i);
Intrinsics.checkNotNull(charSequence4);
Parcelable parcelable2 = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i);
Intrinsics.checkNotNull(parcelable2);
Icon icon = (Icon) parcelable2;
return new PasswordCredentialEntry(charSequence3, bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i), charSequence4, pendingIntent, (Instant) bundle.getSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i), icon, z2, BeginGetPasswordOption.Companion.createFrom$credentials_release(bundle2, string), z, charSequence, charSequence2, null, z3, true, z4, 2048, null);
} catch (Exception unused) {
return null;
}
}
}
public static final class Builder {
private CharSequence affiliatedDomain;
private boolean autoSelectAllowed;
private final BeginGetPasswordOption beginGetPasswordOption;
private BiometricPromptData biometricPromptData;
private final Context context;
private CharSequence displayName;
private Icon icon;
private boolean isDefaultIconPreferredAsSingleProvider;
private Instant lastUsedTime;
private final PendingIntent pendingIntent;
private final CharSequence username;
public final Builder setAffiliatedDomain(CharSequence charSequence) {
this.affiliatedDomain = charSequence;
return this;
}
public final Builder setAutoSelectAllowed(boolean z) {
this.autoSelectAllowed = z;
return this;
}
@RequiresApi(35)
public final Builder setBiometricPromptData(BiometricPromptData biometricPromptData) {
this.biometricPromptData = biometricPromptData;
return this;
}
public final Builder setDefaultIconPreferredAsSingleProvider(boolean z) {
this.isDefaultIconPreferredAsSingleProvider = z;
return this;
}
public final Builder setDisplayName(CharSequence charSequence) {
this.displayName = charSequence;
return this;
}
public final Builder setIcon(Icon icon) {
Intrinsics.checkNotNullParameter(icon, "icon");
this.icon = icon;
return this;
}
public final Builder setLastUsedTime(Instant instant) {
this.lastUsedTime = instant;
return this;
}
public Builder(Context context, CharSequence username, PendingIntent pendingIntent, BeginGetPasswordOption beginGetPasswordOption) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(username, "username");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetPasswordOption, "beginGetPasswordOption");
this.context = context;
this.username = username;
this.pendingIntent = pendingIntent;
this.beginGetPasswordOption = beginGetPasswordOption;
}
public final PasswordCredentialEntry build() {
if (this.icon == null) {
this.icon = Icon.createWithResource(this.context, R.drawable.ic_password);
}
String string = this.context.getString(R.string.android_credentials_TYPE_PASSWORD_CREDENTIAL);
Intrinsics.checkNotNullExpressionValue(string, "context.getString(R.stri…TYPE_PASSWORD_CREDENTIAL)");
CharSequence charSequence = this.username;
CharSequence charSequence2 = this.displayName;
PendingIntent pendingIntent = this.pendingIntent;
Instant instant = this.lastUsedTime;
Icon icon = this.icon;
Intrinsics.checkNotNull(icon);
return new PasswordCredentialEntry(charSequence, charSequence2, string, pendingIntent, instant, icon, this.autoSelectAllowed, this.beginGetPasswordOption, this.isDefaultIconPreferredAsSingleProvider, null, this.affiliatedDomain, this.biometricPromptData, false, false, false, 29184, null);
}
}
}

View File

@@ -0,0 +1,722 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.SigningInfo;
import android.credentials.CredentialOption;
import android.os.Build;
import android.os.Bundle;
import android.service.credentials.CreateCredentialRequest;
import android.service.credentials.GetCredentialRequest;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.CreateCredentialRequest;
import androidx.credentials.CreateCredentialResponse;
import androidx.credentials.Credential;
import androidx.credentials.CredentialOption;
import androidx.credentials.GetCredentialResponse;
import androidx.credentials.exceptions.CreateCredentialException;
import androidx.credentials.exceptions.GetCredentialException;
import androidx.credentials.internal.ConversionUtilsKt;
import androidx.credentials.provider.BeginGetCredentialRequest;
import androidx.credentials.provider.BeginGetCredentialResponse;
import androidx.credentials.provider.CallingAppInfo;
import androidx.credentials.provider.PendingIntentHandler;
import androidx.credentials.provider.ProviderCreateCredentialRequest;
import androidx.credentials.provider.ProviderGetCredentialRequest;
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@RequiresApi(23)
/* loaded from: classes.dex */
public final class PendingIntentHandler {
public static final Companion Companion = new Companion(null);
private static final String TAG = "PendingIntentHandler";
public static final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
return Companion.retrieveBeginGetCredentialRequest(intent);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CreateCredentialException retrieveCreateCredentialException(Intent intent) {
return Companion.retrieveCreateCredentialException(intent);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final CreateCredentialResponse retrieveCreateCredentialResponse(String str, Intent intent) {
return Companion.retrieveCreateCredentialResponse(str, intent);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final GetCredentialException retrieveGetCredentialException(Intent intent) {
return Companion.retrieveGetCredentialException(intent);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final GetCredentialResponse retrieveGetCredentialResponse(Intent intent) {
return Companion.retrieveGetCredentialResponse(intent);
}
public static final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
return Companion.retrieveProviderCreateCredentialRequest(intent);
}
public static final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
return Companion.retrieveProviderGetCredentialRequest(intent);
}
public static final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse beginGetCredentialResponse) {
Companion.setBeginGetCredentialResponse(intent, beginGetCredentialResponse);
}
public static final void setCreateCredentialException(Intent intent, CreateCredentialException createCredentialException) {
Companion.setCreateCredentialException(intent, createCredentialException);
}
public static final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse createCredentialResponse) {
Companion.setCreateCredentialResponse(intent, createCredentialResponse);
}
public static final void setGetCredentialException(Intent intent, GetCredentialException getCredentialException) {
Companion.setGetCredentialException(intent, getCredentialException);
}
public static final void setGetCredentialResponse(Intent intent, GetCredentialResponse getCredentialResponse) {
Companion.setGetCredentialResponse(intent, getCredentialResponse);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.retrieveProviderCreateCredentialRequest(intent);
}
return Api23Impl.Companion.retrieveProviderCreateCredentialRequest(intent);
}
public final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.retrieveBeginGetCredentialRequest(intent);
}
return Api23Impl.Companion.retrieveBeginGetCredentialRequest(intent);
}
public final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.Companion.setCreateCredentialResponse(intent, response);
} else {
Api23Impl.Companion.setCreateCredentialResponse(intent, response);
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final CreateCredentialResponse retrieveCreateCredentialResponse(String type, Intent intent) {
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.extractCreateCredentialResponse(type, intent);
}
return Api23Impl.Companion.extractCreateCredentialResponse(intent);
}
public final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.retrieveProviderGetCredentialRequest(intent);
}
return Api23Impl.Companion.retrieveProviderGetCredentialRequest(intent);
}
public final void setGetCredentialResponse(Intent intent, GetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.Companion.setGetCredentialResponse(intent, response);
} else {
Api23Impl.Companion.setGetCredentialResponse(intent, response);
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final GetCredentialResponse retrieveGetCredentialResponse(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.extractGetCredentialResponse(intent);
}
return Api23Impl.Companion.extractGetCredentialResponse(intent);
}
public final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.Companion.setBeginGetCredentialResponse(intent, response);
} else {
Api23Impl.Companion.setBeginGetCredentialResponse(intent, response);
}
}
public final void setGetCredentialException(Intent intent, GetCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.Companion.setGetCredentialException(intent, exception);
} else {
Api23Impl.Companion.setGetCredentialException(intent, exception);
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final GetCredentialException retrieveGetCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.extractGetCredentialException(intent);
}
return Api23Impl.Companion.extractGetCredentialException(intent);
}
public final void setCreateCredentialException(Intent intent, CreateCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
if (Build.VERSION.SDK_INT >= 34) {
Api34Impl.Companion.setCreateCredentialException(intent, exception);
} else {
Api23Impl.Companion.setCreateCredentialException(intent, exception);
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final CreateCredentialException retrieveCreateCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.Companion.extractCreateCredentialException(intent);
}
return Api23Impl.Companion.extractCreateCredentialException(intent);
}
}
@SuppressLint({"ObsoleteSdkInt"})
@RequiresApi(23)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final class Api23Impl {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_BEGIN_GET_CREDENTIAL_REQUEST = "android.service.credentials.extra.BEGIN_GET_CREDENTIAL_REQUEST";
private static final String EXTRA_BEGIN_GET_CREDENTIAL_RESPONSE = "android.service.credentials.extra.BEGIN_GET_CREDENTIAL_RESPONSE";
private static final String EXTRA_CREATE_CREDENTIAL_EXCEPTION = "android.service.credentials.extra.CREATE_CREDENTIAL_EXCEPTION";
private static final String EXTRA_CREATE_CREDENTIAL_REQUEST = "android.service.credentials.extra.CREATE_CREDENTIAL_REQUEST";
private static final String EXTRA_CREATE_CREDENTIAL_RESPONSE = "android.service.credentials.extra.CREATE_CREDENTIAL_RESPONSE";
private static final String EXTRA_GET_CREDENTIAL_EXCEPTION = "android.service.credentials.extra.GET_CREDENTIAL_EXCEPTION";
private static final String EXTRA_GET_CREDENTIAL_REQUEST = "android.service.credentials.extra.GET_CREDENTIAL_REQUEST";
private static final String EXTRA_GET_CREDENTIAL_RESPONSE = "android.service.credentials.extra.GET_CREDENTIAL_RESPONSE";
public static final BeginGetCredentialResponse extractBeginGetCredentialResponse(Intent intent) {
return Companion.extractBeginGetCredentialResponse(intent);
}
public static final CreateCredentialException extractCreateCredentialException(Intent intent) {
return Companion.extractCreateCredentialException(intent);
}
public static final CreateCredentialResponse extractCreateCredentialResponse(Intent intent) {
return Companion.extractCreateCredentialResponse(intent);
}
public static final GetCredentialException extractGetCredentialException(Intent intent) {
return Companion.extractGetCredentialException(intent);
}
public static final GetCredentialResponse extractGetCredentialResponse(Intent intent) {
return Companion.extractGetCredentialResponse(intent);
}
public static final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
return Companion.retrieveBeginGetCredentialRequest(intent);
}
public static final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
return Companion.retrieveProviderCreateCredentialRequest(intent);
}
public static final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
return Companion.retrieveProviderGetCredentialRequest(intent);
}
public static final void setBeginGetCredentialRequest(Intent intent, BeginGetCredentialRequest beginGetCredentialRequest) {
Companion.setBeginGetCredentialRequest(intent, beginGetCredentialRequest);
}
public static final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse beginGetCredentialResponse) {
Companion.setBeginGetCredentialResponse(intent, beginGetCredentialResponse);
}
public static final void setCreateCredentialException(Intent intent, CreateCredentialException createCredentialException) {
Companion.setCreateCredentialException(intent, createCredentialException);
}
public static final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse createCredentialResponse) {
Companion.setCreateCredentialResponse(intent, createCredentialResponse);
}
public static final void setGetCredentialException(Intent intent, GetCredentialException getCredentialException) {
Companion.setGetCredentialException(intent, getCredentialException);
}
public static final void setGetCredentialResponse(Intent intent, GetCredentialResponse getCredentialResponse) {
Companion.setGetCredentialResponse(intent, getCredentialResponse);
}
public static final void setProviderCreateCredentialRequest(Intent intent, ProviderCreateCredentialRequest providerCreateCredentialRequest) {
Companion.setProviderCreateCredentialRequest(intent, providerCreateCredentialRequest);
}
public static final void setProviderGetCredentialRequest(Intent intent, ProviderGetCredentialRequest providerGetCredentialRequest) {
Companion.setProviderGetCredentialRequest(intent, providerGetCredentialRequest);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final void setProviderCreateCredentialRequest(Intent intent, ProviderCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(request, "request");
intent.putExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_REQUEST, ProviderCreateCredentialRequest.Companion.asBundle(request));
}
public final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
try {
ProviderCreateCredentialRequest.Companion companion = ProviderCreateCredentialRequest.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_REQUEST);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
} catch (Exception unused) {
return null;
}
}
public final void setBeginGetCredentialRequest(Intent intent, BeginGetCredentialRequest request) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(request, "request");
intent.putExtra(Api23Impl.EXTRA_BEGIN_GET_CREDENTIAL_REQUEST, BeginGetCredentialRequest.Companion.asBundle(request));
}
public final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
BeginGetCredentialRequest.Companion companion = BeginGetCredentialRequest.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_BEGIN_GET_CREDENTIAL_REQUEST);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final CreateCredentialResponse extractCreateCredentialResponse(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
CreateCredentialResponse.Companion companion = CreateCredentialResponse.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_RESPONSE);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_RESPONSE, CreateCredentialResponse.Companion.asBundle(response));
}
public final void setProviderGetCredentialRequest(Intent intent, ProviderGetCredentialRequest request) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(request, "request");
intent.putExtra(Api23Impl.EXTRA_GET_CREDENTIAL_REQUEST, ProviderGetCredentialRequest.Companion.asBundle(request));
}
public final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
try {
ProviderGetCredentialRequest.Companion companion = ProviderGetCredentialRequest.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_GET_CREDENTIAL_REQUEST);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
} catch (Exception unused) {
return null;
}
}
public final GetCredentialResponse extractGetCredentialResponse(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
GetCredentialResponse.Companion companion = GetCredentialResponse.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_GET_CREDENTIAL_RESPONSE);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final void setGetCredentialResponse(Intent intent, GetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra(Api23Impl.EXTRA_GET_CREDENTIAL_RESPONSE, GetCredentialResponse.Companion.asBundle(response));
}
public final BeginGetCredentialResponse extractBeginGetCredentialResponse(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
BeginGetCredentialResponse.Companion companion = BeginGetCredentialResponse.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_BEGIN_GET_CREDENTIAL_RESPONSE);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra(Api23Impl.EXTRA_BEGIN_GET_CREDENTIAL_RESPONSE, BeginGetCredentialResponse.Companion.asBundle(response));
}
public final GetCredentialException extractGetCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
GetCredentialException.Companion companion = GetCredentialException.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_GET_CREDENTIAL_EXCEPTION);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final void setGetCredentialException(Intent intent, GetCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
intent.putExtra(Api23Impl.EXTRA_GET_CREDENTIAL_EXCEPTION, GetCredentialException.Companion.asBundle(exception));
}
public final CreateCredentialException extractCreateCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
CreateCredentialException.Companion companion = CreateCredentialException.Companion;
Bundle bundleExtra = intent.getBundleExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_EXCEPTION);
if (bundleExtra == null) {
return null;
}
return companion.fromBundle(bundleExtra);
}
public final void setCreateCredentialException(Intent intent, CreateCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
intent.putExtra(Api23Impl.EXTRA_CREATE_CREDENTIAL_EXCEPTION, CreateCredentialException.Companion.asBundle(exception));
}
}
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Companion Companion = new Companion(null);
public static final CreateCredentialException extractCreateCredentialException(Intent intent) {
return Companion.extractCreateCredentialException(intent);
}
public static final CreateCredentialResponse extractCreateCredentialResponse(String str, Intent intent) {
return Companion.extractCreateCredentialResponse(str, intent);
}
public static final GetCredentialException extractGetCredentialException(Intent intent) {
return Companion.extractGetCredentialException(intent);
}
public static final GetCredentialResponse extractGetCredentialResponse(Intent intent) {
return Companion.extractGetCredentialResponse(intent);
}
public static final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
return Companion.retrieveBeginGetCredentialRequest(intent);
}
public static final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
return Companion.retrieveProviderCreateCredentialRequest(intent);
}
public static final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
return Companion.retrieveProviderGetCredentialRequest(intent);
}
public static final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse beginGetCredentialResponse) {
Companion.setBeginGetCredentialResponse(intent, beginGetCredentialResponse);
}
public static final void setCreateCredentialException(Intent intent, CreateCredentialException createCredentialException) {
Companion.setCreateCredentialException(intent, createCredentialException);
}
public static final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse createCredentialResponse) {
Companion.setCreateCredentialResponse(intent, createCredentialResponse);
}
public static final void setGetCredentialException(Intent intent, GetCredentialException getCredentialException) {
Companion.setGetCredentialException(intent, getCredentialException);
}
public static final void setGetCredentialResponse(Intent intent, GetCredentialResponse getCredentialResponse) {
Companion.setGetCredentialResponse(intent, getCredentialResponse);
}
@SourceDebugExtension({"SMAP\nPendingIntentHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PendingIntentHandler.kt\nandroidx/credentials/provider/PendingIntentHandler$Api34Impl$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,721:1\n1#2:722\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
/* JADX WARN: Multi-variable type inference failed */
public final ProviderCreateCredentialRequest retrieveProviderCreateCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
CreateCredentialRequest createCredentialRequest = (CreateCredentialRequest) intent.getParcelableExtra("android.service.credentials.extra.CREATE_CREDENTIAL_REQUEST", CreateCredentialRequest.class);
if (createCredentialRequest == 0) {
return (ProviderCreateCredentialRequest) createCredentialRequest;
}
BiometricPromptResult retrieveBiometricPromptResult$default = retrieveBiometricPromptResult$default(this, intent, null, null, null, 14, null);
if (retrieveBiometricPromptResult$default == null) {
retrieveBiometricPromptResult$default = retrieveBiometricPromptResultFallback(intent);
}
try {
CreateCredentialRequest.Companion companion = androidx.credentials.CreateCredentialRequest.Companion;
String type = createCredentialRequest.getType();
Intrinsics.checkNotNullExpressionValue(type, "frameworkReq.type");
Bundle data = createCredentialRequest.getData();
Intrinsics.checkNotNullExpressionValue(data, "frameworkReq.data");
Bundle data2 = createCredentialRequest.getData();
Intrinsics.checkNotNullExpressionValue(data2, "frameworkReq.data");
androidx.credentials.CreateCredentialRequest createFrom = companion.createFrom(type, data, data2, false, createCredentialRequest.getCallingAppInfo().getOrigin());
CallingAppInfo.Companion companion2 = CallingAppInfo.Companion;
String packageName = createCredentialRequest.getCallingAppInfo().getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "frameworkReq.callingAppInfo.packageName");
SigningInfo signingInfo = createCredentialRequest.getCallingAppInfo().getSigningInfo();
Intrinsics.checkNotNullExpressionValue(signingInfo, "frameworkReq.callingAppInfo.signingInfo");
return new ProviderCreateCredentialRequest(createFrom, companion2.create(packageName, signingInfo, createCredentialRequest.getCallingAppInfo().getOrigin()), retrieveBiometricPromptResult$default);
} catch (IllegalArgumentException unused) {
return null;
}
}
public static /* synthetic */ BiometricPromptResult retrieveBiometricPromptResult$default(Companion companion, Intent intent, String str, String str2, String str3, int i, Object obj) {
if ((i & 2) != 0) {
str = AuthenticationResult.EXTRA_BIOMETRIC_AUTH_RESULT_TYPE;
}
if ((i & 4) != 0) {
str2 = AuthenticationError.EXTRA_BIOMETRIC_AUTH_ERROR;
}
if ((i & 8) != 0) {
str3 = AuthenticationError.EXTRA_BIOMETRIC_AUTH_ERROR_MESSAGE;
}
return companion.retrieveBiometricPromptResult(intent, str, str2, str3);
}
private final BiometricPromptResult retrieveBiometricPromptResult(Intent intent, String str, String str2, String str3) {
if (intent.getExtras() == null) {
return null;
}
Bundle extras = intent.getExtras();
Intrinsics.checkNotNull(extras);
if (extras.containsKey(str)) {
Bundle extras2 = intent.getExtras();
Intrinsics.checkNotNull(extras2);
return new BiometricPromptResult(new AuthenticationResult(extras2.getInt(str)));
}
Bundle extras3 = intent.getExtras();
Intrinsics.checkNotNull(extras3);
if (!extras3.containsKey(str2)) {
return null;
}
Bundle extras4 = intent.getExtras();
Intrinsics.checkNotNull(extras4);
int i = extras4.getInt(str2);
Bundle extras5 = intent.getExtras();
return new BiometricPromptResult(new AuthenticationError(i, extras5 != null ? extras5.getCharSequence(str3) : null));
}
private final BiometricPromptResult retrieveBiometricPromptResultFallback(Intent intent) {
if (intent.getExtras() == null) {
return null;
}
Bundle extras = intent.getExtras();
Intrinsics.checkNotNull(extras);
if (!extras.containsKey(AuthenticationResult.EXTRA_BIOMETRIC_AUTH_RESULT_TYPE_FALLBACK)) {
Bundle extras2 = intent.getExtras();
Intrinsics.checkNotNull(extras2);
if (!extras2.containsKey(AuthenticationError.EXTRA_BIOMETRIC_AUTH_ERROR_FALLBACK)) {
return null;
}
}
return retrieveBiometricPromptResult(intent, AuthenticationResult.EXTRA_BIOMETRIC_AUTH_RESULT_TYPE_FALLBACK, AuthenticationError.EXTRA_BIOMETRIC_AUTH_ERROR_FALLBACK, AuthenticationError.EXTRA_BIOMETRIC_AUTH_ERROR_MESSAGE_FALLBACK);
}
public final BeginGetCredentialRequest retrieveBeginGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
android.service.credentials.BeginGetCredentialRequest beginGetCredentialRequest = (android.service.credentials.BeginGetCredentialRequest) intent.getParcelableExtra("android.service.credentials.extra.BEGIN_GET_CREDENTIAL_REQUEST", android.service.credentials.BeginGetCredentialRequest.class);
if (beginGetCredentialRequest != null) {
return BeginGetCredentialUtil.Companion.convertToJetpackRequest$credentials_release(beginGetCredentialRequest);
}
return null;
}
public final void setCreateCredentialResponse(Intent intent, CreateCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra("android.service.credentials.extra.CREATE_CREDENTIAL_RESPONSE", new android.credentials.CreateCredentialResponse(response.getData()));
}
public final ProviderGetCredentialRequest retrieveProviderGetCredentialRequest(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
GetCredentialRequest getCredentialRequest = (GetCredentialRequest) intent.getParcelableExtra("android.service.credentials.extra.GET_CREDENTIAL_REQUEST", GetCredentialRequest.class);
if (getCredentialRequest == null) {
return null;
}
BiometricPromptResult retrieveBiometricPromptResult$default = retrieveBiometricPromptResult$default(this, intent, null, null, null, 14, null);
if (retrieveBiometricPromptResult$default == null) {
retrieveBiometricPromptResult$default = retrieveBiometricPromptResultFallback(intent);
}
ProviderGetCredentialRequest.Companion companion = ProviderGetCredentialRequest.Companion;
Stream<CredentialOption> stream = getCredentialRequest.getCredentialOptions().stream();
final PendingIntentHandler$Api34Impl$Companion$retrieveProviderGetCredentialRequest$1 pendingIntentHandler$Api34Impl$Companion$retrieveProviderGetCredentialRequest$1 = new Function1() { // from class: androidx.credentials.provider.PendingIntentHandler$Api34Impl$Companion$retrieveProviderGetCredentialRequest$1
@Override // kotlin.jvm.functions.Function1
public final androidx.credentials.CredentialOption invoke(CredentialOption credentialOption) {
CredentialOption.Companion companion2 = androidx.credentials.CredentialOption.Companion;
String type = credentialOption.getType();
Intrinsics.checkNotNullExpressionValue(type, "option.type");
Bundle credentialRetrievalData = credentialOption.getCredentialRetrievalData();
Intrinsics.checkNotNullExpressionValue(credentialRetrievalData, "option.credentialRetrievalData");
Bundle candidateQueryData = credentialOption.getCandidateQueryData();
Intrinsics.checkNotNullExpressionValue(candidateQueryData, "option.candidateQueryData");
boolean isSystemProviderRequired = credentialOption.isSystemProviderRequired();
Set<ComponentName> allowedProviders = credentialOption.getAllowedProviders();
Intrinsics.checkNotNullExpressionValue(allowedProviders, "option.allowedProviders");
return companion2.createFrom(type, credentialRetrievalData, candidateQueryData, isSystemProviderRequired, allowedProviders);
}
};
Object collect = stream.map(new Function() { // from class: androidx.credentials.provider.PendingIntentHandler$Api34Impl$Companion$$ExternalSyntheticLambda0
@Override // java.util.function.Function
public final Object apply(Object obj) {
androidx.credentials.CredentialOption retrieveProviderGetCredentialRequest$lambda$1;
retrieveProviderGetCredentialRequest$lambda$1 = PendingIntentHandler.Api34Impl.Companion.retrieveProviderGetCredentialRequest$lambda$1(Function1.this, obj);
return retrieveProviderGetCredentialRequest$lambda$1;
}
}).collect(Collectors.toList());
Intrinsics.checkNotNullExpressionValue(collect, "frameworkReq.credentialO…lect(Collectors.toList())");
CallingAppInfo.Companion companion2 = CallingAppInfo.Companion;
String packageName = getCredentialRequest.getCallingAppInfo().getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "frameworkReq.callingAppInfo.packageName");
SigningInfo signingInfo = getCredentialRequest.getCallingAppInfo().getSigningInfo();
Intrinsics.checkNotNullExpressionValue(signingInfo, "frameworkReq.callingAppInfo.signingInfo");
return companion.createFrom$credentials_release((List) collect, companion2.create(packageName, signingInfo, getCredentialRequest.getCallingAppInfo().getOrigin()), retrieveBiometricPromptResult$default, intent.getExtras());
}
/* JADX INFO: Access modifiers changed from: private */
public static final androidx.credentials.CredentialOption retrieveProviderGetCredentialRequest$lambda$1(Function1 function1, Object obj) {
return (androidx.credentials.CredentialOption) function1.invoke(obj);
}
public final CreateCredentialResponse extractCreateCredentialResponse(String type, Intent intent) {
Intrinsics.checkNotNullParameter(type, "type");
Intrinsics.checkNotNullParameter(intent, "intent");
android.credentials.CreateCredentialResponse createCredentialResponse = (android.credentials.CreateCredentialResponse) intent.getParcelableExtra("android.service.credentials.extra.CREATE_CREDENTIAL_RESPONSE", android.credentials.CreateCredentialResponse.class);
if (createCredentialResponse == null) {
return null;
}
CreateCredentialResponse.Companion companion = CreateCredentialResponse.Companion;
Bundle data = createCredentialResponse.getData();
Intrinsics.checkNotNullExpressionValue(data, "response.data");
return companion.createFrom(type, data);
}
public final GetCredentialResponse extractGetCredentialResponse(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
android.credentials.GetCredentialResponse getCredentialResponse = (android.credentials.GetCredentialResponse) intent.getParcelableExtra("android.service.credentials.extra.GET_CREDENTIAL_RESPONSE", android.credentials.GetCredentialResponse.class);
if (getCredentialResponse == null) {
return null;
}
Credential.Companion companion = Credential.Companion;
android.credentials.Credential credential = getCredentialResponse.getCredential();
Intrinsics.checkNotNullExpressionValue(credential, "response.credential");
return new GetCredentialResponse(companion.createFrom(credential));
}
public final void setGetCredentialResponse(Intent intent, GetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra("android.service.credentials.extra.GET_CREDENTIAL_RESPONSE", new android.credentials.GetCredentialResponse(new android.credentials.Credential(response.getCredential().getType(), response.getCredential().getData())));
}
public final void setBeginGetCredentialResponse(Intent intent, BeginGetCredentialResponse response) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(response, "response");
intent.putExtra("android.service.credentials.extra.BEGIN_GET_CREDENTIAL_RESPONSE", BeginGetCredentialUtil.Companion.convertToFrameworkResponse(response));
}
public final CreateCredentialException extractCreateCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
android.credentials.CreateCredentialException createCredentialException = (android.credentials.CreateCredentialException) intent.getSerializableExtra("android.service.credentials.extra.CREATE_CREDENTIAL_EXCEPTION", android.credentials.CreateCredentialException.class);
if (createCredentialException == null) {
return null;
}
String type = createCredentialException.getType();
Intrinsics.checkNotNullExpressionValue(type, "ex.type");
return ConversionUtilsKt.toJetpackCreateException(type, createCredentialException.getMessage());
}
public final GetCredentialException extractGetCredentialException(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
android.credentials.GetCredentialException getCredentialException = (android.credentials.GetCredentialException) intent.getSerializableExtra("android.service.credentials.extra.GET_CREDENTIAL_EXCEPTION", android.credentials.GetCredentialException.class);
if (getCredentialException == null) {
return null;
}
String type = getCredentialException.getType();
Intrinsics.checkNotNullExpressionValue(type, "ex.type");
return ConversionUtilsKt.toJetpackGetException(type, getCredentialException.getMessage());
}
public final void setGetCredentialException(Intent intent, GetCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
intent.putExtra("android.service.credentials.extra.GET_CREDENTIAL_EXCEPTION", new android.credentials.GetCredentialException(exception.getType(), exception.getMessage()));
}
public final void setCreateCredentialException(Intent intent, CreateCredentialException exception) {
Intrinsics.checkNotNullParameter(intent, "intent");
Intrinsics.checkNotNullParameter(exception, "exception");
intent.putExtra("android.service.credentials.extra.CREATE_CREDENTIAL_EXCEPTION", new android.credentials.CreateCredentialException(exception.getType(), exception.getMessage()));
}
}
}
}

View File

@@ -0,0 +1,53 @@
package androidx.credentials.provider;
import android.os.Bundle;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class ProviderClearCredentialStateRequest {
public static final Companion Companion = new Companion(null);
private final CallingAppInfo callingAppInfo;
public static final Bundle asBundle(ProviderClearCredentialStateRequest providerClearCredentialStateRequest) {
return Companion.asBundle(providerClearCredentialStateRequest);
}
public static final ProviderClearCredentialStateRequest fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final CallingAppInfo getCallingAppInfo() {
return this.callingAppInfo;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final Bundle asBundle(ProviderClearCredentialStateRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Bundle bundle = new Bundle();
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, request.getCallingAppInfo());
return bundle;
}
public final ProviderClearCredentialStateRequest fromBundle(Bundle bundle) {
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.");
}
return new ProviderClearCredentialStateRequest(extractCallingAppInfo$credentials_release);
}
}
public ProviderClearCredentialStateRequest(CallingAppInfo callingAppInfo) {
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
this.callingAppInfo = callingAppInfo;
}
}

View File

@@ -0,0 +1,108 @@
package androidx.credentials.provider;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.credentials.CreateCredentialRequest;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class ProviderCreateCredentialRequest {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE = "androidx.credentials.provider.extra.CREATE_CREDENTIAL_REQUEST_TYPE";
private static final String EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA = "androidx.credentials.provider.extra.CREATE_REQUEST_CANDIDATE_QUERY_DATA";
private static final String EXTRA_CREATE_REQUEST_CREDENTIAL_DATA = "androidx.credentials.provider.extra.CREATE_REQUEST_CREDENTIAL_DATA";
private final BiometricPromptResult biometricPromptResult;
private final CallingAppInfo callingAppInfo;
private final CreateCredentialRequest callingRequest;
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public ProviderCreateCredentialRequest(CreateCredentialRequest callingRequest, CallingAppInfo callingAppInfo) {
this(callingRequest, callingAppInfo, null, 4, null);
Intrinsics.checkNotNullParameter(callingRequest, "callingRequest");
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
}
@RequiresApi(23)
public static final Bundle asBundle(ProviderCreateCredentialRequest providerCreateCredentialRequest) {
return Companion.asBundle(providerCreateCredentialRequest);
}
@RequiresApi(23)
public static final ProviderCreateCredentialRequest fromBundle(Bundle bundle) {
return Companion.fromBundle(bundle);
}
public final BiometricPromptResult getBiometricPromptResult() {
return this.biometricPromptResult;
}
public final CallingAppInfo getCallingAppInfo() {
return this.callingAppInfo;
}
public final CreateCredentialRequest getCallingRequest() {
return this.callingRequest;
}
public ProviderCreateCredentialRequest(CreateCredentialRequest callingRequest, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult) {
Intrinsics.checkNotNullParameter(callingRequest, "callingRequest");
Intrinsics.checkNotNullParameter(callingAppInfo, "callingAppInfo");
this.callingRequest = callingRequest;
this.callingAppInfo = callingAppInfo;
this.biometricPromptResult = biometricPromptResult;
}
public /* synthetic */ ProviderCreateCredentialRequest(CreateCredentialRequest createCredentialRequest, CallingAppInfo callingAppInfo, BiometricPromptResult biometricPromptResult, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(createCredentialRequest, callingAppInfo, (i & 4) != 0 ? null : biometricPromptResult);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(23)
public final Bundle asBundle(ProviderCreateCredentialRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Bundle bundle = new Bundle();
bundle.putString(ProviderCreateCredentialRequest.EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE, request.getCallingRequest().getType());
bundle.putBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CREDENTIAL_DATA, request.getCallingRequest().getCredentialData());
bundle.putBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA, request.getCallingRequest().getCandidateQueryData());
CallingAppInfo.Companion.setCallingAppInfo$credentials_release(bundle, request.getCallingAppInfo());
return bundle;
}
@RequiresApi(23)
public final ProviderCreateCredentialRequest fromBundle(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
String string = bundle.getString(ProviderCreateCredentialRequest.EXTRA_CREATE_CREDENTIAL_REQUEST_TYPE);
if (string == null) {
throw new IllegalArgumentException("Bundle was missing request type.");
}
Bundle bundle2 = bundle.getBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CREDENTIAL_DATA);
if (bundle2 == null) {
bundle2 = new Bundle();
}
Bundle bundle3 = bundle2;
Bundle bundle4 = bundle.getBundle(ProviderCreateCredentialRequest.EXTRA_CREATE_REQUEST_CANDIDATE_QUERY_DATA);
if (bundle4 == null) {
bundle4 = new Bundle();
}
Bundle bundle5 = bundle4;
String string2 = bundle.getString(CallingAppInfo.EXTRA_CREDENTIAL_REQUEST_ORIGIN);
CallingAppInfo extractCallingAppInfo$credentials_release = CallingAppInfo.Companion.extractCallingAppInfo$credentials_release(bundle);
if (extractCallingAppInfo$credentials_release == null) {
throw new IllegalArgumentException("Bundle was missing CallingAppInfo.");
}
try {
return new ProviderCreateCredentialRequest(CreateCredentialRequest.Companion.createFrom(string, bundle3, bundle5, false, string2), extractCallingAppInfo$credentials_release, null, 4, null);
} catch (Exception e) {
throw new IllegalArgumentException("Conversion failed with " + e);
}
}
}
}

View File

@@ -0,0 +1,175 @@
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);
}
}
}

View File

@@ -0,0 +1,851 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.app.slice.SliceSpec;
import android.content.Context;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.credentials.CredentialOption;
import androidx.credentials.PublicKeyCredential;
import androidx.credentials.R;
import androidx.credentials.provider.BeginGetPublicKeyCredentialOption;
import androidx.credentials.provider.utils.CryptoObjectUtils;
import java.time.Instant;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@RequiresApi(23)
@SourceDebugExtension({"SMAP\nPublicKeyCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PublicKeyCredentialEntry.kt\nandroidx/credentials/provider/PublicKeyCredentialEntry\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,866:1\n1#2:867\n*E\n"})
/* loaded from: classes.dex */
public final class PublicKeyCredentialEntry extends CredentialEntry {
public static final Companion Companion = new Companion(null);
private static final String TAG = "PublicKeyCredEntry";
private final CharSequence displayName;
private final Icon icon;
private final boolean isAutoSelectAllowed;
private final boolean isAutoSelectAllowedFromOption;
private final boolean isCreatedFromSlice;
private final boolean isDefaultIconFromSlice;
private final Instant lastUsedTime;
private final PendingIntent pendingIntent;
private final CharSequence typeDisplayName;
private final CharSequence username;
public static final PublicKeyCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
return Companion.fromCredentialEntry(credentialEntry);
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PublicKeyCredentialEntry fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PublicKeyCredentialEntry publicKeyCredentialEntry) {
return Companion.toSlice(publicKeyCredentialEntry);
}
public final CharSequence getDisplayName() {
return this.displayName;
}
public final Icon getIcon() {
return this.icon;
}
public final Instant getLastUsedTime() {
return this.lastUsedTime;
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public final CharSequence getTypeDisplayName() {
return this.typeDisplayName;
}
public final CharSequence getUsername() {
return this.username;
}
public final boolean isAutoSelectAllowed() {
return this.isAutoSelectAllowed;
}
public final boolean isAutoSelectAllowedFromOption() {
return this.isAutoSelectAllowedFromOption;
}
public /* synthetic */ PublicKeyCredentialEntry(CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, PendingIntent pendingIntent, Icon icon, Instant instant, boolean z, BeginGetPublicKeyCredentialOption beginGetPublicKeyCredentialOption, boolean z2, CharSequence charSequence4, CharSequence charSequence5, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(charSequence, charSequence2, charSequence3, pendingIntent, icon, instant, z, beginGetPublicKeyCredentialOption, z2, (i & 512) != 0 ? charSequence : charSequence4, (i & 1024) != 0 ? null : charSequence5, (i & 2048) != 0 ? null : biometricPromptData, (i & 4096) != 0 ? CredentialOption.Companion.extractAutoSelectValue$credentials_release(beginGetPublicKeyCredentialOption.getCandidateQueryData()) : z3, (i & 8192) != 0 ? false : z4, (i & 16384) != 0 ? false : z5);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public PublicKeyCredentialEntry(CharSequence username, CharSequence charSequence, CharSequence typeDisplayName, PendingIntent pendingIntent, Icon icon, Instant instant, boolean z, BeginGetPublicKeyCredentialOption beginGetPublicKeyCredentialOption, boolean z2, CharSequence charSequence2, CharSequence charSequence3, BiometricPromptData biometricPromptData, boolean z3, boolean z4, boolean z5) {
super(PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL, beginGetPublicKeyCredentialOption, charSequence2 == null ? username : charSequence2, z2, charSequence3, biometricPromptData);
Intrinsics.checkNotNullParameter(username, "username");
Intrinsics.checkNotNullParameter(typeDisplayName, "typeDisplayName");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(icon, "icon");
Intrinsics.checkNotNullParameter(beginGetPublicKeyCredentialOption, "beginGetPublicKeyCredentialOption");
this.username = username;
this.displayName = charSequence;
this.typeDisplayName = typeDisplayName;
this.pendingIntent = pendingIntent;
this.icon = icon;
this.lastUsedTime = instant;
this.isAutoSelectAllowed = z;
this.isCreatedFromSlice = z4;
this.isDefaultIconFromSlice = z5;
this.isAutoSelectAllowedFromOption = z3;
if (username.length() <= 0) {
throw new IllegalArgumentException("username must not be empty".toString());
}
if (typeDisplayName.length() <= 0) {
throw new IllegalArgumentException("typeDisplayName must not be empty".toString());
}
}
public final boolean hasDefaultIcon() {
if (Build.VERSION.SDK_INT >= 28) {
return Api28Impl.isDefaultIcon(this);
}
return false;
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PublicKeyCredentialEntry(android.content.Context r14, java.lang.CharSequence r15, android.app.PendingIntent r16, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r17, java.lang.CharSequence r18, java.time.Instant r19, android.graphics.drawable.Icon r20, boolean r21, boolean r22, int r23, kotlin.jvm.internal.DefaultConstructorMarker r24) {
/*
r13 = this;
r0 = r23
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r18
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r19
L13:
r1 = r0 & 64
if (r1 == 0) goto L25
int r1 = androidx.credentials.R.drawable.ic_passkey
r2 = r14
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r14, r1)
java.lang.String r3 = "createWithResource(context, R.drawable.ic_passkey)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L28
L25:
r2 = r14
r10 = r20
L28:
r1 = r0 & 128(0x80, float:1.8E-43)
r3 = 0
if (r1 == 0) goto L2f
r11 = r3
goto L31
L2f:
r11 = r21
L31:
r0 = r0 & 256(0x100, float:3.59E-43)
if (r0 == 0) goto L37
r12 = r3
goto L39
L37:
r12 = r22
L39:
r3 = r13
r4 = r14
r5 = r15
r6 = r16
r7 = r17
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public PublicKeyCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27, boolean r28) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r7 = r25
r6 = r26
r8 = r27
r10 = r28
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r11 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "pendingIntent"
r11 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "beginGetPublicKeyCredentialOption"
r11 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "icon"
r11 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
int r4 = androidx.credentials.R.string.androidx_credentials_TYPE_PUBLIC_KEY_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r11 = "context.getString(R.stri…PE_PUBLIC_KEY_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r11)
r11 = 0
r12 = 0
r13 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 32256(0x7e00, float:4.52E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, boolean):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PublicKeyCredentialEntry(android.content.Context r15, java.lang.CharSequence r16, android.app.PendingIntent r17, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r18, java.lang.CharSequence r19, java.time.Instant r20, android.graphics.drawable.Icon r21, boolean r22, boolean r23, androidx.credentials.provider.BiometricPromptData r24, int r25, kotlin.jvm.internal.DefaultConstructorMarker r26) {
/*
r14 = this;
r0 = r25
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r19
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r20
L13:
r1 = r0 & 64
if (r1 == 0) goto L25
int r1 = androidx.credentials.R.drawable.ic_passkey
r4 = r15
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r15, r1)
java.lang.String r3 = "createWithResource(context, R.drawable.ic_passkey)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L28
L25:
r4 = r15
r10 = r21
L28:
r1 = r0 & 128(0x80, float:1.8E-43)
r3 = 0
if (r1 == 0) goto L2f
r11 = r3
goto L31
L2f:
r11 = r22
L31:
r1 = r0 & 256(0x100, float:3.59E-43)
if (r1 == 0) goto L37
r12 = r3
goto L39
L37:
r12 = r23
L39:
r0 = r0 & 512(0x200, float:7.17E-43)
if (r0 == 0) goto L3f
r13 = r2
goto L41
L3f:
r13 = r24
L41:
r3 = r14
r4 = r15
r5 = r16
r6 = r17
r7 = r18
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, boolean, androidx.credentials.provider.BiometricPromptData, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
@androidx.annotation.RequiresApi(35)
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public PublicKeyCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27, boolean r28, androidx.credentials.provider.BiometricPromptData r29) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r7 = r25
r6 = r26
r8 = r27
r10 = r28
r13 = r29
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r11 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "pendingIntent"
r11 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "beginGetPublicKeyCredentialOption"
r11 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
java.lang.String r4 = "icon"
r11 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r4)
int r4 = androidx.credentials.R.string.androidx_credentials_TYPE_PUBLIC_KEY_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r11 = "context.getString(R.stri…PE_PUBLIC_KEY_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r11)
r11 = 0
r12 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 30208(0x7600, float:4.233E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, boolean, androidx.credentials.provider.BiometricPromptData):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PublicKeyCredentialEntry(android.content.Context r13, java.lang.CharSequence r14, android.app.PendingIntent r15, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r16, java.lang.CharSequence r17, java.time.Instant r18, android.graphics.drawable.Icon r19, boolean r20, int r21, kotlin.jvm.internal.DefaultConstructorMarker r22) {
/*
r12 = this;
r0 = r21
r1 = r0 & 16
r2 = 0
if (r1 == 0) goto L9
r8 = r2
goto Lb
L9:
r8 = r17
Lb:
r1 = r0 & 32
if (r1 == 0) goto L11
r9 = r2
goto L13
L11:
r9 = r18
L13:
r1 = r0 & 64
if (r1 == 0) goto L25
int r1 = androidx.credentials.R.drawable.ic_passkey
r2 = r13
android.graphics.drawable.Icon r1 = android.graphics.drawable.Icon.createWithResource(r13, r1)
java.lang.String r3 = "createWithResource(context, R.drawable.ic_passkey)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r3)
r10 = r1
goto L28
L25:
r2 = r13
r10 = r19
L28:
r0 = r0 & 128(0x80, float:1.8E-43)
if (r0 == 0) goto L2f
r0 = 0
r11 = r0
goto L31
L2f:
r11 = r20
L31:
r3 = r12
r4 = r13
r5 = r14
r6 = r15
r7 = r16
r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ PublicKeyCredentialEntry(android.content.Context r20, java.lang.CharSequence r21, android.app.PendingIntent r22, androidx.credentials.provider.BeginGetPublicKeyCredentialOption r23, java.lang.CharSequence r24, java.time.Instant r25, android.graphics.drawable.Icon r26, boolean r27) {
/*
r19 = this;
r0 = r20
r1 = r19
r2 = r21
r5 = r22
r9 = r23
r3 = r24
r7 = r25
r6 = r26
r8 = r27
java.lang.String r4 = "context"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r4)
java.lang.String r4 = "username"
r10 = r21
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "pendingIntent"
r10 = r22
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "beginGetPublicKeyCredentialOption"
r10 = r23
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
java.lang.String r4 = "icon"
r10 = r26
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r4)
int r4 = androidx.credentials.R.string.androidx_credentials_TYPE_PUBLIC_KEY_CREDENTIAL
java.lang.String r0 = r0.getString(r4)
r4 = r0
java.lang.String r10 = "context.getString(R.stri…PE_PUBLIC_KEY_CREDENTIAL)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r10)
r10 = 0
r11 = 0
r12 = 0
r13 = 0
r14 = 0
r15 = 0
r16 = 0
r17 = 32256(0x7e00, float:4.52E-41)
r18 = 0
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18)
return
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.PublicKeyCredentialEntry.<init>(android.content.Context, java.lang.CharSequence, android.app.PendingIntent, androidx.credentials.provider.BeginGetPublicKeyCredentialOption, java.lang.CharSequence, java.time.Instant, android.graphics.drawable.Icon, boolean):void");
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final PublicKeyCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
Slice slice = credentialEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "credentialEntry.slice");
return PublicKeyCredentialEntry.Companion.fromSlice(slice);
}
}
@RequiresApi(35)
@SourceDebugExtension({"SMAP\nPublicKeyCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PublicKeyCredentialEntry.kt\nandroidx/credentials/provider/PublicKeyCredentialEntry$Api35Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,866:1\n1855#2,2:867\n*S KotlinDebug\n*F\n+ 1 PublicKeyCredentialEntry.kt\nandroidx/credentials/provider/PublicKeyCredentialEntry$Api35Impl\n*L\n370#1:867,2\n*E\n"})
public static final class Api35Impl {
public static final Api35Impl INSTANCE = new Api35Impl();
private Api35Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PublicKeyCredentialEntry entry) {
Slice build;
Intrinsics.checkNotNullParameter(entry, "entry");
String type = entry.getType();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
Slice.Builder m = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m(type, 1));
Api28Impl.INSTANCE.addToSlice(entry, m);
INSTANCE.addToSlice(entry, m);
build = m.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(PublicKeyCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BiometricPromptData biometricPromptData = entry.getBiometricPromptData();
if (biometricPromptData != null) {
sliceBuilder.addInt(biometricPromptData.getAllowedAuthenticators(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ALLOWED_AUTHENTICATORS));
if (biometricPromptData.getCryptoObject() != null) {
sliceBuilder.addLong(CryptoObjectUtils.INSTANCE.getOperationHandle(biometricPromptData.getCryptoObject()), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_CRYPTO_OP_ID));
}
sliceBuilder.addBundle(BiometricPromptData.Companion.toBundle(biometricPromptData), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA));
}
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PublicKeyCredentialEntry fromSlice(Slice slice) {
List items;
boolean hasHint;
Intrinsics.checkNotNullParameter(slice, "slice");
PublicKeyCredentialEntry fromSlice = Api28Impl.fromSlice(slice);
if (fromSlice == null) {
return null;
}
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
Bundle bundle = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(CredentialEntry.SLICE_HINT_BIOMETRIC_PROMPT_DATA);
if (hasHint) {
bundle = m.getBundle();
}
}
try {
CharSequence username = fromSlice.getUsername();
CharSequence displayName = fromSlice.getDisplayName();
CharSequence typeDisplayName = fromSlice.getTypeDisplayName();
PendingIntent pendingIntent = fromSlice.getPendingIntent();
Icon icon = fromSlice.getIcon();
Instant lastUsedTime = fromSlice.getLastUsedTime();
boolean isAutoSelectAllowed = fromSlice.isAutoSelectAllowed();
BeginGetCredentialOption beginGetCredentialOption = fromSlice.getBeginGetCredentialOption();
Intrinsics.checkNotNull(beginGetCredentialOption, "null cannot be cast to non-null type androidx.credentials.provider.BeginGetPublicKeyCredentialOption");
return new PublicKeyCredentialEntry(username, displayName, typeDisplayName, pendingIntent, icon, lastUsedTime, isAutoSelectAllowed, (BeginGetPublicKeyCredentialOption) beginGetCredentialOption, fromSlice.isDefaultIconPreferredAsSingleProvider(), fromSlice.getEntryGroupId(), fromSlice.getAffiliatedDomain(), bundle != null ? BiometricPromptData.Companion.fromBundle(bundle) : null, fromSlice.isAutoSelectAllowedFromOption(), true, fromSlice.isDefaultIconFromSlice);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
@RequiresApi(28)
@SourceDebugExtension({"SMAP\nPublicKeyCredentialEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PublicKeyCredentialEntry.kt\nandroidx/credentials/provider/PublicKeyCredentialEntry$Api28Impl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,866:1\n1855#2,2:867\n*S KotlinDebug\n*F\n+ 1 PublicKeyCredentialEntry.kt\nandroidx/credentials/provider/PublicKeyCredentialEntry$Api28Impl\n*L\n531#1:867,2\n*E\n"})
public static final class Api28Impl {
public static final Api28Impl INSTANCE = new Api28Impl();
private Api28Impl() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final boolean isDefaultIcon(PublicKeyCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
if (entry.isCreatedFromSlice) {
return entry.isDefaultIconFromSlice;
}
return entry.getIcon().getType() == 2 && entry.getIcon().getResId() == R.drawable.ic_passkey;
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(PublicKeyCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
Slice.Builder builder = new Slice.Builder(Uri.EMPTY, new SliceSpec(entry.getType(), 1));
INSTANCE.addToSlice(entry, builder);
Slice build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "sliceBuilder.build()");
return build;
}
public final void addToSlice(PublicKeyCredentialEntry entry, Slice.Builder sliceBuilder) {
Intrinsics.checkNotNullParameter(entry, "entry");
Intrinsics.checkNotNullParameter(sliceBuilder, "sliceBuilder");
BeginGetCredentialOption beginGetCredentialOption = entry.getBeginGetCredentialOption();
sliceBuilder.addText(beginGetCredentialOption.getId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_OPTION_ID)).addText(entry.getEntryGroupId(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)).addText(entry.isDefaultIconPreferredAsSingleProvider() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)).addText(entry.getAffiliatedDomain(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN));
CharSequence username = entry.getUsername();
CharSequence displayName = entry.getDisplayName();
PendingIntent pendingIntent = entry.getPendingIntent();
CharSequence typeDisplayName = entry.getTypeDisplayName();
Instant lastUsedTime = entry.getLastUsedTime();
sliceBuilder.addText(typeDisplayName, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)).addText(username, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_TITLE)).addText(displayName, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_SUBTITLE)).addText(entry.isAutoSelectAllowed() ? "true" : "false", null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)).addIcon(entry.getIcon(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_ICON));
try {
if (entry.hasDefaultIcon()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID));
}
} catch (IllegalStateException unused) {
}
if (entry.isAutoSelectAllowedFromOption()) {
sliceBuilder.addInt(1, null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION));
}
if (lastUsedTime != null) {
sliceBuilder.addLong(lastUsedTime.toEpochMilli(), null, CollectionsKt__CollectionsJVMKt.listOf(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS));
}
sliceBuilder.addAction(pendingIntent, new Slice.Builder(sliceBuilder).addHints(Collections.singletonList(CredentialEntry.SLICE_HINT_PENDING_INTENT)).build(), null);
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final PublicKeyCredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
List<SliceItem> items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
CharSequence charSequence = null;
CharSequence charSequence2 = null;
CharSequence charSequence3 = null;
PendingIntent pendingIntent = null;
Icon icon = null;
Instant instant = null;
CharSequence charSequence4 = null;
CharSequence charSequence5 = null;
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
CharSequence charSequence6 = null;
for (SliceItem sliceItem : items) {
if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_OPTION_ID)) {
charSequence6 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEDUPLICATION_ID)) {
charSequence4 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_IS_DEFAULT_ICON_PREFERRED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z2 = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AFFILIATED_DOMAIN)) {
charSequence5 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TYPE_DISPLAY_NAME)) {
charSequence3 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_TITLE)) {
charSequence = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_SUBTITLE)) {
charSequence2 = sliceItem.getText();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_ICON)) {
icon = sliceItem.getIcon();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_PENDING_INTENT)) {
pendingIntent = sliceItem.getAction();
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_LAST_USED_TIME_MILLIS)) {
instant = Instant.ofEpochMilli(sliceItem.getLong());
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_ALLOWED)) {
if (Intrinsics.areEqual(sliceItem.getText(), "true")) {
z = true;
}
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_AUTO_SELECT_FROM_OPTION)) {
z3 = true;
} else if (sliceItem.hasHint(CredentialEntry.SLICE_HINT_DEFAULT_ICON_RES_ID)) {
z4 = true;
}
}
try {
Intrinsics.checkNotNull(charSequence);
Intrinsics.checkNotNull(charSequence3);
Intrinsics.checkNotNull(pendingIntent);
Intrinsics.checkNotNull(icon);
BeginGetPublicKeyCredentialOption.Companion companion = BeginGetPublicKeyCredentialOption.Companion;
Bundle bundle = new Bundle();
Intrinsics.checkNotNull(charSequence6);
return new PublicKeyCredentialEntry(charSequence, charSequence2, charSequence3, pendingIntent, icon, instant, z, companion.createFromEntrySlice$credentials_release(bundle, charSequence6.toString()), z2, charSequence4, charSequence5, null, z3, true, z4, 2048, null);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(PublicKeyCredentialEntry entry) {
Intrinsics.checkNotNullParameter(entry, "entry");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.toSlice(entry);
}
if (i >= 28) {
return Api28Impl.toSlice(entry);
}
return null;
}
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final PublicKeyCredentialEntry fromSlice(Slice slice) {
Intrinsics.checkNotNullParameter(slice, "slice");
int i = Build.VERSION.SDK_INT;
if (i >= 35) {
return Api35Impl.fromSlice(slice);
}
if (i >= 28) {
return Api28Impl.fromSlice(slice);
}
return null;
}
public final PublicKeyCredentialEntry fromCredentialEntry(android.service.credentials.CredentialEntry credentialEntry) {
Intrinsics.checkNotNullParameter(credentialEntry, "credentialEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromCredentialEntry(credentialEntry);
}
return null;
}
public final void marshall$credentials_release(PublicKeyCredentialEntry publicKeyCredentialEntry, Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(publicKeyCredentialEntry, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
CredentialEntry.Companion.marshallCommonProperties$credentials_release(publicKeyCredentialEntry, bundle, i);
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i, publicKeyCredentialEntry.getPendingIntent());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, publicKeyCredentialEntry.isAutoSelectAllowed());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, publicKeyCredentialEntry.isAutoSelectAllowedFromOption());
bundle.putBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, publicKeyCredentialEntry.hasDefaultIcon());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i, publicKeyCredentialEntry.getUsername());
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i, publicKeyCredentialEntry.getTypeDisplayName());
bundle.putParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i, publicKeyCredentialEntry.getIcon());
CharSequence displayName = publicKeyCredentialEntry.getDisplayName();
if (displayName != null) {
bundle.putCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i, displayName);
}
Instant lastUsedTime = publicKeyCredentialEntry.getLastUsedTime();
if (lastUsedTime != null) {
bundle.putSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i, lastUsedTime);
}
}
public final PublicKeyCredentialEntry unmarshall$credentials_release(Bundle bundle, int i) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
try {
String string = bundle.getString(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_ID_PREFIX + i);
Intrinsics.checkNotNull(string);
Bundle bundle2 = bundle.getBundle(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_OPTION_DATA_PREFIX + i);
Intrinsics.checkNotNull(bundle2);
CharSequence charSequence = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_ENTRY_GROUP_ID_PREFIX + i);
boolean z = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_DEFAULT_ICON_PREFERRED_AS_SINGLE_PROV_PREFIX + i, false);
CharSequence charSequence2 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_AFFILIATED_DOMAIN_PREFIX + i);
Parcelable parcelable = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_PENDING_INTENT_PREFIX + i);
Intrinsics.checkNotNull(parcelable);
PendingIntent pendingIntent = (PendingIntent) parcelable;
boolean z2 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_PREFIX + i, false);
boolean z3 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_IS_AUTO_SELECT_ALLOWED_FROM_OPTION_PREFIX + i, false);
boolean z4 = bundle.getBoolean(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_HAS_DEFAULT_ICON_PREFIX + i, false);
CharSequence charSequence3 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TITLE_PREFIX + i);
Intrinsics.checkNotNull(charSequence3);
CharSequence charSequence4 = bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_TYPE_DISPLAY_NAME_PREFIX + i);
Intrinsics.checkNotNull(charSequence4);
Parcelable parcelable2 = bundle.getParcelable(CredentialEntry.EXTRA_CREDENTIAL_TYPE_ICON_PREFIX + i);
Intrinsics.checkNotNull(parcelable2);
Icon icon = (Icon) parcelable2;
return new PublicKeyCredentialEntry(charSequence3, bundle.getCharSequence(CredentialEntry.EXTRA_CREDENTIAL_SUBTITLE_PREFIX + i), charSequence4, pendingIntent, icon, (Instant) bundle.getSerializable(CredentialEntry.EXTRA_CREDENTIAL_ENTRY_LAST_USED_TIME_PREFIX + i), z2, BeginGetPublicKeyCredentialOption.Companion.createFrom$credentials_release(bundle2, string), z, charSequence, charSequence2, null, z3, true, z4, 2048, null);
} catch (Exception unused) {
return null;
}
}
}
public static final class Builder {
private boolean autoSelectAllowed;
private final BeginGetPublicKeyCredentialOption beginGetPublicKeyCredentialOption;
private BiometricPromptData biometricPromptData;
private final Context context;
private CharSequence displayName;
private Icon icon;
private boolean isDefaultIconPreferredAsSingleProvider;
private Instant lastUsedTime;
private final PendingIntent pendingIntent;
private final CharSequence username;
public final Builder setAutoSelectAllowed(boolean z) {
this.autoSelectAllowed = z;
return this;
}
@RequiresApi(35)
public final Builder setBiometricPromptData(BiometricPromptData biometricPromptData) {
this.biometricPromptData = biometricPromptData;
return this;
}
public final Builder setDefaultIconPreferredAsSingleProvider(boolean z) {
this.isDefaultIconPreferredAsSingleProvider = z;
return this;
}
public final Builder setDisplayName(CharSequence charSequence) {
this.displayName = charSequence;
return this;
}
public final Builder setIcon(Icon icon) {
Intrinsics.checkNotNullParameter(icon, "icon");
this.icon = icon;
return this;
}
public final Builder setLastUsedTime(Instant instant) {
this.lastUsedTime = instant;
return this;
}
public Builder(Context context, CharSequence username, PendingIntent pendingIntent, BeginGetPublicKeyCredentialOption beginGetPublicKeyCredentialOption) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(username, "username");
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
Intrinsics.checkNotNullParameter(beginGetPublicKeyCredentialOption, "beginGetPublicKeyCredentialOption");
this.context = context;
this.username = username;
this.pendingIntent = pendingIntent;
this.beginGetPublicKeyCredentialOption = beginGetPublicKeyCredentialOption;
}
public final PublicKeyCredentialEntry build() {
if (this.icon == null) {
this.icon = Icon.createWithResource(this.context, R.drawable.ic_passkey);
}
String string = this.context.getString(R.string.androidx_credentials_TYPE_PUBLIC_KEY_CREDENTIAL);
Intrinsics.checkNotNullExpressionValue(string, "context.getString(R.stri…PE_PUBLIC_KEY_CREDENTIAL)");
CharSequence charSequence = this.username;
CharSequence charSequence2 = this.displayName;
PendingIntent pendingIntent = this.pendingIntent;
Icon icon = this.icon;
Intrinsics.checkNotNull(icon);
return new PublicKeyCredentialEntry(charSequence, charSequence2, string, pendingIntent, icon, this.lastUsedTime, this.autoSelectAllowed, this.beginGetPublicKeyCredentialOption, this.isDefaultIconPreferredAsSingleProvider, null, null, this.biometricPromptData, false, false, false, 30208, null);
}
}
}

View File

@@ -0,0 +1,176 @@
package androidx.credentials.provider;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.app.slice.Slice;
import android.app.slice.SliceItem;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* loaded from: classes.dex */
public final class RemoteEntry {
public static final Companion Companion = new Companion(null);
private static final String EXTRA_REMOTE_ENTRY_PENDING_INTENT = "androidx.credentials.provider.extra.REMOTE_ENTRY_PENDING_INTENT";
private static final int REVISION_ID = 1;
private static final String SLICE_HINT_PENDING_INTENT = "androidx.credentials.provider.remoteEntry.SLICE_HINT_PENDING_INTENT";
private static final String SLICE_SPEC_TYPE = "RemoteEntry";
private static final String TAG = "RemoteEntry";
private final PendingIntent pendingIntent;
public static final RemoteEntry fromRemoteEntry(android.service.credentials.RemoteEntry remoteEntry) {
return Companion.fromRemoteEntry(remoteEntry);
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final RemoteEntry fromSlice(Slice slice) {
return Companion.fromSlice(slice);
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final Slice toSlice(RemoteEntry remoteEntry) {
return Companion.toSlice(remoteEntry);
}
public final PendingIntent getPendingIntent() {
return this.pendingIntent;
}
public RemoteEntry(PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.pendingIntent = pendingIntent;
}
public static final class Builder {
private final PendingIntent pendingIntent;
public Builder(PendingIntent pendingIntent) {
Intrinsics.checkNotNullParameter(pendingIntent, "pendingIntent");
this.pendingIntent = pendingIntent;
}
public final RemoteEntry build() {
return new RemoteEntry(this.pendingIntent);
}
}
@RequiresApi(34)
public static final class Api34Impl {
public static final Api34Impl INSTANCE = new Api34Impl();
private Api34Impl() {
}
public static final RemoteEntry fromRemoteEntry(android.service.credentials.RemoteEntry remoteEntry) {
Intrinsics.checkNotNullParameter(remoteEntry, "remoteEntry");
Slice slice = remoteEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "remoteEntry.slice");
return RemoteEntry.Companion.fromSlice(slice);
}
}
@SourceDebugExtension({"SMAP\nRemoteEntry.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RemoteEntry.kt\nandroidx/credentials/provider/RemoteEntry$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,179:1\n1855#2,2:180\n*S KotlinDebug\n*F\n+ 1 RemoteEntry.kt\nandroidx/credentials/provider/RemoteEntry$Companion\n*L\n122#1:180,2\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(28)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final Slice toSlice(RemoteEntry remoteEntry) {
Slice.Builder addHints;
Slice build;
Slice build2;
Intrinsics.checkNotNullParameter(remoteEntry, "remoteEntry");
PendingIntent pendingIntent = remoteEntry.getPendingIntent();
Action$Companion$$ExternalSyntheticApiModelOutline12.m();
Slice.Builder m = Action$Companion$$ExternalSyntheticApiModelOutline10.m(Uri.EMPTY, Action$Companion$$ExternalSyntheticApiModelOutline9.m("RemoteEntry", 1));
addHints = Action$Companion$$ExternalSyntheticApiModelOutline11.m(m).addHints(Collections.singletonList(RemoteEntry.SLICE_HINT_PENDING_INTENT));
build = addHints.build();
m.addAction(pendingIntent, build, null);
build2 = m.build();
Intrinsics.checkNotNullExpressionValue(build2, "sliceBuilder.build()");
return build2;
}
@RequiresApi(28)
@SuppressLint({"WrongConstant"})
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final RemoteEntry fromSlice(Slice slice) {
List items;
boolean hasHint;
Intrinsics.checkNotNullParameter(slice, "slice");
items = slice.getItems();
Intrinsics.checkNotNullExpressionValue(items, "slice.items");
Iterator it = items.iterator();
PendingIntent pendingIntent = null;
while (it.hasNext()) {
SliceItem m = Action$Companion$$ExternalSyntheticApiModelOutline5.m(it.next());
hasHint = m.hasHint(RemoteEntry.SLICE_HINT_PENDING_INTENT);
if (hasHint) {
pendingIntent = m.getAction();
}
}
try {
Intrinsics.checkNotNull(pendingIntent);
return new RemoteEntry(pendingIntent);
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("fromSlice failed with: ");
sb.append(e.getMessage());
return null;
}
}
public final RemoteEntry fromRemoteEntry(android.service.credentials.RemoteEntry remoteEntry) {
Intrinsics.checkNotNullParameter(remoteEntry, "remoteEntry");
if (Build.VERSION.SDK_INT >= 34) {
return Api34Impl.fromRemoteEntry(remoteEntry);
}
return null;
}
public final void marshall$credentials_release(RemoteEntry remoteEntry, Bundle bundle) {
Intrinsics.checkNotNullParameter(remoteEntry, "<this>");
Intrinsics.checkNotNullParameter(bundle, "bundle");
bundle.putParcelable(RemoteEntry.EXTRA_REMOTE_ENTRY_PENDING_INTENT, remoteEntry.getPendingIntent());
}
public final RemoteEntry unmarshallRemoteEntry$credentials_release(Bundle bundle) {
Intrinsics.checkNotNullParameter(bundle, "<this>");
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(RemoteEntry.EXTRA_REMOTE_ENTRY_PENDING_INTENT);
if (pendingIntent == null) {
return null;
}
return new RemoteEntry(pendingIntent);
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof RemoteEntry) {
return Intrinsics.areEqual(this.pendingIntent, ((RemoteEntry) obj).pendingIntent);
}
return false;
}
public int hashCode() {
return this.pendingIntent.hashCode();
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline2 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider;
/* loaded from: classes.dex */
public abstract /* synthetic */ class SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline3 {
}

View File

@@ -0,0 +1,193 @@
package androidx.credentials.provider;
import android.content.pm.Signature;
import android.content.pm.SigningInfo;
import android.os.Build;
import androidx.annotation.DeprecatedSinceApi;
import androidx.annotation.RequiresApi;
import java.security.PublicKey;
import java.util.Collection;
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;
/* loaded from: classes.dex */
public final class SigningInfoCompat {
public static final Companion Companion = new Companion(null);
@RequiresApi(28)
private final List<Signature> apkContentsSigners;
@RequiresApi(28)
private final boolean hasMultipleSigners;
@RequiresApi(28)
private final boolean hasPastSigningCertificates;
@RequiresApi(35)
private final Collection<PublicKey> publicKeys;
@RequiresApi(35)
private final int schemeVersion;
private final List<Signature> signingCertificateHistory;
@DeprecatedSinceApi(api = 28, message = "Use SigningInfoCompat.fromSigningInfo(SigningInfo) instead")
public static final SigningInfoCompat fromSignatures(List<? extends Signature> list) {
return Companion.fromSignatures(list);
}
@RequiresApi(28)
public static final SigningInfoCompat fromSigningInfo(SigningInfo signingInfo) {
return Companion.fromSigningInfo(signingInfo);
}
public final List<Signature> getApkContentsSigners() {
return this.apkContentsSigners;
}
public final Collection<PublicKey> getPublicKeys() {
return this.publicKeys;
}
public final int getSchemeVersion() {
return this.schemeVersion;
}
public final List<Signature> getSigningCertificateHistory() {
return this.signingCertificateHistory;
}
public final boolean hasMultipleSigners() {
return this.hasMultipleSigners;
}
public final boolean hasPastSigningCertificates() {
return this.hasPastSigningCertificates;
}
/* JADX WARN: Multi-variable type inference failed */
public SigningInfoCompat(List<? extends Signature> signingCertificateHistory, List<? extends Signature> apkContentsSigners, Collection<? extends PublicKey> publicKeys, int i, boolean z, boolean z2) {
Intrinsics.checkNotNullParameter(signingCertificateHistory, "signingCertificateHistory");
Intrinsics.checkNotNullParameter(apkContentsSigners, "apkContentsSigners");
Intrinsics.checkNotNullParameter(publicKeys, "publicKeys");
this.signingCertificateHistory = signingCertificateHistory;
this.apkContentsSigners = apkContentsSigners;
this.publicKeys = publicKeys;
this.schemeVersion = i;
this.hasPastSigningCertificates = z;
this.hasMultipleSigners = z2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SigningInfoCompat)) {
return false;
}
SigningInfoCompat signingInfoCompat = (SigningInfoCompat) obj;
return Intrinsics.areEqual(this.signingCertificateHistory, signingInfoCompat.signingCertificateHistory) && Intrinsics.areEqual(this.apkContentsSigners, signingInfoCompat.apkContentsSigners) && Intrinsics.areEqual(this.publicKeys, signingInfoCompat.publicKeys) && this.schemeVersion == signingInfoCompat.schemeVersion && this.hasPastSigningCertificates == signingInfoCompat.hasPastSigningCertificates && this.hasMultipleSigners == signingInfoCompat.hasMultipleSigners;
}
public int hashCode() {
return (((((((((this.signingCertificateHistory.hashCode() * 31) + this.apkContentsSigners.hashCode()) * 31) + this.publicKeys.hashCode()) * 31) + this.schemeVersion) * 31) + Boolean.hashCode(this.hasPastSigningCertificates)) * 31) + Boolean.hashCode(this.hasMultipleSigners);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
/* JADX WARN: Code restructure failed: missing block: B:17:0x0040, code lost:
r0 = kotlin.collections.ArraysKt___ArraysKt.filterNotNull(r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:3:0x000b, code lost:
r0 = kotlin.collections.ArraysKt___ArraysKt.filterNotNull(r0);
*/
@androidx.annotation.RequiresApi(28)
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final androidx.credentials.provider.SigningInfoCompat fromSigningInfo(android.content.pm.SigningInfo r9) {
/*
r8 = this;
java.lang.String r0 = "signingInfo"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
android.content.pm.Signature[] r0 = androidx.credentials.provider.SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline0.m(r9)
if (r0 == 0) goto L14
java.util.List r0 = kotlin.collections.ArraysKt.filterNotNull(r0)
if (r0 != 0) goto L12
goto L14
L12:
r3 = r0
goto L19
L14:
java.util.List r0 = kotlin.collections.CollectionsKt.emptyList()
goto L12
L19:
int r0 = android.os.Build.VERSION.SDK_INT
r1 = 35
if (r0 < r1) goto L2b
java.util.Collection r2 = r9.getPublicKeys()
if (r2 != 0) goto L29
java.util.Set r2 = kotlin.collections.SetsKt.emptySet()
L29:
r4 = r2
goto L30
L2b:
java.util.Set r2 = kotlin.collections.SetsKt.emptySet()
goto L29
L30:
if (r0 < r1) goto L38
int r0 = r9.getSchemeVersion()
L36:
r5 = r0
goto L3a
L38:
r0 = 0
goto L36
L3a:
android.content.pm.Signature[] r0 = androidx.credentials.provider.SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline1.m(r9)
if (r0 == 0) goto L49
java.util.List r0 = kotlin.collections.ArraysKt.filterNotNull(r0)
if (r0 != 0) goto L47
goto L49
L47:
r2 = r0
goto L4e
L49:
java.util.List r0 = kotlin.collections.CollectionsKt.emptyList()
goto L47
L4e:
boolean r6 = androidx.credentials.provider.SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline2.m(r9)
boolean r7 = androidx.credentials.provider.SigningInfoCompat$Companion$$ExternalSyntheticApiModelOutline3.m(r9)
androidx.credentials.provider.SigningInfoCompat r9 = new androidx.credentials.provider.SigningInfoCompat
r1 = r9
r1.<init>(r2, r3, r4, r5, r6, r7)
return r9
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.credentials.provider.SigningInfoCompat.Companion.fromSigningInfo(android.content.pm.SigningInfo):androidx.credentials.provider.SigningInfoCompat");
}
@DeprecatedSinceApi(api = 28, message = "Use SigningInfoCompat.fromSigningInfo(SigningInfo) instead")
public final SigningInfoCompat fromSignatures(List<? extends Signature> signatures) {
Set emptySet;
Intrinsics.checkNotNullParameter(signatures, "signatures");
if (Build.VERSION.SDK_INT >= 28) {
throw new IllegalArgumentException("Use SigningInfoCompat.fromSigningInfo(SigningInfo) instead");
}
List emptyList = CollectionsKt__CollectionsKt.emptyList();
emptySet = SetsKt__SetsKt.emptySet();
return new SigningInfoCompat(signatures, emptyList, emptySet, 0, false, false);
}
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline10 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline11 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider.utils;
import android.service.credentials.BeginCreateCredentialResponse;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline12 {
public static /* synthetic */ BeginCreateCredentialResponse.Builder m() {
return new BeginCreateCredentialResponse.Builder();
}
}

View File

@@ -0,0 +1,11 @@
package androidx.credentials.provider.utils;
import android.content.pm.SigningInfo;
import android.service.credentials.CallingAppInfo;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline13 {
public static /* synthetic */ CallingAppInfo m(String str, SigningInfo signingInfo, String str2) {
return new CallingAppInfo(str, signingInfo, str2);
}
}

View File

@@ -0,0 +1,12 @@
package androidx.credentials.provider.utils;
import android.os.Bundle;
import android.service.credentials.BeginCreateCredentialRequest;
import android.service.credentials.CallingAppInfo;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline14 {
public static /* synthetic */ BeginCreateCredentialRequest m(String str, Bundle bundle, CallingAppInfo callingAppInfo) {
return new BeginCreateCredentialRequest(str, bundle, callingAppInfo);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline15 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline16 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,11 @@
package androidx.credentials.provider.utils;
import android.app.slice.Slice;
import android.service.credentials.RemoteEntry;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline17 {
public static /* synthetic */ RemoteEntry m(Slice slice) {
return new RemoteEntry(slice);
}
}

View File

@@ -0,0 +1,7 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline18 {
public static /* synthetic */ void m() {
}
}

View File

@@ -0,0 +1,11 @@
package androidx.credentials.provider.utils;
import android.app.slice.Slice;
import android.service.credentials.CreateEntry;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline19 {
public static /* synthetic */ CreateEntry m(Slice slice) {
return new CreateEntry(slice);
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline2 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline3 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline4 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline5 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline6 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline7 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline8 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline9 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider.utils;
import android.service.credentials.CreateEntry;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$convertToJetpackResponse$1$$ExternalSyntheticApiModelOutline0 {
public static /* bridge */ /* synthetic */ CreateEntry m(Object obj) {
return (CreateEntry) obj;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginCreateCredentialUtil$Companion$convertToJetpackResponse$1$$ExternalSyntheticApiModelOutline1 {
}

View File

@@ -0,0 +1,205 @@
package androidx.credentials.provider.utils;
import android.annotation.SuppressLint;
import android.app.slice.Slice;
import android.content.pm.SigningInfo;
import android.os.Bundle;
import android.service.credentials.BeginCreateCredentialResponse;
import android.service.credentials.CallingAppInfo;
import androidx.annotation.RequiresApi;
import androidx.credentials.provider.BeginCreateCredentialRequest;
import androidx.credentials.provider.CallingAppInfo;
import androidx.credentials.provider.CreateEntry;
import androidx.credentials.provider.RemoteEntry;
import androidx.credentials.provider.utils.BeginCreateCredentialUtil;
import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* loaded from: classes.dex */
public final class BeginCreateCredentialUtil {
public static final Companion Companion = new Companion(null);
@SourceDebugExtension({"SMAP\nBeginCreateCredentialUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginCreateCredentialUtil.kt\nandroidx/credentials/provider/utils/BeginCreateCredentialUtil$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,124:1\n1855#2,2:125\n1#3:127\n*S KotlinDebug\n*F\n+ 1 BeginCreateCredentialUtil.kt\nandroidx/credentials/provider/utils/BeginCreateCredentialUtil$Companion\n*L\n76#1:125,2\n*E\n"})
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RequiresApi(34)
public final BeginCreateCredentialRequest convertToJetpackRequest$credentials_release(android.service.credentials.BeginCreateCredentialRequest request) {
String type;
Bundle data;
CallingAppInfo callingAppInfo;
androidx.credentials.provider.CallingAppInfo callingAppInfo2;
String packageName;
SigningInfo signingInfo;
String origin;
Intrinsics.checkNotNullParameter(request, "request");
BeginCreateCredentialRequest.Companion companion = BeginCreateCredentialRequest.Companion;
type = request.getType();
Intrinsics.checkNotNullExpressionValue(type, "request.type");
data = request.getData();
Intrinsics.checkNotNullExpressionValue(data, "request.data");
callingAppInfo = request.getCallingAppInfo();
if (callingAppInfo != null) {
CallingAppInfo.Companion companion2 = androidx.credentials.provider.CallingAppInfo.Companion;
packageName = callingAppInfo.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "it.packageName");
signingInfo = callingAppInfo.getSigningInfo();
Intrinsics.checkNotNullExpressionValue(signingInfo, "it.signingInfo");
origin = callingAppInfo.getOrigin();
callingAppInfo2 = companion2.create(packageName, signingInfo, origin);
} else {
callingAppInfo2 = null;
}
return companion.createFrom$credentials_release(type, data, callingAppInfo2);
}
@RequiresApi(34)
public final BeginCreateCredentialResponse convertToFrameworkResponse(androidx.credentials.provider.BeginCreateCredentialResponse response) {
BeginCreateCredentialResponse build;
Intrinsics.checkNotNullParameter(response, "response");
BeginCreateCredentialResponse.Builder m = BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline12.m();
populateCreateEntries(m, response.getCreateEntries());
populateRemoteEntry(m, response.getRemoteEntry());
build = m.build();
Intrinsics.checkNotNullExpressionValue(build, "frameworkBuilder.build()");
return build;
}
@RequiresApi(34)
@SuppressLint({"MissingPermission"})
private final void populateRemoteEntry(BeginCreateCredentialResponse.Builder builder, RemoteEntry remoteEntry) {
if (remoteEntry == null) {
return;
}
BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline18.m();
builder.setRemoteCreateEntry(BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline17.m(RemoteEntry.Companion.toSlice(remoteEntry)));
}
@RequiresApi(34)
private final void populateCreateEntries(BeginCreateCredentialResponse.Builder builder, List<CreateEntry> list) {
Iterator<T> it = list.iterator();
while (it.hasNext()) {
Slice slice = CreateEntry.Companion.toSlice((CreateEntry) it.next());
if (slice != null) {
builder.addCreateEntry(BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline19.m(slice));
}
}
}
@RequiresApi(34)
public final android.service.credentials.BeginCreateCredentialRequest convertToFrameworkRequest(BeginCreateCredentialRequest request) {
android.service.credentials.CallingAppInfo callingAppInfo;
Intrinsics.checkNotNullParameter(request, "request");
if (request.getCallingAppInfo() != null) {
BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline15.m();
callingAppInfo = BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline13.m(request.getCallingAppInfo().getPackageName(), request.getCallingAppInfo().getSigningInfo(), request.getCallingAppInfo().getOrigin$credentials_release());
} else {
callingAppInfo = null;
}
BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline16.m();
return BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline14.m(request.getType(), request.getCandidateQueryData(), callingAppInfo);
}
@RequiresApi(34)
public final androidx.credentials.provider.BeginCreateCredentialResponse convertToJetpackResponse(BeginCreateCredentialResponse frameworkResponse) {
List createEntries;
android.service.credentials.RemoteEntry remoteCreateEntry;
RemoteEntry remoteEntry;
Slice slice;
Intrinsics.checkNotNullParameter(frameworkResponse, "frameworkResponse");
createEntries = frameworkResponse.getCreateEntries();
Stream stream = createEntries.stream();
final BeginCreateCredentialUtil$Companion$convertToJetpackResponse$1 beginCreateCredentialUtil$Companion$convertToJetpackResponse$1 = new Function1() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$convertToJetpackResponse$1
public final CreateEntry invoke(android.service.credentials.CreateEntry createEntry) {
Slice slice2;
CreateEntry.Companion companion = CreateEntry.Companion;
slice2 = createEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice2, "entry.slice");
return companion.fromSlice(slice2);
}
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
return invoke(BeginCreateCredentialUtil$Companion$convertToJetpackResponse$1$$ExternalSyntheticApiModelOutline0.m(obj));
}
};
Stream map = stream.map(new Function() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$$ExternalSyntheticLambda20
@Override // java.util.function.Function
public final Object apply(Object obj) {
CreateEntry convertToJetpackResponse$lambda$2;
convertToJetpackResponse$lambda$2 = BeginCreateCredentialUtil.Companion.convertToJetpackResponse$lambda$2(Function1.this, obj);
return convertToJetpackResponse$lambda$2;
}
});
final BeginCreateCredentialUtil$Companion$convertToJetpackResponse$2 beginCreateCredentialUtil$Companion$convertToJetpackResponse$2 = new Function1() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$convertToJetpackResponse$2
@Override // kotlin.jvm.functions.Function1
public final Boolean invoke(CreateEntry createEntry) {
return Boolean.valueOf(createEntry != null);
}
};
Stream filter = map.filter(new Predicate() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$$ExternalSyntheticLambda21
@Override // java.util.function.Predicate
public final boolean test(Object obj) {
boolean convertToJetpackResponse$lambda$3;
convertToJetpackResponse$lambda$3 = BeginCreateCredentialUtil.Companion.convertToJetpackResponse$lambda$3(Function1.this, obj);
return convertToJetpackResponse$lambda$3;
}
});
final BeginCreateCredentialUtil$Companion$convertToJetpackResponse$3 beginCreateCredentialUtil$Companion$convertToJetpackResponse$3 = new Function1() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$convertToJetpackResponse$3
@Override // kotlin.jvm.functions.Function1
public final CreateEntry invoke(CreateEntry createEntry) {
Intrinsics.checkNotNull(createEntry);
return createEntry;
}
};
Object collect = filter.map(new Function() { // from class: androidx.credentials.provider.utils.BeginCreateCredentialUtil$Companion$$ExternalSyntheticLambda22
@Override // java.util.function.Function
public final Object apply(Object obj) {
CreateEntry convertToJetpackResponse$lambda$4;
convertToJetpackResponse$lambda$4 = BeginCreateCredentialUtil.Companion.convertToJetpackResponse$lambda$4(Function1.this, obj);
return convertToJetpackResponse$lambda$4;
}
}).collect(Collectors.toList());
Intrinsics.checkNotNullExpressionValue(collect, "frameworkResponse.create…lect(Collectors.toList())");
List list = (List) collect;
remoteCreateEntry = frameworkResponse.getRemoteCreateEntry();
if (remoteCreateEntry != null) {
RemoteEntry.Companion companion = RemoteEntry.Companion;
slice = remoteCreateEntry.getSlice();
Intrinsics.checkNotNullExpressionValue(slice, "it.slice");
remoteEntry = companion.fromSlice(slice);
} else {
remoteEntry = null;
}
return new androidx.credentials.provider.BeginCreateCredentialResponse(list, remoteEntry);
}
/* JADX INFO: Access modifiers changed from: private */
public static final CreateEntry convertToJetpackResponse$lambda$2(Function1 function1, Object obj) {
return (CreateEntry) function1.invoke(obj);
}
/* JADX INFO: Access modifiers changed from: private */
public static final boolean convertToJetpackResponse$lambda$3(Function1 function1, Object obj) {
return ((Boolean) function1.invoke(obj)).booleanValue();
}
/* JADX INFO: Access modifiers changed from: private */
public static final CreateEntry convertToJetpackResponse$lambda$4(Function1 function1, Object obj) {
return (CreateEntry) function1.invoke(obj);
}
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,10 @@
package androidx.credentials.provider.utils;
import android.service.credentials.BeginGetCredentialOption;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline1 {
public static /* bridge */ /* synthetic */ BeginGetCredentialOption m(Object obj) {
return (BeginGetCredentialOption) obj;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline10 {
}

View File

@@ -0,0 +1,5 @@
package androidx.credentials.provider.utils;
/* loaded from: classes.dex */
public abstract /* synthetic */ class BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline11 {
}

Some files were not shown because too many files have changed in this diff Show More