Files
rr3-apk/decompiled/sources/androidx/credentials/PrepareGetCredentialResponse.java
Daniel Elliott f9d20bb3fc 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>
2026-02-18 14:52:23 -08:00

197 lines
8.6 KiB
Java

package androidx.credentials;
import android.annotation.SuppressLint;
import android.credentials.PrepareGetCredentialResponse;
import android.os.Build;
import androidx.annotation.RequiresApi;
import androidx.annotation.RequiresPermission;
import androidx.annotation.RestrictTo;
import androidx.annotation.VisibleForTesting;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
@RequiresApi(34)
@SuppressLint({"MissingGetterMatchingBuilder"})
/* loaded from: classes.dex */
public final class PrepareGetCredentialResponse {
private final Function1 credentialTypeDelegate;
private final Function0 hasAuthResultsDelegate;
private final Function0 hasRemoteResultsDelegate;
private final boolean isNullHandlesForTest;
private final PendingGetCredentialHandle pendingGetCredentialHandle;
public /* synthetic */ PrepareGetCredentialResponse(PendingGetCredentialHandle pendingGetCredentialHandle, Function0 function0, Function0 function02, Function1 function1, boolean z, DefaultConstructorMarker defaultConstructorMarker) {
this(pendingGetCredentialHandle, function0, function02, function1, z);
}
public final Function1 getCredentialTypeDelegate() {
return this.credentialTypeDelegate;
}
public final Function0 getHasAuthResultsDelegate() {
return this.hasAuthResultsDelegate;
}
public final Function0 getHasRemoteResultsDelegate() {
return this.hasRemoteResultsDelegate;
}
public final PendingGetCredentialHandle getPendingGetCredentialHandle() {
return this.pendingGetCredentialHandle;
}
public final boolean isNullHandlesForTest() {
return this.isNullHandlesForTest;
}
private PrepareGetCredentialResponse(PendingGetCredentialHandle pendingGetCredentialHandle, Function0 function0, Function0 function02, Function1 function1, boolean z) {
this.pendingGetCredentialHandle = pendingGetCredentialHandle;
this.hasRemoteResultsDelegate = function0;
this.hasAuthResultsDelegate = function02;
this.credentialTypeDelegate = function1;
this.isNullHandlesForTest = z;
if (Build.VERSION.SDK_INT < 34 || z) {
return;
}
Intrinsics.checkNotNull(pendingGetCredentialHandle);
}
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasCredentialResults(String credentialType) {
Intrinsics.checkNotNullParameter(credentialType, "credentialType");
Function1 function1 = this.credentialTypeDelegate;
if (function1 != null) {
return ((Boolean) function1.invoke(credentialType)).booleanValue();
}
return false;
}
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasAuthenticationResults() {
Function0 function0 = this.hasAuthResultsDelegate;
if (function0 != null) {
return ((Boolean) function0.invoke()).booleanValue();
}
return false;
}
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasRemoteResults() {
Function0 function0 = this.hasRemoteResultsDelegate;
if (function0 != null) {
return ((Boolean) function0.invoke()).booleanValue();
}
return false;
}
@RequiresApi(34)
public static final class PendingGetCredentialHandle {
private final PrepareGetCredentialResponse.PendingGetCredentialHandle frameworkHandle;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final PrepareGetCredentialResponse.PendingGetCredentialHandle getFrameworkHandle() {
return this.frameworkHandle;
}
public PendingGetCredentialHandle(PrepareGetCredentialResponse.PendingGetCredentialHandle pendingGetCredentialHandle) {
this.frameworkHandle = pendingGetCredentialHandle;
if (Build.VERSION.SDK_INT >= 34) {
Intrinsics.checkNotNull(pendingGetCredentialHandle);
}
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final class Builder {
private android.credentials.PrepareGetCredentialResponse frameworkResponse;
private Function0 hasAuthResultsDelegate;
private Function1 hasCredentialResultsDelegate;
private Function0 hasRemoteResultsDelegate;
private PendingGetCredentialHandle pendingGetCredentialHandle;
public final Builder setPendingGetCredentialHandle(PendingGetCredentialHandle handle) {
Intrinsics.checkNotNullParameter(handle, "handle");
this.pendingGetCredentialHandle = handle;
return this;
}
public final Builder setFrameworkResponse(android.credentials.PrepareGetCredentialResponse prepareGetCredentialResponse) {
this.frameworkResponse = prepareGetCredentialResponse;
if (prepareGetCredentialResponse != null) {
this.hasCredentialResultsDelegate = new PrepareGetCredentialResponse$Builder$setFrameworkResponse$1(this);
this.hasAuthResultsDelegate = new PrepareGetCredentialResponse$Builder$setFrameworkResponse$2(this);
this.hasRemoteResultsDelegate = new PrepareGetCredentialResponse$Builder$setFrameworkResponse$3(this);
}
return this;
}
/* JADX INFO: Access modifiers changed from: private */
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasCredentialType(String str) {
boolean hasCredentialResults;
android.credentials.PrepareGetCredentialResponse prepareGetCredentialResponse = this.frameworkResponse;
Intrinsics.checkNotNull(prepareGetCredentialResponse);
hasCredentialResults = prepareGetCredentialResponse.hasCredentialResults(str);
return hasCredentialResults;
}
/* JADX INFO: Access modifiers changed from: private */
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasAuthenticationResults() {
boolean hasAuthenticationResults;
android.credentials.PrepareGetCredentialResponse prepareGetCredentialResponse = this.frameworkResponse;
Intrinsics.checkNotNull(prepareGetCredentialResponse);
hasAuthenticationResults = prepareGetCredentialResponse.hasAuthenticationResults();
return hasAuthenticationResults;
}
/* JADX INFO: Access modifiers changed from: private */
@RequiresPermission("android.permission.CREDENTIAL_MANAGER_QUERY_CANDIDATE_CREDENTIALS")
public final boolean hasRemoteResults() {
boolean hasRemoteResults;
android.credentials.PrepareGetCredentialResponse prepareGetCredentialResponse = this.frameworkResponse;
Intrinsics.checkNotNull(prepareGetCredentialResponse);
hasRemoteResults = prepareGetCredentialResponse.hasRemoteResults();
return hasRemoteResults;
}
public final PrepareGetCredentialResponse build() {
return new PrepareGetCredentialResponse(this.pendingGetCredentialHandle, this.hasRemoteResultsDelegate, this.hasAuthResultsDelegate, this.hasCredentialResultsDelegate, false, null);
}
}
@VisibleForTesting
public static final class TestBuilder {
private Function0 hasAuthResultsDelegate;
private Function1 hasCredentialResultsDelegate;
private Function0 hasRemoteResultsDelegate;
@VisibleForTesting
public final TestBuilder setCredentialTypeDelegate(Function1 handler) {
Intrinsics.checkNotNullParameter(handler, "handler");
this.hasCredentialResultsDelegate = handler;
return this;
}
@VisibleForTesting
public final TestBuilder setHasAuthResultsDelegate(Function0 handler) {
Intrinsics.checkNotNullParameter(handler, "handler");
this.hasAuthResultsDelegate = handler;
return this;
}
@VisibleForTesting
public final TestBuilder setHasRemoteResultsDelegate(Function0 handler) {
Intrinsics.checkNotNullParameter(handler, "handler");
this.hasRemoteResultsDelegate = handler;
return this;
}
public final PrepareGetCredentialResponse build() {
return new PrepareGetCredentialResponse(null, this.hasRemoteResultsDelegate, this.hasAuthResultsDelegate, this.hasCredentialResultsDelegate, true, null);
}
}
}