Lines Matching refs:Key
49 import com.android.launcher3.backup.nano.BackupProtos.Key;
145 private final ArrayList<Key> mKeys;
171 mKeys = new ArrayList<Key>(); in LauncherBackupHelper()
190 for (Key key : journal.key) { in applyJournal()
244 for (Key key : mKeys) { in performBackup()
381 Key key = backupKeyToKey(backupKey); in restoreEntity()
384 case Key.FAVORITE: in restoreEntity()
388 case Key.SCREEN: in restoreEntity()
392 case Key.ICON: in restoreEntity()
396 case Key.WIDGET: in restoreEntity()
423 journal.key = mKeys.toArray(new BackupProtos.Key[mKeys.size()]); in getCurrentStateJournal()
465 Key key = getKey(Key.FAVORITE, id); in backupFavorites()
491 private void restoreFavorite(Key key, byte[] buffer, int dataSize) throws IOException { in restoreFavorite()
518 Key key = getKey(Key.SCREEN, id); in backupScreens()
541 private void restoreScreen(Key key, byte[] buffer, int dataSize) throws IOException { in restoreScreen()
578 Key key = null; in backupIcons()
581 key = getKey(Key.ICON, cn.flattenToShortString()); in backupIcons()
628 private void restoreIcon(Key key, byte[] buffer, int dataSize) throws IOException { in restoreIcon()
672 Key key = null; in backupWidgets()
675 key = getKey(Key.WIDGET, providerName); in backupWidgets()
719 private void restoreWidget(Key key, byte[] buffer, int dataSize) throws IOException { in restoreWidget()
745 private Key getKey(int type, long id) { in getKey()
746 Key key = new Key(); in getKey()
758 private Key getKey(int type, String name) { in getKey()
759 Key key = new Key(); in getKey()
767 private String keyToBackupKey(Key key) { in keyToBackupKey()
768 return Base64.encodeToString(Key.toByteArray(key), Base64.NO_WRAP); in keyToBackupKey()
772 private Key backupKeyToKey(String backupKey) throws InvalidBackupException { in backupKeyToKey()
774 Key key = Key.parseFrom(Base64.decode(backupKey, Base64.DEFAULT)); in backupKeyToKey()
785 private long checkKey(Key key) { in checkKey()
1109 private void writeRowToBackup(Key key, MessageNano proto, BackupDataOutput data) in writeRowToBackup()