Commit graph

25 commits

Author SHA1 Message Date
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