/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockscreenCredentialTest.java | 109 LockscreenCredential credential = LockscreenCredential.createPin(""); in testZeroLengthCredential() local 110 assertTrue(credential.isPin()); in testZeroLengthCredential() 111 assertEquals(0, credential.size()); in testZeroLengthCredential() 113 credential = createPattern(""); in testZeroLengthCredential() 114 assertTrue(credential.isPattern()); in testZeroLengthCredential() 115 assertEquals(0, credential.size()); in testZeroLengthCredential() 117 credential = LockscreenCredential.createPassword(""); in testZeroLengthCredential() 118 assertTrue(credential.isPassword()); in testZeroLengthCredential() 119 assertEquals(0, credential.size()); in testZeroLengthCredential() 150 LockscreenCredential credential = LockscreenCredential.createPassword(passwords[i]); in testPasswordWithInvalidChars() local [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/authentication/data/repository/ |
D | FakeAuthenticationRepository.kt | 129 credential: LockscreenCredential in <lambda>() 135 credential.type != getCurrentCredentialType(securityMode) -> false in <lambda>() 136 credential.type == LockPatternUtils.CREDENTIAL_TYPE_PIN -> in <lambda>() 137 credential.isPin && credential.matches(expectedCredential) in <lambda>() 138 credential.type == LockPatternUtils.CREDENTIAL_TYPE_PASSWORD -> in <lambda>() 139 credential.isPassword && credential.matches(expectedCredential) in <lambda>() 140 credential.type == LockPatternUtils.CREDENTIAL_TYPE_PATTERN -> in <lambda>() 141 credential.isPattern && credential.matches(expectedCredential) in <lambda>() 240 credential.map { byte -> byte.toInt().toChar() - '0' } == expectedCredential in <lambda>() 241 isPassword -> credential.map { byte -> byte.toInt().toChar() } == expectedCredential in <lambda>() [all …]
|
/frameworks/base/identity/java/android/security/identity/ |
D | CredstorePresentationSession.java | 147 CredstoreIdentityCredential credential = mCredentialCache.get(credentialName); in getCredentialData() local 148 if (credential == null) { in getCredentialData() 151 credential = new CredstoreIdentityCredential(mContext, credentialName, in getCredentialData() 154 mCredentialCache.put(credentialName, credential); in getCredentialData() 156 credential.setAllowUsingExhaustedKeys(request.isAllowUsingExhaustedKeys()); in getCredentialData() 157 credential.setAllowUsingExpiredKeys(request.isAllowUsingExpiredKeys()); in getCredentialData() 158 credential.setIncrementKeyUsageCount(request.isIncrementUseCount()); in getCredentialData() 161 ResultData deviceSignedResult = credential.getEntries( in getCredentialData() 169 ResultData issuerSignedResult = credential.getEntries( in getCredentialData()
|
/frameworks/base/core/java/android/credentials/ |
D | GetCredentialResponse.java | 79 public GetCredentialResponse(@NonNull Credential credential) { in GetCredentialResponse() argument 80 mCredential = requireNonNull(credential, "credential must not be null"); in GetCredentialResponse() 84 Credential credential = in.readTypedObject(Credential.CREATOR); in GetCredentialResponse() local 85 mCredential = credential; in GetCredentialResponse()
|
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/screens/multiple/ |
D | MultiCredentialsFlattenScreen.kt | 73 userNameEntries.sortedCredentialEntryList.forEach { credential: CredentialEntryInfo -> in <lambda>() method 76 label = credential.userName, in <lambda>() 77 onClick = { selectEntry(credential, false) }, in <lambda>() 78 secondaryLabel = credential.credentialTypeDisplayName, in <lambda>() 79 icon = credential.icon, in <lambda>()
|
D | MultiCredentialsFoldScreen.kt | 79 credentials.forEach { credential: CredentialEntryInfo -> in <lambda>() method 82 label = credential.userName, in <lambda>() 83 onClick = { selectEntry(credential, false) }, in <lambda>() 84 secondaryLabel = credential.credentialTypeDisplayName, in <lambda>() 85 icon = credential.icon, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/domain/interactor/ |
D | FakeCredentialInteractor.kt | 28 credential: LockscreenCredential, in <lambda>() 29 ): Flow<CredentialStatus> = verifyCredentialResponse(credential) in <lambda>() 32 var verifyCredentialResponse: (credential: LockscreenCredential) -> Flow<CredentialStatus> = in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
D | PromptCredentialInteractor.kt | 150 val credential = in <lambda>() constant 160 credential.use { c -> verifyCredential(request, c) } in <lambda>() 165 credential: LockscreenCredential? in <lambda>() 167 if (credential == null || credential.isNone) { in <lambda>() 173 .verifyCredential(request, credential) in <lambda>()
|
D | CredentialInteractor.kt | 43 credential: LockscreenCredential, in isStealthModeActive() 69 credential: LockscreenCredential, in isStealthModeActive() 77 credential, in isStealthModeActive()
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 184 public static PasswordMetrics computeForCredential(LockscreenCredential credential) { in computeForCredential() argument 185 if (credential.isPassword() || credential.isPin()) { in computeForCredential() 186 return computeForPasswordOrPin(credential.getCredential(), credential.isPin()); in computeForCredential() 187 } else if (credential.isPattern()) { in computeForCredential() 189 metrics.length = credential.size(); in computeForCredential() 191 } else if (credential.isNone()) { in computeForCredential() 194 throw new IllegalArgumentException("Unknown credential type " + credential.getType()); in computeForCredential() 201 private static PasswordMetrics computeForPasswordOrPin(byte[] credential, boolean isPin) { in computeForPasswordOrPin() argument 210 final int length = credential.length; in computeForPasswordOrPin() 211 for (byte b : credential) { in computeForPasswordOrPin() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockscreenCredential.java | 88 private LockscreenCredential(int type, byte[] credential, boolean hasInvalidChars) { in LockscreenCredential() argument 89 Objects.requireNonNull(credential); in LockscreenCredential() 91 Preconditions.checkArgument(credential.length == 0); in LockscreenCredential() 106 mCredential = credential; in LockscreenCredential() 110 private LockscreenCredential(int type, CharSequence credential) { in LockscreenCredential() argument 111 this(type, charsToBytesTruncating(credential), hasInvalidChars(credential)); in LockscreenCredential()
|
D | ILockSettings.aidl | 50 …boolean setLockCredential(in LockscreenCredential credential, in LockscreenCredential savedCredent… in setLockCredential() argument 52 VerifyCredentialResponse checkCredential(in LockscreenCredential credential, int userId, in checkCredential() argument 54 …VerifyCredentialResponse verifyCredential(in LockscreenCredential credential, int userId, int flag… in verifyCredential() argument 55 …VerifyCredentialResponse verifyTiedProfileChallenge(in LockscreenCredential credential, int userId… in verifyTiedProfileChallenge() argument
|
D | LockPatternUtils.java | 461 public VerifyCredentialResponse verifyCredential(@NonNull LockscreenCredential credential, in verifyCredential() argument 466 credential, userId, flags); in verifyCredential() 518 public boolean checkCredential(@NonNull LockscreenCredential credential, int userId, in checkCredential() argument 524 credential, userId, wrapCallback(progressCallback)); in checkCredential() 554 @NonNull LockscreenCredential credential, int userId, @VerifyFlag int flags) { in verifyTiedProfileChallenge() 558 .verifyTiedProfileChallenge(credential, userId, flags); in verifyTiedProfileChallenge() 1566 public boolean setLockCredentialWithToken(@NonNull LockscreenCredential credential, in setLockCredentialWithToken() argument 1568 if (!hasSecureLockScreen() && credential.getType() != CREDENTIAL_TYPE_NONE) { in setLockCredentialWithToken() 1574 return localService.setLockCredentialWithToken(credential, tokenHandle, token, userHandle); in setLockCredentialWithToken()
|
D | LockSettingsInternal.java | 115 public abstract boolean setLockCredentialWithToken(LockscreenCredential credential, in setLockCredentialWithToken() argument
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelper.java | 109 public boolean doesCredentialSupportInsecureMode(int credentialType, byte[] credential) { in doesCredentialSupportInsecureMode() argument 110 if (credential == null) { in doesCredentialSupportInsecureMode() 119 if (credential.length < insecurePasswordPrefixBytes.length) { in doesCredentialSupportInsecureMode() 123 if (credential[i] != insecurePasswordPrefixBytes[i]) { in doesCredentialSupportInsecureMode()
|
D | KeySyncTask.java | 103 byte[] credential, in newInstance() argument 112 credential, in newInstance() 137 byte[] credential, in KeySyncTask() argument 146 mCredential = credential != null ? Arrays.copyOf(credential, credential.length) : null; in KeySyncTask()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 422 LockscreenCredential credential = in generateRandomProfilePassword() local 427 return credential; in generateRandomProfilePassword() 1544 LockscreenCredential credential = LockscreenCredential.createUnifiedProfilePassword( in getDecryptedPasswordForTiedProfile() local 1550 mUnifiedProfilePasswordCache.storePassword(userId, credential, parentSid); in getDecryptedPasswordForTiedProfile() 1554 return credential; in getDecryptedPasswordForTiedProfile() 1748 private void sendCredentialsOnUnlockIfRequired(LockscreenCredential credential, int userId) { in sendCredentialsOnUnlockIfRequired() argument 1755 if (credential.isNone()) { in sendCredentialsOnUnlockIfRequired() 1769 credential.getType(), credential.getCredential(), profileId); in sendCredentialsOnUnlockIfRequired() 1778 LockscreenCredential credential, int userId, boolean isLockTiedToParent) { in sendCredentialsOnChangeIfRequired() argument 1787 final byte[] secret = credential.isNone() ? null : credential.getCredential(); in sendCredentialsOnChangeIfRequired() [all …]
|
D | UnifiedProfilePasswordCache.java | 143 byte[] credential; in retrievePassword() 147 credential = cipher.doFinal(ciphertext); in retrievePassword() 156 LockscreenCredential.createUnifiedProfilePassword(credential); in retrievePassword() 157 Arrays.fill(credential, (byte) 0); in retrievePassword()
|
D | VersionedPasswordMetrics.java | 39 public VersionedPasswordMetrics(LockscreenCredential credential) { in VersionedPasswordMetrics() argument 40 this(VERSION_1, PasswordMetrics.computeForCredential(credential)); in VersionedPasswordMetrics()
|
D | SyntheticPasswordManager.java | 999 LockscreenCredential credential, SyntheticPassword sp, int userId) { in createLskfBasedProtector() argument 1003 pinLength = derivePinLength(credential.size(), credential.isPin(), userId); in createLskfBasedProtector() 1006 PasswordData pwd = credential.isNone() ? null : in createLskfBasedProtector() 1007 PasswordData.create(credential.getType(), pinLength); in createLskfBasedProtector() 1008 byte[] stretchedLskf = stretchLskf(credential, pwd); in createLskfBasedProtector() 1041 if (!credential.isNone()) { in createLskfBasedProtector() 1070 if (!credential.isNone()) { in createLskfBasedProtector() 1072 savePasswordMetrics(credential, sp, protectorId, userId); in createLskfBasedProtector() 1370 long protectorId, @NonNull LockscreenCredential credential, int userId, in unlockLskfBasedProtector() argument 1392 if (!credential.checkAgainstStoredType(storedType)) { in unlockLskfBasedProtector() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsServiceTests.java | 579 int userId, LockscreenCredential credential) throws RemoteException { in testSetCredentialFailsWithoutLockScreen() argument 582 mService.setLockCredential(credential, nonePassword(), userId); in testSetCredentialFailsWithoutLockScreen() 598 private void assertVerifyCredential(int userId, LockscreenCredential credential) in assertVerifyCredential() argument 600 VerifyCredentialResponse response = mService.verifyCredential(credential, userId, in assertVerifyCredential() 604 if (credential.isPassword()) { in assertVerifyCredential() 606 } else if (credential.isPin()) { in assertVerifyCredential() 608 } else if (credential.isPattern()) { in assertVerifyCredential() 615 if (!credential.isNone()) { in assertVerifyCredential() 616 badCredential = credential.duplicate(); in assertVerifyCredential()
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | CryptoObject.java | 77 public CryptoObject(@NonNull IdentityCredential credential) { in CryptoObject() argument 78 mCrypto = credential; in CryptoObject()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/ |
D | AuthenticationInteractor.kt | 231 val credential = authMethod.createCredential(input) ?: return AuthenticationResult.SKIPPED in <lambda>() constant 232 val authenticationResult = repository.checkCredential(credential) in <lambda>() 233 credential.zeroize() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/data/repository/ |
D | AuthenticationRepository.kt | 135 suspend fun checkCredential(credential: LockscreenCredential): AuthenticationResultModel in <lambda>() 269 credential: LockscreenCredential in checkCredential() 273 val matched = lockPatternUtils.checkCredential(credential, selectedUserId) {} in checkCredential()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 975 try (LockscreenCredential credential = createLockscreenCredential(lockType, password)) { in isValidLockPasswordComplexity() argument 977 credential).size() == 0; in isValidLockPasswordComplexity() 1035 try (LockscreenCredential credential = createLockscreenCredential(lockType, password)) { in setLock() argument 1037 credential, in setLock() 1246 try (LockscreenCredential credential = createLockscreenCredential(lockType, password)) { in checkLock() argument 1248 credential, mContext.getUserId(), /* flags= */ 0); in checkLock()
|