commit | 1842e82f6bb6f07d208dd18ad21f4ff036c9dad5 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Mon May 04 13:08:45 2020 -0700 |
committer | Jim Kaye <jameskaye@google.com> | Thu May 07 10:59:14 2020 -0700 |
tree | 869fca7349f85c2662ba245f1bbfd326f8dfa9e1 | |
parent | fd4c034e0932574001ff8ce952228839c67e9a43 [diff] |
Add CarPowerManager.getPowerState() Allow users to query the current power state. This requires Car.PERMISSION_CAR_POWER Fixes: 154360508 Test: Adding testGetPowerState to the in-progress CarPowerManagerTest Change-Id: If14bba17155410c8a6150d56345d8fc3146d7fba
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.