Fix the device been wake up after dozing.

The real device would be wake up after dozing because of hiding
bouncer.
The sequence would be like:
DozeServiceHost#updateDozing
StatusBarKeyguardViewManager#reset
StatusBarKeyguardViewManager#hideBouncer.

And if the expansion state is EXPANSION_VISIBLE, hide bouncer will
overwrite the expansion to EXPANSION_HIDDEN, which would cause
KeyguardBouncer#dispatchFullyShown then wakeup the device.
A simple idea is we don't need to overwrite the expansion state while
hide bouncer since dispatchExpansionChanged can be triggerred when
setExpansion been called.

Bug: 175423965
Bug: 175920249
Test: atest KeyguardTests
Change-Id: I911ed31ccb402713eb0a00faf0b176c88488501b
This commit is contained in:
wilsonshih
2020-12-22 14:43:32 +08:00
committed by Wei Sheng Shih
parent 612dbde32a
commit f9fd468300

View File

@@ -289,8 +289,6 @@ public class KeyguardBouncer {
SysUiStatsLog.KEYGUARD_BOUNCER_STATE_CHANGED__STATE__HIDDEN);
mDismissCallbackRegistry.notifyDismissCancelled();
}
mExpansion = EXPANSION_HIDDEN;
dispatchExpansionChanged();
mIsScrimmed = false;
mFalsingCollector.onBouncerHidden();
mCallback.onBouncerVisiblityChanged(false /* shown */);