/frameworks/base/keystore/java/android/security/ |
D | GateKeeper.java | 47 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/ |
D | LockSettingsServiceTests.java | 154 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 …]
|
D | SyntheticPasswordTests.java | 129 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()
|
D | LockSettingsServiceTestable.java | 182 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
|
D | FakeGateKeeperService.java | 180 public long getSecureUserId(int userId) throws RemoteException { in getSecureUserId() method in FakeGateKeeperService
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStoreCryptoOperationUtils.java | 70 long rootSid = GateKeeper.getSecureUserId(); in canUserAuthorizationSucceed()
|
D | AndroidKeyStoreSecretKeyFactorySpi.java | 271 return BigInteger.valueOf(GateKeeper.getSecureUserId()); in getGateKeeperSecureUserId()
|
D | KeyStore2ParameterUtils.java | 233 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
|
D | AndroidKeyStoreSpi.java | 992 authenticatorSpec.authenticatorId = GateKeeper.getSecureUserId(); in setWrappedKeyEntry()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 115 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/ |
D | CredstoreWritableIdentityCredential.java | 167 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 469 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/ |
D | BiometricServiceTest.java | 246 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/ |
D | BiometricService.java | 643 secureUserId = mGateKeeper.getSecureUserId(userId);
|