summaryrefslogtreecommitdiffstats
path: root/light
Commit message (Collapse)AuthorAgeFilesLines
* Revert "blank_screen: always exit with _exit()."Steven Moreland2018-05-241-2/+1
| | | | | | | | | | | | This was a temporary workaround in Android P, but it is fixed with a relatively more dangerous change in libhwbinder. This reverts commit 73ba34f1b7ab37a71c91ddbbe3e6d490d2161d34. Bug: 77934844 Test: reboot device and watch for screen to get shutdown, check logs Change-Id: I970144eea4acd8254f4a67ebe803f3c3eda9aba2
* blank_screen: always exit with _exit().Steven Moreland2018-05-221-1/+2
| | | | | | | | | Delay starting the threadpool until necessary, and once started, always exit with _exit(). Bug: 77934844 Test: screen is blanked on reboot Change-Id: I7715d889a6f78b9ce058fb3841ef7944116d8e82
* Merge "blank_screen: shut off all lights" into pi-devTreeHugger Robot2018-03-161-4/+11
|\
| * blank_screen: shut off all lightsSteven Moreland2018-03-161-4/+11
| | | | | | | | | | | | | | | | | | | | 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
* | light service: mark as shutdown criticalSteven Moreland2018-03-161-0/+2
|/ | | | | | | | | | | | | | | | 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
* Merge "Convert light hal test to use VtsHalHidlTargetTestEnvBase" am: ↵Zhuoyao Zhang2018-02-131-3/+21
|\ | | | | | | | | | | | | | | c4c77e570e am: 923bbc8934 am: 6a773b9a7c Change-Id: I0c4ca12e6de262660a0b47d0098ee3b314c4f8a4
| * Convert light hal test to use VtsHalHidlTargetTestEnvBaseZhuoyao Zhang2018-02-101-3/+21
| | | | | | | | | | | | | | | | Bug: 64203181 Test: make vts vts-tradefed run vts -m VtsHalLightV2_0Target Change-Id: I76eaac300697e25739c7ea0d2fb07b5b005a3040
* | Merge "Remove unnecessary group from blank_screen." am: 7b9e7c3f4b am: ↵Steven Moreland2018-01-231-1/+1
|\| | | | | | | | | | | | | | | a3dfa8acc3 am: c0404b5a86 Change-Id: I4d6eeb9b1465f3b5b9b902c50f9c050985cb4168
| * Remove unnecessary group from blank_screen.Steven Moreland2018-01-231-1/+1
| | | | | | | | | | | | | | | | Was accidentally copy-pasted here. Bug: N/A Test: setprop ctl.start blank_screen Change-Id: I0b100b02aecd2649f2528834f431a0bc8b164c46
* | Add 'blank_screen' util. am: 64a7afb07e am: 30cb8c1b79Steven Moreland2018-01-223-0/+87
|\| | | | | | | | | | | am: a2dc32bd29 Change-Id: I4bf96f1c14cea91a504e2f425aa7281afb08b7f1
| * Add 'blank_screen' util.Steven Moreland2018-01-193-0/+87
| | | | | | | | | | | | | | | | | | | | 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
| * Add interface specification for lights hal.Steven Moreland2018-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Merged-In: I846a7e2d9545b42af9b985adb74883bda1b8c355 Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
* | Add interface specification for lights hal.Steven Moreland2018-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add debug output for lights." am: 25ccf20c8c am: ba7d14198bSteven Moreland2017-12-222-2/+27
|\| | | | | | | | | | | am: 711ea3501a Change-Id: Ib37c58aeb9aa13542ae730426cc7c4e2ae39e19c
| * Add debug output for lights.Steven Moreland2017-12-202-2/+27
| | | | | | | | | | | | | | | | | | | | As an example and also to expose which lights are registered easily. Note, this is all the information that we can print given the libhardware lights interface. Bug: 70846424 Test: lshal debug Change-Id: I5f55e3e64149fc63a45ab9dab94d5fea27bb61da
* | Cleanup Lights Android.bp am: fabe9e4bef am: 1617ee8132Steven Moreland2017-12-191-3/+3
|\| | | | | | | | | | | am: b31e72c574 Change-Id: Ia2bf7eae93ae3252339b55de7b0080a04d808625
| * Cleanup Lights Android.bpSteven Moreland2017-12-181-3/+3
| | | | | | | | | | Test: none Change-Id: I3c5156a75a044c67f41878e880dece730ed7158f
| * Light mk -> bp.Steven Moreland2017-12-182-48/+53
| | | | | | | | | | | | Test: boots Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275 Change-Id: I963b957491575edbf68727ad4c97b733dceb0149
| * Merge "Remove subdirs"Treehugger Robot2017-11-291-5/+0
| |\
| | * Remove subdirsSteven Moreland2017-11-281-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
| * | Use -Werror in hardware/interfaces/light/2.0Chih-Hung Hsieh2017-11-281-0/+4
| |/ | | | | | | | | | | | | Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: If922bef89eba554c37b74a574bb0a042cfad46c7 Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275
| * Update makefiles for hidl_interface.Steven Moreland2017-11-101-160/+14
| | | | | | | | | | | | Bug: 35570956 Test: manual Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
* | Remove subdirsSteven Moreland2017-11-281-6/+0
| | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
* | Updating makefiles for hidl_interface.Steven Moreland2017-11-131-160/+14
| | | | | | | | | | | | | | Bug: 64487114 Test: manual Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812 Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
* | Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1Steven Moreland2017-10-112-141/+31
|\| | | | | | | | | | | am: 116161d94e Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
| * Update for Soong java makefiles.Steven Moreland2017-10-102-141/+31
| | | | | | | | | | | | Test: pass Bug: 33420795 Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
* | Merge "Remove useless Android.mk files." am: 75d5cf515a am: f27cfa15d7 am: ↵Steven Moreland2017-10-051-19/+0
|\| | | | | | | | | | | | | | | 33dc30ce49 am: 0653f3b212 Change-Id: I7c2da3cf30da7b4a1eda7e5369e9caa5ebab2462
| * Merge "Remove useless Android.mk files."Treehugger Robot2017-10-051-19/+0
| |\
| | * Remove useless Android.mk files.Steven Moreland2017-10-041-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | These have been c/p'd all over the place. Test: m -j nothing Bug: 33420795 Change-Id: I77979866dbb2345a41a873c84ec3fccd7b127510
* | | Merge "Update for hidl adapter module defaults." am: 988c977079 am: ↵Steven Moreland2017-10-041-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 861651985f am: b53e6ad535 am: 9a17f41f6f Change-Id: I78d9292068b372238554fd9d35128e69f5b5f9d2
| * | Update for hidl adapter module defaults.Steven Moreland2017-10-041-0/+1
| |/ | | | | | | | | Test: pass Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf
* | Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3 am: ↵Steven Moreland2017-09-261-1/+2
|\| | | | | | | | | | | | | | | 71a193a425 am: 9fdd241905 Change-Id: I1c852fa6600fecc44d5afd1a65a5f51c43ecf71c
| * Fix typo in update makefiles.Steven Moreland2017-09-261-1/+2
| | | | | | | | | | | | Bug: 37518178 Test: pass Change-Id: Ic401b3a473f15ca4c01e58b3072e19db7c31b653
* | Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e am: b94d0c7290Steven Moreland2017-09-261-0/+73
|\| | | | | | | | | | | am: 97228c0b7d Change-Id: Ic4b459b7c1a4325453945b0b00db8f44e4e77c26
| * Update makefiles for hidl adapter.Steven Moreland2017-09-251-0/+73
| | | | | | | | | | | | Bug: 37518178 Test: manual Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
| * VTS tests now static link to HAL def libs.Tri Vo2017-08-251-13/+2
| | | | | | | | | | | | | | | | | | | | And use VtsHalTargetTestDefaults. This is a partial cherry-pick of ag/2657080. Bug: 64040096 Test: compiles, works fine in internal master Merged-In: I8f6995e9536a9aefe283ee3effec9f5a7f03b620 Change-Id: I76d47d8546416b57055841851a9d343026cd3210
| * Updating all makefiles.Steven Moreland2017-08-142-133/+6
| | | | | | | | | | | | | | | | | | Bug: 64487114 Test: none Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Merged-In: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0 Merged-In: Ifdc3c17cb2b85c18b37dac2d03bb5c8935c23180 Change-Id: I170fa1c4fe39f8109b1670db58ef99bb11afc0be
* | Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok2017-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | 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 http://go/treble-sysprop-compatibility. Test: succeeded building and tested on a walleye device Bug: 36796459 Change-Id: I4e8fbee791ec917a8f627a1366f4d44ec7e6febc
* | Updating all makefiles.Steven Moreland2017-08-101-134/+0
| | | | | | | | | | | | Bug: 64487114 Test: none Change-Id: I8608c8f636c35f21e4246a805a9eff6d14124e0a
* | Merge "VTS tests now static link to HAL def libs. #2" into oc-mr1-dev am: ↵Tri Vo2017-08-101-13/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | 2883486706 am: a6969cdd68 Change-Id: Iecd7cfd4e02aea837647e2f12446e7375744f004
| * | VTS tests now static link to HAL def libs. #2Tri Vo2017-08-101-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use VtsHalTargetTestDefaults. Bug: 64040096 Test: crop out all non-affected tests from vts-hal-hidl.xml and run vts-tradefed run commandAndExit vts-hal-hidl --skip-all-system-status-check --skip-preconditions 2 failures, same as without this change: GatekeeperHidlTest.DeleteAllUsersTest GatekeeperHidlTest.DeleteUserTest Change-Id: I8f6995e9536a9aefe283ee3effec9f5a7f03b620
* | | Update make file for vndk enabled. am: 608d773ef8Justin Yun2017-08-041-0/+3
|\| | | | | | | | | | | | | | | | | am: d66371512c Change-Id: I35b778c39c2349346278deb6dea56b8cd3701f7d
| * | Update make file for vndk enabled.Justin Yun2017-08-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Update the Android.bp generated with hidl-gen. Test: build with and without BOARD_VNDK_VERSION=current Bug: 63866913 Change-Id: I1a9db1df49e0f13c5790da2b118ae9ec63ba34a7
* | | Update makefiles (frameworks.jar).Steven Moreland2017-08-031-0/+4
| | | | | | | | | | | | | | | | | | Test: links at runtime and buildtime Bug: 35771640 Change-Id: Ic7a71653d659115205e5bdbb782f73b774af0b29
* | | Update Android.bp HIDL makefiles am: f5d136c231Tri Vo2017-08-031-1/+1
|\| | | | | | | | | | | | | | | | | am: 7694738e26 Change-Id: I7592025d540bbe46d2e2726ae39ae34f352a1a30
| * | Update Android.bp HIDL makefilesTri Vo2017-08-021-1/+1
| |/ | | | | | | | | | | | | | | | | Allow HAL definition libs to be static. Bug: 32920003 Bug: 64040096 Test: update-all-google-makefiles.sh Change-Id: I1483d572bea6799717d1614fb7d52fe225e31104
* / Convert android.hardware.light@2.0 to soong.Ryan Campbell2017-07-273-44/+54
|/ | | | | | | | | Convert both the *-impl.so and the *-service to be built with Soong instead of make. Test: cd hardware/interfaces/light && mma -j60 Bug: 37512442 Change-Id: I15c4779a7c9eea39fb20746f69800dcf20670275
* Update makefiles. (2/2)Steven Moreland2017-05-221-0/+1
|\ | | | | | | | | | | am: 76cfb84140 Change-Id: I24d21438a5b2f447d2160929c6ff6e17b2b66820
| * Update makefiles. (2/2)Steven Moreland2017-05-191-0/+1
| | | | | | | | | | | | | | | | Adds default configuration for all hals. Bug: 38415912 Test: pass Change-Id: Idd1f3a2b7b16ad956d31784a513e93a066cdd02e
* | Update makefiles for c++-sources and c++-headers. (2/2)Steven Moreland2017-05-101-2/+2
|\| | | | | | | | | | | am: bc71124120 Change-Id: Icf36068a4d863a8520854c7a83e51f960c188e12