Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java68 private RecoverySnapshotStorage mRecoverySnapshotStorage; field in RecoverySnapshotStorageTest
73 mRecoverySnapshotStorage = new RecoverySnapshotStorage(mContext.getFilesDir()); in setUp()
84 assertNull(mRecoverySnapshotStorage.get(1000)); in get_isNullForNonExistentSnapshot()
89 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in get_returnsSetSnapshot()
91 assertEquals(MINIMAL_KEYCHAIN_SNAPSHOT, mRecoverySnapshotStorage.get(TEST_UID)); in get_returnsSetSnapshot()
96 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in get_readsFromDiskIfNoneInMemory()
112 assertNull(mRecoverySnapshotStorage.get(TEST_UID)); in get_deletesFileIfItIsInvalidSnapshot()
120 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in put_overwritesOldFiles()
122 mRecoverySnapshotStorage.put(TEST_UID, createTestKeyChainSnapshot(snapshotVersion)); in put_overwritesOldFiles()
134 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in put_doesNotThrowIfCannotCreateFiles()
[all …]
DCleanupManagerTest.java53 @Mock private RecoverySnapshotStorage mRecoverySnapshotStorage; field in CleanupManagerTest
60 mManager = new CleanupManager(mRecoverySnapshotStorage, mDatabase, mUserManager, in setUp()
109 verify(mRecoverySnapshotStorage).remove(UID); in verifyKnownUsers_newSerialNumber_deletesData()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java112 private RecoverySnapshotStorage mRecoverySnapshotStorage; field in KeySyncTaskTest
137 mRecoverySnapshotStorage = new RecoverySnapshotStorage(context.getFilesDir()); in setUp()
141 mRecoverySnapshotStorage, in setUp()
232 assertNull(mRecoverySnapshotStorage.get(TEST_RECOVERY_AGENT_UID)); in run_doesNotSendAnythingIfNoKeysToSync()
239 assertNull(mRecoverySnapshotStorage.get(TEST_RECOVERY_AGENT_UID)); in run_doesNotSendAnythingIfSnapshotIsUpToDate()
255 assertNull(mRecoverySnapshotStorage.get(TEST_RECOVERY_AGENT_UID)); in run_doesNotSendAnythingIfNoRecoveryAgentSet()
273 assertNull(mRecoverySnapshotStorage.get(TEST_RECOVERY_AGENT_UID)); in run_doesNotSendAnythingIfNoDeviceIdIsSet()
282 mRecoverySnapshotStorage, in run_useScryptToHashPasswordInTestMode()
306 KeyChainSnapshot keyChainSnapshot = mRecoverySnapshotStorage.get(TEST_RECOVERY_AGENT_UID); in run_useScryptToHashPasswordInTestMode()
327 mRecoverySnapshotStorage, in run_zeroizedCredential()
[all …]
DRecoverableKeyStoreManagerTest.java183 private RecoverySnapshotStorage mRecoverySnapshotStorage; field in RecoverableKeyStoreManagerTest
213 mRecoverySnapshotStorage, in setUp()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncTask.java91 private final RecoverySnapshotStorage mRecoverySnapshotStorage; field in KeySyncTask
149 mRecoverySnapshotStorage = snapshotStorage; in KeySyncTask()
222 && (mRecoverySnapshotStorage.get(recoveryAgentUid) == null); in syncKeysForAgent()
391 mRecoverySnapshotStorage.put(recoveryAgentUid, keyChainSnapshotBuilder.build()); in syncKeysForAgent()