author | Steven Moreland <smoreland@google.com> | |
Fri, 16 Mar 2018 17:23:14 +0000 (10:23 -0700) | ||
committer | Steven Moreland <smoreland@google.com> | |
Fri, 16 Mar 2018 20:04:53 +0000 (13:04 -0700) | ||
commit | b25202527e9886b63461b051e577e2e6ce763257 | |
tree | b7743130e75f664fd3e3f0e40e2bc660ea4a697a | tree | snapshot (tar.xz tar.gz zip) |
parent | 8a7e77e7b953973e31df86a1f6eaf50d35aee65b | commit | diff |
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
Merged-In: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
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
Merged-In: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
light/2.0/default/android.hardware.light@2.0-service.rc | diff | blob | history |