Loading src/com/android/launcher3/LauncherPrefs.kt +4 −3 Original line number Diff line number Diff line Loading @@ -376,9 +376,10 @@ class LauncherPrefs(private val encryptedContext: Context) { } } // This is hard-coded to false for now until it is time to release this optimization. It is only // a var because the unit tests are setting this to true so they can run. @VisibleForTesting var isBootAwareStartupDataEnabled: Boolean = false // It is a var because the unit tests are setting this to true so they can run. @VisibleForTesting var isBootAwareStartupDataEnabled: Boolean = com.android.launcher3.config.FeatureFlags.ENABLE_BOOT_AWARE_STARTUP_DATA.get() private val BOOT_AWARE_ITEMS: MutableSet<ConstantItem<*>> = mutableSetOf() Loading src/com/android/launcher3/config/FeatureFlags.java +5 −0 Original line number Diff line number Diff line Loading @@ -265,6 +265,11 @@ public final class FeatureFlags { "Enables taskbar pinning to allow user to switch between transient and persistent " + "taskbar flavors"); public static final BooleanFlag ENABLE_BOOT_AWARE_STARTUP_DATA = getDebugFlag(251502424, "ENABLE_BOOT_AWARE_STARTUP_DATA", DISABLED, "Marks LauncherPref data as (and allows it " + "to) available while the device is locked. Enabling this causes a 1-time " + "migration of certain SharedPreferences data. Improves startup latency."); // TODO(Block 18): Clean up flags public static final BooleanFlag ENABLE_APP_PAIRS = getDebugFlag(274189428, "ENABLE_APP_PAIRS", DISABLED, Loading Loading
src/com/android/launcher3/LauncherPrefs.kt +4 −3 Original line number Diff line number Diff line Loading @@ -376,9 +376,10 @@ class LauncherPrefs(private val encryptedContext: Context) { } } // This is hard-coded to false for now until it is time to release this optimization. It is only // a var because the unit tests are setting this to true so they can run. @VisibleForTesting var isBootAwareStartupDataEnabled: Boolean = false // It is a var because the unit tests are setting this to true so they can run. @VisibleForTesting var isBootAwareStartupDataEnabled: Boolean = com.android.launcher3.config.FeatureFlags.ENABLE_BOOT_AWARE_STARTUP_DATA.get() private val BOOT_AWARE_ITEMS: MutableSet<ConstantItem<*>> = mutableSetOf() Loading
src/com/android/launcher3/config/FeatureFlags.java +5 −0 Original line number Diff line number Diff line Loading @@ -265,6 +265,11 @@ public final class FeatureFlags { "Enables taskbar pinning to allow user to switch between transient and persistent " + "taskbar flavors"); public static final BooleanFlag ENABLE_BOOT_AWARE_STARTUP_DATA = getDebugFlag(251502424, "ENABLE_BOOT_AWARE_STARTUP_DATA", DISABLED, "Marks LauncherPref data as (and allows it " + "to) available while the device is locked. Enabling this causes a 1-time " + "migration of certain SharedPreferences data. Improves startup latency."); // TODO(Block 18): Clean up flags public static final BooleanFlag ENABLE_APP_PAIRS = getDebugFlag(274189428, "ENABLE_APP_PAIRS", DISABLED, Loading