summaryrefslogtreecommitdiffstats
path: root/power
Commit message (Collapse)AuthorAgeFilesLines
* Move main function out of namespaceHsin-Yi Chen2019-06-181-6/+7
| | | | | | | | Bug: 135473483 Test: adb shell /data/local/tmp/VtsHalPowerStatsV1_0TargetTest \ --list_registered_services Test: vts-tradefed run vts -m VtsHalPowerStatsV1_0Target Change-Id: I01084afbf48cff268288a8cce23328a2e4d1e4a0
* Update makefies: no 'types'Steven Moreland2019-03-045-28/+0
| | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
* power.stats: Specifying opaqueness of some membersBenjamin Schwartz2019-02-221-4/+4
| | | | | | | | | | | subsysName, railName, powerEntityName, and powerEntityStateName are all opaque to the Android framework. Emphasizing the opaque nature of these members in the HAL definition will help developers more quickly understand the intent of the interface. Bug: 125380339 Test: make Change-Id: I42ed1f3cc928726ae146b6be849947b631ae48e6
* power.stats: Use PowerStats HAL v1.0 in cuttlefishBenjamin Schwartz2019-01-255-4/+19
| | | | | | Bug: 122267057 Test: Build cf_x86_phone-userdebug Change-Id: I91a1b9d4db8acd2c47753e3b36ea20effd99e09a
* power.stats: Add more informative default implementationBenjamin Schwartz2019-01-165-10/+277
| | | | | | | | | | | | | | | | | | The original default implementation for power.stats HAL did not have a good example implementation of the power statistics related APIs. Adding a new default implementation that gives a more informative example Bug: 122267057 Test: run vts -m VtsHalPowerStatsV1_0Target Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Observed the following output ========== PowerStats HAL 1.0 state residencies ========== Entity State Total time Total entries Last entry timestamp DefaultEntity Active 1 ms 2 3 ms DefaultEntity Sleep 4 ms 5 6 ms ========== End of PowerStats HAL 1.0 state residencies ========== Change-Id: Ida0951c267f609b16bb6406da150ed2e504ced9a
* power/stats: Add VTS test cases for power.stats HALBenjamin Schwartz2019-01-073-26/+297
| | | | | | | | | | | Adding VTS test cases for power.stats HAL functions getPowerEntityInfo, getPowerEntityStateInfo, and getPowerEntityStateResidencyData Bug: 118365266 Test: run vts -m VtsHalPowerStatsV1_0Target Change-Id: Ib60ac0b37bd30663c5e7434546cdcfbf64915538 (cherry picked from commit a630f8481430f95351a59ce8c68ac553b269e1da) Merged-In: Ib60ac0b37bd30663c5e7434546cdcfbf64915538
* power/stats: Add VTS testcasesVinay Kalia2019-01-072-0/+344
| | | | | | | | | | | | | | VTS testcases to test following APIs: 1. getRailInfo(...) 2. getEnergyData(...) 3. streamEnergyData(...) BUG: 118365266 BUG: 111185513 Test: run vts -m VtsHalPowerStatsV1_0Target Change-Id: Ie90ecfae937beebf96a9d66eb4b10954242ad07b (cherry picked from commit fc48be10799826ffe01fb3bc6d79a694a7f7effe) Merged-In: Ie90ecfae937beebf96a9d66eb4b10954242ad07b
* power/stats: Add default implementationVinay Kalia2019-01-075-0/+507
| | | | | | | | | | | | Add default implementation for power.stats HAL BUG: 118777168 BUG: 111185513 Test: run vts -m VtsHalPowerStatsV1_0Target Change-Id: Id81291f58a5cdfa0cc1f56356001b2862df0dbc2 (cherry picked from commit f94dda77a1e064f2c66d3bd185feda96a9bdcc1e) Merged-In: Id81291f58a5cdfa0cc1f56356001b2862df0dbc2
* power/stats: Update HIDL to include power stats APIBenjamin Schwartz2019-01-073-3/+154
| | | | | | | | | | | Adding new power.stats HAL api for subsystem low power stats collection that will eventually replace legacy power stats api. BUG: 117887759 BUG: 111185513 Test: build successfully Change-Id: I0da4de378ba0b5daeeb5c2b15435a0c22eff08b4 (cherry picked from commit f836c07bda1b3d289425646e9b6a960d5203a9a6) Merged-In: I0da4de378ba0b5daeeb5c2b15435a0c22eff08b4
* power/stats: Update HIDL to use synchronous FMQVinay Kalia2019-01-072-7/+12
| | | | | | | | | | | | | | Unsynchronous queue do not help solve the problem of supporting multiple clients of power.stats. Since, there is no current requirement to support multiple clients so using synchronous queues instead. BUG: 117424656 BUG: 111185513 Test: run vts -m VtsHalPowerStatsV1_0Target Change-Id: Iab73de5a460e2a0ec5e949f8b021a87aefed58c8 (cherry picked from commit 84a48b832593d7251311c92f3eb270127c8d909d) Merged-In: Iab73de5a460e2a0ec5e949f8b021a87aefed58c8
* power.stats: Add power.stats HIDL interfaceVinay Kalia2019-01-073-0/+164
| | | | | | | | | | | | Initial commit defines APIS to collect on-device power-related data. BUG: 117424656 BUG: 111185513 Test: Compilation and device boot Change-Id: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636 (cherry picked from commit f91dcb5bfdfdd69e7c9023e0650ab21b4710586f) Merged-In: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636
* pack VTS cc_test binaries as general-testsKeun Soo YIM2018-12-074-0/+4
| | | | | | | Test: make general-tests Bug: 120093339 Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
* Add power@1.3 to the VNDK.Steven Moreland2018-08-141-0/+3
| | | | | | | | This was missing. Now update-makefiles is consistent w/ it. Bug: 110112323 Test: (sanity) build + boot walleye Change-Id: I29d4535b906d475c3b09e5f0c732c960986d1e38
* Update power HAL to version 1.3.Michael Wright2018-08-105-0/+173
| | | | | | | | | | | Adds new EXPENSIVE_RENDERING power hint. This adds a new library which does not affect any pre-existing targets unless they create and add a new binary which uses this. BUG: 110112323 Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest Change-Id: I5fb33abbbe4c4958882a106dfa400ad74013e40d
* Merge "power hal: Add power HAL API 1.2"Wei Wang2017-12-065-0/+240
|\
| * power hal: Add power HAL API 1.2Wei Wang2017-12-015-0/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend more powerHint types Test result: #./VtsHalPowerV1_2TargetTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from PowerHidlTest [ RUN ] PowerHidlTest.PowerHintAsync_1_2 [ OK ] PowerHidlTest.PowerHintAsync_1_2 (9 ms) [----------] 1 test from PowerHidlTest (9 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (10 ms total) [ PASSED ] 1 test. Bug: 62041945 Test: run VTS Change-Id: If6c9d19962907bcb96ea83e9297f74e80a743b9e
* | Merge "Convert boot, memtrack and power hal to use service name aware ↵Zhuoyao Zhang2017-12-052-12/+44
|\ \ | | | | | | | | | | | | | | | | | | | | | testing." am: b9515d9d3f am: a713584847 am: 6ab5305323 Change-Id: I0f8598253e34b08e73b8b65ff7fe91d937d5d8ad
| * \ Merge "Convert boot, memtrack and power hal to use service name aware testing."Zhuoyao Zhang2017-12-052-12/+44
| |\ \ | | | | | | | | | | | | | | | | | | | | am: b9515d9d3f Change-Id: Ie93e66d9b829ac420ba22cf0391b48c156755c77
| | * \ Merge "Convert boot, memtrack and power hal to use service name aware testing."Zhuoyao Zhang2017-12-042-12/+44
| | |\ \
| | | * | Convert boot, memtrack and power hal to use service name aware testing.Zhuoyao Zhang2017-12-042-12/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation: 1) Support running the test against each hal service instance for the registered hal. 2) Support testability checker to determine whether we should run the test on the taget device. 3) Help to determine the process we want to profile for coverage data if running on coverage build. Bug: 64203181 Test: make vts vts-tradefed run vts -m VtsHalBootV1_0Target vts-tradefed run vts -m VtsHalMemtrackV1_0Target vts-tradefed run vts -m VtsHalPowerV1_0Target vts-tradefed run vts -m VtsHalPowerV1_1Target Change-Id: Ie0bbd9ef9d9fbe11de5aee70fad9028fa0ae897c
| | * | | Remove subdirsSteven Moreland2017-11-281-9/+0
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
| * | | Remove subdirsSteven Moreland2017-11-281-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing whenever I see these in code reviews. Test: none Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
| * | | Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' fromXin Li2017-11-147-379/+3
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | oc-mr1-dev-plus-aosp into stage-aosp-master Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341 Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
| * | | Update makefiles for hidl_interface.Steven Moreland2017-11-102-324/+25
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 35570956 Test: manual Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
| * | | Update makefiles after AOSP push.Steven Moreland2017-11-012-84/+108
| | | | | | | | | | | | | | | | | | | | Test: none Change-Id: If3ce74f4d2250d33820cbd864ff56bba6f9e6b67
* | | | Remove subdirsSteven Moreland2017-11-281-8/+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-132-324/+25
| | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: manual Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812 Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
* | | Update for Soong-only makefiles.Steven Moreland2017-10-112-85/+30
| | | | | | | | | | | | | | | | | | Test: pass Bug: 33420795 Change-Id: Ibec6d1e38939b9e7566a96381439be2aac3bf8ca
* | | 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. am: c3e80fa01e am: 0fff75dee1Steven Moreland2017-10-112-141/+31
| |\| | | | | | | | | | | | | | | | am: 6c811964a1 Change-Id: I85ccbb4a15cd18938607f5bca4e065b9d7e0182b
| | * Update for Soong java makefiles.Steven Moreland2017-10-112-141/+31
| | |\ | | | | | | | | | | | | | | | | | | | | am: c3e80fa01e Change-Id: Ia8835f9c95bd98a96f5fd3aff11191e7d3726fb9
| | | * 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." am: 75d5cf515a am: f27cfa15d7Steven Moreland2017-10-051-19/+0
| |\| | | | | | | | | | | | | | | | | | | | | | am: 33dc30ce49 Change-Id: Ia35d20e0fc1df6f7c46b5581537d7ed387965899
| | * | Merge "Remove useless Android.mk files."Steven Moreland2017-10-051-19/+0
| | |\| | | | | | | | | | | | | | | | | | | | | am: 75d5cf515a Change-Id: I8c0918c4a787cc3f4c7c69f52737d3a0d9d64426
| | | * 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
| * | | | Merge "Update for hidl adapter module defaults." am: 988c977079 am: 861651985fSteven Moreland2017-10-041-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b53e6ad535 Change-Id: I23269fb7a9bdd352e670a80f390527d9eef31412
| | * | | Merge "Update for hidl adapter module defaults."Steven Moreland2017-10-041-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 988c977079 Change-Id: I289818be1b30397391847ba1c532d1014fdbed27
| | | * | Update for hidl adapter module defaults.Steven Moreland2017-10-041-0/+1
| | | |/ | | | | | | | | | | | | | | | | Test: pass Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf
* | | | Update makefiles for hidl-adapter (2/2).Steven Moreland2017-09-271-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 37518178 Test: none Change-Id: I77fe67964f89da8b66aeb8df6d424de0f8689f8d
* | | | Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3 am: ↵Steven Moreland2017-09-271-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71a193a425 am: 9fdd241905 Change-Id: I1c852fa6600fecc44d5afd1a65a5f51c43ecf71c
| * | | Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3Steven Moreland2017-09-261-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | am: 71a193a425 Change-Id: I45ae43f07323254212532acbf0f891d11143b05f
| | * | Merge "Fix typo in update makefiles."Steven Moreland2017-09-261-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | am: 9960148420 Change-Id: I949634e72f817f3a5411130e968acd8efd1d7725
| | | * 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. am: 26a0bb2762 am: 73949c1d7eSteven Moreland2017-09-261-0/+73
| |\| | | | | | | | | | | | | | | | | | | | | | am: b94d0c7290 Change-Id: If766cffbcc003cc0cc5eb98969b924aa918fff44
| | * | Update makefiles for hidl adapter.Steven Moreland2017-09-251-0/+73
| | |\| | | | | | | | | | | | | | | | | | | | | am: 26a0bb2762 Change-Id: I3a811f5cd49bd4e81e8fcd5c8e88922115812539
| | | * Update makefiles for hidl adapter.Steven Moreland2017-09-251-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 37518178 Test: manual Change-Id: I50e999907d3c64d2b039272b823971998da64d1b