- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
411 lines
27 KiB
Java
411 lines
27 KiB
Java
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.BeginGetCredentialOption;
|
|
import android.service.credentials.BeginGetCredentialRequest;
|
|
import android.service.credentials.BeginGetCredentialResponse;
|
|
import android.service.credentials.CallingAppInfo;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.provider.Action;
|
|
import androidx.credentials.provider.AuthenticationAction;
|
|
import androidx.credentials.provider.BeginGetCredentialOption;
|
|
import androidx.credentials.provider.BeginGetCredentialRequest;
|
|
import androidx.credentials.provider.CallingAppInfo;
|
|
import androidx.credentials.provider.CredentialEntry;
|
|
import androidx.credentials.provider.RemoteEntry;
|
|
import androidx.credentials.provider.utils.BeginGetCredentialUtil;
|
|
import java.util.ArrayList;
|
|
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;
|
|
|
|
@RequiresApi(34)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes.dex */
|
|
public final class BeginGetCredentialUtil {
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
@SourceDebugExtension({"SMAP\nBeginGetCredentialUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BeginGetCredentialUtil.kt\nandroidx/credentials/provider/utils/BeginGetCredentialUtil$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,186:1\n1855#2,2:187\n1855#2,2:189\n1855#2,2:191\n1855#2,2:193\n1#3:195\n*S KotlinDebug\n*F\n+ 1 BeginGetCredentialUtil.kt\nandroidx/credentials/provider/utils/BeginGetCredentialUtil$Companion\n*L\n42#1:187,2\n85#1:189,2\n96#1:191,2\n105#1:193,2\n*E\n"})
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final BeginGetCredentialRequest convertToJetpackRequest$credentials_release(android.service.credentials.BeginGetCredentialRequest request) {
|
|
List beginGetCredentialOptions;
|
|
CallingAppInfo callingAppInfo;
|
|
androidx.credentials.provider.CallingAppInfo callingAppInfo2;
|
|
String packageName;
|
|
SigningInfo signingInfo;
|
|
String origin;
|
|
String id;
|
|
String type;
|
|
Bundle candidateQueryData;
|
|
Intrinsics.checkNotNullParameter(request, "request");
|
|
ArrayList arrayList = new ArrayList();
|
|
beginGetCredentialOptions = request.getBeginGetCredentialOptions();
|
|
Intrinsics.checkNotNullExpressionValue(beginGetCredentialOptions, "request.beginGetCredentialOptions");
|
|
Iterator it = beginGetCredentialOptions.iterator();
|
|
while (it.hasNext()) {
|
|
BeginGetCredentialOption m = BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline1.m(it.next());
|
|
BeginGetCredentialOption.Companion companion = androidx.credentials.provider.BeginGetCredentialOption.Companion;
|
|
id = m.getId();
|
|
Intrinsics.checkNotNullExpressionValue(id, "it.id");
|
|
type = m.getType();
|
|
Intrinsics.checkNotNullExpressionValue(type, "it.type");
|
|
candidateQueryData = m.getCandidateQueryData();
|
|
Intrinsics.checkNotNullExpressionValue(candidateQueryData, "it.candidateQueryData");
|
|
arrayList.add(companion.createFrom$credentials_release(id, type, candidateQueryData));
|
|
}
|
|
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 new BeginGetCredentialRequest(arrayList, callingAppInfo2);
|
|
}
|
|
|
|
public final BeginGetCredentialResponse convertToFrameworkResponse(androidx.credentials.provider.BeginGetCredentialResponse response) {
|
|
BeginGetCredentialResponse build;
|
|
Intrinsics.checkNotNullParameter(response, "response");
|
|
BeginGetCredentialResponse.Builder m = BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline25.m();
|
|
populateCredentialEntries(m, response.getCredentialEntries());
|
|
populateActionEntries(m, response.getActions());
|
|
populateAuthenticationEntries(m, response.getAuthenticationActions());
|
|
populateRemoteEntry(m, response.getRemoteEntry());
|
|
build = m.build();
|
|
Intrinsics.checkNotNullExpressionValue(build, "frameworkBuilder.build()");
|
|
return build;
|
|
}
|
|
|
|
@SuppressLint({"MissingPermission"})
|
|
private final void populateRemoteEntry(BeginGetCredentialResponse.Builder builder, RemoteEntry remoteEntry) {
|
|
if (remoteEntry == null) {
|
|
return;
|
|
}
|
|
BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline18.m();
|
|
builder.setRemoteCredentialEntry(BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline17.m(RemoteEntry.Companion.toSlice(remoteEntry)));
|
|
}
|
|
|
|
private final void populateAuthenticationEntries(BeginGetCredentialResponse.Builder builder, List<AuthenticationAction> list) {
|
|
for (AuthenticationAction authenticationAction : list) {
|
|
BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline19.m();
|
|
builder.addAuthenticationAction(BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline18.m(AuthenticationAction.Companion.toSlice(authenticationAction)));
|
|
}
|
|
}
|
|
|
|
private final void populateActionEntries(BeginGetCredentialResponse.Builder builder, List<Action> list) {
|
|
for (Action action : list) {
|
|
BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline19.m();
|
|
builder.addAction(BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline18.m(Action.Companion.toSlice(action)));
|
|
}
|
|
}
|
|
|
|
private final void populateCredentialEntries(BeginGetCredentialResponse.Builder builder, List<? extends CredentialEntry> list) {
|
|
for (CredentialEntry credentialEntry : list) {
|
|
Slice slice$credentials_release = CredentialEntry.Companion.toSlice$credentials_release(credentialEntry);
|
|
if (slice$credentials_release != null) {
|
|
BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline22.m();
|
|
BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline23.m();
|
|
builder.addCredentialEntry(BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline21.m(BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline20.m(credentialEntry.getBeginGetCredentialOption().getId(), credentialEntry.getType(), Bundle.EMPTY), slice$credentials_release));
|
|
}
|
|
}
|
|
}
|
|
|
|
public final android.service.credentials.BeginGetCredentialRequest convertToFrameworkRequest(BeginGetCredentialRequest request) {
|
|
BeginGetCredentialRequest.Builder beginGetCredentialOptions;
|
|
android.service.credentials.BeginGetCredentialRequest build;
|
|
Intrinsics.checkNotNullParameter(request, "request");
|
|
BeginGetCredentialRequest.Builder m = BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline24.m();
|
|
if (request.getCallingAppInfo() != null) {
|
|
BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline15.m();
|
|
m.setCallingAppInfo(BeginCreateCredentialUtil$Companion$$ExternalSyntheticApiModelOutline13.m(request.getCallingAppInfo().getPackageName(), request.getCallingAppInfo().getSigningInfo(), request.getCallingAppInfo().getOrigin$credentials_release()));
|
|
}
|
|
Stream<androidx.credentials.provider.BeginGetCredentialOption> stream = request.getBeginGetCredentialOptions().stream();
|
|
final BeginGetCredentialUtil$Companion$convertToFrameworkRequest$1 beginGetCredentialUtil$Companion$convertToFrameworkRequest$1 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToFrameworkRequest$1
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final android.service.credentials.BeginGetCredentialOption invoke(androidx.credentials.provider.BeginGetCredentialOption option) {
|
|
android.service.credentials.BeginGetCredentialOption convertToJetpackBeginOption;
|
|
BeginGetCredentialUtil.Companion companion = BeginGetCredentialUtil.Companion;
|
|
Intrinsics.checkNotNullExpressionValue(option, "option");
|
|
convertToJetpackBeginOption = companion.convertToJetpackBeginOption(option);
|
|
return convertToJetpackBeginOption;
|
|
}
|
|
};
|
|
beginGetCredentialOptions = m.setBeginGetCredentialOptions((List) stream.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda35
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
android.service.credentials.BeginGetCredentialOption convertToFrameworkRequest$lambda$5;
|
|
convertToFrameworkRequest$lambda$5 = BeginGetCredentialUtil.Companion.convertToFrameworkRequest$lambda$5(Function1.this, obj);
|
|
return convertToFrameworkRequest$lambda$5;
|
|
}
|
|
}).collect(Collectors.toList()));
|
|
build = beginGetCredentialOptions.build();
|
|
Intrinsics.checkNotNullExpressionValue(build, "builder\n …\n .build()");
|
|
return build;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final android.service.credentials.BeginGetCredentialOption convertToFrameworkRequest$lambda$5(Function1 function1, Object obj) {
|
|
return BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline1.m(function1.invoke(obj));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final android.service.credentials.BeginGetCredentialOption convertToJetpackBeginOption(androidx.credentials.provider.BeginGetCredentialOption beginGetCredentialOption) {
|
|
BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline23.m();
|
|
return BeginGetCredentialUtil$Companion$$ExternalSyntheticApiModelOutline20.m(beginGetCredentialOption.getId(), beginGetCredentialOption.getType(), beginGetCredentialOption.getCandidateQueryData());
|
|
}
|
|
|
|
public final androidx.credentials.provider.BeginGetCredentialResponse convertToJetpackResponse(BeginGetCredentialResponse response) {
|
|
List credentialEntries;
|
|
List actions;
|
|
List authenticationActions;
|
|
android.service.credentials.RemoteEntry remoteCredentialEntry;
|
|
RemoteEntry remoteEntry;
|
|
Slice slice;
|
|
Intrinsics.checkNotNullParameter(response, "response");
|
|
credentialEntries = response.getCredentialEntries();
|
|
Stream stream = credentialEntries.stream();
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$1 beginGetCredentialUtil$Companion$convertToJetpackResponse$1 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$1
|
|
public final CredentialEntry invoke(android.service.credentials.CredentialEntry credentialEntry) {
|
|
Slice slice2;
|
|
CredentialEntry.Companion companion = CredentialEntry.Companion;
|
|
slice2 = credentialEntry.getSlice();
|
|
Intrinsics.checkNotNullExpressionValue(slice2, "entry.slice");
|
|
return companion.fromSlice$credentials_release(slice2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
return invoke(BeginGetCredentialUtil$Companion$convertToJetpackResponse$1$$ExternalSyntheticApiModelOutline1.m(obj));
|
|
}
|
|
};
|
|
Stream map = stream.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda28
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
CredentialEntry convertToJetpackResponse$lambda$6;
|
|
convertToJetpackResponse$lambda$6 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$6(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$6;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$2 beginGetCredentialUtil$Companion$convertToJetpackResponse$2 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$2
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Boolean invoke(CredentialEntry credentialEntry) {
|
|
return Boolean.valueOf(credentialEntry != null);
|
|
}
|
|
};
|
|
Stream filter = map.filter(new Predicate() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda29
|
|
@Override // java.util.function.Predicate
|
|
public final boolean test(Object obj) {
|
|
boolean convertToJetpackResponse$lambda$7;
|
|
convertToJetpackResponse$lambda$7 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$7(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$7;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$3 beginGetCredentialUtil$Companion$convertToJetpackResponse$3 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$3
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final CredentialEntry invoke(CredentialEntry credentialEntry) {
|
|
Intrinsics.checkNotNull(credentialEntry);
|
|
return credentialEntry;
|
|
}
|
|
};
|
|
Object collect = filter.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda30
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
CredentialEntry convertToJetpackResponse$lambda$8;
|
|
convertToJetpackResponse$lambda$8 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$8(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$8;
|
|
}
|
|
}).collect(Collectors.toList());
|
|
Intrinsics.checkNotNullExpressionValue(collect, "response.credentialEntri…lect(Collectors.toList())");
|
|
List list = (List) collect;
|
|
actions = response.getActions();
|
|
Stream stream2 = actions.stream();
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$4 beginGetCredentialUtil$Companion$convertToJetpackResponse$4 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$4
|
|
public final Action invoke(android.service.credentials.Action action) {
|
|
Slice slice2;
|
|
Action.Companion companion = Action.Companion;
|
|
slice2 = action.getSlice();
|
|
Intrinsics.checkNotNullExpressionValue(slice2, "entry.slice");
|
|
return companion.fromSlice(slice2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
return invoke(BeginGetCredentialUtil$Companion$convertToJetpackResponse$4$$ExternalSyntheticApiModelOutline0.m(obj));
|
|
}
|
|
};
|
|
Stream map2 = stream2.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda31
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
Action convertToJetpackResponse$lambda$9;
|
|
convertToJetpackResponse$lambda$9 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$9(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$9;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$5 beginGetCredentialUtil$Companion$convertToJetpackResponse$5 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$5
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Boolean invoke(Action action) {
|
|
return Boolean.valueOf(action != null);
|
|
}
|
|
};
|
|
Stream filter2 = map2.filter(new Predicate() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda32
|
|
@Override // java.util.function.Predicate
|
|
public final boolean test(Object obj) {
|
|
boolean convertToJetpackResponse$lambda$10;
|
|
convertToJetpackResponse$lambda$10 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$10(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$10;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$6 beginGetCredentialUtil$Companion$convertToJetpackResponse$6 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$6
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Action invoke(Action action) {
|
|
Intrinsics.checkNotNull(action);
|
|
return action;
|
|
}
|
|
};
|
|
Object collect2 = filter2.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda33
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
Action convertToJetpackResponse$lambda$11;
|
|
convertToJetpackResponse$lambda$11 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$11(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$11;
|
|
}
|
|
}).collect(Collectors.toList());
|
|
Intrinsics.checkNotNullExpressionValue(collect2, "response.actions\n …lect(Collectors.toList())");
|
|
List list2 = (List) collect2;
|
|
authenticationActions = response.getAuthenticationActions();
|
|
Stream stream3 = authenticationActions.stream();
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$7 beginGetCredentialUtil$Companion$convertToJetpackResponse$7 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$7
|
|
public final AuthenticationAction invoke(android.service.credentials.Action action) {
|
|
Slice slice2;
|
|
AuthenticationAction.Companion companion = AuthenticationAction.Companion;
|
|
slice2 = action.getSlice();
|
|
Intrinsics.checkNotNullExpressionValue(slice2, "entry.slice");
|
|
return companion.fromSlice(slice2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
return invoke(BeginGetCredentialUtil$Companion$convertToJetpackResponse$4$$ExternalSyntheticApiModelOutline0.m(obj));
|
|
}
|
|
};
|
|
Stream map3 = stream3.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda34
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
AuthenticationAction convertToJetpackResponse$lambda$12;
|
|
convertToJetpackResponse$lambda$12 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$12(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$12;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$8 beginGetCredentialUtil$Companion$convertToJetpackResponse$8 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$8
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Boolean invoke(AuthenticationAction authenticationAction) {
|
|
return Boolean.valueOf(authenticationAction != null);
|
|
}
|
|
};
|
|
Stream filter3 = map3.filter(new Predicate() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda26
|
|
@Override // java.util.function.Predicate
|
|
public final boolean test(Object obj) {
|
|
boolean convertToJetpackResponse$lambda$13;
|
|
convertToJetpackResponse$lambda$13 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$13(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$13;
|
|
}
|
|
});
|
|
final BeginGetCredentialUtil$Companion$convertToJetpackResponse$9 beginGetCredentialUtil$Companion$convertToJetpackResponse$9 = new Function1() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$convertToJetpackResponse$9
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final AuthenticationAction invoke(AuthenticationAction authenticationAction) {
|
|
Intrinsics.checkNotNull(authenticationAction);
|
|
return authenticationAction;
|
|
}
|
|
};
|
|
Object collect3 = filter3.map(new Function() { // from class: androidx.credentials.provider.utils.BeginGetCredentialUtil$Companion$$ExternalSyntheticLambda27
|
|
@Override // java.util.function.Function
|
|
public final Object apply(Object obj) {
|
|
AuthenticationAction convertToJetpackResponse$lambda$14;
|
|
convertToJetpackResponse$lambda$14 = BeginGetCredentialUtil.Companion.convertToJetpackResponse$lambda$14(Function1.this, obj);
|
|
return convertToJetpackResponse$lambda$14;
|
|
}
|
|
}).collect(Collectors.toList());
|
|
Intrinsics.checkNotNullExpressionValue(collect3, "response.authenticationA…lect(Collectors.toList())");
|
|
List list3 = (List) collect3;
|
|
remoteCredentialEntry = response.getRemoteCredentialEntry();
|
|
if (remoteCredentialEntry != null) {
|
|
RemoteEntry.Companion companion = RemoteEntry.Companion;
|
|
slice = remoteCredentialEntry.getSlice();
|
|
Intrinsics.checkNotNullExpressionValue(slice, "it.slice");
|
|
remoteEntry = companion.fromSlice(slice);
|
|
} else {
|
|
remoteEntry = null;
|
|
}
|
|
return new androidx.credentials.provider.BeginGetCredentialResponse(list, list2, list3, remoteEntry);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final CredentialEntry convertToJetpackResponse$lambda$6(Function1 function1, Object obj) {
|
|
return (CredentialEntry) function1.invoke(obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final boolean convertToJetpackResponse$lambda$7(Function1 function1, Object obj) {
|
|
return ((Boolean) function1.invoke(obj)).booleanValue();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final CredentialEntry convertToJetpackResponse$lambda$8(Function1 function1, Object obj) {
|
|
return (CredentialEntry) function1.invoke(obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final Action convertToJetpackResponse$lambda$9(Function1 function1, Object obj) {
|
|
return (Action) function1.invoke(obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final boolean convertToJetpackResponse$lambda$10(Function1 function1, Object obj) {
|
|
return ((Boolean) function1.invoke(obj)).booleanValue();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final Action convertToJetpackResponse$lambda$11(Function1 function1, Object obj) {
|
|
return (Action) function1.invoke(obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final AuthenticationAction convertToJetpackResponse$lambda$12(Function1 function1, Object obj) {
|
|
return (AuthenticationAction) function1.invoke(obj);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final boolean convertToJetpackResponse$lambda$13(Function1 function1, Object obj) {
|
|
return ((Boolean) function1.invoke(obj)).booleanValue();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final AuthenticationAction convertToJetpackResponse$lambda$14(Function1 function1, Object obj) {
|
|
return (AuthenticationAction) function1.invoke(obj);
|
|
}
|
|
}
|
|
}
|