Commit graph

11 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
Chungjui Fan
4d92dd9f85 sdm660-common: Add CAMERA in light type for android.hardware.light
Bug: 199718333
Test: VTS pass
Change-Id: I3c5c30ae557b3e35b2a995bfd9a75a86192651ba

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-11-07 08:34:26 +01:00
halibw
d77d1fc7a1 sdm660-common: lights: CHECK -> CHECK_EQ copy pasta
Changes from upstream: ffb03995e6%5E%21/#F7

Change-Id: I093066e8deffdb6d97e3b0d46ab5d8ad099cd682
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-11-07 08:34:26 +01:00
clarencelol
b188dee008 sdm660-common: light: Adapt some changes to AIDL Light HAL for 4.19
* It fixes notification light
* Those were deleted in 4.19 LED changes

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-18 08:52:27 +02:00
Vivekachooz
512b822f8a sdm660-common: Enable cpuset for light service
Change-Id: I04e2006166e8b52c88a4c71969853c8ce0ea9d7b

Signed-off-by: OmarAlCoptan <omarcoptan9@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-06-06 12:39:56 +02: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
PIPIPIG233666
a592795621 sdm660-common: light: Move hidl to a seperate directory
Change-Id: If75aa890c24a60534c17d410bc2d1318c59cc5ec
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
Jignesh Mehta
123d8346a3 sdm660-common: Add null check for lights smart pointer
lights smart pointer was used without null pointer check.
This change adds null check.

Change-Id: Ifdd82290cfe4d7ca781adbed8c8a65961c70e244
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