Shorter sensor debounce

Fixes: 134056932
Test: manual
Change-Id: I8e710450e5bbb19cdb0cf50097dae2c1f21bfe70
This commit is contained in:
Lucas Dupin
2019-05-30 10:24:54 -07:00
parent a124cdd7cc
commit bca7ec7ce7
2 changed files with 2 additions and 2 deletions

View File

@@ -2311,7 +2311,7 @@
<!-- If the sensor that wakes up the lock screen is available or not. -->
<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
devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND

View File

@@ -536,7 +536,7 @@ public class DozeSensors {
mHandler.post(mWakeLock.wrap(() -> {
final long now = SystemClock.uptimeMillis();
if (now < mDebounceFrom + mDebounce) {
if (DEBUG) Log.d(TAG, "onSensorEvent dropped: " + triggerEventToString(event));
Log.d(TAG, "onSensorEvent dropped: " + triggerEventToString(event));
return;
}
if (DEBUG) Log.d(TAG, "onSensorEvent: " + triggerEventToString(event));