summaryrefslogtreecommitdiff
path: root/light/utils/main.cpp
AgeCommit message (Collapse)Author
2020-01-22Add AIDL Lights HAL to support multiple lights per typeSteven Moreland
This is a revision of the previous 2.0 HIDL-based light HAL. It accomplishes 2 goals: 1) Support more than 1 light for a given type. This allows Assistant to use the HAL on TV platforms that have usually 4 indicator lights. 2) Use AIDL, which is the more modern way of writing HALs. The previous HAL is in hardware/interfaces/light/2.0 and the new one is in versioned as aidl, as that supports forward compatibility. Test: atest VtsHalLightTargetTest Bug: 142715294, 142230898 Change-Id: I08d831ca0380d8bb187e43f6d5c214810ff72f50
2019-10-07light: Allow blank_screen utiltiy to get color from command lineDmitry Shmidt
Bug: 142058809 Test: blank_screen 0xFFFFFFFF Change-Id: I4efdaaa2397b076e5699a75852bb15bfb1f6c5f8 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2018-03-16blank_screen: shut off all lightsSteven Moreland
This is used to make the phone appear off by init during late boot (e.x. fsck for disk health), so it should shut off all lights (not just the screen). Bug: 74976325 Test: blank_screen Change-Id: I790cc3dd856c2c2095fa3cf82519fd30834304ca Merged-In: I790cc3dd856c2c2095fa3cf82519fd30834304ca
2018-01-19Add 'blank_screen' util.Steven Moreland
This can be transitioned to by init to shutdown the screen thereby preventing init from either depending on binder or accessing halified sysnodes directly. Bug: 70846424 Test: manual + init use Change-Id: I86893ee5d7118547cd073297c0626e474f366b82