commit | 682a7d5cd5cddac632dabb229d91972cc5f3f849 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Tue Nov 12 08:58:52 2019 -0800 |
committer | Jim Kaye <jameskaye@google.com> | Mon Dec 02 12:12:28 2019 -0800 |
tree | 9ce059125358b5b93ef92ca50b383d7c45207c90 | |
parent | 2b9d47ab4174331b5e5b143eddb1d5830f5799f9 [diff] |
Disable user switching while resuming from Suspend to RAM It is difficult to coordinate a user switch between VHAL and Car Services. To avoid problems, we disable a switch while the system is booting or (optionally) while the system is resuming from Suspend to RAM. If a vendor does this coordination, they can enable user switching during resume by overlaying config_disableUserSwitchAfterResume with false. Bug: 144010270 Test: Updated CarPowerManagementServiceTest.testSleepEntryAndWakeUpForProcessing Change-Id: I05e27dba15c6977f9b139c875ebb3ba74c5069ec (cherry picked from commit 2a36d12f7649809c6fe1805bb4b2dc35e2933f22)
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.