4fbc3828c5
> IconDB maintains a DB of icons keyed on ComponentName + User > During loader, icons & labels are loaded first from the DB, and if the entry doesn't exist, loaded using packageManager > After the loader completes, IconDB updates any entry which might have changed, while the launcher was dead. Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
43 lines
1.7 KiB
Java
43 lines
1.7 KiB
Java
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 {
|
|
|
|
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";
|
|
public static final String LAUNCHER_DB = "launcher.db";
|
|
public static final String LAUNCHER_PREFERENCES = "launcher.preferences";
|
|
public static final String LAUNCHES_LOG = "launches.log";
|
|
public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
|
|
public static final String STATS_LOG = "stats.log";
|
|
public static final String WALLPAPER_CROP_PREFERENCES_KEY =
|
|
WallpaperCropActivity.class.getName();
|
|
public static final String WALLPAPER_IMAGES_DB = "saved_wallpaper_images.db";
|
|
public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
|
|
public static final String APP_ICONS_DB = "app_icons.db";
|
|
|
|
public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
|
|
DEFAULT_WALLPAPER_THUMBNAIL,
|
|
DEFAULT_WALLPAPER_THUMBNAIL_OLD,
|
|
LAUNCHER_DB,
|
|
LAUNCHER_PREFERENCES,
|
|
LAUNCHES_LOG,
|
|
SHARED_PREFERENCES_KEY + XML,
|
|
STATS_LOG,
|
|
WALLPAPER_CROP_PREFERENCES_KEY + XML,
|
|
WALLPAPER_IMAGES_DB,
|
|
WIDGET_PREVIEWS_DB,
|
|
APP_ICONS_DB));
|
|
}
|