Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorage.java50 int recoveryAgentUid, @Nullable PendingIntent intent) { in setSnapshotListener() argument
51 Log.i(TAG, "Registered listener for agent with uid " + recoveryAgentUid); in setSnapshotListener()
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()
74 public synchronized void recoverySnapshotAvailable(int recoveryAgentUid) { in recoverySnapshotAvailable() argument
75 PendingIntent intent = mAgentIntents.get(recoveryAgentUid); in recoverySnapshotAvailable()
77 Log.i(TAG, "Snapshot available for agent " + recoveryAgentUid in recoverySnapshotAvailable()
[all …]
DKeySyncTask.java199 private void syncKeysForAgent(int recoveryAgentUid) throws IOException, RemoteException { in syncKeysForAgent() argument
201 if (!shouldCreateSnapshot(recoveryAgentUid)) { in syncKeysForAgent()
203 (mRecoverableKeyStoreDb.getSnapshotVersion(mUserId, recoveryAgentUid) != null) in syncKeysForAgent()
204 && (mRecoverySnapshotStorage.get(recoveryAgentUid) == null); in syncKeysForAgent()
214 mRecoverableKeyStoreDb.getActiveRootOfTrust(mUserId, recoveryAgentUid); in syncKeysForAgent()
220 recoveryAgentUid, rootCertAlias); in syncKeysForAgent()
227 recoveryAgentUid); in syncKeysForAgent()
234 byte[] vaultHandle = mRecoverableKeyStoreDb.getServerParams(mUserId, recoveryAgentUid); in syncKeysForAgent()
242 + recoveryAgentUid); in syncKeysForAgent()
246 + "recovery agent "+ recoveryAgentUid); in syncKeysForAgent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java41 int recoveryAgentUid = 1000; in hasListener_isTrueForRegisteredUid() local
45 mStorage.setSnapshotListener(recoveryAgentUid, intent); in hasListener_isTrueForRegisteredUid()
47 assertTrue(mStorage.hasListener(recoveryAgentUid)); in hasListener_isTrueForRegisteredUid()
54 int recoveryAgentUid = 1000; in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() local
55 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
67 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
75 int recoveryAgentUid = 1000; in setSnapshotListener_doesNotRepeatedlyInvokeListener() local
76 mStorage.recoverySnapshotAvailable(recoveryAgentUid); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
88 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
89 mStorage.setSnapshotListener(recoveryAgentUid, intent); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
DKeySyncTaskTest.java826 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias) in addApplicationKey() argument
828 return addApplicationKey(userId, recoveryAgentUid, alias, TEST_APP_KEY_METADATA_NULL); in addApplicationKey()
831 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias, in addApplicationKey() argument
835 userId, recoveryAgentUid, TEST_VAULT_HANDLE); in addApplicationKey()
839 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, recoveryAgentUid, true); in addApplicationKey()
843 recoveryAgentUid, in addApplicationKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java265 public @NonNull Map<String, WrappedKey> getAllKeys(int userId, int recoveryAgentUid, in getAllKeys() argument
281 Integer.toString(recoveryAgentUid), in getAllKeys()