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
2022-06-14 16:42:42 +09:00
2023-05-25 17:35:23 +09:00
2022-11-04 22:02:09 +00:00
2023-04-26 20:41:40 +00:00
2023-03-08 16:48:57 +00:00
2022-12-23 03:49:06 +00:00
2022-10-31 20:43:43 +00:00
2022-11-18 23:40:59 +00:00
2022-06-14 16:42:42 +09:00
2022-11-15 17:37:08 +00:00
2023-06-26 22:29:51 +00:00
2023-05-17 15:19:29 +00:00
2022-06-14 16:42:42 +09:00
2022-12-01 22:07:33 -08:00
2022-08-01 16:19:14 +00:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%