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.java217 private void syncKeysForAgent(int recoveryAgentUid) throws IOException, RemoteException { in syncKeysForAgent() argument
219 if (!shouldCreateSnapshot(recoveryAgentUid)) { in syncKeysForAgent()
221 (mRecoverableKeyStoreDb.getSnapshotVersion(mUserId, recoveryAgentUid) != null) in syncKeysForAgent()
222 && (mRecoverySnapshotStorage.get(recoveryAgentUid) == null); in syncKeysForAgent()
232 mRecoverableKeyStoreDb.getActiveRootOfTrust(mUserId, recoveryAgentUid); in syncKeysForAgent()
238 recoveryAgentUid, rootCertAlias); in syncKeysForAgent()
245 recoveryAgentUid); in syncKeysForAgent()
252 byte[] vaultHandle = mRecoverableKeyStoreDb.getServerParams(mUserId, recoveryAgentUid); in syncKeysForAgent()
260 + recoveryAgentUid); in syncKeysForAgent()
264 + "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
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()
DKeySyncTaskTest.java900 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias) in addApplicationKey() argument
902 return addApplicationKey(userId, recoveryAgentUid, alias, TEST_APP_KEY_METADATA_NULL); in addApplicationKey()
905 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias, in addApplicationKey() argument
909 userId, recoveryAgentUid, TEST_VAULT_HANDLE); in addApplicationKey()
913 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, recoveryAgentUid, true); in addApplicationKey()
917 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()