2017-07-24 01:02:38 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2017 The Android Open Source Project
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.android.launcher3.config;
|
|
|
|
|
|
2018-10-12 14:14:16 -04:00
|
|
|
import android.content.Context;
|
|
|
|
|
|
2019-09-11 16:51:50 -07:00
|
|
|
import com.android.launcher3.BuildConfig;
|
2019-08-26 14:36:02 -07:00
|
|
|
import com.android.launcher3.Utilities;
|
2020-01-21 11:59:19 -08:00
|
|
|
import com.android.launcher3.uioverrides.DeviceFlag;
|
2019-08-26 14:36:02 -07:00
|
|
|
|
2020-02-12 16:17:28 -08:00
|
|
|
import java.io.PrintWriter;
|
2018-10-12 14:14:16 -04:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2017-07-24 01:02:38 -07:00
|
|
|
/**
|
|
|
|
|
* Defines a set of flags used to control various launcher behaviors.
|
|
|
|
|
*
|
2018-10-03 13:32:01 -04:00
|
|
|
* <p>All the flags should be defined here with appropriate default values.
|
2017-07-24 01:02:38 -07:00
|
|
|
*/
|
2019-09-11 16:51:50 -07:00
|
|
|
public final class FeatureFlags {
|
2017-07-24 01:02:38 -07:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
private static final List<DebugFlag> sDebugFlags = new ArrayList<>();
|
2018-10-12 14:14:16 -04:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final String FLAGS_PREF_NAME = "featureFlags";
|
2018-10-03 13:32:01 -04:00
|
|
|
|
2019-09-11 16:51:50 -07:00
|
|
|
private FeatureFlags() { }
|
2018-10-12 14:14:16 -04:00
|
|
|
|
2018-10-22 16:31:28 -04:00
|
|
|
public static boolean showFlagTogglerUi(Context context) {
|
2019-05-15 14:01:30 -07:00
|
|
|
return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context);
|
2018-10-03 13:32:01 -04:00
|
|
|
}
|
2017-07-24 01:02:38 -07:00
|
|
|
|
2020-02-14 14:15:13 -08:00
|
|
|
/**
|
|
|
|
|
* True when the build has come from Android Studio and is being used for local debugging.
|
|
|
|
|
*/
|
|
|
|
|
public static final boolean IS_STUDIO_BUILD = BuildConfig.DEBUG;
|
2019-09-11 16:51:50 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Enable moving the QSB on the 0th screen of the workspace. This is not a configuration feature
|
|
|
|
|
* and should be modified at a project level.
|
|
|
|
|
*/
|
|
|
|
|
public static final boolean QSB_ON_FIRST_SCREEN = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Feature flag to handle define config changes dynamically instead of killing the process.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* To add a new flag that can be toggled through the flags UI:
|
|
|
|
|
*
|
2019-12-03 12:00:44 -08:00
|
|
|
* Declare a new ToggleableFlag below. Give it a unique key (e.g. "QSB_ON_FIRST_SCREEN"),
|
2019-09-11 16:51:50 -07:00
|
|
|
* and set a default value for the flag. This will be the default value on Debug builds.
|
|
|
|
|
*/
|
2017-07-24 01:02:38 -07:00
|
|
|
// When enabled the promise icon is visible in all apps while installation an app.
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag PROMISE_APPS_IN_ALL_APPS = getDebugFlag(
|
2019-09-11 16:51:50 -07:00
|
|
|
"PROMISE_APPS_IN_ALL_APPS", false, "Add promise icon in all-apps");
|
2017-07-24 01:02:38 -07:00
|
|
|
|
2019-08-19 13:32:09 -07:00
|
|
|
// When enabled a promise icon is added to the home screen when install session is active.
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag PROMISE_APPS_NEW_INSTALLS = getDebugFlag(
|
|
|
|
|
"PROMISE_APPS_NEW_INSTALLS", true,
|
|
|
|
|
"Adds a promise icon to the home screen for new install sessions.");
|
2019-08-19 13:32:09 -07:00
|
|
|
|
2021-11-17 12:22:02 -08:00
|
|
|
// TODO: b/206508141: Long pressing on some icons on home screen cause launcher to crash.
|
2021-06-23 13:49:23 -07:00
|
|
|
public static final BooleanFlag ENABLE_LOCAL_COLOR_POPUPS = getDebugFlag(
|
|
|
|
|
"ENABLE_LOCAL_COLOR_POPUPS", false, "Enable local color extraction for popups.");
|
|
|
|
|
|
2020-03-17 14:24:42 -07:00
|
|
|
public static final BooleanFlag KEYGUARD_ANIMATION = getDebugFlag(
|
|
|
|
|
"KEYGUARD_ANIMATION", false, "Enable animation for keyguard going away on wallpaper");
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag ENABLE_QUICKSTEP_LIVE_TILE = getDebugFlag(
|
2021-03-25 19:48:03 -07:00
|
|
|
"ENABLE_QUICKSTEP_LIVE_TILE", true, "Enable live tile in Quickstep overview");
|
2018-10-29 16:08:29 -04:00
|
|
|
|
2021-05-04 12:00:08 +00:00
|
|
|
public static final BooleanFlag ENABLE_QUICKSTEP_WIDGET_APP_START = getDebugFlag(
|
2021-05-05 13:56:39 +00:00
|
|
|
"ENABLE_QUICKSTEP_WIDGET_APP_START", true,
|
2021-05-04 12:00:08 +00:00
|
|
|
"Enable Quickstep animation when launching activities from an app widget");
|
|
|
|
|
|
2021-01-26 13:39:27 -08:00
|
|
|
public static final BooleanFlag ENABLE_DEVICE_SEARCH = new DeviceFlag(
|
2021-03-30 20:18:21 +00:00
|
|
|
"ENABLE_DEVICE_SEARCH", true, "Allows on device search in all apps");
|
2020-07-17 11:18:25 -07:00
|
|
|
|
2021-10-04 13:09:40 -07:00
|
|
|
public static final BooleanFlag ENABLE_ONE_SEARCH = new DeviceFlag("ENABLE_ONE_SEARCH", false,
|
|
|
|
|
"Use homescreen search box to complete allApps searches");
|
|
|
|
|
|
2022-01-31 17:57:06 -08:00
|
|
|
public static final BooleanFlag ENABLE_FLOATING_SEARCH_BAR =
|
|
|
|
|
getDebugFlag("ENABLE_FLOATING_SEARCH_BAR", false,
|
|
|
|
|
"Keep All Apps search bar at the bottom (but above keyboard if open)");
|
|
|
|
|
|
2021-11-18 12:48:16 -08:00
|
|
|
public static final BooleanFlag COLLECT_SEARCH_HISTORY = new DeviceFlag(
|
|
|
|
|
"COLLECT_SEARCH_HISTORY", false, "Allow launcher to collect search history for log");
|
|
|
|
|
|
2021-11-09 16:11:58 -08:00
|
|
|
public static final BooleanFlag ENABLE_TWOLINE_ALLAPPS = getDebugFlag(
|
|
|
|
|
"ENABLE_TWOLINE_ALLAPPS", false, "Enables two line label inside all apps.");
|
|
|
|
|
|
2021-06-23 15:32:50 -07:00
|
|
|
public static final BooleanFlag ENABLE_DEVICE_SEARCH_PERFORMANCE_LOGGING = new DeviceFlag(
|
2022-01-26 15:01:14 -08:00
|
|
|
"ENABLE_DEVICE_SEARCH_PERFORMANCE_LOGGING", false,
|
2021-06-23 15:32:50 -07:00
|
|
|
"Allows on device search in all apps logging");
|
|
|
|
|
|
2021-06-16 09:46:25 -05:00
|
|
|
public static final BooleanFlag IME_STICKY_SNACKBAR_EDU = getDebugFlag(
|
|
|
|
|
"IME_STICKY_SNACKBAR_EDU", true, "Show sticky IME edu in AllApps");
|
|
|
|
|
|
2021-04-06 03:03:33 -05:00
|
|
|
public static final BooleanFlag ENABLE_PEOPLE_TILE_PREVIEW = getDebugFlag(
|
|
|
|
|
"ENABLE_PEOPLE_TILE_PREVIEW", false,
|
|
|
|
|
"Experimental: Shows conversation shortcuts on home screen as search results");
|
|
|
|
|
|
2020-03-07 23:52:17 -08:00
|
|
|
public static final BooleanFlag FOLDER_NAME_SUGGEST = new DeviceFlag(
|
|
|
|
|
"FOLDER_NAME_SUGGEST", true,
|
|
|
|
|
"Suggests folder names instead of blank text.");
|
2019-10-10 23:11:12 -07:00
|
|
|
|
2020-06-08 01:19:15 -07:00
|
|
|
public static final BooleanFlag FOLDER_NAME_MAJORITY_RANKING = getDebugFlag(
|
|
|
|
|
"FOLDER_NAME_MAJORITY_RANKING", true,
|
|
|
|
|
"Suggests folder names based on majority based ranking.");
|
|
|
|
|
|
2020-03-16 15:18:56 -07:00
|
|
|
public static final BooleanFlag ENABLE_PREDICTION_DISMISS = getDebugFlag(
|
2020-05-29 16:07:05 -07:00
|
|
|
"ENABLE_PREDICTION_DISMISS", true, "Allow option to dimiss apps from predicted list");
|
2019-08-09 16:16:06 -07:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag ASSISTANT_GIVES_LAUNCHER_FOCUS = getDebugFlag(
|
2019-10-17 11:59:53 -07:00
|
|
|
"ASSISTANT_GIVES_LAUNCHER_FOCUS", false,
|
|
|
|
|
"Allow Launcher to handle nav bar gestures while Assistant is running over it");
|
|
|
|
|
|
2020-06-18 15:07:03 -07:00
|
|
|
public static final BooleanFlag HOTSEAT_MIGRATE_TO_FOLDER = getDebugFlag(
|
2020-03-09 18:24:47 -07:00
|
|
|
"HOTSEAT_MIGRATE_TO_FOLDER", false, "Should move hotseat items into a folder");
|
2020-02-25 18:47:54 -08:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag ENABLE_DEEP_SHORTCUT_ICON_CACHE = getDebugFlag(
|
2019-10-23 17:47:28 +00:00
|
|
|
"ENABLE_DEEP_SHORTCUT_ICON_CACHE", true, "R/W deep shortcut in IconCache");
|
|
|
|
|
|
2021-04-23 11:40:58 -07:00
|
|
|
public static final BooleanFlag ENABLE_THEMED_ICONS = getDebugFlag(
|
2021-05-26 12:40:07 -07:00
|
|
|
"ENABLE_THEMED_ICONS", true, "Enable themed icons on workspace");
|
2020-03-06 16:22:50 -08:00
|
|
|
|
2021-08-18 14:53:50 -07:00
|
|
|
public static final BooleanFlag ENABLE_BULK_WORKSPACE_ICON_LOADING = getDebugFlag(
|
|
|
|
|
"ENABLE_BULK_WORKSPACE_ICON_LOADING",
|
2022-02-16 12:23:34 -08:00
|
|
|
true,
|
2021-08-18 14:53:50 -07:00
|
|
|
"Enable loading workspace icons in bulk.");
|
|
|
|
|
|
2021-09-09 15:36:12 -07:00
|
|
|
public static final BooleanFlag ENABLE_BULK_ALL_APPS_ICON_LOADING = getDebugFlag(
|
|
|
|
|
"ENABLE_BULK_ALL_APPS_ICON_LOADING",
|
2022-02-16 12:23:34 -08:00
|
|
|
true,
|
2021-09-09 15:36:12 -07:00
|
|
|
"Enable loading all apps icons in bulk.");
|
|
|
|
|
|
2020-05-05 14:26:57 -07:00
|
|
|
// Keep as DeviceFlag for remote disable in emergency.
|
|
|
|
|
public static final BooleanFlag ENABLE_OVERVIEW_SELECTIONS = new DeviceFlag(
|
|
|
|
|
"ENABLE_OVERVIEW_SELECTIONS", true, "Show Select Mode button in Overview Actions");
|
2020-03-16 16:38:22 -07:00
|
|
|
|
2021-03-15 07:00:49 +00:00
|
|
|
public static final BooleanFlag ENABLE_WIDGETS_PICKER_AIAI_SEARCH = new DeviceFlag(
|
2021-10-15 11:10:50 -07:00
|
|
|
"ENABLE_WIDGETS_PICKER_AIAI_SEARCH", true, "Enable AiAi search in the widgets picker");
|
2021-03-15 07:00:49 +00:00
|
|
|
|
2021-01-05 13:28:28 -08:00
|
|
|
public static final BooleanFlag ENABLE_OVERVIEW_SHARING_TO_PEOPLE = getDebugFlag(
|
2021-04-28 15:20:49 -07:00
|
|
|
"ENABLE_OVERVIEW_SHARING_TO_PEOPLE", true,
|
2021-01-05 13:28:28 -08:00
|
|
|
"Show indicators for content on Overview to share with top people. ");
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static final BooleanFlag ENABLE_DATABASE_RESTORE = getDebugFlag(
|
2020-12-04 15:12:26 -08:00
|
|
|
"ENABLE_DATABASE_RESTORE", false,
|
2019-12-10 14:56:34 -08:00
|
|
|
"Enable database restore when new restore session is created");
|
|
|
|
|
|
2021-05-06 14:49:28 -07:00
|
|
|
public static final BooleanFlag ENABLE_SMARTSPACE_DISMISS = getDebugFlag(
|
|
|
|
|
"ENABLE_SMARTSPACE_DISMISS", true,
|
2021-04-20 10:23:31 -07:00
|
|
|
"Adds a menu option to dismiss the current Enhanced Smartspace card.");
|
|
|
|
|
|
2020-02-12 14:40:05 -08:00
|
|
|
public static final BooleanFlag ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS =
|
|
|
|
|
getDebugFlag(
|
|
|
|
|
"ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS", false,
|
|
|
|
|
"Always use hardware optimization for folder animations.");
|
|
|
|
|
|
2020-05-19 14:04:59 -07:00
|
|
|
public static final BooleanFlag ENABLE_ALL_APPS_EDU = getDebugFlag(
|
|
|
|
|
"ENABLE_ALL_APPS_EDU", true,
|
|
|
|
|
"Shows user a tutorial on how to get to All Apps after X amount of attempts.");
|
|
|
|
|
|
2020-05-20 20:34:04 -07:00
|
|
|
public static final BooleanFlag SEPARATE_RECENTS_ACTIVITY = getDebugFlag(
|
|
|
|
|
"SEPARATE_RECENTS_ACTIVITY", false,
|
|
|
|
|
"Uses a separate recents activity instead of using the integrated recents+Launcher UI");
|
|
|
|
|
|
2020-09-17 10:37:35 -07:00
|
|
|
public static final BooleanFlag ENABLE_MINIMAL_DEVICE = getDebugFlag(
|
2020-10-22 16:07:08 -07:00
|
|
|
"ENABLE_MINIMAL_DEVICE", false,
|
2020-07-16 11:58:00 -07:00
|
|
|
"Allow user to toggle minimal device mode in launcher.");
|
|
|
|
|
|
2020-07-24 21:13:24 -07:00
|
|
|
public static final BooleanFlag EXPANDED_SMARTSPACE = new DeviceFlag(
|
|
|
|
|
"EXPANDED_SMARTSPACE", false, "Expands smartspace height to two rows. "
|
|
|
|
|
+ "Any apps occupying the first row will be removed from workspace.");
|
|
|
|
|
|
2020-12-15 10:47:44 -05:00
|
|
|
// TODO: b/172467144 Remove ENABLE_LAUNCHER_ACTIVITY_THEME_CROSSFADE feature flag.
|
|
|
|
|
public static final BooleanFlag ENABLE_LAUNCHER_ACTIVITY_THEME_CROSSFADE = new DeviceFlag(
|
|
|
|
|
"ENABLE_LAUNCHER_ACTIVITY_THEME_CROSSFADE", false, "Enables a "
|
|
|
|
|
+ "crossfade animation when the system these changes.");
|
|
|
|
|
|
|
|
|
|
// TODO: b/174174514 Remove ENABLE_APP_PREDICTIONS_WHILE_VISIBLE feature flag.
|
|
|
|
|
public static final BooleanFlag ENABLE_APP_PREDICTIONS_WHILE_VISIBLE = new DeviceFlag(
|
|
|
|
|
"ENABLE_APP_PREDICTIONS_WHILE_VISIBLE", true, "Allows app "
|
|
|
|
|
+ "predictions to be updated while they are visible to the user.");
|
|
|
|
|
|
2021-03-12 12:50:29 -08:00
|
|
|
public static final BooleanFlag ENABLE_TASKBAR = getDebugFlag(
|
2021-03-17 13:57:02 +00:00
|
|
|
"ENABLE_TASKBAR", true, "Allows a system Taskbar to be shown on larger devices.");
|
2020-12-22 12:40:09 -06:00
|
|
|
|
2021-08-26 14:55:04 -10:00
|
|
|
public static final BooleanFlag ENABLE_TASKBAR_EDU = getDebugFlag("ENABLE_TASKBAR_EDU", true,
|
2021-07-30 16:00:20 -10:00
|
|
|
"Enables showing taskbar education the first time an app is opened.");
|
|
|
|
|
|
2021-10-12 12:38:55 -07:00
|
|
|
public static final BooleanFlag ENABLE_TASKBAR_POPUP_MENU = getDebugFlag(
|
2022-01-20 12:46:21 -08:00
|
|
|
"ENABLE_TASKBAR_POPUP_MENU", true, "Enables long pressing taskbar icons to show the"
|
2021-10-12 12:38:55 -07:00
|
|
|
+ " popup menu.");
|
|
|
|
|
|
2021-02-11 23:51:19 +01:00
|
|
|
public static final BooleanFlag ENABLE_TWO_PANEL_HOME = getDebugFlag(
|
2021-03-17 13:57:02 +00:00
|
|
|
"ENABLE_TWO_PANEL_HOME", true,
|
2021-02-11 23:51:19 +01:00
|
|
|
"Uses two panel on home screen. Only applicable on large screen devices.");
|
|
|
|
|
|
2021-06-15 18:07:26 -07:00
|
|
|
public static final BooleanFlag ENABLE_SCRIM_FOR_APP_LAUNCH = getDebugFlag(
|
|
|
|
|
"ENABLE_SCRIM_FOR_APP_LAUNCH", false,
|
|
|
|
|
"Enables scrim during app launch animation.");
|
|
|
|
|
|
2021-02-22 14:49:27 -08:00
|
|
|
public static final BooleanFlag ENABLE_SPLIT_SELECT = getDebugFlag(
|
2021-08-26 11:55:28 -07:00
|
|
|
"ENABLE_SPLIT_SELECT", true, "Uses new split screen selection overview UI");
|
2021-02-22 14:49:27 -08:00
|
|
|
|
2021-03-18 08:49:47 +00:00
|
|
|
public static final BooleanFlag ENABLE_ENFORCED_ROUNDED_CORNERS = new DeviceFlag(
|
|
|
|
|
"ENABLE_ENFORCED_ROUNDED_CORNERS", true, "Enforce rounded corners on all App Widgets");
|
|
|
|
|
|
2021-04-28 18:35:06 +01:00
|
|
|
public static final BooleanFlag ENABLE_LOCAL_RECOMMENDED_WIDGETS_FILTER = new DeviceFlag(
|
|
|
|
|
"ENABLE_LOCAL_RECOMMENDED_WIDGETS_FILTER", true,
|
|
|
|
|
"Enables a local filter for recommended widgets.");
|
|
|
|
|
|
2021-03-29 16:45:59 -07:00
|
|
|
public static final BooleanFlag NOTIFY_CRASHES = getDebugFlag("NOTIFY_CRASHES", false,
|
|
|
|
|
"Sends a notification whenever launcher encounters an uncaught exception.");
|
|
|
|
|
|
2021-05-06 15:09:15 +08:00
|
|
|
public static final BooleanFlag ENABLE_WALLPAPER_SCRIM = getDebugFlag(
|
|
|
|
|
"ENABLE_WALLPAPER_SCRIM", false,
|
|
|
|
|
"Enables scrim over wallpaper for text protection.");
|
|
|
|
|
|
2021-06-10 17:54:57 -04:00
|
|
|
public static final BooleanFlag WIDGETS_IN_LAUNCHER_PREVIEW = getDebugFlag(
|
2021-06-21 16:14:52 -04:00
|
|
|
"WIDGETS_IN_LAUNCHER_PREVIEW", true,
|
2021-06-10 17:54:57 -04:00
|
|
|
"Enables widgets in Launcher preview for the Wallpaper app.");
|
|
|
|
|
|
2021-05-14 14:24:09 -07:00
|
|
|
public static final BooleanFlag QUICK_WALLPAPER_PICKER = getDebugFlag(
|
2021-10-07 18:37:26 -04:00
|
|
|
"QUICK_WALLPAPER_PICKER", true,
|
2021-05-14 14:24:09 -07:00
|
|
|
"Shows quick wallpaper picker in long-press menu");
|
|
|
|
|
|
2021-09-01 14:26:00 -07:00
|
|
|
public static final BooleanFlag ENABLE_BACK_SWIPE_HOME_ANIMATION = getDebugFlag(
|
|
|
|
|
"ENABLE_BACK_SWIPE_HOME_ANIMATION", true,
|
|
|
|
|
"Enables home animation to icon when user swipes back.");
|
|
|
|
|
|
2021-10-04 15:31:38 -07:00
|
|
|
public static final BooleanFlag ENABLE_ICON_LABEL_AUTO_SCALING = getDebugFlag(
|
|
|
|
|
"ENABLE_ICON_LABEL_AUTO_SCALING", true,
|
|
|
|
|
"Enables scaling/spacing for icon labels to make more characters visible");
|
|
|
|
|
|
2021-12-15 01:21:35 +00:00
|
|
|
public static final BooleanFlag ENABLE_ALL_APPS_IN_TASKBAR = getDebugFlag(
|
2022-02-01 12:20:59 -05:00
|
|
|
"ENABLE_ALL_APPS_IN_TASKBAR", true,
|
2021-12-15 01:21:35 +00:00
|
|
|
"Enables accessing All Apps from the system Taskbar.");
|
|
|
|
|
|
2022-01-28 11:18:40 -08:00
|
|
|
public static final BooleanFlag ENABLE_SPLIT_FROM_WORKSPACE = getDebugFlag(
|
2022-02-04 14:28:03 -08:00
|
|
|
"ENABLE_SPLIT_FROM_WORKSPACE", true,
|
2022-01-28 11:18:40 -08:00
|
|
|
"Enable initiating split screen from workspace.");
|
|
|
|
|
|
2018-10-12 14:14:16 -04:00
|
|
|
public static void initialize(Context context) {
|
2020-01-21 11:59:19 -08:00
|
|
|
synchronized (sDebugFlags) {
|
|
|
|
|
for (DebugFlag flag : sDebugFlags) {
|
|
|
|
|
flag.initialize(context);
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
sDebugFlags.sort((f1, f2) -> f1.key.compareToIgnoreCase(f2.key));
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
static List<DebugFlag> getDebugFlags() {
|
|
|
|
|
synchronized (sDebugFlags) {
|
|
|
|
|
return new ArrayList<>(sDebugFlags);
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-12 16:17:28 -08:00
|
|
|
public static void dump(PrintWriter pw) {
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
pw.println("DeviceFlags:");
|
2020-02-12 16:17:28 -08:00
|
|
|
synchronized (sDebugFlags) {
|
|
|
|
|
for (DebugFlag flag : sDebugFlags) {
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
if (flag instanceof DeviceFlag) {
|
|
|
|
|
pw.println(" " + flag.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
pw.println("DebugFlags:");
|
|
|
|
|
synchronized (sDebugFlags) {
|
|
|
|
|
for (DebugFlag flag : sDebugFlags) {
|
|
|
|
|
if (!(flag instanceof DeviceFlag)) {
|
|
|
|
|
pw.println(" " + flag.toString());
|
|
|
|
|
}
|
2020-02-12 16:17:28 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static class BooleanFlag {
|
2018-10-12 14:14:16 -04:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public final String key;
|
2021-07-15 15:07:04 -07:00
|
|
|
public final boolean defaultValue;
|
2018-11-08 11:30:14 -05:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public BooleanFlag(String key, boolean defaultValue) {
|
|
|
|
|
this.key = key;
|
|
|
|
|
this.defaultValue = defaultValue;
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
2019-08-13 15:57:15 -07:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public boolean get() {
|
|
|
|
|
return defaultValue;
|
2018-11-04 11:39:08 -05:00
|
|
|
}
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
return appendProps(new StringBuilder()).toString();
|
2018-11-04 11:39:08 -05:00
|
|
|
}
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
protected StringBuilder appendProps(StringBuilder src) {
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
return src.append(key).append(", defaultValue=").append(defaultValue);
|
2018-11-04 11:39:08 -05:00
|
|
|
}
|
2020-01-21 11:59:19 -08:00
|
|
|
}
|
2018-10-12 14:14:16 -04:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public static class DebugFlag extends BooleanFlag {
|
2018-10-12 14:14:16 -04:00
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public final String description;
|
2021-07-15 15:07:04 -07:00
|
|
|
protected boolean mCurrentValue;
|
2020-01-21 11:59:19 -08:00
|
|
|
|
|
|
|
|
public DebugFlag(String key, boolean defaultValue, String description) {
|
|
|
|
|
super(key, defaultValue);
|
|
|
|
|
this.description = description;
|
|
|
|
|
mCurrentValue = this.defaultValue;
|
|
|
|
|
synchronized (sDebugFlags) {
|
|
|
|
|
sDebugFlags.add(this);
|
|
|
|
|
}
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2020-01-21 11:59:19 -08:00
|
|
|
public boolean get() {
|
|
|
|
|
return mCurrentValue;
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
|
2020-01-21 11:59:19 -08:00
|
|
|
public void initialize(Context context) {
|
|
|
|
|
mCurrentValue = context.getSharedPreferences(FLAGS_PREF_NAME, Context.MODE_PRIVATE)
|
|
|
|
|
.getBoolean(key, defaultValue);
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2020-01-21 11:59:19 -08:00
|
|
|
protected StringBuilder appendProps(StringBuilder src) {
|
add FeatureFlag type to the dump / also sort them
Bug: 152660449
$ adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
SERVICE com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService d4107aa pid=27740
Client:
DeviceFlags:
APP_SEARCH_IMPROVEMENTS, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
ENABLE_HYBRID_HOTSEAT, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
ENABLE_SUGGESTED_ACTIONS_OVERVIEW, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
FOLDER_NAME_SUGGEST, defaultValue=true, mCurrentValue=true, mDefaultValueInCode=true
HOTSEAT_MIGRATE_TO_FOLDER, defaultValue=false, mCurrentValue=false, mDefaultValueInCode=false
DebugFlags:
ADAPTIVE_ICON_WINDOW_ANIM, defaultValue=true, mCurrentValue=true
ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS, defaultValue=false, mCurrentValue=false
APPLY_CONFIG_AT_RUNTIME, defaultValue=true, mCurrentValue=true
ASSISTANT_GIVES_LAUNCHER_FOCUS, defaultValue=false, mCurrentValue=false
ENABLE_DATABASE_RESTORE, defaultValue=true, mCurrentValue=true
ENABLE_DEEP_SHORTCUT_ICON_CACHE, defaultValue=true, mCurrentValue=true
ENABLE_FIXED_ROTATION_TRANSFORM, defaultValue=true, mCurrentValue=true
ENABLE_LAUNCHER_PREVIEW_IN_GRID_PICKER, defaultValue=true, mCurrentValue=true
ENABLE_LSQ_VELOCITY_PROVIDER, defaultValue=true, mCurrentValue=true
ENABLE_OVERVIEW_ACTIONS, defaultValue=true, mCurrentValue=false
ENABLE_PREDICTION_DISMISS, defaultValue=false, mCurrentValue=false
ENABLE_QUICK_CAPTURE_GESTURE, defaultValue=true, mCurrentValue=true
ENABLE_QUICKSTEP_LIVE_TILE, defaultValue=false, mCurrentValue=false
ENABLE_SELECT_MODE, defaultValue=true, mCurrentValue=true
ENABLE_UNIVERSAL_SMARTSPACE, defaultValue=false, mCurrentValue=false
FORCE_LOCAL_OVERSCROLL_PLUGIN, defaultValue=false, mCurrentValue=false
KEYGUARD_ANIMATION, defaultValue=false, mCurrentValue=false
MULTI_DB_GRID_MIRATION_ALGO, defaultValue=false, mCurrentValue=false
PROMISE_APPS_IN_ALL_APPS, defaultValue=false, mCurrentValue=false
PROMISE_APPS_NEW_INSTALLS, defaultValue=true, mCurrentValue=true
QUICKSTEP_SPRINGS, defaultValue=true, mCurrentValue=true
UNSTABLE_SPRINGS, defaultValue=false, mCurrentValue=false
USE_SURFACE_VIEW_FOR_GRID_PREVIEW, defaultValue=true, mCurrentValue=true
PluginManager:
numEnabledPlugins=1
numDisabledPlugins=0
enabledPlugins=[ComponentInfo{com.android.launcher.plugins.AllAppsSearchPlugin/com.android.launcher.plugins.AllAppsSearch}]
disabledPlugins=[]
Change-Id: Ifefc02683834e52e3b78f93861a90f97a72c01d8
2020-04-17 13:39:25 -07:00
|
|
|
return super.appendProps(src).append(", mCurrentValue=").append(mCurrentValue);
|
2018-10-12 14:14:16 -04:00
|
|
|
}
|
|
|
|
|
}
|
2020-01-21 11:59:19 -08:00
|
|
|
|
|
|
|
|
private static BooleanFlag getDebugFlag(String key, boolean defaultValue, String description) {
|
|
|
|
|
return Utilities.IS_DEBUG_DEVICE
|
|
|
|
|
? new DebugFlag(key, defaultValue, description)
|
|
|
|
|
: new BooleanFlag(key, defaultValue);
|
|
|
|
|
}
|
2017-07-24 01:02:38 -07:00
|
|
|
}
|