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.java212 private void syncKeysForAgent(int recoveryAgentUid) throws IOException, RemoteException { in syncKeysForAgent() argument
214 if (!shouldCreateSnapshot(recoveryAgentUid)) { in syncKeysForAgent()
216 (mRecoverableKeyStoreDb.getSnapshotVersion(mUserId, recoveryAgentUid) != null) in syncKeysForAgent()
217 && (mRecoverySnapshotStorage.get(recoveryAgentUid) == null); in syncKeysForAgent()
227 mRecoverableKeyStoreDb.getActiveRootOfTrust(mUserId, recoveryAgentUid); in syncKeysForAgent()
233 recoveryAgentUid, rootCertAlias); in syncKeysForAgent()
240 recoveryAgentUid); in syncKeysForAgent()
247 byte[] vaultHandle = mRecoverableKeyStoreDb.getServerParams(mUserId, recoveryAgentUid); in syncKeysForAgent()
255 + recoveryAgentUid); in syncKeysForAgent()
259 + "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.java811 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias) in addApplicationKey() argument
813 return addApplicationKey(userId, recoveryAgentUid, alias, TEST_APP_KEY_METADATA_NULL); in addApplicationKey()
816 private SecretKey addApplicationKey(int userId, int recoveryAgentUid, String alias, in addApplicationKey() argument
820 userId, recoveryAgentUid, TEST_VAULT_HANDLE); in addApplicationKey()
824 mRecoverableKeyStoreDb.setShouldCreateSnapshot(userId, recoveryAgentUid, true); in addApplicationKey()
828 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()