Home
last modified time | relevance | path

Searched refs:ANCESTRAL_RECORD_KEY (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java83 @VisibleForTesting static final String ANCESTRAL_RECORD_KEY = "@ancestral_record@"; field in PackageManagerBackupAgent
241 if (!mExisting.contains(ANCESTRAL_RECORD_KEY)) { in onBackup()
248 writeEntity(data, ANCESTRAL_RECORD_KEY, outputBuffer.toByteArray()); in onBackup()
257 writeEntity(data, ANCESTRAL_RECORD_KEY, outputBuffer.toByteArray()); in onBackup()
259 mExisting.remove(ANCESTRAL_RECORD_KEY); in onBackup()
262 mExisting.remove(ANCESTRAL_RECORD_KEY); in onBackup()
454 if (ANCESTRAL_RECORD_KEY.equals(key)) { in getAncestralRecordVersionValue()
584 if (pkg.equals(ANCESTRAL_RECORD_KEY)) { in parseStateFile()
587 mExisting.add(ANCESTRAL_RECORD_KEY); in parseStateFile()
667 out.writeUTF(ANCESTRAL_RECORD_KEY); in writeStateFile()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DPackageManagerBackupAgentTest.java104 PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY, in onBackup_noState_backsUpEverything()
156 PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY, in onBackup_legacyState_backsUpEverything()
180 PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY, in onBackup_noAncestralRecordInfo_deletesUninstalledPackagesFromBackup()
204 deleteKeyFromBackupData(mBackupData, PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY); in onRestore_legacyBackup_restoresBackup()
230 deleteKeyFromBackupData(mBackupData, PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY); in onRestore_legacyBackupWithMissingSignature_restoresBackup()
314 out.writeUTF(PackageManagerBackupAgent.ANCESTRAL_RECORD_KEY); in writeLegacyStateFile()