Commit graph

16 commits

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