History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8443dd0e7680e489509e8a9bf0bb5fcefd7a8c3e 25-Aug-2017 jackqdyulei <jackqdyulei@google.com> Hook up AOD knobs to Settings.Global

This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
98d3198b5ced6b371067d0ff6166aaffff1dd512 02-Aug-2017 Adrian Roos <roosa@google.com> AOD: Unregister touchscreen sensors while pulsing

While we're pulsing, the touch screen is fully on. Keeping touchscreen
sensors registered can lead to the sensorhub and kernel touch driver
racing on who gets to control the touchscreen; the losing party may
also logspam and consume increased power.

To avoid this, we unregister touchscreen sensors when turning the screen
on.

Change-Id: Ie236d0a40c92d7fc544bd34ff883e613915c8e46
Fixes: 64160164
Test: receive notification; adb shell dumpsys sensorservice, verify double tap sensor is not registered; verify it is again registered after swiping away the notification.
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
70da03adbdb6fc06b1ff5ad5decf36d55d749e84 24-Jul-2017 Adrian Roos <roosa@google.com> AOD: Skip prox check if cached prox value available

On AOD, we run the proximity sensor, so when a pulse comes in,
there is no need to wait for a new result. Instead, we can use
the existing value if available.

Change-Id: Ibded081e5011a3053e6990012f97f63865e20298
Fixes: 63538693
Test: receive notification, verify that pulsing starts immediately and does not wait for the proximity check.
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
d0963a07d148426d7b872862697ae1ca538a834b 15-May-2017 Adrian Roos <roosa@google.com> AOD: Implement long press gesture to launch assist

Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1; turn screen off, long press, verify assistant is launched
Change-Id: I87335d3c091bbb17022d79e599f46fb826039b7d
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
d7aa26f33b70071a089bfcd7ae17e18d066501f0 07-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Fix possible NPE in DozeSensors" into oc-dr1-dev
8f72b3c74ac9c474f4d3223d38d7779168338214 07-Jul-2017 Adrian Roos <roosa@google.com> AOD: Fix possible NPE in DozeSensors

Fixes an NPE that can happen if the ProximitySensor callback
unregisters the proximity sensor.

Change-Id: I8df1cf98e5334b3ff35c19b30bb7e01d0ebcfd6a
Fixes: 63357752
Test: Squint at the code *really hard*
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
2ca9cd7f8c4208e0f5b908fcf6b380b3d052a04c 03-Jul-2017 Adrian Roos <roosa@google.com> AOD: Add logging

Adds logging for whenever a TriggerSensor fires and also
adds dumping the ProxSensor state.

Bug: 62024549
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: I62e1c989196ca2891efcea43a68889efa998d714
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
857b0ff5d7cfbb1d07b1b81d4e6a55de70309ea5 30-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Refactor doze brigthness controllers, add AOD auto brightness support" into oc-dr1-dev
6023ccbea1568d8b22db82cac9bf7a03367d0a61 28-Jun-2017 Adrian Roos <roosa@google.com> AOD: Add hysteresis to pausing the display

Delays pausing the display by several seconds to avoid
flickering when the prox is only covered transiently.

Also adds cooldown to the proximity sensor, such that when
it toggles too often it gets disabled for a while.

Bug: 62292293
Test: cover prox for less than 10s, observe display stays on. Cover for more, observe display turns off.
Change-Id: Ifa407b84760fc299fbbcfa92d9e942e0093c4b73
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
2981eb0d59f3568bfe84ce905c82fc17d62d21c5 27-May-2017 Adrian Roos <roosa@google.com> AOD: Refactor doze brigthness controllers, add AOD auto brightness support

- Factor out doze brightness and screen state controllers
- Add support for setting the screen brightness from a
sensor in AOD / when pulsing
- Refactor FakeSensorManager for generic sensors, add a light sensor

Bug: 38354633
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeScreenTest.java
Change-Id: I55f2bee253cee23a76ba857ba1f19052ff88a753
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
25c7a58f33c7c24e59f522b86e3cf064fdfd3b8c 02-Jun-2017 Adrian Roos <roosa@google.com> AOD: Use double tap coordinates to trigger Ambient Indication

Bug: 38386446
Test: Double tap on AOD, verify that it still works. On device that supports double tap coordinates, verify that double tapping on ambient music opens ambient music.
Change-Id: Ic75ba731a980c9598c85927e83d2032f01da4822
(cherry picked from commit 44198f5124743f0d603eb4efa3b436bd96f32144)
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
67cca7442bfeffc0bace506a796cfdd39e5d511c 14-Apr-2017 Adrian Roos <roosa@google.com> AOD: Prolong AOD2 after interaction, turn off AOD when prox covered

Turns off AOD 1 and 2 when the proximity sensor is covered.
Also extends the AOD2 duration when the screen is touched or
the lift gesture is triggered.

Also fixes some issues with the fingerprint unlock transition
from AOD where the doze state for the NotificationPanelView
was cleared too early.

Also hides the wallpaper while we're dozing.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Fixes: 36893539
Fixes: 36893538
Fixes: 36033906
Fixes: 37327153
Change-Id: I3fccae1515a0daf2ff99589ed78ec947687e6262
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
c1b50324a2286b24b691b8a7190743cbc341727e 27-Feb-2017 Adrian Roos <roosa@google.com> AOD: Add wakelock for charging text while dozing

Also refactors the WakeLocks in SystemUI.

Bug: 30876804
Bug: 35850304
Test: runtest systemui
Change-Id: Ie17eedfd266deb3aa46dabd701bc784330b2e030
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
383db5ebcc3a4a615faf249bf4f126f42e80b82e 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
ff2c4563cdee60576847e161678549bc501e8d84 03-Nov-2016 Adrian Roos <roosa@google.com> Doze: Refactor v1

Pulls appart UI, state, power, display and trigger management
into individual components controlled by a state machine.

Also adds tests.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: I6ee7e79d58a5a3ebeb975775af44ad1e5aaccf93
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
d6ec131396517d4f83751fca781838d7691fd3cd 27-Oct-2016 Adrian Roos <roosa@google.com> DozeService: Fixup nits from review

Change-Id: Idedfee4047af307238e863331af1ab690c7f3039
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
79bacbbbdb4a2aa4cf6d143c2d2c30d7dd31ace5 26-Oct-2016 Adrian Roos <roosa@google.com> AmbientDisplay: Fixed threading

Change-Id: Iee8d2b12145f3f1ab98099631539f6421e99f910
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
ea8d6aebaf2c1dd2f263cbf9abf1e441fa399c6a 26-Oct-2016 Adrian Roos <roosa@google.com> AmbientDisplay: Factor out DozeSensors

Change-Id: Ia604e2f1e2ca7af5e514ef434f99b3f85ef0b789
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java