platform_hardware_interfaces/light/aidl
Jesus Sanchez-Palencia c0544589b8 lights: Add state to the example service
Add a Light struct to the example service so it can hold a HwLight and
its associated HwLightState. Also added a HashMap of ids -> Light to the
LightService and updated the HAL methods implementation to make the
service stateful.

Now instantiating a LightService requires that a list of HwLights is
provided, so a default implementation was provided as a convenience. The
android.hardware.light rust API version had to be bumped since we rely
on new derive statements added to the AIDL files.

Tested: built VtsHalLightTargetTest and ran in Cuttlefish
Bug: 286106270
Change-Id: Id2b17a6a2290295c7b0b5405ac9815eaa28303c6
2023-06-29 10:54:30 -07:00
..
aidl_api/android.hardware.light lights aidl: Add required @Rust derive statements 2023-06-29 10:53:23 -07:00
android/hardware/light lights aidl: Add required @Rust derive statements 2023-06-29 10:53:23 -07:00
default lights: Add state to the example service 2023-06-29 10:54:30 -07:00
vts/functional Bump VTS of android.hardware.light to V2 2022-02-10 12:34:00 +08:00
Android.bp lights: Add Rust backend to the lights AIDL 2023-06-26 13:48:50 -07:00