Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncTask.java382 Long snapshotVersion = mRecoverableKeyStoreDb.getSnapshotVersion(mUserId, recoveryAgentUid); in getSnapshotVersion() local
385 snapshotVersion = snapshotVersion == null ? 1 : snapshotVersion; in getSnapshotVersion()
387 snapshotVersion = snapshotVersion == null ? 1 : snapshotVersion + 1; in getSnapshotVersion()
391 snapshotVersion); in getSnapshotVersion()
397 return snapshotVersion.intValue(); in getSnapshotVersion()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java119 int snapshotVersion = 2; in put_overwritesOldFiles() local
122 mRecoverySnapshotStorage.put(TEST_UID, createTestKeyChainSnapshot(snapshotVersion)); in put_overwritesOldFiles()
126 assertEquals(snapshotVersion, snapshot.getSnapshotVersion()); in put_overwritesOldFiles()
198 private static KeyChainSnapshot createTestKeyChainSnapshot(int snapshotVersion) { in createTestKeyChainSnapshot() argument
219 .setSnapshotVersion(snapshotVersion) in createTestKeyChainSnapshot()
/frameworks/base/core/java/android/security/keystore/recovery/
DKeyChainSnapshot.java174 public @NonNull Builder setSnapshotVersion(int snapshotVersion) { in setSnapshotVersion() argument
175 mInstance.mSnapshotVersion = snapshotVersion; in setSnapshotVersion()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java850 public long setSnapshotVersion(int userId, int uid, long snapshotVersion) { in setSnapshotVersion() argument
852 RecoveryServiceMetadataEntry.COLUMN_NAME_SNAPSHOT_VERSION, snapshotVersion); in setSnapshotVersion()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java1305 private void generateKeyAndSimulateSync(int userId, int uid, int snapshotVersion) in generateKeyAndSimulateSync() argument
1309 mRecoverableKeyStoreDb.setSnapshotVersion(userId, uid, snapshotVersion); in generateKeyAndSimulateSync()