blob: 9c4646b8ee1520b67d9de1995b0872433b79e700 [file] [log] [blame]
Helena Josol4fbbb3e2014-10-06 16:06:46 +01001package com.android.launcher3;
2
3import java.util.Arrays;
4import java.util.Collections;
5import 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 */
13public class LauncherFiles {
14
Helena Josol28db2802014-10-09 17:04:09 +010015 private static final String XML = ".xml";
16
Helena Josol4fbbb3e2014-10-06 16:06:46 +010017 public static final String LAUNCHER_DB = "launcher.db";
Helena Josol28db2802014-10-09 17:04:09 +010018 public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs";
Sunny Goyal18bf8e22015-04-08 18:13:46 -070019 public static final String MANAGED_USER_PREFERENCES_KEY = "com.android.launcher3.managedusers.prefs";
Sunny Goyala5c8a9e2016-07-08 08:32:44 -070020 // This preference file is not backed up to cloud.
21 public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs";
Sunny Goyal6a1e95a2015-03-20 17:26:30 -070022
Helena Josol4fbbb3e2014-10-06 16:06:46 +010023 public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db";
Sunny Goyal4fbc3822015-02-18 16:46:50 -080024 public static final String APP_ICONS_DB = "app_icons.db";
Helena Josol4fbbb3e2014-10-06 16:06:46 +010025
26 public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList(
Helena Josol4fbbb3e2014-10-06 16:06:46 +010027 LAUNCHER_DB,
Helena Josol28db2802014-10-09 17:04:09 +010028 SHARED_PREFERENCES_KEY + XML,
Sunny Goyal4fbc3822015-02-18 16:46:50 -080029 WIDGET_PREVIEWS_DB,
Sunny Goyal8a6edce2016-03-23 10:47:15 -070030 MANAGED_USER_PREFERENCES_KEY + XML,
Sunny Goyala5c8a9e2016-07-08 08:32:44 -070031 DEVICE_PREFERENCES_KEY + XML,
Sunny Goyal7779d622015-06-11 16:18:39 -070032 APP_ICONS_DB));
Helena Josol4fbbb3e2014-10-06 16:06:46 +010033}