commit | b7eaebeee5b11504b56b52c7c131379274fb5d3c | [log] [tgz] |
---|---|---|
author | Andrew Cheng <chengandrew@google.com> | Fri Oct 02 08:31:55 2020 -0700 |
committer | Andrew Cheng <chengandrew@google.com> | Sun Dec 20 12:25:02 2020 -0800 |
tree | e7eda38e63b568c73e975d1c411154d57f2ff957 | |
parent | 76b4a10890112a0de6ba06656f0abc65028ff2c4 [diff] |
Enable seat sensor to trigger BT connections in cars Default implementation only triggers if: (1) car is in parked state (2) it is the driver's seat Bug: 169947237 Test: atest BluetoothDeviceConnectionPolicyTest Test: adb shell cmd car_service inject-vhal-event 356518832 1 2 # driver's seat, to manually trigger a connection from a disconnected state. Test: adb shell cmd car_service inject-vhal-event 356518832 4 2 # passenger's seat, to manually verify remains in disconnected state. Change-Id: I70b4df172ebd81f4f37f4e18a7e2ca64dad4523f
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.