/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsServiceTests.java | 123 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser() 134 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileUnifiedChallenge() 135 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge() 137 mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge() 146 mGateKeeperService.clearAuthToken(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge() 147 mGateKeeperService.clearAuthToken(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge() 154 assertNotNull(mGateKeeperService.getAuthToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge() 155 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge() 158 assertNull(mGateKeeperService.getAuthToken(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge() 170 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge() [all …]
|
D | CachedSyntheticPasswordTests.java | 72 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredentialUntrusted() 76 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted() 84 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredentialUntrusted() 93 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredentialUntrusted() 97 assertNotEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredentialUntrusted() 98 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredentialUntrusted() 139 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testUntrustedCredentialChangeBlockedIfSpNotCached() 147 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testUntrustedCredentialChangeBlockedIfSpNotCached()
|
D | SyntheticPasswordTests.java | 77 mGateKeeperService, mUserManager, mPasswordSlotManager); in testPasswordBasedSyntheticPassword() 78 AuthenticationToken authToken = manager.newSyntheticPasswordAndSid(mGateKeeperService, null, in testPasswordBasedSyntheticPassword() 80 long handle = manager.createPasswordBasedSyntheticPassword(mGateKeeperService, in testPasswordBasedSyntheticPassword() 85 mGateKeeperService, handle, password, USER_ID, null); in testPasswordBasedSyntheticPassword() 89 result = manager.unwrapPasswordBasedSyntheticPassword(mGateKeeperService, handle, in testPasswordBasedSyntheticPassword() 121 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() 127 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential() 151 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() 155 assertEquals(0 ,mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential() 163 assertNotEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordClearCredential() [all …]
|
D | BaseLockSettingsServiceTests.java | 87 FakeGateKeeperService mGateKeeperService; field in BaseLockSettingsServiceTests 105 mGateKeeperService = new FakeGateKeeperService(); in setUp_baseServices() 147 mSpManager = new MockSyntheticPasswordManager(mContext, mStorage, mGateKeeperService, in setUp_baseServices() 151 mGateKeeperService, mKeyStore, setUpStorageManagerMock(), mActivityManager, in setUp_baseServices()
|
D | LockSettingsServiceTestable.java | 141 mGateKeeperService = gatekeeper; in LockSettingsServiceTestable() 158 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 80 @Mock private IGateKeeperService mGateKeeperService; field in PlatformKeyManagerTest 98 mContext, mKeyStoreProxy, mRecoverableKeyStoreDb, mGateKeeperService); in setUp() 103 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenReturn(USER_SID); in setUp() 216 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)) in init_doesNotCreateDecryptKeyIfNoSid() 229 when(mGateKeeperService.getSecureUserId(USER_ID_FIXTURE)).thenThrow(new RemoteException()); in init_doesNotCreateDecryptKeyOnGateKeeperException() 602 private IGateKeeperService mGateKeeperService; field in PlatformKeyManagerTest.PlatformKeyManagerTestable 610 mGateKeeperService = gateKeeperService; in PlatformKeyManagerTestable() 615 return mGateKeeperService; in getGateKeeperService()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 214 protected IGateKeeperService mGateKeeperService; field in LockSettingsService 2364 mGateKeeperService.asBinder().unlinkToDeath(this, 0); in binderDied() 2365 mGateKeeperService = null; in binderDied() 2371 if (mGateKeeperService != null) { in getGateKeeperService() 2372 return mGateKeeperService; in getGateKeeperService() 2378 mGateKeeperService = IGateKeeperService.Stub.asInterface(service); in getGateKeeperService() 2379 return mGateKeeperService; in getGateKeeperService()
|