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 
15     private static final String XML = ".xml";
16 
17     public static final String DEFAULT_WALLPAPER_THUMBNAIL = "default_thumb2.jpg";
18     public static final String DEFAULT_WALLPAPER_THUMBNAIL_OLD = "default_thumb.jpg";
19     public static final String LAUNCHER_DB = "launcher.db";
20     public static final String LAUNCHER_PREFERENCES = "launcher.preferences";
21     public static final String LAUNCHES_LOG = "launches.log";
22     public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
23     public static final String STATS_LOG = "stats.log";
24     public static final String WALLPAPER_CROP_PREFERENCES_KEY =
25             WallpaperCropActivity.class.getName();
26     public static final String WALLPAPER_IMAGES_DB = "saved_wallpaper_images.db";
27     public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
28 
29     public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
30             DEFAULT_WALLPAPER_THUMBNAIL,
31             DEFAULT_WALLPAPER_THUMBNAIL_OLD,
32             LAUNCHER_DB,
33             LAUNCHER_PREFERENCES,
34             LAUNCHES_LOG,
35             SHARED_PREFERENCES_KEY + XML,
36             STATS_LOG,
37             WALLPAPER_CROP_PREFERENCES_KEY + XML,
38             WALLPAPER_IMAGES_DB,
39             WIDGET_PREVIEWS_DB));
40 }
41