Commit graph

9 commits

Author SHA1 Message Date
Devin Moore
0fd13e4818 Merge "[Sensor][Bugfix]: Remove redundant assignment operations" am: 7baf2ac4e3 am: 59b483ec3c am: 6d3361fe03
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2479595

Change-Id: Ie9a9a0c08e11f19645656f4df37329f825273f91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 18:41:50 +00:00
zhuhaiqing
610770294d [Sensor][Bugfix]: Remove redundant assignment operations
Remove redundant assignment operations for limitedAxesImuUncal.yBias

Change-Id: I3318f5e71539db7ebd24552a611df6e9567c68d9
Signed-off-by: zhuhaiqing <zhuhaiqing@xiaomi.com>
2023-03-14 02:26:29 +00:00
TreeHugger Robot
74280c2e1e Merge "Define the runtime sensor handle range in ISensors.aidl" 2022-12-12 23:24:27 +00:00
Vladimir Komsiyski
08315ccbb6 Define the runtime sensor handle range in ISensors.aidl
Add a test to make sure that there are no sensors with handles within this range in the HAL.

Fix: 259227294
Test: VtsAidlHalSensorsTargetTest

Change-Id: Ib785984a0b43457eacd41031bbf361375f9d21f8
2022-12-07 09:44:40 +01:00
Devin Moore
160d7a4504 Revert^2 "sensors: adding a common convert lib"
3633b6d4fe

Change-Id: Ie13caa288e8cba344225bb2e4fd01fc23b1d4a9d
2022-12-01 23:17:17 +00:00
Krzysztof Kosiński
3633b6d4fe Revert "sensors: adding a common convert lib"
Revert submission 2313818-sensors_shared_convert

Reason for revert: Breaks wembley_2GB-userdebug
Reverted Changes:
Icf64c8809:sensorservice: use new convert functions
Ibc6ed5566:libandroid_sensor_headers: make host_supported and...
Ib80130fc0:sensors: adding a common convert lib

Change-Id: I3f4cb4dc228b5bf6f81f451c11c11d6ebf19639a
2022-11-30 05:16:15 +00:00
Devin Moore
d8598ec6db sensors: adding a common convert lib
This common convert library is used by both the HIDL and the AIDL
convert library to provide conversions between ASensorEvent and
sensors_event_t.

Test: atest VtsHalSensorManagerTargetTest
Test: atest VtsHalSensorManagerV1_0TargetTest
Bug: 259711109

Change-Id: Ib80130fc04339245527ed20479cd9212f016713b
2022-11-28 17:55:14 +00:00
Devin Moore
fb3f5ada35 Make sensors convert library host_supported
Used for host_supported fuzzers.

Test: libsensorserviceaidl_fuzzer
Bug: 233850220

Change-Id: I80680907f65edbb6ddb8d433460829967e0b75b0
2022-11-18 19:33:01 +00:00
Devin Moore
00721dc031 Add a convert library for sensor AIDL
This is moving the conversion functions from
frameworks/native/services/sensorservice/AidlSensorHalWrapper.cpp.
This conversion code needs to be shared between sensorservice, a new
libsensorserviceaidl, and the new VTS tests for AIDL sensorservice.
It will likely also be used by vendors interacting with the new AIDL
sensorservice.

Test: VtsHalSensorManagerV1_0TargetTest
Bug: 205764765
Change-Id: Iabb0bcf0770672671e51fd304f79e14ca94a2d15
2022-11-18 00:58:35 +00:00