Commit graph

38 commits

Author SHA1 Message Date
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
Jeongik Cha
729bc3ee2e sdm660-common: light: Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +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
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
Sebastiano Barezzi
5616948c08 sdm660-common: Move to SPDX license identifier
Change-Id: Ic46de254772fb2c3d57566ac0c60a7f5a7f55ab9
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Sebastiano Barezzi
ddc790ae22 sdm660-common: Use only full qualified name for manifest entries
* As recommended by Google for multiple different versions of the same HAL in VINTF manifests
* https://android.googlesource.com/platform/hardware/interfaces/+/master/drm/1.1/README.md#devices-launching-with-android-pie

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: Ie94e1440f7de66502ad2532565ae8d3dd831d1a4
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
93220327e6 sdm660-common: Regen manifest
* make vendor_manifest.xml

Change-Id: Ida66af588dc2d66c6cc6f62b573f05e7dd8ba600
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
3605a9c720 sdm660-common: Move to SPDX license identifier
Change-Id: If335a7b83289edf4759d0195a8b065c8dac6631b
2021-11-13 11:31:51 +01:00
erfanoabdi
d9f012a6f4
sdm660-common: light: Adapt light HAL for k4.19 2021-06-07 09:21:10 +06:00
dianlujitao
40e44120d9
sdm660-common: Chown light nodes earlier
The hal class is essentially triggered from the boot class, so it's
possible that the HAL starts before the permissions are set, and manual
intervention was added to deal with the issue. However, we can simply
move chown to an earlier stage to avoid playing with the workflow.

Change-Id: I189b247576151f76efaf26b2d266564dc7768fba
2021-04-11 09:29:14 +06:00
Bruno Martins
313e2e8d10
sdm660-common: lights: Include VINTF fragment
Change-Id: I436e67ea97511d728881e118cf8cb5b66ab338ed
2021-03-22 18:30:00 +06:00
Steven Moreland
ecfc20eadd
sdm660-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-13 18:27:09 +06:00
Paul Keith
a2e190f5a2
sdm660-common: light: Drop unnecessary handled variable in setLight()
Change-Id: If6e76671cc1860102a5da6502338cda138dad3ee
2020-08-12 02:11:31 +06:00
chrmhoffmann
9e4356c1f2
sdm660-common: lights: fix an uninitialized local variable dereference
* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
2020-08-12 02:11:31 +06:00
Demon000
f036db8030
sdm660-common: Rework Light HAL based on xiaomi-msm8998 source
* squash from here
afafb3b3f3/light

* Added automatic max brightness detection
* Rework debug Statments

The xiaomi-sdm660-devs one created Led Light issues

Change-Id: Ie7b62a488770734e659f4db03436ebaa2f2f5f30
2020-08-12 02:11:31 +06:00
Max Weffers
c90090bc75
sdm660-common: light: Fix double led lighting when notification
Change-Id: Id348163afb02680e72caa146b3119fe6ec911541
2020-08-12 02:02:38 +06:00
Max Weffers
53c8ca3cdb
sdm660: light: Support Red LED in Lights hal
* keep it for custom kernels

Change-Id: I30d8dcd41be3522b94bd7510c1f9be7569451d04
2020-08-12 02:02:38 +06:00
Demon Singur
3109aa6db9
sdm660-common: light: Set saner ramp values
Change-Id: Idf8053945cb9cfc15d4d401ec0e78953d3f3b051
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2020-08-12 02:02:38 +06:00
dianlujitao
93f0b0ba58
sdm660-common: Support button backlight
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
2020-08-12 02:02:37 +06:00
dianlujitao
98a59e0d2c
sdm660-common: Don't advertise attention light
* Messing up notification light in some cases

Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
2020-08-12 02:02:37 +06:00
dianlujitao
4a0d509d3c
sdm660-common: Improve lights HAL
* Use libbase logging and file utils
 * Read max brightness from sysfs
 * Convert constants to constexpr
 * Move helper functions to anonymous namespace
 * Bug fixes
 * Remove redundant chmod
 * Start the service after permissions are set up because it reads max
   brightness in constructor.

Change-Id: I145d393c785e182060c5651e796d489f8c4d697b
2020-08-12 02:02:37 +06:00
Davide Garberi
cc63fa4306
sdm660-common: light: Set blink as last parameter
* Setting it earlier brings the device to often not show
  the led light at all

Change-Id: I2663611241f7db571625e25694ebc77601bde5f6
2020-08-12 02:02:37 +06:00
Demon000
5b63d5c3fb
sdm660-common: Adapt Light Hal for commonized sdm660 tree
Change-Id: If08b3cfc5e4e5bb35b39d6616d0fd974a709e61d
2020-08-12 02:02:37 +06:00
dianlujitao
35ff9a708f
sdm660-common: lights: red -> white
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
2020-08-12 02:02:37 +06:00
Paul Keith
16f37dbdcd
sdm660-common: light: Drop unnecessary handled variable in setLight() 2019-08-14 10:04:10 +02:00
Luca Stefani
4b3dfd83e7
sdm660-common: lights: Update service entry for P
Change-Id: I3f557e1c2fc774e11326e0dc769fc7d25852d819
2019-08-14 10:04:10 +02:00
chrmhoffmann
f3fe52d1f0
sdm660-common: lights: fix an uninitialized local variable dereference
* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
2019-08-14 10:04:10 +02:00
Max Weffers
c1ab176762
sdm660-common : Adapt xiaomi msm8998 Light hal for sdm660 2019-08-14 10:04:10 +02:00
Max Weffers
cb1b743b8d
sdm660-common: Transform into common sdm660 tree 2019-08-14 10:04:10 +02:00
Jaekyun Seok
35e312e135 wayne-common: rootdir: Add 'vendor.' prefix to a vendor HAL service name
* To prevent property name collisions between properties of system and
  vendor, 'vendor.' prefix must be added to a vendor HAL service name.
  You can see the details in go/treble-sysprop-compatibility documents.

Test: succeeded building and tested on a sailfish device.
Bug: 36796459
Change-Id: I48e6ee0ae3fe401e39efb273256d991fac676357
2019-07-01 14:15:04 +02:00
Steven Moreland
a2494961a5 wayne-common: light: Mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2019-07-01 14:15:04 +02:00
Isaac Chen
29136ba5ed wayne: light: Support ramp step notification control
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-31 00:00:10 +00:00
Harshit Jain
ad9a011a07 wayne: light: Throw a warning if path stream ain't valid 2018-07-13 00:03:17 +00:00
dev-harsh1998
9cfa4c0be9 wayne: Convert light HAL into a HIDL service
Signed-off-by: dev-harsh1998 <harshit.india@linaro.org>
2018-07-13 00:03:17 +00:00