Add car mode changed listener to DeviceStateMonitor
Since Android Auto is a private display, isScreenOn() can't accurately determine whether the Android Auto display is on or not. Add a listener for car mode changed to accurately consider the Android Auto display in shouldEnableHighPowerConsumptionIndications(). Also add more logs for other states. Test: atest DeviceStateMonitorTest Bug: 157257888 Change-Id: Id56899b14f46bcf6ae2d800e53b44aad74a75923
Loading
Please register or sign in to comment