Commit Graph

7 Commits

Author SHA1 Message Date
Sean Dooher
3869fa63f2 thermal: Add support for Rust AIDL backend
Updates the VTS test to allow a NULL_POINTER exception when a null
pointer is passed as an argument. This matches the behavior of the Rust
libbinder_rs while maintaining backwards compatibility by still allowing
ILLEGAL_ARGUMENT exceptions in this case.

This support is necessary for a new emulated Thermal HAL for Cuttlefish
written in Rust.

Tested: VtsHalThermalTest in Cuttlefish
Bug: 286106286
Change-Id: Iccbebb416f31555da328f752d661660b77125ed3
2023-06-27 17:51:14 +00:00
Xiang Wang
0ffc9720d6 Fix callback test to only verify registration
Bug: 270489278
Test: atest VtsHalThermalTargetTest
Change-Id: I1e5af6e9092d3ab32b1d49382a2849fdab228bef
2023-03-17 10:34:46 -07:00
Xiang Wang
e7b177e69d Update VTS for AIDL HAL
Bug: b/205762943
Test: atest VtsHalThermalTargetTest
Change-Id: I9ae738ea4b27f92445020822877ccd24234fa3c0
2023-02-13 19:04:33 +00:00
Xiang Wang
4e285adc14 Merge "Fix the hidden main function in VTS tests" 2023-02-10 00:33:54 +00:00
Xiang Wang
dd0edc6337 Fix the hidden main function in VTS tests
Otherwise gtest will inherit the one from libgtest_main which
will not start thread pool to handle binder call for callbacks

Bug: b/205762943
Test: atest VtsHalThermalTargetTest VtsHalPowerTargetTest VtsHalTetheroffloadTargetTest
Change-Id: Ib9e5d265b8f5081dd20568a98d01e9190177440a
2023-02-08 16:48:57 -08:00
Xiang Wang
d43e87345f Fix the Thermal AIDL example and VTS test
The AIDL proxy objects can't be compared directly but their internal IBinder

Bug: b/264224315
Test: atest VtsHalThermalTargetTest
Change-Id: Icf6174a0ba79fa5efeaec7778d27c18d957cd88d
2023-02-07 15:57:45 -08:00
Peiyong Lin
56960758ad Convert Thermal HIDL to AIDL.
This patch converts Thermal HIDL to AIDL and adds an empty example
implementation.

Bug: b/205762943
Test: atest VtsHalThermalTargetTest
Change-Id: I0c80ac400cc41f50916dbed58bb48f878dfae17f
2022-10-06 17:13:40 +00:00