summaryrefslogtreecommitdiff
path: root/sensors/aidl/default/multihal
AgeCommit message (Collapse)Author
2022-06-13Adds missing AIDL HAL SensorStatus conversion logicArthur Ishiguro
Bug: 235629868 Test: Compile Change-Id: Ice2df3935f2bcab9e9612ebd3fdacc57ea6f8dbc
2022-04-12Fix AIDL sensors VTS testArthur Ishiguro
- According to the AIDL backends, return values are not propagated when the status is !ok(). Update the VTS test, HAL implementation, and ISensors definition to remove the requirement that the handle is populated to -1 on failure for registerDirectChannel. - Also update VTS tests for some error code checks to reflect the actual expecataions according to the ISensors documentation. Bug: 228645167 Test: VTS passes Change-Id: I5d4d4d0af3b033b34a58d8462aa40214d89fa442
2022-04-11Fix return values in AIDL multi-HAL shimArthur Ishiguro
- Converts HIDL return values directly to ScopedAStatus - Adds asserts for unexpected values of conversion code Bug: 228645167 Test: Run VTS Change-Id: Ifcc57f565b4e1d9c140db9363e21ab6ee7dd6660
2022-04-11Implements AIDL multi-HAL debug dumpArthur Ishiguro
Bug: 228645167 Test: adb shell dumpsys android.hardware.sensors.ISensors/default Change-Id: If5985d669d5fae6ca99d0156f61841f868c8c60f
2022-03-17Cast to int for union tagJooyung Han
Union tag will be changed from `enum` to `enum class`. We need explicit casting with enum class. Bug: 225119187 Bug: 218912230 Test: m Merged-In: I2401e66dc9d8bc511a601fcdce365e5f823576d4 Change-Id: I2401e66dc9d8bc511a601fcdce365e5f823576d4 (cherry picked from commit 1c4e9829ec684f1c33447f522db516b14e011255)
2022-01-25Add head tracking to multi-HAL conversion codeArthur Ishiguro
Also adds OWNERS file. Bug: 215702376 Test: Compile Change-Id: Ib0bbb312aae66ab6130a8677ec8e0e82d0db48bb
2022-01-18Fix copy() using iterators from different containersGreg Kaiser
We fix up a std::copy that was using the wrong container for the end(). Test: TreeHugger Bug: 206867060 Change-Id: I5b7700029db6a513b6fdf03c3449be973d639df5
2022-01-14Moved implementation of ConvertUtils to cpp file.Tyler Trephan
Test: make android.hardware.sensors@aidl-multihal Bug: 206867060 Change-Id: I73e8d061bdfe39f956acda1cf9b138da2dcc1f22
2022-01-11Updated multihal to use new sensors AIDL interface.Tyler Trephan
Test: make android.hardware.sensors@aidl-multihal Fix: 206867060 Change-Id: I9b78a0f25117d11fdf4beb1e0913393c1c14620d