Home
last modified time | relevance | path

Searched refs:credentialType (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/CredentialManager/wear/robotests/src/com/android/credentialmanager/
DCredentialSelectorUiStateGetMapperTest.kt69 createCredentialEntryInfo(credentialType = CredentialType.PASSKEY, userName = "userName")
72 createCredentialEntryInfo(credentialType = CredentialType.UNKNOWN, userName = "userName2")
75 createCredentialEntryInfo(credentialType = CredentialType.PASSWORD, userName = "userName")
78 createCredentialEntryInfo(credentialType =
82 createCredentialEntryInfo(credentialType =
148 fun `Returned multiple entry is sorted by credentialType and lastUsedTimeMillis`() { in Returned multiple entry is sorted by credentialType and lastUsedTimeMillis()
177 credentialType: CredentialType = CredentialType.PASSKEY,
186 credentialType = credentialType,
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DTestOnlyInsecureCertificateHelper.java109 public boolean doesCredentialSupportInsecureMode(int credentialType, byte[] credential) { in doesCredentialSupportInsecureMode() argument
113 if (credentialType != LockPatternUtils.CREDENTIAL_TYPE_PASSWORD in doesCredentialSupportInsecureMode()
114 && credentialType != LockPatternUtils.CREDENTIAL_TYPE_PIN) { in doesCredentialSupportInsecureMode()
DKeySyncTask.java102 int credentialType, in newInstance() argument
111 credentialType, in newInstance()
136 int credentialType, in KeySyncTask() argument
145 mCredentialType = credentialType; in KeySyncTask()
470 @KeyChainProtectionParams.LockScreenUiFormat static int getUiFormat(int credentialType) { in getUiFormat() argument
471 if (credentialType == LockPatternUtils.CREDENTIAL_TYPE_PATTERN) { in getUiFormat()
473 } else if (credentialType == LockPatternUtils.CREDENTIAL_TYPE_PIN) { in getUiFormat()
DRecoverableKeyStoreManager.java949 int credentialType, @NonNull byte[] credential, int userId) { in lockScreenSecretAvailable() argument
958 credentialType, in lockScreenSecretAvailable()
982 int credentialType, in lockScreenSecretChanged() argument
993 credentialType, in lockScreenSecretChanged()
/frameworks/base/core/java/android/credentials/
DPrepareGetCredentialResponseInternal.java67 public boolean hasCredentialResults(@NonNull String credentialType) { in hasCredentialResults() argument
75 return mCredentialResultTypes.contains(credentialType); in hasCredentialResults()
DPrepareGetCredentialResponse.java131 public boolean hasCredentialResults(@NonNull String credentialType) { in hasCredentialResults() argument
132 return mResponseInternal.hasCredentialResults(credentialType); in hasCredentialResults()
DCredentialProviderInfo.java70 public boolean hasCapability(@NonNull String credentialType) { in hasCapability() argument
71 return mCapabilities.contains(credentialType); in hasCapability()
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/screens/multiple/
DMultiCredentialsFoldScreen.kt67 } else if (credentials.all{ it.credentialType == CredentialType.PASSKEY }) { in <lambda>()
69 } else if (credentials.all { it.credentialType == CredentialType.PASSWORD }) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java361 public int credentialType; field in SyntheticPasswordManager.PasswordData
372 public static PasswordData create(int credentialType, int pinLength) { in create() argument
377 result.credentialType = credentialType; in create()
409 result.credentialType = (short) buffer.getInt(); in fromBytes()
446 if (credentialType < Short.MIN_VALUE || credentialType > Short.MAX_VALUE) { in toBytes()
447 throw new IllegalArgumentException("Unknown credential type: " + credentialType); in toBytes()
449 buffer.putInt(credentialType); in toBytes()
778 return PasswordData.fromBytes(passwordData).credentialType; in getCredentialType()
790 final int credentialType = PasswordData.fromBytes(data.payload).credentialType; in getSpecialUserCredentialType() local
791 if (credentialType != CREDENTIAL_TYPE_PASSWORD_OR_PIN) { in getSpecialUserCredentialType()
[all …]
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/model/get/
DCredentialEntryInfo.kt34 val credentialType: CredentialType, constant
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java603 data.credentialType = CREDENTIAL_TYPE_PASSWORD; in testPasswordDataLatestVersion_serializeDeserialize()
613 assertEquals(CREDENTIAL_TYPE_PASSWORD, deserialized.credentialType); in testPasswordDataLatestVersion_serializeDeserialize()
655 assertEquals(CREDENTIAL_TYPE_PIN, deserialized.credentialType); in testDeserializePasswordData_forPinWithLengthAvailable()
679 assertEquals(CREDENTIAL_TYPE_PIN, deserialized.credentialType); in testDeserializePasswordData_forPinWithLengthExplicitlyUnavailable()
708 assertEquals(CREDENTIAL_TYPE_PIN, deserialized.credentialType); in testDeserializePasswordData_forPinWithVersionNumber()
734 assertEquals(CREDENTIAL_TYPE_NONE, deserialized.credentialType); in testDeserializePasswordData_forNoneCred()
760 assertEquals(CREDENTIAL_TYPE_PASSWORD_OR_PIN, deserialized.credentialType); in testDeserializePasswordData_forPasswordOrPin()
DLockscreenFrpTest.java164 final int credentialType = buffer.getInt(); in testFrpBlock_isForwardsCompatible() local
165 assertEquals(CREDENTIAL_TYPE_PIN, credentialType); in testFrpBlock_isForwardsCompatible()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/getflow/
DGetCredentialComponents.kt356 ?.sortedCredentialEntryList?.firstOrNull()?.credentialType in PrimarySelectionCard()
363 entry.credentialType != CredentialType.PASSWORD && in PrimarySelectionCard()
364 entry.credentialType != CredentialType.PASSKEY in PrimarySelectionCard()
528 it.sortedCredentialEntryList.first().credentialType == CredentialType.PASSWORD in PrimarySelectionCardVImpl()
532 it.sortedCredentialEntryList.first().credentialType == CredentialType.PASSKEY in PrimarySelectionCardVImpl()
879 val (username, displayName) = if (credentialEntryInfo.credentialType == CredentialType.PASSKEY)
887 when (credentialEntryInfo.credentialType) {
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/mappers/
DCredentialSelectorUiStateGetMapper.kt70 entryInfo.credentialType.let { if (it == CredentialType.PASSKEY) 0 else 1 } in entryInfo()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/authentication/data/repository/
DFakeAuthenticationRepository.kt182 return when (val credentialType = getCurrentCredentialType(securityMode)) { in <lambda>() method
186 else -> error("Unsupported credential type $credentialType!") in <lambda>()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DCredentialKtx.kt132 credentialType = CredentialType.PASSWORD, in getCredentialOptionInfoList()
160 credentialType = CredentialType.PASSKEY, in getCredentialOptionInfoList()
190 credentialType = CredentialType.UNKNOWN, in getCredentialOptionInfoList()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java142 public static String credentialTypeToString(int credentialType) { in credentialTypeToString() argument
143 switch (credentialType) { in credentialTypeToString()
153 return "UNKNOWN_" + credentialType; in credentialTypeToString()
749 public static int credentialTypeToPasswordQuality(int credentialType) { in credentialTypeToPasswordQuality() argument
750 switch (credentialType) { in credentialTypeToPasswordQuality()
760 throw new IllegalStateException("Unknown type: " + credentialType); in credentialTypeToPasswordQuality()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java507 PromptKind credentialType = Utils.getCredentialType(mLockPatternUtils, mEffectiveUserId); in addCredentialView() local
509 if (credentialType instanceof PromptKind.Pattern) { in addCredentialView()
511 } else if (credentialType instanceof PromptKind.Pin) { in addCredentialView()
513 } else if (credentialType instanceof PromptKind.Password) { in addCredentialView()
516 throw new IllegalStateException("Unknown credential type: " + credentialType); in addCredentialView()
/frameworks/base/packages/CredentialManager/tests/robotests/screenshot/src/com/android/credentialmanager/
DGetCredScreenshotTest.kt142 credentialType = CredentialType.PASSWORD, in buildProviderInfoList()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/autofill/
DCredentialAutofillService.kt332 if (credentialEntry.credentialType == CredentialType.PASSKEY) { in <lambda>()
360 val title: String = if (primaryEntry.credentialType == CredentialType.PASSKEY && in <lambda>()
367 val subtitle = if (primaryEntry.credentialType == in <lambda>()
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/
DWearApp.kt157 when (state.entry.credentialType) { in handleGetNavigation()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/
DBiometricHandler.kt479 val singleEntryType = selectedEntry.credentialType in retrieveBiometricGetDisplayValues()