summaryrefslogtreecommitdiff
path: root/light
AgeCommit message (Collapse)Author
2021-09-13sdm660-common: Move to SPDX license identifierSebastiano Barezzi
Change-Id: Ic46de254772fb2c3d57566ac0c60a7f5a7f55ab9
2021-09-13sdm660-common: Add VINTF fragments to our AIDLs/HIDLsSebastiano Barezzi
Change-Id: Ibe89b7a99929cd8e52424be502094997194a476f
2021-04-25sdm660-common: chown light nodes earlierdianlujitao
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
2020-12-27sdm660-common: Add interface specification for lights hal.Steven Moreland
So that init knows how to start it and to provide an example of how to specify interfaces since there are no lazy starting services on Pixel yet. In order to make lights a lazy service, it would also have to be marked as 'oneshot'. Test: manually using Light as a lazy service Bug: 64678982 Merged-In: I846a7e2d9545b42af9b985adb74883bda1b8c355 Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2020-12-18sdm660-common: Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
2020-07-31sdm660-common: light: Report the correct value in LCD fallback logDavide Garberi
Change-Id: Iff93b035ce99aeb8408de227dfcee6c7696fedfb
2020-06-01sdm660-common: Fix battery light not lit after notification light offdianlujitao
Change-Id: Id4312627cfb4d26507bc78592a5952d909e7e04d
2020-04-30sdm660-common: Support button backlightdianlujitao
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
2020-04-30sdm660-common: Don't advertise attention lightdianlujitao
* Messing up notification light in some cases Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
2020-04-30sdm660-common: Improve lights HALdianlujitao
* 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 [SQUASHME] Let's dejank paths a bit... Change-Id: Ifd3d05588b0271e7a361aa4c7374a91fe5639a1f
2020-04-30sdm660-common: lights: red -> whitedianlujitao
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
2020-04-30sdm660-common: light: Set blink as last parameterDavide Garberi
* Setting it earlier brings the device to often not show the led light at all Change-Id: I2663611241f7db571625e25694ebc77601bde5f6
2020-04-30sdm660-common: light: Handle brightness in a less hacky wayDemon Singur
Change-Id: I82e936742195c8248b03cea0aac44f671d10e245 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2020-04-30sdm660-common: light: Set saner ramp valuesDemon Singur
Change-Id: Idf8053945cb9cfc15d4d401ec0e78953d3f3b051 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2020-04-30sdm660-common: light: Add missing chmodsDavide Garberi
Change-Id: Ib45e537c795b9ce6651c361b68f80ee28a616cad
2020-04-30sdm660-common: light: Rename red led to whiteDavide Garberi
Change-Id: Ib88ada3ffb019a204762031b17d4d3c40d09f250
2019-09-18sdm660-common: Convert to 660 common treeDavide Garberi
Change-Id: I903039730f4181f6a326f28e0ea212db68bdabcc
2019-09-01wayne-common: light: Set correct brightness for backlightIsaac Chen
* Xiaomi switched to 4095 level brightness switch on P Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn> Change-Id: If41820a046dd32697e21ca71defe2377895407c2
2019-08-13wayne-common: rootdir: Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok
* 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-08-13wayne-common: light: Mark as shutdown criticalSteven Moreland
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
2018-07-31wayne: light: Support ramp step notification controlIsaac Chen
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-13wayne: light: Throw a warning if path stream ain't validHarshit Jain
2018-07-13wayne: Convert light HAL into a HIDL servicedev-harsh1998
Signed-off-by: dev-harsh1998 <harshit.india@linaro.org>