lichen yu
8659a96281
Fix VtsHalSensorsV2_0TargetTest
...
During VTS testing, when many sensors are quickly enabled, the load on the Sensorhub side will be too heavy, and then continue to send sensor enable instructions and Sensor Flush instructions. These instructions sent by the Kernel driver to the Sensorhub through inter-core communication cannot be responded to in a timely manner. After the Kernel side judges the timeout, it will determine that the enable fails; after the enable fails, it cannot continue to test the flush or return the expected flush data.
ten sensors is tested as a group
Bug: 339763843
Test: run vts -m VtsHalSensorsV2_0TargetTest
(cherry picked from https://android-review.googlesource.com/q/commit:09952885e441bcf0d8f0bf0834ff46608b07e0d0 )
Merged-In: I6f6d36d1e3c98b85b412189c3f97163c0945a7ab
Change-Id: I6f6d36d1e3c98b85b412189c3f97163c0945a7ab
2024-06-12 23:39:23 +00:00
fan.lv
765937cfac
lnitialize payload of additionallnfo for VTS InjectSensorEventData test
...
If the payload of additionalInfo event isn't initialized, system will
crash when execute to the function of convertToHidlEvent in
HalProxyAidl::injectSensorData. Because there is an operation to get
the payload in the function of convertToHidlEvent.
Bug:306109770
Test:VtsAidlHalSensorsTargetTest.Sensors/SensorsAidlTest #InjectSensorEventData
Change-Id:I649de10451914ddfdb9d735ca1359521bf810bca
2023-10-26 10:45:13 +08:00
Alex Buynytskyy
ec1198d941
UpsideDownCake is now 34
...
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
sangweilin
097d2ce929
catch mutex when notify sampling rate changed, otherwise signal may be lost am: e1e361ed43
am: ab8e9f1b2b
am: c6a975ee1f
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496635
Change-Id: Idff71b1768fe95ff55d091b577c458f5740c2d31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-20 20:54:27 +00:00
sangweilin
e1e361ed43
catch mutex when notify sampling rate changed, otherwise signal may be lost
...
Change-Id: Ib52f26e731808ecbe5fd2a53fcd8a47ab3882902
Signed-off-by: sangweilin <sangweilin@xiaomi.com>
2023-03-19 06:48:32 +00:00
Anthony Stange
d73b9e0df0
Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev am: 2550e7a719
am: 0415aad813
am: 70d16e0229
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486876
Change-Id: Ie9d8018ff839addb8a2bd2df543141a413e60eda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 16:13:10 +00:00
Anthony Stange
4ad422e74d
Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev am: 2550e7a719
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486876
Change-Id: Ie628fc877fd63dbe3b8c96d335416b2c741f1c5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 15:02:43 +00:00
Anthony Stange
2550e7a719
Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev
2023-03-17 14:33:01 +00:00
AOYAGI Takako
872cda3300
Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
am: c0fd000566
am: 16b926e728
am: e760f283cc
am: 006acfa520
am: ee526c2d41
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695
Change-Id: I809ffc2b3f7d0f10a13ff1c97eff8084eeba09c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 02:03:51 +00:00
Dezhi Huang
b5425cb909
Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType
...
Function assertTypeMatchStringType does not match the sensor type
HINGE_ANGLE that only exists on folding screen phones. When testing the
VtsAidlHalSensorsTargetTest on a folding screen mobile phone,
it will fail.
So we need add CHECK_TYPE_STRING_FOR_SENSOR_TYPE(HINGE_ANGLE) to
the function assertTypeMatchStringType.
Bug: 270831199
Change-Id: Ib82a1168ff90d851eee6ce025464b11bcda7d5ca
2023-03-16 01:55:31 +00:00
AOYAGI Takako
64412bb9cd
Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
am: c0fd000566
am: 16b926e728
am: e760f283cc
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695
Change-Id: I48186f5bee46d4bb9486f42c0ce410450c51cc08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 00:47:32 +00:00
AOYAGI Takako
e760f283cc
Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
am: c0fd000566
am: 16b926e728
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695
Change-Id: I9d89b36e50daf41894930baeb7bc59f5d45d27a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 00:07:28 +00:00
AOYAGI Takako
c0fd000566
Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695
Change-Id: I105d3e8472f27f2d49a6ab675d173af739fca039
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 22:54:22 +00:00
AOYAGI Takako
45a15ed8b9
Fix for VTS test CleanupConnectionsOnInitialize
...
Sensor event never occur on DUT that has no sensor.
So, skip this test case on DUT that has no sensor.
Test: run vts -m VtsHalSensorsV2_0TargetTest
Bug: 273383821
Change-Id: I657b74ca3c67c105e40e58a7e4c700370a9db3e3
Signed-off-by: AOYAGI Takako <aoyagi.takako@jp.panasonic.com>
2023-03-15 21:50:31 +00:00
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
Matthew Sedam
2d85820979
Fix event collection in SensorsVtsEnvironmentBase.h
...
Only collect the events that match the description.
Bug: 270611181
Test: atest VtsAidlHalSensorsTargetTest
Test: atest VtsHalSensorsV2_0TargetTest
Change-Id: Iac4c4dc39b3a4d32dbfdb7770989204c1fe28c47
2023-03-08 15:37:47 +00:00
Treehugger Robot
6d065549e1
Merge "Remove uses of deprecated GTest macro." am: 3eed07ead0
am: c74317cabf
am: c13f8756d3
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2469729
Change-Id: I00d3db902d583272919eba0891a92137bb02caa6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-04 08:28:26 +00:00
Krzysztof Kosiński
c30ca3077d
Remove uses of deprecated GTest macro.
...
Bug: 271622675
Test: local build, presubmit
Change-Id: I525be287361e65d0c4194bc93d7f17ce3369da5d
2023-03-04 00:46:48 +00:00
TreeHugger Robot
9155cbc773
Merge "Add group 'uhid' to AIDL sensors multi-HAL"
2023-02-04 04:24:38 +00:00
Chia-Ching Yu
5dcb66fe52
Forward HalProxy::debug options.
...
Bug: 267262034
Test: adb shell dumpsys android.hardware.sensors.ISensors/default \
disp_info_histogram_cfg
Change-Id: Ic9eb19fb4483a7f5dae2d5dccb8e72cd4d7d8710
2023-02-01 17:00:03 +08:00
matthuang
0cc9032d2b
Add group 'uhid' to AIDL sensors multi-HAL
...
Allow sensor hal to send SW_LID event through HID transport
drivers when hall_effect event is detected.
Bug: 262056923
Test: Build pass.
Change-Id: I9b583df6090a5e415abac7bef4bc3b7d28c31b8f
2023-01-31 15:11:19 +08:00
Treehugger Robot
7443fb11d0
Merge "sensors: cleanup OWNERS" am: c9f07f5fdc
am: 3fef1c0f59
am: 1856eb00c4
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2372270
Change-Id: Icb51ff4a5b0191a5caea025c2839c4bd038e020c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-04 01:29:58 +00:00
Steven Moreland
ddc9daad96
sensors: cleanup OWNERS
...
I wrote a script to do this.
Bug: N/A
Test: N/A
Change-Id: I2f53125790aea64d7a3c02569cecccc9cec9522b
2022-12-29 23:44:34 +00:00
Chris Kuiper
3c420b663d
HalProxy: Forward 'lshal debug' options.
...
Bug: 262655635
Test: Temporarily added logs to verify option arguments are correctly
forwarded.
Change-Id: Idef9b3371c332b8578cbfa88ba7d4bf4c68155e3
2022-12-14 20:46:34 -08: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
7daadf2dd0
Merge "Revert^2 "sensors: adding a common convert lib"" am: e7e44e0022
am: b05ef110cb
am: deb29c8bc9
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2323820
Change-Id: I05c67bf5e3e50dae0336119ceba3cefb2da5869b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-06 19:05:32 +00:00
Devin Moore
e7e44e0022
Merge "Revert^2 "sensors: adding a common convert lib""
2022-12-06 16:57:01 +00:00
Devin Moore
160d7a4504
Revert^2 "sensors: adding a common convert lib"
...
3633b6d4fe
Change-Id: Ie13caa288e8cba344225bb2e4fd01fc23b1d4a9d
2022-12-01 23:17:17 +00:00
Aditya Chitnis
29e1bf6b6c
Adding suport for multiple multihal config files am: e61b64baf5
am: 938eae9048
am: 33883bd2df
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2323216
Change-Id: Iee5189571370897c30b575ed42d05fcef79733e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 18:06:20 +00:00
Aditya Chitnis
e61b64baf5
Adding suport for multiple multihal config files
...
Bug: 259450346
Test: Presubmits
Change-Id: Ic7b113e6b8bf94e0c0ffe539f965232b24bdf66d
2022-12-01 10:07:31 +00:00
Krzysztof Kosiński
d8defc5d14
Merge "Revert "sensors: adding a common convert lib"" am: df0bf96001
am: 11b7a8c73f
am: 73e349fb15
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2321957
Change-Id: I3ca09ef208152d3ec5624afb2c0d54a76cecb721
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 10:31:20 +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
e21316aa06
Merge "sensors: adding a common convert lib" am: 7b571f974e
am: aaf2c58c6d
am: fbe3168d82
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2313739
Change-Id: I8b613ccb835b2bad8cca6bb62d45a8f3311786a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 23:02:06 +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
ab55b8a8d2
Merge "Make sensors convert library host_supported" am: 6a58599217
am: 9e39f2f17b
am: f339add894
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2306947
Change-Id: I2468ec4a1d3abb3da425d9cbb26d0511c09b12bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 17:34:10 +00:00
Devin Moore
6a58599217
Merge "Make sensors convert library host_supported"
2022-11-22 17:37:49 +00:00
Karthik Bharadwaj
97258c512f
Merge "Default accel Z direction value to +9.8" am: 34557d4596
am: 72239c642e
am: 92cbbeabd7
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2310345
Change-Id: Ie14cc774a21dd1c79e4852bf73ed10aa07d8baa8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 23:33:15 +00:00
Karthik Bharadwaj
34557d4596
Merge "Default accel Z direction value to +9.8"
2022-11-21 22:03:14 +00:00
Karthik Bharadwaj
4cea52915a
Default accel Z direction value to +9.8
...
Default the accelerometer defaut Z value to +9.8 to indicate a
more 'natural' resting position of flat with screen up for the
device.
Bug: 242736284
Test: Presubmits, vts VtsHalSensorsV2_0TargetTest.
Change-Id: I92357119173dbc99a0a6665de5d733286ac30c3e
2022-11-21 18:28:44 +00:00
Devin Moore
6367f85c58
Merge changes from topics "sensor_conver", "sensorservice_aidl" am: 3259213a9e
am: fd2903c283
am: 87fd3220be
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2298582
Change-Id: Ic0e758d7b0cac7d010cbce7130f6138a03ade4eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 20:11:44 +00:00
Devin Moore
378dd165a1
Add host_supported to sensors AIDL interface am: 9ef0c60a25
am: f52079e9f4
am: 43e16a4205
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2292599
Change-Id: If021993d03032c04b61d148bbeeb13a8166dd8ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-18 20:11:36 +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
Devin Moore
9ef0c60a25
Add host_supported to sensors AIDL interface
...
Useful for host fuzzing. Needed to make the new sensorservice AIDL
host_supported.
Test: m
Bug: 205764765
Change-Id: I3fb0786fe27274d91c05a0598bf9d96c20062edf
2022-11-18 00:58:28 +00:00
Sally Qi
a1c66a2993
Add cc_defaults wrapper for android.hardware.graphics.allocator ndk
...
package.
- to avoid manually rev up if needed.
Bug: 243429120
Test: builds
Change-Id: I25bfcc203cda61af308c37c3766fa9efe6c6784c
Merged-In: I25bfcc203cda61af308c37c3766fa9efe6c6784c
2022-10-20 18:27:12 -04:00
Treehugger Robot
c4aae36c8c
Merge "Use EXPECT_LE instead of EXPECT_LT for some iio sensors that do not support runtime suspend." am: 105ac0f1ae
am: 97f136591c
am: 2d7e24ed2d
am: a4ba8ecef1
am: 6171253db8
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2213140
Change-Id: I5ae434a0d2c17f8a909373c5f9c8af34b8c50172
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 05:11:27 +00:00
heqiang1008 thundersoft
d6ef4fb700
Use EXPECT_LE instead of EXPECT_LT for some iio sensors that do not support runtime suspend.
...
Change-Id: I646511f9d6c62f2967cedf6a2abc19aa621ee073
2022-09-09 09:11:10 +00:00
Sally Qi
0435c6b4f3
Add cc_defaults wrapper for android.hardware.graphics.allocator ndk
...
package.
- to avoid manually rev up if needed.
Bug: 243429120
Test: builds
Change-Id: I25bfcc203cda61af308c37c3766fa9efe6c6784c
2022-09-01 13:28:00 -07:00