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

Commit 1cac5433 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Shorter sensor debounce" into qt-r1-dev am: 1e5890d2" into qt-r1-dev-plus-aosp

parents f7dd4320 413cf6bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2316,7 +2316,7 @@


    <!-- If the sensor that wakes up the lock screen is available or not. -->
    <!-- If the sensor that wakes up the lock screen is available or not. -->
    <bool name="config_dozeWakeLockScreenSensorAvailable">false</bool>
    <bool name="config_dozeWakeLockScreenSensorAvailable">false</bool>
    <integer name="config_dozeWakeLockScreenDebounce">1500</integer>
    <integer name="config_dozeWakeLockScreenDebounce">300</integer>


    <!-- Control whether the always on display mode is available. This should only be enabled on
    <!-- Control whether the always on display mode is available. This should only be enabled on
         devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND
         devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND
+1 −1
Original line number Original line Diff line number Diff line
@@ -536,7 +536,7 @@ public class DozeSensors {
            mHandler.post(mWakeLock.wrap(() -> {
            mHandler.post(mWakeLock.wrap(() -> {
                final long now = SystemClock.uptimeMillis();
                final long now = SystemClock.uptimeMillis();
                if (now < mDebounceFrom + mDebounce) {
                if (now < mDebounceFrom + mDebounce) {
                    if (DEBUG) Log.d(TAG, "onSensorEvent dropped: " + triggerEventToString(event));
                    Log.d(TAG, "onSensorEvent dropped: " + triggerEventToString(event));
                    return;
                    return;
                }
                }
                if (DEBUG) Log.d(TAG, "onSensorEvent: " + triggerEventToString(event));
                if (DEBUG) Log.d(TAG, "onSensorEvent: " + triggerEventToString(event));