Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c61c48d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up ENABLE_INPUT_CONSUMER_REASON_LOGGING" into udc-dev

parents 2a7803c4 7d8a0df1
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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):")
+2 −6
Original line number Diff line number Diff line
@@ -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");