14fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josolpackage com.android.launcher3; 24fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol 34fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josolimport java.util.Arrays; 44fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josolimport java.util.Collections; 54fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josolimport java.util.List; 64fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol 74fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol/** 84fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol * Central list of files the Launcher writes to the application data directory. 94fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol * 104fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol * To add a new Launcher file, create a String constant referring to the filename, and add it to 114fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol * ALL_FILES, as shown below. 124fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol */ 134fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josolpublic class LauncherFiles { 144fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol 1528db280b7af14614f2b168ea8c5d496cda650321Helena Josol private static final String XML = ".xml"; 1628db280b7af14614f2b168ea8c5d496cda650321Helena Josol 174fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol public static final String LAUNCHER_DB = "launcher.db"; 1828db280b7af14614f2b168ea8c5d496cda650321Helena Josol public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs"; 1918bf8e2ffde3444d53aaa9654da02cdedd0b7cd1Sunny Goyal public static final String MANAGED_USER_PREFERENCES_KEY = "com.android.launcher3.managedusers.prefs"; 20a5c8a9eb666da16bc4c9ea4412868e22ace8d1f0Sunny Goyal // This preference file is not backed up to cloud. 21a5c8a9eb666da16bc4c9ea4412868e22ace8d1f0Sunny Goyal public static final String DEVICE_PREFERENCES_KEY = "com.android.launcher3.device.prefs"; 226a1e95a3dfb5eb65cc2c682c5ede9e22cc7ff7d9Sunny Goyal 234fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db"; 244fbc3828c5ae1e8c5789ede974447fa365f3c5a1Sunny Goyal public static final String APP_ICONS_DB = "app_icons.db"; 254fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol 264fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList( 274fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol LAUNCHER_DB, 2828db280b7af14614f2b168ea8c5d496cda650321Helena Josol SHARED_PREFERENCES_KEY + XML, 294fbc3828c5ae1e8c5789ede974447fa365f3c5a1Sunny Goyal WIDGET_PREVIEWS_DB, 308a6edce064c1854895a91f120a42ccdc2f7804bbSunny Goyal MANAGED_USER_PREFERENCES_KEY + XML, 31a5c8a9eb666da16bc4c9ea4412868e22ace8d1f0Sunny Goyal DEVICE_PREFERENCES_KEY + XML, 327779d62308b87ca26e3be47df836893f6f7693ecSunny Goyal APP_ICONS_DB)); 334fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8Helena Josol} 34