Merge "Clean up ENABLE_INPUT_CONSUMER_REASON_LOGGING" into udc-dev

This commit is contained in:
Treehugger Robot
2023-04-06 21:28:38 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 10 deletions
@@ -910,10 +910,6 @@ public class TouchInteractionService extends Service
private void logInputConsumerSelectionReason(
InputConsumer consumer, CompoundString reasonString) {
if (!FeatureFlags.ENABLE_INPUT_CONSUMER_REASON_LOGGING.get()) {
ActiveGestureLog.INSTANCE.addLog("setInputConsumer: " + consumer.getName());
return;
}
ActiveGestureLog.INSTANCE.addLog(new CompoundString("setInputConsumer: ")
.append(consumer.getName())
.append(". reason(s):")
@@ -69,17 +69,13 @@ public final class FeatureFlags {
/**
* Feature flag to handle define config changes dynamically instead of killing the process.
*
* <p>
*
* To add a new flag that can be toggled through the flags UI:
*
* <p>
* Declare a new ToggleableFlag below. Give it a unique key (e.g. "QSB_ON_FIRST_SCREEN"),
* and set a default value for the flag. This will be the default value on Debug builds.
*/
public static final BooleanFlag ENABLE_INPUT_CONSUMER_REASON_LOGGING = getDebugFlag(270390028,
"ENABLE_INPUT_CONSUMER_REASON_LOGGING", ENABLED,
"Log the reason why an Input Consumer was selected for a gesture.");
public static final BooleanFlag ENABLE_GESTURE_ERROR_DETECTION = getDebugFlag(270389990,
"ENABLE_GESTURE_ERROR_DETECTION", ENABLED,
"Analyze gesture events and log detected errors");