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

Commit ab68e387 authored by Fan Zhang's avatar Fan Zhang
Browse files

Increase threshold for ESOS power button press detection

If pressing power button 5 times is faster than 200ms, we will
not trigger the ESOS experience. This is unlikely to be done by human. The fastest recorded button press is 60ms so the whole esos gesture sequence should be 300ms or so. We are taking 200ms threshold to be conservative.

Fix: 261618088
Test: rebuild, PTS
Change-Id: Id3f1d92623d17b2921cc0fb90c1f19f896946881
parent ff814571
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public class GestureLauncherService extends SystemService {
     * completed faster than this, we assume it's not performed by human and the
     * event gets ignored.
     */
    @VisibleForTesting static final int EMERGENCY_GESTURE_TAP_DETECTION_MIN_TIME_MS = 160;
    @VisibleForTesting static final int EMERGENCY_GESTURE_TAP_DETECTION_MIN_TIME_MS = 200;

    /**
     * Interval in milliseconds in which the power button must be depressed in succession to be