Home
last modified time | relevance | path

Searched refs:getSecureUserId (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/keystore/java/android/security/
DGateKeeper.java47 public static long getSecureUserId() throws IllegalStateException { in getSecureUserId() method in GateKeeper
48 return getSecureUserId(UserHandle.myUserId()); in getSecureUserId()
58 public static long getSecureUserId(int userId) throws IllegalStateException { in getSecureUserId() method in GateKeeper
60 return getService().getSecureUserId(userId); in getSecureUserId()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java154 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileUnifiedChallenge()
155 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
157 mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
175 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
182 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
187 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testManagedProfileUnifiedChallenge()
188 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
189 assertEquals(0, mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
199 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileSeparateChallenge()
200 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallenge()
[all …]
DSyntheticPasswordTests.java129 return mGateKeeperService.getSecureUserId(SyntheticPasswordManager.fakeUserId(userId)) != 0; in lskfGatekeeperHandleExists()
176 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testChangeCredential()
180 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testChangeCredential()
203 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testClearCredential()
206 assertEquals(0 ,mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testClearCredential()
212 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testClearCredential()
415 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testEscrowTokenActivatedImmediatelyIfNoUserPassword()
DLockSettingsServiceTestable.java182 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
DFakeGateKeeperService.java180 public long getSecureUserId(int userId) throws RemoteException { in getSecureUserId() method in FakeGateKeeperService
/frameworks/base/keystore/java/android/security/keystore2/
DKeyStoreCryptoOperationUtils.java70 long rootSid = GateKeeper.getSecureUserId(); in canUserAuthorizationSucceed()
DAndroidKeyStoreSecretKeyFactorySpi.java271 return BigInteger.valueOf(GateKeeper.getSecureUserId()); in getGateKeeperSecureUserId()
DKeyStore2ParameterUtils.java233 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
DAndroidKeyStoreSpi.java992 authenticatorSpec.authenticatorId = GateKeeper.getSecureUserId(); in setWrappedKeyEntry()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java115 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenReturn(USER_SID); in setUp()
233 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)) in init_createsDecryptKeyIfNoSid()
246 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenThrow(new RemoteException()); in init_createsDecryptKeyOnGateKeeperException()
/frameworks/base/identity/java/android/security/identity/
DCredstoreWritableIdentityCredential.java167 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java469 parentSid = getGateKeeperService().getSecureUserId(parent.id); in tieProfileLockIfNecessary()
1548 long parentSid = getGateKeeperService().getSecureUserId( in getDecryptedPasswordForTiedProfile()
2121 parentSid = getGateKeeperService().getSecureUserId(parentUserId); in tieProfileLockToParent()
3461 getGateKeeperService().getSecureUserId(userId)));
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DBiometricServiceTest.java246 when(mGateKeeperService.getSecureUserId(anyInt())).thenReturn(42L); in setUp()
1827 final long secureUserId = mGateKeeperService.getSecureUserId(userId); in testGetLastAuthenticationTime_flagOn_callsKeystoreAuthorization()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricService.java643 secureUserId = mGateKeeper.getSecureUserId(userId);