2014-10-06 16:06:46 +01:00
|
|
|
package com.android.launcher3;
|
|
|
|
|
|
2021-10-06 16:15:24 +01:00
|
|
|
import java.util.ArrayList;
|
2014-10-06 16:06:46 +01:00
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Central list of files the Launcher writes to the application data directory.
|
|
|
|
|
*
|
|
|
|
|
* To add a new Launcher file, create a String constant referring to the filename, and add it to
|
|
|
|
|
* ALL_FILES, as shown below.
|
|
|
|
|
*/
|
|
|
|
|
public class LauncherFiles {
|
|
|
|
|
|
2014-10-09 17:04:09 +01:00
|
|
|
private static final String XML = ".xml";
|
|
|
|
|
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String LAUNCHER_DB = "launcher.db";
|
2021-12-10 18:54:49 +00:00
|
|
|
public static final String LAUNCHER_6_BY_5_DB = "launcher_6_by_5.db";
|
2021-03-25 10:41:54 -04:00
|
|
|
public static final String LAUNCHER_4_BY_5_DB = "launcher_4_by_5.db";
|
2020-01-27 13:44:06 -08:00
|
|
|
public static final String LAUNCHER_4_BY_4_DB = "launcher_4_by_4.db";
|
|
|
|
|
public static final String LAUNCHER_3_BY_3_DB = "launcher_3_by_3.db";
|
|
|
|
|
public static final String LAUNCHER_2_BY_2_DB = "launcher_2_by_2.db";
|
|
|
|
|
public static final String BACKUP_DB = "backup.db";
|
2014-10-09 17:04:09 +01:00
|
|
|
public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
|
2020-01-27 13:44:06 -08:00
|
|
|
public static final String MANAGED_USER_PREFERENCES_KEY =
|
|
|
|
|
"com.android.launcher3.managedusers.prefs";
|
2016-07-08 08:32:44 -07:00
|
|
|
// This preference file is not backed up to cloud.
|
|
|
|
|
public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs";
|
2015-03-20 17:26:30 -07:00
|
|
|
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
|
2015-02-18 16:46:50 -08:00
|
|
|
public static final String APP_ICONS_DB = "app_icons.db";
|
2014-10-06 16:06:46 +01:00
|
|
|
|
2021-10-06 16:15:24 +01:00
|
|
|
public static final List<String> GRID_DB_FILES = Collections.unmodifiableList(Arrays.asList(
|
2014-10-06 16:06:46 +01:00
|
|
|
LAUNCHER_DB,
|
2021-12-10 18:54:49 +00:00
|
|
|
LAUNCHER_6_BY_5_DB,
|
2021-03-25 10:41:54 -04:00
|
|
|
LAUNCHER_4_BY_5_DB,
|
2020-01-27 13:44:06 -08:00
|
|
|
LAUNCHER_4_BY_4_DB,
|
|
|
|
|
LAUNCHER_3_BY_3_DB,
|
2021-10-06 16:15:24 +01:00
|
|
|
LAUNCHER_2_BY_2_DB));
|
|
|
|
|
|
|
|
|
|
public static final List<String> OTHER_FILES = Collections.unmodifiableList(Arrays.asList(
|
2020-01-27 13:44:06 -08:00
|
|
|
BACKUP_DB,
|
2014-10-09 17:04:09 +01:00
|
|
|
SHARED_PREFERENCES_KEY + XML,
|
2015-02-18 16:46:50 -08:00
|
|
|
WIDGET_PREVIEWS_DB,
|
2016-03-23 10:47:15 -07:00
|
|
|
MANAGED_USER_PREFERENCES_KEY + XML,
|
2016-07-08 08:32:44 -07:00
|
|
|
DEVICE_PREFERENCES_KEY + XML,
|
2015-06-11 16:18:39 -07:00
|
|
|
APP_ICONS_DB));
|
2021-10-06 16:15:24 +01:00
|
|
|
|
|
|
|
|
public static final List<String> ALL_FILES = Collections.unmodifiableList(
|
|
|
|
|
new ArrayList<String>() {{
|
|
|
|
|
addAll(GRID_DB_FILES);
|
|
|
|
|
addAll(OTHER_FILES);
|
|
|
|
|
}});
|
2014-10-06 16:06:46 +01:00
|
|
|
}
|