The Light HAL implements a function getLights that returns a vector
of HwLight objects. This vector is called "lights" in Lights.cpp,
but it is called "types" in Lights.h. Lights.h has been changed to
call the vector "lights".
Test: VtsHalLightTargetTest
Change-Id: I1e567d1454d42e3efc0186cde8340c32e7f3456e
Signed-off-by: pix106 <sbordenave@gmail.com>
* Re-apply old HIDL Light HAL changes
* Bring back set lcd backlight support, our devices doesn't support to set lcd backlight via hwcomposer
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Change-Id: I1561545a2bc54c6e1b49af6d09b56db506afba5c
Signed-off-by: pix106 <sbordenave@gmail.com>
* Changes authored by dianlujitao in commits 7174356 ("Improve lights HAL") and
f8e30fd ("Fix battery light not lit after notification light off") are
adapted as following:
Type(HIDL) -> id(AIDL) in functions and maps
Note: Keep backlight in the map as per b9e44e5007, allowing SF to set backlight.
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: I8960a1fe0b44097e703f3f067d4e432a12d26fc3
Signed-off-by: pix106 <sbordenave@gmail.com>
Add Lights in list only if its corresponding function pointer is available.
Update map to store light id & function pointer.
For Invalid Id , return operation not supported.
Change-Id: Id89345fec8b1dfb89bcfbd71c56063707ba6bb2d
CRs-Fixed: 2709805
Signed-off-by: pix106 <sbordenave@gmail.com>
This change add support for Light HAL Implementation using AIDL
Change-Id: I444994ff1a1ca22134e7ef6db13043fd2c06e8a8
Signed-off-by: pix106 <sbordenave@gmail.com>