Commit graph

6 commits

Author SHA1 Message Date
Andreas Schneider
c03ec344f1 hidl: Don't compile setNotificationLED if there is no blink node
For example exynos9820 doesn't provide a LED.

Change-Id: I745f179fae52816c915833321123c8f49ba0a7d2
(cherry picked from commit eeb666cf00)
2020-11-26 05:07:44 +02:00
Paul Keith
6d952c28b6 hidl: Use common .clang-format file
Change-Id: I735e63167c7d5be39b3211bda404b1ebca2227ea
2020-01-27 20:19:11 -06:00
Jan Altensen
7ffb495501
samsung: hidl: light: battery has lowest priority
Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9
2019-08-07 11:33:32 +02:00
Steven Moreland
50395e61e9 samsung: hidl: light service: 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-22 02:15:27 +02:00
Steven Moreland
66b195f359 samsung: hidl: light_service: Add interface specification for lights hal
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
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2019-07-22 02:15:13 +02:00
Jan Altensen
53afa33078
hidl: add hidl lights hal
Change-Id: I333c8d3e20bb451d208f15661afc06ac47e1a377
2019-07-21 02:07:39 +02:00