Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 1 | package com.android.launcher3; |
| 2 | |
| 3 | import java.util.Arrays; |
| 4 | import java.util.Collections; |
| 5 | import java.util.List; |
| 6 | |
| 7 | /** |
| 8 | * Central list of files the Launcher writes to the application data directory. |
| 9 | * |
| 10 | * To add a new Launcher file, create a String constant referring to the filename, and add it to |
| 11 | * ALL_FILES, as shown below. |
| 12 | */ |
| 13 | public class LauncherFiles { |
| 14 | |
Helena Josol | 28db280 | 2014-10-09 17:04:09 +0100 | [diff] [blame] | 15 | private static final String XML = ".xml"; |
| 16 | |
Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 17 | public static final String LAUNCHER_DB = "launcher.db"; |
Tracy Zhou | 7df93d2 | 2020-01-27 13:44:06 -0800 | [diff] [blame^] | 18 | public static final String LAUNCHER_4_BY_4_DB = "launcher_4_by_4.db"; |
| 19 | public static final String LAUNCHER_3_BY_3_DB = "launcher_3_by_3.db"; |
| 20 | public static final String LAUNCHER_2_BY_2_DB = "launcher_2_by_2.db"; |
| 21 | public static final String BACKUP_DB = "backup.db"; |
Helena Josol | 28db280 | 2014-10-09 17:04:09 +0100 | [diff] [blame] | 22 | public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs"; |
Tracy Zhou | 7df93d2 | 2020-01-27 13:44:06 -0800 | [diff] [blame^] | 23 | public static final String MANAGED_USER_PREFERENCES_KEY = |
| 24 | "com.android.launcher3.managedusers.prefs"; |
Sunny Goyal | a5c8a9e | 2016-07-08 08:32:44 -0700 | [diff] [blame] | 25 | // This preference file is not backed up to cloud. |
| 26 | public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs"; |
Sunny Goyal | 6a1e95a | 2015-03-20 17:26:30 -0700 | [diff] [blame] | 27 | |
Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 28 | public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db"; |
Sunny Goyal | 4fbc382 | 2015-02-18 16:46:50 -0800 | [diff] [blame] | 29 | public static final String APP_ICONS_DB = "app_icons.db"; |
Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 30 | |
| 31 | public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList( |
Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 32 | LAUNCHER_DB, |
Tracy Zhou | 7df93d2 | 2020-01-27 13:44:06 -0800 | [diff] [blame^] | 33 | LAUNCHER_4_BY_4_DB, |
| 34 | LAUNCHER_3_BY_3_DB, |
| 35 | LAUNCHER_2_BY_2_DB, |
| 36 | BACKUP_DB, |
Helena Josol | 28db280 | 2014-10-09 17:04:09 +0100 | [diff] [blame] | 37 | SHARED_PREFERENCES_KEY + XML, |
Sunny Goyal | 4fbc382 | 2015-02-18 16:46:50 -0800 | [diff] [blame] | 38 | WIDGET_PREVIEWS_DB, |
Sunny Goyal | 8a6edce | 2016-03-23 10:47:15 -0700 | [diff] [blame] | 39 | MANAGED_USER_PREFERENCES_KEY + XML, |
Sunny Goyal | a5c8a9e | 2016-07-08 08:32:44 -0700 | [diff] [blame] | 40 | DEVICE_PREFERENCES_KEY + XML, |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 41 | APP_ICONS_DB)); |
Helena Josol | 4fbbb3e | 2014-10-06 16:06:46 +0100 | [diff] [blame] | 42 | } |