Checks if there is a device state override active
to determine if the device should be put to sleep or not

This allows the device to stay awake regardless of the state
it is transitioning to, provided it is an overridden state.
An override request is triggered by user action or a cts test,
so it provides a better user experience to stay awake during
this transition.

Bug: 216580217
Test: Manual & LogicalDisplayMapperTest
Merged-In: I36959310d8e6c9b5e4e1e4093d17cad7d4f6238e
Change-Id: I36959310d8e6c9b5e4e1e4093d17cad7d4f6238e
(cherry picked from commit 7709d35564cc279f3c43d86063870dc847e7344d)
3 files changed