Home
last modified time | relevance | path

Searched refs:recoveryAgentUid (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DRecoverySnapshotListenersStorage.java50 int recoveryAgentUid, @Nullable PendingIntent intent) { in setSnapshotListener() argument
52 mAgentIntents.put(recoveryAgentUid, intent); in setSnapshotListener()
54 if (mAgentsWithPendingSnapshots.contains(recoveryAgentUid)) { in setSnapshotListener()
56 tryToSendIntent(recoveryAgentUid, intent); in setSnapshotListener()
63 public synchronized boolean hasListener(int recoveryAgentUid) { in hasListener() argument
64 return mAgentIntents.get(recoveryAgentUid) != null; in hasListener()
75 PendingIntent intent = mAgentIntents.get(recoveryAgentUid); in recoverySnapshotAvailable()
79 mAgentsWithPendingSnapshots.add(recoveryAgentUid); in recoverySnapshotAvailable()
83 tryToSendIntent(recoveryAgentUid, intent); in recoverySnapshotAvailable()
93 mAgentsWithPendingSnapshots.remove(recoveryAgentUid); in tryToSendIntent()
[all …]
H A DKeySyncTask.java212 if (!shouldCreateSnapshot(recoveryAgentUid)) { in syncKeysForAgent()
231 recoveryAgentUid, rootCertAlias); in syncKeysForAgent()
238 recoveryAgentUid); in syncKeysForAgent()
253 + recoveryAgentUid); in syncKeysForAgent()
257 + "recovery agent "+ recoveryAgentUid); in syncKeysForAgent()
260 + recoveryAgentUid + " - ignore attempt."); in syncKeysForAgent()
276 rawKeysWithMetadata = getKeysToSync(recoveryAgentUid); in syncKeysForAgent()
321 counterId = generateAndStoreCounterId(recoveryAgentUid); in syncKeysForAgent()
325 counterId = generateAndStoreCounterId(recoveryAgentUid); in syncKeysForAgent()
430 mUserId, recoveryAgentUid, decryptKey.getGenerationId()); in getKeysToSync()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DRecoverySnapshotListenersStorageTest.java41 int recoveryAgentUid = 1000; in hasListener_isTrueForRegisteredUid() local
47 mStorage.setSnapshotListener(recoveryAgentUid, intent); in hasListener_isTrueForRegisteredUid()
49 assertTrue(mStorage.hasListener(recoveryAgentUid)); in hasListener_isTrueForRegisteredUid()
56 int recoveryAgentUid = 1000; in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() local
57 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
71 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
79 int recoveryAgentUid = 1000; in setSnapshotListener_doesNotRepeatedlyInvokeListener() local
80 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
95 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
96 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
H A DKeySyncTaskTest.java810 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias) in addApplicationKey() argument
812 return addApplicationKey(userId, recoveryAgentUid, alias, TEST_APP_KEY_METADATA_NULL); in addApplicationKey()
815 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias, in addApplicationKey() argument
819 userId, recoveryAgentUid, TEST_VAULT_HANDLE); in addApplicationKey()
823 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, recoveryAgentUid, true); in addApplicationKey()
827 recoveryAgentUid, in addApplicationKey()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDb.java265 public @NonNull Map<String, WrappedKey> getAllKeys(int userId, int recoveryAgentUid, in getAllKeys() argument
281 Integer.toString(recoveryAgentUid), in getAllKeys()