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

Commit 6fca4b79 authored by Schneider Victor-tulias's avatar Schneider Victor-tulias
Browse files

Cleanup ENABLE_GESTURE_ERROR_DETECTION

Flag: ENABLE_GESTURE_ERROR_DETECTION
Fixes: 270389990
Test: printed gesture nav logs
Change-Id: I68317b75b10d46ccae29206d94290e013b2a7cca
parent acb21829
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -86,9 +86,7 @@ public class MultiStateCallback {
            Log.d(TAG, "[" + System.identityHashCode(this) + "] Adding "
                    + convertToFlagNames(stateFlag) + " to " + convertToFlagNames(mState));
        }
        if (FeatureFlags.ENABLE_GESTURE_ERROR_DETECTION.get()) {
        trackGestureEvents(stateFlag);
        }
        final int oldState = mState;
        mState = mState | stateFlag;

+6 −8
Original line number Diff line number Diff line
@@ -155,7 +155,6 @@ public class ActiveGestureLog {
    }

    public void dump(String prefix, PrintWriter writer) {
        if (FeatureFlags.ENABLE_GESTURE_ERROR_DETECTION.get()) {
        writer.println(prefix + "ActiveGestureErrorDetector:");
        for (int i = 0; i < logs.length; i++) {
            EventLog eventLog = logs[(nextIndex + i) % logs.length];
@@ -164,7 +163,6 @@ public class ActiveGestureLog {
            }
            ActiveGestureErrorDetector.analyseAndDump(prefix + '\t', writer, eventLog);
        }
        }

        writer.println(prefix + "ActiveGestureLog history:");
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.SSSZ  ", Locale.US);
+0 −4
Original line number Diff line number Diff line
@@ -76,10 +76,6 @@ public final class FeatureFlags {
     * 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_GESTURE_ERROR_DETECTION = getDebugFlag(270389990,
            "ENABLE_GESTURE_ERROR_DETECTION", ENABLED,
            "Analyze gesture events and log detected errors");

    // When enabled the promise icon is visible in all apps while installation an app.
    public static final BooleanFlag PROMISE_APPS_IN_ALL_APPS = getDebugFlag(270390012,
            "PROMISE_APPS_IN_ALL_APPS", DISABLED, "Add promise icon in all-apps");