Commit graph

5 commits

Author SHA1 Message Date
Sahil Somani
3d6b4409bf sdm660-common: Rename Light HAL default implementation variable.
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>
2022-12-19 07:17:50 +01:00
Ratoriku
8d896b11cf sdm660-common: Adapt AIDL Light HAL for xiaomi_sdm660
* 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>
2021-12-31 07:51:33 +01:00
Pig
6cca34ef40 sdm660-common: light: Extend hidl changes to aidl
* 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>
2021-12-31 07:51:33 +01:00
Benergy Meenan Ravuri
15db54bd7e sdm660-common: Update Lights HAL to return supported lights only.
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>
2021-12-31 07:51:33 +01:00
Vinay Verma
401a0afb8a sdm660-common: Add AIDL Light HAL Support
This change add support for Light HAL Implementation using AIDL

Change-Id: I444994ff1a1ca22134e7ef6db13043fd2c06e8a8
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00