/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | LockSettingsServiceTests.java | 106 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser() 116 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileUnifiedChallenge() 119 mGateKeeperService.getSecureUserId(TURNED_OFF_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() 215 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword() 221 assertNotEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword() 227 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword() [all …]
|
H A D | SyntheticPasswordTests.java | 119 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()
|
H A D | LockSettingsServiceTestable.java | 197 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
|
H A D | FakeGateKeeperService.java | 180 public long getSecureUserId(int userId) throws RemoteException { in getSecureUserId() method in FakeGateKeeperService
|
/aosp12/frameworks/base/keystore/java/android/security/ |
H A D | GateKeeper.java | 47 public static long getSecureUserId() throws IllegalStateException { in getSecureUserId() method in GateKeeper 49 return getService().getSecureUserId(UserHandle.myUserId()); in getSecureUserId()
|
/aosp12/system/core/gatekeeperd/binder/android/service/gatekeeper/ |
H A D | IGateKeeperService.aidl | 74 long getSecureUserId(int userId); in getSecureUserId() method
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | PlatformKeyManagerTest.java | 113 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()
|
/aosp12/system/security/identity/ |
H A D | CredentialData.h | 96 int64_t getSecureUserId();
|
H A D | CredentialData.cpp | 427 int64_t CredentialData::getSecureUserId() { in getSecureUserId() function in android::security::identity::CredentialData
|
H A D | Credential.cpp | 349 if (!getTokensFromKeystore2(selectedChallenge_, data->getSecureUserId(), in getEntries()
|
/aosp12/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | KeyStoreCryptoOperationUtils.java | 73 long rootSid = GateKeeper.getSecureUserId(); in canUserAuthorizationSucceed()
|
H A D | AndroidKeyStoreSecretKeyFactorySpi.java | 269 return BigInteger.valueOf(GateKeeper.getSecureUserId()); in getGateKeeperSecureUserId()
|
H A D | KeyStore2ParameterUtils.java | 232 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
|
H A D | AndroidKeyStoreSpi.java | 888 authenticatorSpec.authenticatorId = GateKeeper.getSecureUserId(); in setWrappedKeyEntry()
|
/aosp12/frameworks/base/identity/java/android/security/identity/ |
H A D | CredstoreWritableIdentityCredential.java | 166 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
|
/aosp12/system/core/gatekeeperd/ |
H A D | gatekeeperd.cpp | 342 Status getSecureUserId(int32_t userId, int64_t* sid) override { in getSecureUserId() function in android::GateKeeperProxy
|
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsService.java | 384 if (getGateKeeperService().getSecureUserId(parentId) == 0) { in tieManagedProfileLockIfNecessary() 3446 getGateKeeperService().getSecureUserId(userId)));
|