Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de3e8d9a authored by Robin Lee's avatar Robin Lee
Browse files

Add test for KeyguardController removing AOD during unlock

There is a heavily-exercised special case for KeyguardController:
if the keyguard is going away but AOD is still showing, calling
setKeyguardShown(true, false) will be treated as a request to
remove the AOD bit without interfering with the keyguardGoingAway
state.

This is a surprising special case that was not caught by unit tests
when a change to the surrounding code was submitted. Adding a test
codifies that this is a deliberate "feature" and shouldn't be
changed without a plan for alternative ways of clearing the AOD
status during keyguardGoingAway

Change-Id: Ide11cc6cfd33e826c54da704fd66997938735cc3
Flag: EXEMPT test only
Test: atest 'DisplayContentTests#testKeyguardGoingAwayWhileAodShown'
Bug: 396134691
parent c13717cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment