Home
last modified time | relevance | path

Searched refs:mJournal (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DDataChangedJournalTest.java55 private DataChangedJournal mJournal; field in DataChangedJournalTest
61 mJournal = new DataChangedJournal(mFile); in setUp()
66 mJournal.addPackage(GMAIL); in addPackage_addsPackagesToEndOfFile()
67 mJournal.addPackage(DOCS); in addPackage_addsPackagesToEndOfFile()
68 mJournal.addPackage(GOOGLE_PLUS); in addPackage_addsPackagesToEndOfFile()
80 mJournal.addPackage(GMAIL); in delete_deletesTheFile()
82 mJournal.delete(); in delete_deletesTheFile()
89 assertThat(mJournal.equals(new DataChangedJournal(mFile))).isTrue(); in equals_isTrueForTheSameFile()
94 assertThat(mJournal.equals(new DataChangedJournal(mTemporaryFolder.newFile()))).isFalse(); in equals_isFalseForDifferentFiles()
99 mJournal.addPackage(GMAIL); in forEach_iteratesThroughPackagesInFileInOrder()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java252 @Nullable private final DataChangedJournal mJournal; field in KeyValueBackupTask
309 mJournal = journal; in KeyValueBackupTask()
533 if (mJournal != null && !mJournal.delete()) { in finishTask()
534 mReporter.onJournalDeleteFailed(mJournal); in finishTask()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java404 private DataChangedJournal mJournal; field in UserBackupManagerService
610 mJournal = null; // will be created on first use in UserBackupManagerService()
812 return mJournal; in getJournal()
816 mJournal = journal; in setJournal()
1089 journals.removeAll(Collections.singletonList(mJournal)); in parseLeftoverJournals()
2386 if (mJournal == null) mJournal = DataChangedJournal.newJournal(mJournalDir); in writeToJournalLocked()
2387 mJournal.addPackage(str); in writeToJournalLocked()
2390 mJournal = null; in writeToJournalLocked()