Home
last modified time | relevance | path

Searched refs:mGateKeeperService (Results 1 – 7 of 7) sorted by relevance

/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()
166 mGateKeeperService.clearAuthToken(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
167 mGateKeeperService.clearAuthToken(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
174 assertNotNull(mGateKeeperService.getAuthToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
175 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
178 assertNull(mGateKeeperService.getAuthToken(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
182 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
183 assertNull(mGateKeeperService.getAuthToken(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
[all …]
DSyntheticPasswordTests.java88 mGateKeeperService, mUserManager, mPasswordSlotManager); in testNoneLskfBasedProtector()
91 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, in testNoneLskfBasedProtector()
97 AuthenticationResult result = manager.unlockLskfBasedProtector(mGateKeeperService, in testNoneLskfBasedProtector()
109 mGateKeeperService, mUserManager, mPasswordSlotManager); in testNonNoneLskfBasedProtector()
112 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, password, sp, in testNonNoneLskfBasedProtector()
118 AuthenticationResult result = manager.unlockLskfBasedProtector(mGateKeeperService, in testNonNoneLskfBasedProtector()
123 result = manager.unlockLskfBasedProtector(mGateKeeperService, protectorId, badPassword, in testNonNoneLskfBasedProtector()
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()
[all …]
DLockSettingsServiceTestable.java161 mGateKeeperService = gatekeeper; in LockSettingsServiceTestable()
182 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
DBaseLockSettingsServiceTests.java97 FakeGateKeeperService mGateKeeperService; field in BaseLockSettingsServiceTests
122 mGateKeeperService = new FakeGateKeeperService(); in setUp_baseServices()
159 mSpManager = new MockSyntheticPasswordManager(mContext, mStorage, mGateKeeperService, in setUp_baseServices()
174 new LockSettingsServiceTestable(mInjector, mGateKeeperService, mAuthSecretService); in setUp_baseServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java92 @Mock private IGateKeeperService mGateKeeperService; field in PlatformKeyManagerTest
110 mContext, mKeyStoreProxy, mRecoverableKeyStoreDb, mGateKeeperService); in setUp()
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()
605 private IGateKeeperService mGateKeeperService; field in PlatformKeyManagerTest.PlatformKeyManagerTestable
613 mGateKeeperService = gateKeeperService; in PlatformKeyManagerTestable()
618 return mGateKeeperService; in getGateKeeperService()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java329 protected IGateKeeperService mGateKeeperService; field in LockSettingsService
2823 mGateKeeperService.asBinder().unlinkToDeath(this, 0); in binderDied()
2824 mGateKeeperService = null; in binderDied()
2829 if (mGateKeeperService != null) { in getGateKeeperService()
2830 return mGateKeeperService; in getGateKeeperService()
2840 mGateKeeperService = IGateKeeperService.Stub.asInterface(service); in getGateKeeperService()
2841 return mGateKeeperService; in getGateKeeperService()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DBiometricServiceTest.java185 private IGateKeeperService mGateKeeperService; field in BiometricServiceTest
244 when(mInjector.getGateKeeperService()).thenReturn(mGateKeeperService); in setUp()
246 when(mGateKeeperService.getSecureUserId(anyInt())).thenReturn(42L); in setUp()
1827 final long secureUserId = mGateKeeperService.getSecureUserId(userId); in testGetLastAuthenticationTime_flagOn_callsKeystoreAuthorization()