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.java59 private DataChangedJournal mJournal; field in DataChangedJournalTest
65 mJournal = new DataChangedJournal(mFile); in setUp()
70 mJournal.addPackage(GMAIL); in addPackage_addsPackagesToEndOfFile()
71 mJournal.addPackage(DOCS); in addPackage_addsPackagesToEndOfFile()
72 mJournal.addPackage(GOOGLE_PLUS); in addPackage_addsPackagesToEndOfFile()
84 mJournal.addPackage(GMAIL); in delete_deletesTheFile()
86 mJournal.delete(); in delete_deletesTheFile()
93 assertEqualsBothWaysAndHashCode(mJournal, new DataChangedJournal(mFile)); in equals_isTrueForTheSameFile()
104 assertThat(mJournal.equals(new DataChangedJournal(mTemporaryFolder.newFile()))).isFalse(); in equals_isFalseForDifferentFiles()
109 mJournal.addPackage(GMAIL); in forEach_iteratesThroughPackagesInFileInOrder()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java262 @Nullable private final DataChangedJournal mJournal; field in KeyValueBackupTask
321 mJournal = journal; in KeyValueBackupTask()
755 if (mJournal != null && !mJournal.delete()) { in finishTask()
756 mReporter.onJournalDeleteFailed(mJournal); in finishTask()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java435 private DataChangedJournal mJournal; field in UserBackupManagerService
661 mJournal = null; // will be created on first use in UserBackupManagerService()
868 return mJournal; in getJournal()
872 mJournal = journal; in setJournal()
1165 journals.removeAll(Collections.singletonList(mJournal)); in parseLeftoverJournals()
2714 if (mJournal == null) mJournal = DataChangedJournal.newJournal(mJournalDir); in writeToJournalLocked()
2715 mJournal.addPackage(str); in writeToJournalLocked()
2721 mJournal = null; in writeToJournalLocked()