Skip to content
Commit f4805e05 authored by Chandru's avatar Chandru
Browse files

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
parent f71a0036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment