Home | History | Annotate | Download | only in launcher3

Lines Matching refs:journal

27 import com.android.launcher3.backup.BackupProtos.Journal;
157 * <P>The journal is a timestamp and a list of keys that were saved as of that time.
171 Journal in = readJournal(oldState);
172 Journal out = new Journal();
259 // clear the output journal time, to force a full backup to
261 Journal out = new Journal();
279 private void backupFavorites(Journal in, BackupDataOutput data, Journal out,
347 private void backupScreens(Journal in, BackupDataOutput data, Journal out,
414 private void backupIcons(Journal in, BackupDataOutput data, Journal out,
531 private void backupWidgets(Journal in, BackupDataOutput data, Journal out,
849 * Read the old journal from the input file.
851 * In the event of any error, just pretend we didn't have a journal,
854 * @param oldState the read-0only file descriptor pointing to the old journal
855 * @return a Journal protocol bugffer
857 private Journal readJournal(ParcelFileDescriptor oldState) {
858 Journal journal = new Journal();
860 return journal;
882 Log.w(TAG, "failed to read the journal", e);
887 if (DEBUG) Log.d(TAG, "journal bytes read: " + bytesRead);
891 MessageNano.mergeFrom(journal, readCheckedBytes(buffer, 0, bytesRead));
893 Log.d(TAG, "failed to read the journal", e);
894 journal.clear();
899 Log.d(TAG, "failed to close the journal", e);
904 Log.d(TAG, "failed to close the journal", e);
907 return journal;
910 private void writeRowToBackup(Key key, byte[] blob, Journal out,
930 private Set<String> getSavedIdsByType(int type, Journal in) {
953 * Write the new journal to the output file.
955 * In the event of any error, just pretend we didn't have a journal,
958 * @param newState the write-only file descriptor pointing to the new journal
959 * @param journal a Journal protocol buffer
961 private void writeJournal(ParcelFileDescriptor newState, Journal journal) {
965 outStream.write(writeCheckedBytes(journal));
968 Log.d(TAG, "failed to write backup journal", e);