commit | 765e79e34ac34db966935587e514933396ee5404 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Thu Jun 04 13:48:54 2020 -0700 |
committer | Jim Kaye <jameskaye@google.com> | Fri Jul 31 17:00:16 2020 -0700 |
tree | 1115bc16989ba76d394f3add3874e160224e0459 | |
parent | 60c4b04da2061712d435c9c0311f357996469981 [diff] |
Add Silent Mode for Automotive This monitors the Silent Mode indication from the kernel via /sys/power/kernelsilentmode. The indication is available from SilentModeController to other code via a callback or by direct query. This new indication is used to control turning the display on at system start up and off at shut down. New reboot options for test are included: adb reboot forcedsilent adb reboot forcednonsilent Support for adb shell cmd car_service silent <on|off|query> is in a dependent CL. Bug: 134521909 Test: atest SilentModeControllerUnitTest (new) Test: atest BluetoothDeviceConnectionPolicyTest Test: atest CarBluetoothServiceTest Test: atest CarCabinManagerTest Test: atest CarPowerManagementServiceTest Test: atest CarPowerManagerUnitTest Test: atest CarUserNoticeServiceTest Change-Id: I4ec16ec2a7f5504de1184f982d31d1c83ffcf469
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.