Home
last modified time | relevance | path

Searched refs:GateKeeperResponse (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/service/gatekeeper/
DGateKeeperResponse.java28 public final class GateKeeperResponse implements Parcelable { class
41 private GateKeeperResponse(int responseCode) { in GateKeeperResponse() method in GateKeeperResponse
46 public static GateKeeperResponse createGenericResponse(int responseCode) { in createGenericResponse()
47 return new GateKeeperResponse(responseCode); in createGenericResponse()
50 private static GateKeeperResponse createRetryResponse(int timeout) { in createRetryResponse()
51 GateKeeperResponse response = new GateKeeperResponse(RESPONSE_RETRY); in createRetryResponse()
57 public static GateKeeperResponse createOkResponse(byte[] payload, boolean shouldReEnroll) { in createOkResponse()
58 GateKeeperResponse response = new GateKeeperResponse(RESPONSE_OK); in createOkResponse()
69 public static final @android.annotation.NonNull Parcelable.Creator<GateKeeperResponse> CREATOR
70 = new Parcelable.Creator<GateKeeperResponse>() {
[all …]
DIGateKeeperService.aidl19 import android.service.gatekeeper.GateKeeperResponse;
41 GateKeeperResponse enroll(int uid, in byte[] currentPasswordHandle, in byte[] currentPassword, in enroll()
52GateKeeperResponse verify(int uid, in byte[] enrolledPasswordHandle, in byte[] providedPassword); in verify()
65 GateKeeperResponse verifyChallenge(int uid, long challenge, in byte[] enrolledPasswordHandle, in verifyChallenge()
DGateKeeperResponse.aidl23 parcelable GateKeeperResponse;
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeGateKeeperService.java21 import android.service.gatekeeper.GateKeeperResponse;
93 public GateKeeperResponse enroll(int uid, byte[] currentPasswordHandle, byte[] currentPassword, in enroll()
102 return GateKeeperResponse.createOkResponse(newHandle.toBytes(), false); in enroll()
114 return GateKeeperResponse.createOkResponse(newHandle.toBytes(), false); in enroll()
118 public GateKeeperResponse verify(int uid, byte[] enrolledPasswordHandle, in verify()
124 public GateKeeperResponse verifyChallenge(int uid, long challenge, in verifyChallenge()
138 return GateKeeperResponse.createOkResponse(token.toBytes(), false); in verifyChallenge()
140 return GateKeeperResponse.createGenericResponse(GateKeeperResponse.RESPONSE_ERROR); in verifyChallenge()
DLockSettingsServiceTests.java37 import android.service.gatekeeper.GateKeeperResponse;
475 assertEquals(GateKeeperResponse.RESPONSE_OK, response.getResponseCode()); in assertVerifyCredentials()
492 assertEquals(GateKeeperResponse.RESPONSE_ERROR, mService.verifyCredential( in assertVerifyCredentials()
495 assertEquals(GateKeeperResponse.RESPONSE_ERROR, mService.verifyCredential( in assertVerifyCredentials()
/frameworks/base/core/java/com/android/internal/widget/
DVerifyCredentialResponse.java21 import android.service.gatekeeper.GateKeeperResponse;
137 GateKeeperResponse gateKeeperResponse) { in fromGateKeeperResponse()
140 if (responseCode == GateKeeperResponse.RESPONSE_RETRY) { in fromGateKeeperResponse()
142 } else if (responseCode == GateKeeperResponse.RESPONSE_OK) { in fromGateKeeperResponse()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java35 import android.service.gatekeeper.GateKeeperResponse;
465 GateKeeperResponse response; in newSyntheticPasswordAndSid()
469 if (response.getResponseCode() != GateKeeperResponse.RESPONSE_OK) { in newSyntheticPasswordAndSid()
488 GateKeeperResponse response = gatekeeper.enroll(userId, null, null, in newSidForUser()
490 if (response.getResponseCode() != GateKeeperResponse.RESPONSE_OK) { in newSidForUser()
662 GateKeeperResponse response = gatekeeper.enroll(fakeUid(userId), null, null, in createPasswordBasedSyntheticPassword()
664 if (response.getResponseCode() != GateKeeperResponse.RESPONSE_OK) { in createPasswordBasedSyntheticPassword()
689 GateKeeperResponse response = gatekeeper.verifyChallenge(fakeUid(persistentData.userId), in verifyFrpCredential()
889 GateKeeperResponse response = gatekeeper.verifyChallenge(fakeUid(userId), 0L, in unwrapPasswordBasedSyntheticPassword()
892 if (responseCode == GateKeeperResponse.RESPONSE_OK) { in unwrapPasswordBasedSyntheticPassword()
[all …]
DLockSettingsService.java92 import android.service.gatekeeper.GateKeeperResponse;
1516 GateKeeperResponse gkResponse = getGateKeeperService() in setLockCredentialInternal()
1531 private VerifyCredentialResponse convertResponse(GateKeeperResponse gateKeeperResponse) { in convertResponse()
1599 GateKeeperResponse response = getGateKeeperService().enroll(userId, enrolledHandle, in enrollCredential()
1919 GateKeeperResponse gateKeeperResponse = getGateKeeperService() in verifyCredential()
2038 .getResponseCode() == GateKeeperResponse.RESPONSE_OK) { in checkVoldPassword()
2049 .getResponseCode() == GateKeeperResponse.RESPONSE_OK) { in checkVoldPassword()