Home | History | Annotate | Download | only in launcher3

Lines Matching refs:journal

26 import com.android.launcher3.backup.BackupProtos.Journal;
164 * <P>The journal is a timestamp and a list of keys that were saved as of that time.
178 Journal in = readJournal(oldState);
179 Journal out = new Journal();
271 // clear the output journal time, to force a full backup to
273 Journal out = new Journal();
291 private void backupFavorites(Journal in, BackupDataOutput data, Journal out,
368 private void backupScreens(Journal in, BackupDataOutput data, Journal out,
447 private void backupIcons(Journal in, BackupDataOutput data, Journal out,
577 private void backupWidgets(Journal in, BackupDataOutput data, Journal out,
943 * Read the old journal from the input file.
945 * In the event of any error, just pretend we didn't have a journal,
948 * @param oldState the read-0only file descriptor pointing to the old journal
949 * @return a Journal protocol buffer
951 private Journal readJournal(ParcelFileDescriptor oldState) {
952 Journal journal = new Journal();
954 return journal;
979 Log.w(TAG, "unexpected end of file while reading journal.");
988 // check the buffer to see if we have a valid journal
990 MessageNano.mergeFrom(journal, readCheckedBytes(buffer, 0, bytesRead));
991 // if we are here, then we have read a valid, checksum-verified journal
994 if (VERBOSE) Log.v(TAG, "read " + bytesRead + " bytes of journal");
996 // if we don't have the whole journal yet, mergeFrom will throw. keep going.
998 journal.clear();
1001 if (DEBUG) Log.d(TAG, "journal bytes read: " + bytesRead);
1003 Log.w(TAG, "could not find a valid journal", lastProtoException);
1007 Log.w(TAG, "failed to close the journal", e);
1012 Log.w(TAG, "failed to close the journal", e);
1015 return journal;
1018 private void writeRowToBackup(Key key, byte[] blob, Journal out,
1038 private Set<String> getSavedIdsByType(int type, Journal in) {
1061 * Write the new journal to the output file.
1063 * In the event of any error, just pretend we didn't have a journal,
1066 * @param newState the write-only file descriptor pointing to the new journal
1067 * @param journal a Journal protocol buffer
1069 private void writeJournal(ParcelFileDescriptor newState, Journal journal) {
1073 final byte[] journalBytes = writeCheckedBytes(journal);
1076 if (VERBOSE) Log.v(TAG, "wrote " + journalBytes.length + " bytes of journal");
1078 Log.w(TAG, "failed to write backup journal", e);