diff options
author | 2022-10-18 11:31:32 +0000 | |
---|---|---|
committer | 2022-10-19 13:16:39 +0000 | |
commit | f4805e05a687ee57c886c433afa577d5b64e9fea (patch) | |
tree | f27bbe70fc673fe22825d243fe7c98d146a97bf6 /libs/androidfw/ResourceTimer.cpp | |
parent | f71a0036c0f1c7bd6f76697dc7451d0b3082ce61 (diff) |
Uses Configuration.uiMode in DozeMachine to determine if car mode is active
Other changes:
- Use onConfigurationChanged instead of intents to detect when we enter/exit car mode to avoid any race conditions.
- Renames mConfig field to mAmbientDisplayConfig.
Fixes: 254228426
Test: atest com.android.systemui.doze
Test: manual, revert ag/16853283 locally, go to AoD, run 'adb shell cmd uimode car yes', no doze triggers should wake up the device. run 'adb shell cmd uimode car no', doze triggers (tap, pickup, etc) should wake up the device.
Change-Id: I017a00ae776482f6ff329f72250bd0584961aedf
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions