Loading packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/domain/interactor/CredentialInteractorImplTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import org.mockito.junit.MockitoJUnit private const val USER_ID = 22 private const val OWNER_ID = 10 private const val PASSWORD_ID = 30 private const val OPERATION_ID = 100L private const val MAX_ATTEMPTS = 5 Loading Loading @@ -247,7 +248,11 @@ class CredentialInteractorImplTest : SysuiTestCase() { private fun pinRequest(credentialOwner: Int = USER_ID): BiometricPromptRequest.Credential.Pin = BiometricPromptRequest.Credential.Pin( promptInfo(), BiometricUserInfo(userId = USER_ID, deviceCredentialOwnerId = credentialOwner), BiometricUserInfo( userId = USER_ID, deviceCredentialOwnerId = credentialOwner, userIdForPasswordEntry = PASSWORD_ID, ), BiometricOperationInfo(OPERATION_ID), ) Loading packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/CredentialInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ constructor( // Request LockSettingsService to return the Gatekeeper Password in the // VerifyCredentialResponse so that we can request a Gatekeeper HAT with the // Gatekeeper Password and operationId. var effectiveUserId = request.userInfo.userIdForPasswordEntry var effectiveUserId = request.userInfo.deviceCredentialOwnerId val response = if (Flags.privateSpaceBp() && effectiveUserId != request.userInfo.userId) { effectiveUserId = request.userInfo.userId Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/domain/interactor/CredentialInteractorImplTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import org.mockito.junit.MockitoJUnit private const val USER_ID = 22 private const val OWNER_ID = 10 private const val PASSWORD_ID = 30 private const val OPERATION_ID = 100L private const val MAX_ATTEMPTS = 5 Loading Loading @@ -247,7 +248,11 @@ class CredentialInteractorImplTest : SysuiTestCase() { private fun pinRequest(credentialOwner: Int = USER_ID): BiometricPromptRequest.Credential.Pin = BiometricPromptRequest.Credential.Pin( promptInfo(), BiometricUserInfo(userId = USER_ID, deviceCredentialOwnerId = credentialOwner), BiometricUserInfo( userId = USER_ID, deviceCredentialOwnerId = credentialOwner, userIdForPasswordEntry = PASSWORD_ID, ), BiometricOperationInfo(OPERATION_ID), ) Loading
packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/CredentialInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ constructor( // Request LockSettingsService to return the Gatekeeper Password in the // VerifyCredentialResponse so that we can request a Gatekeeper HAT with the // Gatekeeper Password and operationId. var effectiveUserId = request.userInfo.userIdForPasswordEntry var effectiveUserId = request.userInfo.deviceCredentialOwnerId val response = if (Flags.privateSpaceBp() && effectiveUserId != request.userInfo.userId) { effectiveUserId = request.userInfo.userId Loading