Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java106 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser()
116 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileUnifiedChallenge()
117 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
119 mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
137 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
151 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
157 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testManagedProfileUnifiedChallenge()
158 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
159 assertEquals(0, mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
179 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileSeparateChallenge()
[all …]
DSyntheticPasswordTests.java119 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential()
123 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential()
145 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential()
148 assertEquals(0 ,mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential()
154 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential()
317 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testEscrowTokenActivatedImmediatelyIfNoUserPasswordNeedsMigration()
334 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testEscrowTokenActivatedImmediatelyIfNoUserPasswordNoMigration()
DLockSettingsServiceTestable.java197 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/
DGateKeeper.java47 public static long getSecureUserId() throws IllegalStateException { in getSecureUserId() method in GateKeeper
49 return getService().getSecureUserId(UserHandle.myUserId()); in getSecureUserId()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java113 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenReturn(USER_SID); in setUp()
231 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)) in init_createsDecryptKeyIfNoSid()
244 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenThrow(new RemoteException()); in init_createsDecryptKeyOnGateKeeperException()
/frameworks/base/keystore/java/android/security/keystore2/
DKeyStoreCryptoOperationUtils.java73 long rootSid = GateKeeper.getSecureUserId(); in canUserAuthorizationSucceed()
DAndroidKeyStoreSecretKeyFactorySpi.java269 return BigInteger.valueOf(GateKeeper.getSecureUserId()); in getGateKeeperSecureUserId()
DKeyStore2ParameterUtils.java232 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
DAndroidKeyStoreSpi.java887 authenticatorSpec.authenticatorId = GateKeeper.getSecureUserId(); in setWrappedKeyEntry()
/frameworks/base/identity/java/android/security/identity/
DCredstoreWritableIdentityCredential.java166 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java384 if (getGateKeeperService().getSecureUserId(parentId) == 0) { in tieManagedProfileLockIfNecessary()
3446 getGateKeeperService().getSecureUserId(userId)));