Wakeup display on taps before entering true AoD
In this transition state, the device is not technically pulsing, but it is Dozing. The primary difference is that the display state is the display is still ON (not DISPLAY_STATE_DOZE) and the DozeSensor wake gestures aren't registered yet. Because isPulsing=false during this transition, instead of checking isPulsing, check isDozing instead. Only touches when the display is ON get sent through the NotificationShadeWindowViewController => PulsingGestureListener, so the DozeSensors will still handle the wakeups that aren't fake AoD2 (including both pulsing + transition period). This CL: - updates the PulsingGestureListener to only check the falsing manager on the ACTION_UP event of the single tap and double tap gesture. The FalsingManager only works if checked right after the action occurred. Previously, we'd check double taps on the double tap's ACTION_DOWN. - allows the FalsingManager to analyze taps from the NotificationPanel while Dozing, as to include the taps when the device is transitioning to AoD. When the device enters the display state DOZE, taps will no longer be sent to the NotificationPanel. - removes the vibration when DOZING that goes along with the falsing manager's feedback when an additional tap is required. if the device is dozing, its likely the device may be in the pocket so there's no reason to buzz. Test: manual 1. Enable AoD 2. Power off display 3. Tap display right after power off 4. Observe: device wakes up to LS Test: manual 1. Disable AoD 2. Send a delayed (5000ms) high-priority notification 3. Screen off 4. When the notification shows, tap the screen 5. Observe: device wakes up to LS Test: atest PulsingGestureListenerTest NotificationPanelViewControllerTest Fixes: 246722709 Bug: 244659326 Bug: 242125976 Change-Id: I1330f2c87482d8bc743a61d652d245fd9b4c69a0
Loading
Please register or sign in to comment