summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/doze/DozeDockHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] Replace UserHandle.CURRENT with UserTrackerAlex Stetson2023-01-171-3/+6
| | | | | | Bug: 249831072 Test: atest SystemUITests Change-Id: Id98ed38495feaab4780452ded14fe24b68ae6944
* Remove DozeFactory. Add DozeComponent/DozeScope.Dave Mankoff2020-07-091-4/+12
| | | | | | | | | | | This replaces DozeFactory with some Dagger idioms. The DozeComponent is a subcomponent, created by DozeService, for all your Doze related needs. Items that should only live within the DozeService can be annotated with @DozeScope. Fixes: 159701507 Test: atest SystemUITests && manual Change-Id: I76d0709b1689408d95b4913d0d46761174cf5ea9
* Only act on event if something actually changedLucas Dupin2020-04-271-0/+6
| | | | | | | | | | Dock events were forcing the device into AOD mode, and overriding the proximity sensor. Test: manual Test: atest DozeDockHandlerTest Fixes: 152377547 Change-Id: I250a0952ac82bc0690676e1c27f839179d7fa4f7
* Prevent requesting invalid state after dockedJerry Chang2020-04-071-3/+13
| | | | | | | | | | Prevent requesting DOZE_AOD_DOCKED while doze pulsing and requesting DOZE_PULSE_DOWN while DOZE_AOD_DOCKED. Fix: 153168608 Test: atest DozeMachineTest DozeDockHandlerTest Test: manual test that docked on paired dock while pulsing won't crash Change-Id: Ieec969c58ac85f90a985ec714643feea51118787
* Introduce new doze state for dockingJerry Chang2019-11-131-64/+18
| | | | | | Bug: 140915138, 136070077 Test: atest SystemUITests.java Change-Id: I03d92c809074fd66b857cd406fc3a200a05e53e9
* DozeLog uses new SysuiLogBeverly2019-09-271-2/+2
| | | | | | Test: atest SystemUITests Bug: 141470043 Change-Id: I089dd42ab67b0a37841159c5f1f9702ea45f57e6
* Prevents posting multiple pulse requests at the same timeJerry Chang2019-06-221-5/+6
| | | | | | | | | | | When docked, DozeDockHandler will try to request pulse almost every time doze machine transits to DOZE or DOZE_AOD state. Guards pulse requests with flag to prevent requesting multiple pulses at the same time. Bug: 135226053 Bug: 135396479 Test: Manual test and the symptom gone. Change-Id: I20d7def12c25b2772ef2c1ebefba4b4ac4d313d6
* Wake up wallpaper even if there's a notificationLucas Dupin2019-03-271-1/+2
| | | | | | | | | | | | | | | | Isolated a bright pulse from a regular pulse (dark wallpaper) and created a new machine state for the new case. The state is also propagated to ScrimController, in order to understand if the wallpaper should be dimmed down or not. Fixes: 123991469 Test: receive notification, trigger sensor Test: other manual notification tests Test: repeat with image wallpaper and live wallpaper Test: atest ScrimControllerTest Test: atest DozeWallpaperStateTest Change-Id: I6b54615dd6c7ecadf7dffd2d61ae7f93390d4c97
* Fix the state cannot transition to DOZE while room is dark.Joanne Chung2019-03-131-3/+9
| | | | | | | | | | | | When AOD is on and the device goes from SCREEN_ON to SCREEN_OFF in a dark room, the doze state is DOZE_AOD. Due to DozeDockHandler receives STATE_DOCKED_HIDE but the state is not PLUSING, the screen does not hide. Bug: 127737347 Test: atest SystemUITests:DozeDockHandlerTest Test: Manual Change-Id: Icaebbdf843de61ef0026e8d3d5dca47bfc2f89eb
* Move AmbientDisplayConfiguration class out of internal package.Issei Suzuki2019-02-271-1/+1
| | | | | | Test: m droid (run full build), atest SystemUITests Bug: 126327497 Change-Id: Ife8303924bd02e9639008293bf9028f4871a9b16
* Do double tap detection to wake up device while docked.lpeter2019-01-221-3/+2
| | | | | | | | | | | In order to keep the same action to wake up device when docked, it should enable double tap sensor even though the setting is off. The miss-touch can be ignored when docked. Bug: 123057133 Test: atest SystemUITests Change-Id: I67dec8b3ae51f46c50570eaec0250c1aa1dc8bb9
* Add a state for hiding UI while dockingJerry Chang2018-12-281-25/+37
| | | | | | | | Adding a state to support hiding UI while docking. Bug: 119001412 Test: atest SystemUITests Change-Id: I0e197aedc94ac4b0005a8b7f2d383c4e4f623e45
* Protects query pulse reason exceptionTYM Tsai2018-12-271-6/+6
| | | | | | | | | | | Checks the machine is currently in one of the pulse states before query the current pulse reason. Avoid incorrect undocked event cause DozeService crash. And refines test case and javadoc. Bug: 120464108 Test: atest SystemUITests Test: manual Change-Id: I3595217984ec7982de1f0f53765e7ae0a9d80fcf
* Launch AoD override the settingsTYM Tsai2018-12-261-0/+144
Improved the docking experence, let DozeService can enter always on mode when docking if device has a docking manager. Listening the docking events to enter/leave pulsing state. Bug: 120464108 Test: atest SystemUITests Change-Id: Ic3d89bdd7a18a069e3ee4f35c9bd677069bf1c43