Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DLockSettingsServiceTests.java122 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileUnifiedChallenge()
125 mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
155 assertEquals(0, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testManagedProfileUnifiedChallenge()
156 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
157 assertEquals(0, mGateKeeperService.getSecureUserId(TURNED_OFF_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
167 final long primarySid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testManagedProfileSeparateChallenge()
199 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword()
204 assertNotEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword()
210 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileChallengeUnification_parentUserNoPassword()
515 assertEquals(0, mGateKeeperService.getSecureUserId(userId)); in setCredential()
[all …]
H A DSyntheticPasswordTests.java129 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()
H A DLockSettingsServiceTestable.java184 if (mGateKeeperService.getSecureUserId(userId) == 0) { in getDecryptedPasswordForTiedProfile()
H A DFakeGateKeeperService.java180 public long getSecureUserId(int userId) throws RemoteException { in getSecureUserId() method in FakeGateKeeperService
/aosp14/frameworks/base/keystore/java/android/security/
H A DGateKeeper.java47 public static long getSecureUserId() throws IllegalStateException { in getSecureUserId() method in GateKeeper
49 return getService().getSecureUserId(UserHandle.myUserId()); in getSecureUserId()
/aosp14/system/core/gatekeeperd/binder/android/service/gatekeeper/
H A DIGateKeeperService.aidl74 long getSecureUserId(int userId); in getSecureUserId() method
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A 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()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DKeyStoreCryptoOperationUtils.java71 long rootSid = GateKeeper.getSecureUserId(); in canUserAuthorizationSucceed()
H A DAndroidKeyStoreSecretKeyFactorySpi.java269 return BigInteger.valueOf(GateKeeper.getSecureUserId()); in getGateKeeperSecureUserId()
H A DKeyStore2ParameterUtils.java233 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
H A DAndroidKeyStoreSpi.java959 authenticatorSpec.authenticatorId = GateKeeper.getSecureUserId(); in setWrappedKeyEntry()
/aosp14/frameworks/base/identity/java/android/security/identity/
H A DCredstoreWritableIdentityCredential.java167 long rootSid = GateKeeper.getSecureUserId(); in getRootSid()
/aosp14/system/core/gatekeeperd/
H A Dgatekeeperd.cpp417 Status getSecureUserId(int32_t userId, int64_t* sid) override { in getSecureUserId() function in android::GateKeeperProxy
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsService.java411 parentSid = getGateKeeperService().getSecureUserId(parentId); in tieProfileLockIfNecessary()
1355 long parentSid = getGateKeeperService().getSecureUserId( in getDecryptedPasswordForTiedProfile()
1930 parentSid = getGateKeeperService().getSecureUserId(parentUserId); in tieProfileLockToParent()
3220 getGateKeeperService().getSecureUserId(userId)));