Commit graph

16 commits

Author SHA1 Message Date
TeYuan Wang
3d8c680f0a thermal: support more temperature and cooling device type
Bug: 312540064
Test: build
Change-Id: I6e11a181a09640e3f597344dbcbb7571b7e49453
2023-12-08 17:48:33 +00:00
Jooyung Han
f663d653d2 Merge changes from topics "tetheroffload-hal-apex", "thermal-hal-apex" into main am: 1f05f9d3a1 am: 49122f7ddf am: 288693a585 am: d1abd7897c am: 2308e77104
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2749883

Change-Id: I3b327b3dc0b503e44034a8783bf31fbaf93fac7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 06:41:19 +00:00
Jooyung Han
49122f7ddf Merge changes from topics "tetheroffload-hal-apex", "thermal-hal-apex" into main am: 1f05f9d3a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2749883

Change-Id: I906274b8309fc3fa24c09942a80a7380b5fd2665
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 04:06:09 +00:00
Jooyung Han
7a16e48e48 Add thermal HAL APEX
This is used by Cuttlefish as of now.

Bug: 300011386
Test: VtsHalThermalTargetTest
Change-Id: I814d007df40d77e7fd723fd67687ef663dbb050c
2023-09-13 13:12:53 +09:00
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
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
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
029a49cfc3 Merge "Generate toString for Thermal AIDL parcelable" am: 5b7246bc75 am: 8acbd5901b am: 32287b48dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2427637

Change-Id: I90d98e902d39a6861cfa16b3297be06093d925c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 01:50:14 +00: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
2e10dc4842 Generate toString for Thermal AIDL parcelable
Bug: b/268508448
Test: n/a
Change-Id: I007fe97b57049042623c395d574ff710bb11d29a
2023-02-09 15:54:58 -08: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
Xiang Wang
d9dbb06a4b Fix typo in Thermal AIDL interface and run update API
Bug: b/205762943
Test: m
Change-Id: Ic85c569eb48edd136bfc0ec8df3202fad3d67b46
2023-01-27 00:20:25 +00:00
Xiang Wang
057df147e3 Add @hide annotation to thermal AIDL interfaces
Bug: b/205762943
Test: n/a
Change-Id: Ia1eb95d6b64c524606901050b45180e851231043
2022-12-05 16:13:03 -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