2014-10-06 16:06:46 +01:00
|
|
|
package com.android.launcher3;
|
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
|
|
public static final String DEFAULT_WALLPAPER_THUMBNAIL = "default_thumb2.jpg";
|
|
|
|
|
public static final String DEFAULT_WALLPAPER_THUMBNAIL_OLD = "default_thumb.jpg";
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String LAUNCHER_DB = "launcher.db";
|
2014-10-09 17:04:09 +01:00
|
|
|
public static final String LAUNCHER_PREFERENCES = "launcher.preferences";
|
|
|
|
|
public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
|
|
|
|
|
public static final String WALLPAPER_CROP_PREFERENCES_KEY =
|
2015-03-20 17:26:30 -07:00
|
|
|
"com.android.launcher3.WallpaperCropActivity";
|
2015-04-08 18:13:46 -07:00
|
|
|
public static final String MANAGED_USER_PREFERENCES_KEY = "com.android.launcher3.managedusers.prefs";
|
2015-03-20 17:26:30 -07:00
|
|
|
|
2014-10-06 16:06:46 +01:00
|
|
|
public static final String WALLPAPER_IMAGES_DB = "saved_wallpaper_images.db";
|
|
|
|
|
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
|
|
|
|
|
|
|
|
public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
|
2014-10-09 17:04:09 +01:00
|
|
|
DEFAULT_WALLPAPER_THUMBNAIL,
|
|
|
|
|
DEFAULT_WALLPAPER_THUMBNAIL_OLD,
|
2014-10-06 16:06:46 +01:00
|
|
|
LAUNCHER_DB,
|
2014-10-09 17:04:09 +01:00
|
|
|
LAUNCHER_PREFERENCES,
|
|
|
|
|
SHARED_PREFERENCES_KEY + XML,
|
|
|
|
|
WALLPAPER_CROP_PREFERENCES_KEY + XML,
|
2014-10-06 16:06:46 +01:00
|
|
|
WALLPAPER_IMAGES_DB,
|
2015-02-18 16:46:50 -08:00
|
|
|
WIDGET_PREVIEWS_DB,
|
2015-04-08 18:13:46 -07:00
|
|
|
MANAGED_USER_PREFERENCES_KEY,
|
2015-02-18 16:46:50 -08:00
|
|
|
APP_ICONS_DB));
|
2015-03-18 16:57:19 -07:00
|
|
|
|
|
|
|
|
// TODO: Delete these files on upgrade
|
|
|
|
|
public static final List<String> OBSOLETE_FILES = Collections.unmodifiableList(Arrays.asList(
|
|
|
|
|
"launches.log",
|
|
|
|
|
"stats.log"));
|
2014-10-06 16:06:46 +01:00
|
|
|
}
|