summaryrefslogtreecommitdiffstats
path: root/light
Commit message (Collapse)AuthorAgeFilesLines
* Freeze vintf aidl interfacesJeongik Cha2020-04-098-0/+153
| | | | | | | | | | | | | | | | | | | | | | AIDL interfaces which are vintf-stable have to be frozen in release. But these interfaces have been never frozen, so freeze them. - android.hardware.power - android.hardware.identity - android.hardware.keymaster - android.hardware.vibrator - android.hardware.light - android.hardware.tests.extension.vibrator Bug: 153500421 Bug: 153500550 Bug: 153511407 Bug: 153500549 Bug: 153501107 Bug: 153501202 Test: m Change-Id: I643c25fc695f9d1e874dcceb327d465c49e9cab6 Merged-In: I643c25fc695f9d1e874dcceb327d465c49e9cab6
* Rename vts-core to vtsDan Shi2020-04-072-2/+2
| | | | | | | | | | Bug: 151896491 Test: local build Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as the suite name is updated. This CL won't change test logic or behavior. Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
* Update the current API dumpJiyong Park2020-03-306-0/+151
| | | | | | | | | | | | | | | | | | All aidl_interface modules should by default considered as stable, in case it is used across system and vendor partitions, or across modules. Like other API surfaces, we need to have a dump for the current (yet-to-be-released) version and update it when there is an API change. This is done via . Then the owner of the interface can freeze the current version as a numbered version via . This change shal be rejected only when the owner is certain that the interface is not used across the updatable boundaries. Bug: 152655547 Test: m Change-Id: If47c5982894dc99a7f2d1767d64be60b491842c7
* Add AIDL Lights HAL to support multiple lights per typeSteven Moreland2020-01-2217-31/+717
| | | | | | | | | | | | | | 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
* Merge "Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-core"Dan Shi2019-10-141-1/+1
|\
| * Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-coreDan Shi2019-10-101-1/+1
| | | | | | | | | | | | Bug: None Test: None Change-Id: I3fbbba0dc283bec2de025f0b743d97ded5874bf9
* | light: Allow blank_screen utiltiy to get color from command lineDmitry Shmidt2019-10-071-3/+22
|/ | | | | | | | Bug: 142058809 Test: blank_screen 0xFFFFFFFF Change-Id: I4efdaaa2397b076e5699a75852bb15bfb1f6c5f8 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Remove libhwbinder/libhidltransport depsSteven Moreland2019-09-062-3/+0
| | | | | | | | Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
* Lights: parameterized VTS tests.Steven Moreland2019-08-211-32/+14
| | | | | | Bug: 139437880 Test: run VtsHalLightV2_0TargetTest as gtest Change-Id: I43e8f43583e0ad5fc560c3ee2129305396751e29
* Update hidl makefiles for bpfmtSteven Moreland2019-04-171-1/+0
| | | | | | | | hidl-generated makefiles are now generated such that bpfmt(file) == file. Bug: 67417008 Test: enable bpfmt hook Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
* Update makefies: no 'types'Steven Moreland2019-03-041-7/+0
| | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
* Add lazy service target to the light HALPeter Kalauskas2019-01-234-7/+51
| | | | | | | | This change allows a device to include the lazy service implementation, which will allow the HAL to exit when it is not in use. Test: Manually observe brightness slider behavior Change-Id: I7f8f747ebe6e183e1aaf1406852e6e26a97aee35
* pack VTS cc_test binaries as general-testsKeun Soo YIM2018-12-071-0/+1
| | | | | | | Test: make general-tests Bug: 120093339 Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
* Revert "blank_screen: always exit with _exit()."Steven Moreland2018-05-251-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-241-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-191-3/+3
| | | | | | | | | | Test: none Change-Id: I3c5156a75a044c67f41878e880dece730ed7158f
| * Light mk -> bp.Steven Moreland2017-12-192-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-271-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