Commit graph

259 commits

Author SHA1 Message Date
Darren Hsu
c4fad13c9b powerstats: bump version of PowerStats HAL to V2
Bug: 264669398
Bug: 258321000
Bug: 266943256
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I009c09e4cd7e27250266cc7b2c1596df6fee95fe
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-01-31 14:16:23 +08:00
Darren Hsu
c72f756692 powerstats: add new EnergyConsumerType for camera
Bug: 258321000
Bug: 261549337
Test: build
Change-Id: I0c6664a01acac41c0b0c71ee83b2e3b2b794c7be
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-08 16:30:12 +08:00
Kelly Rossmoyer
6b489885e5 power/stats: update OWNERS
Add people who should be listed (including the primary owner) and
remove folks who are no longer involved.

BUG: 218899982
Change-Id: I0a479e528bd436668b8782ebc123e4fdb8b4e50b
2022-11-08 00:18:48 +00:00
Peiyong Lin
b1691e85d6 Merge "Align default implementation with latest VSR." 2022-10-20 18:37:10 +00:00
Peiyong Lin
8139d0be3e Add TEST_MAPPING
Add VtsHalPowerTargetTest into presubmit tests.

Bug: b/253516147
Test: atest VtsHalPowerTargetTest
Change-Id: Ie1fa80a5bdf9baa084dbfa4603414eb97afb15a6
Merged-In: Ie1fa80a5bdf9baa084dbfa4603414eb97afb15a6
2022-10-20 00:17:54 +00:00
Peiyong Lin
3c76f8cb2b Align default implementation with latest VSR.
VSR requires to support power HAL V2 and beyond, this patch changes the
default implementation to reflect that.

Bug: b/253516147
Test: atest VtsHalPowerTargetTest
Change-Id: I56f6f847f4c47775db6350b8a3fcd7ee9c9cdf17
Merged-In: I56f6f847f4c47775db6350b8a3fcd7ee9c9cdf17
2022-10-19 16:54:44 +00:00
Peiyong Lin
10015aff66 Merge "Revert "Add TEST_MAPPING"" 2022-10-18 00:03:14 +00:00
Peiyong Lin
549e535936 Revert "Add TEST_MAPPING"
This reverts commit 9d6e818c6a.

Reason for revert: The previous patch broke TestMappingsValidation.testTestSuiteSetting.

Bug: b/254131591
Change-Id: Ie92e423a3706f6898d4a940e3e3ecef08e208fe9
Test: atest TestMappingsValidation
2022-10-18 00:00:55 +00:00
Peiyong Lin
ad41e9d095 Merge "Align power AIDL VTS with VSR." 2022-10-17 22:36:45 +00:00
Peiyong Lin
9d6e818c6a Add TEST_MAPPING
Add VtsHalPowerTargetTest into presubmit tests.

Bug: b/253516147
Test: atest VtsHalPowerTargetTest
Change-Id: Ic477621367d1b3846247aadf495827792473d639
2022-10-17 20:36:43 +00:00
Peiyong Lin
3e0eb72345 Align power AIDL VTS with VSR.
Per [VSR-3.2-013] DEVICEs launching with Android 13 MUST meet the
requirements for the target-level=7 compatibility_matrix file. Update
the VTS to reflect that.

Bug: b/253516147
Test: atest VtsHalPowerTargetTest
Change-Id: Ie6178ed2caea6a70b728dfcded9fa900ee099f2f
2022-10-17 20:32:24 +00:00
Peiyong Lin
54f0b5287e Add OWNERS file for power AIDL.
Bug: N/A
Test: N/A
Change-Id: Ie4d19fe5586e765b52b0b1bc1f0036f47f115286
2022-09-16 20:47:20 +00:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
jimblackler
aff537b777 Do not enforce GAME_LOADING in VTS
Test: N/A
Bug: 232500898
Change-Id: I3800d721e978f44e3477b60451a83ff8c08120aa
2022-05-21 10:43:24 +00:00
Jiyong Park
9267a4b495 Finalize V3 of android.hardware.power
Bug: 230660133
Test: m nothing with https://googleplex-android-review.git.corp.google.com/q/topic:Tiramisu-SDK-Finalization-rel
Change-Id: Ib7f774f7679945b6a4562f53d4724c73c5193d28
2022-04-28 08:35:40 +09:00
Darren Hsu
e05cbc6325 Exclude timed power entities due to timeout mechanism
The AoC power stats reporting might not be present when the
AoC latency exceeds the allowed time after the timeout mechanism
introduced in AoC state residency data provider.

Bug: 229696611
Test: run vts -m VtsHalPowerStatsTargetTest
Change-Id: I7c59ab50065961ed338314d6c8d22d41ece43e5f
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-04-21 03:51:18 +00:00
jimblackler
425df50402 VTS tests for Game Loading Time improvement by boosting CPU via ADPF
Bug: 201769701
Test: atest VtsHalPowerTargetTest
Change-Id: Ic6e4542001563391b232dca15d3ae74dbee4c665
2022-01-26 09:49:20 +00:00
Wei Wang
ae38634050 Power: add a generic game mode
Test: Boot
Bug: 201769701
Bug: 214405108
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4da5821bb0ed135d467146babe03863145e42435
2022-01-13 16:20:32 -08:00
Jim Blackler
c3df4b4252 Merge "Game Loading Time improvement by boosting CPU via ADPF" 2021-12-15 16:07:35 +00:00
Steven Moreland
ffb03995e6 CHECK -> CHECK_EQ copy pasta
Hey did I start this? We can take a little bit better errors. :)

Bug: N/A
Test: N/A
Change-Id: I0e96f7f49dae9968904333da9b8269694058c11c
2021-12-14 01:45:47 +00:00
Jim Blackler
7e54e604c8 Game Loading Time improvement by boosting CPU via ADPF
Bug: 201769701
Test: atest android.gamemanager.cts.GameManagerTest
Change-Id: Ie4f6855214d07fd73d730f7e261484c0114f0395
2021-12-03 14:55:11 +00:00
Treehugger Robot
e1619a8923 Merge "Creates a vendor APEX for the power and power.stats AIDL HALs." 2021-11-04 21:59:41 +00:00
Treehugger Robot
32250df35e Merge "Backfill owner information for VtsHalPower." 2021-10-21 01:59:02 +00:00
Daniel Norman
0f956a6c18 Creates a vendor APEX for the power and power.stats AIDL HALs.
Bug: 203587646
Bug: 203700066
Test: Included in aosp_cf_x86_64_phone
Test: atest VtsHalPowerTargetTest
Test: atest VtsHalPowerStatsTargetTest
Change-Id: I5c2cb9136f2c48c4f3e70aa02d26d1ae4ab86559
2021-10-20 15:42:53 -07:00
Yiming Pan
6087dc050c Backfill owner information for VtsHalPower.
Owner information is backfilled for the following modules:
VtsHalPowerV1_1TargetTest
VtsHalPowerV1_2TargetTest
VtsHalPowerV1_3TargetTest

Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Iacce57160c61adb151ca93c6e1fe2f3402b3a680
2021-10-06 16:27:18 -07:00
Yiming Pan
3293649fe4 Merge "Backfill owner information for VTS module VtsHalPowerV1_0TargetTest." am: 3ff10e14a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1813767

Change-Id: I524871c346894db3a552b9d40ffdff13303405a6
2021-09-22 17:52:17 +00:00
Yiming Pan
3ff10e14a7 Merge "Backfill owner information for VTS module VtsHalPowerV1_0TargetTest." 2021-09-22 17:36:36 +00:00
Treehugger Robot
89531719e3 Merge "Add OWNERS for VTS module VtsHalPowerStatsV1_0TargetTest" am: 7a76cd7f45
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1783310

Change-Id: Idccf4cafd47a71a5acccd178167a1a9100ad6dfd
2021-09-04 05:18:54 +00:00
Treehugger Robot
7a76cd7f45 Merge "Add OWNERS for VTS module VtsHalPowerStatsV1_0TargetTest" 2021-09-04 05:14:13 +00:00
Yiming Pan
90b479bb4c Backfill owner information for VTS module VtsHalPowerV1_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I38023df845aae6e416508751f24dd7c8b8ec7faa
2021-08-30 12:53:11 -07:00
Jiyong Park
e0f2d29b7f Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Merged-In: Ib58c9f1cb80d083a3c62d03415610be855b80f03
Change-Id: Ied92f2784ed7d6a73693c640042c8a66fbbcfa17
2021-08-17 14:48:50 +00:00
Jiyong Park
d55d28a1d0 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Change-Id: Ib58c9f1cb80d083a3c62d03415610be855b80f03
(cherry picked from commit c426c6dbdc)
2021-08-09 11:20:04 +09:00
Yiming Pan
2fa18d3ff9 Add OWNERS for VTS module VtsHalPowerStatsV1_0TargetTest
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Ib97ced9978994e4c657de3a6ea1058dcccba5738
2021-07-30 10:59:35 -07:00
Jiyong Park
48131c0ace Merge "Remove ndk_platform backend. Use the ndk backend." am: 2346a4c6b9 am: 4ef9aa49dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1778908

Change-Id: Ib35b7b0ddc0bebd0714d290b1ac2fab8d5a1893e
2021-07-28 12:39:05 +00:00
Jiyong Park
27f77fefd7 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same 'ndk' backend.

Bug: 161456198
Test: m
Change-Id: Ibe8beeaf0d1b33968fb782f1f70c17ae9e9bf871
2021-07-27 14:44:47 +09:00
Wei Wang
9df909dba1 Power: allow vts to pass with earlier version of server
Bug: 189976527
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I3e1ce05e62e9581c9a66f65e82e1599d77de7a85
2021-06-12 18:27:59 -07:00
Jiyong Park
72b6359859 Freeze AIDL APIs for SC
Ignore-AOSP-First: part of SC finalization

Bug: 188713899
Test: m
Change-Id: Iee18cd05954dc8ea08cc4f985499a70977d1af4f
2021-05-25 10:13:26 +09:00
Benjamin Schwartz
6ad8f4ea6a Merge "power/stats: Correct language surrounding timestamps" am: 75d7e5de7c am: f2d5702776 am: 1aaf18b6f2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1703725

Change-Id: Id55555fa6d71fdd8fc177d156c479090252e47b0
2021-05-12 00:28:31 +00:00
Benjamin Schwartz
1a16edd42b power/stats: Correct language surrounding timestamps
Bug: 187408125
Test: build
Change-Id: Ib3bdb7a16f4e9a5acec2e2afad41bbd6c036a27a
2021-05-11 10:22:13 -07:00
Wei Wang
f609b99111 Merge "power: refine comment for pause/resume session" into sc-dev 2021-04-08 21:18:13 +00:00
Benjamin Schwartz
eca2606dfd Merge "power/stats: Split channel name validation test" am: 43374307a3 am: 8ac06fbf1f am: 87905ec84c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1668785

Change-Id: I93e7d1f42fc6503c85f97b06013b13081253660e
2021-04-08 05:34:33 +00:00
Treehugger Robot
01db945276 Merge "power/stats: Get scopedAStatus description in vts test" am: 471017034f am: 5c3f73cdaf am: f33e183381
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1668405

Change-Id: Id7b4830daf3063c8b5ea505425bfc0c101cf14c7
2021-04-08 02:21:00 +00:00
Benjamin Schwartz
1f6d550027 power/stats: Split channel name validation test
Bug: 184722506
Test: atest VtsHalPowerStatsTargetTest
Change-Id: I4354c2c750073fcf1f950d84ec7d910fc04e8684
2021-04-07 16:03:37 -07:00
Benjamin Schwartz
e2404435a6 power/stats: Get scopedAStatus description in vts test
Bug: 184722506
Test: atest VtsHalPowerStatsTargetTest
Change-Id: I9e1a4f1965e901888963db74f68263d6a74b8204
2021-04-07 15:13:01 -07:00
Wei Wang
12495d2ddd power: refine comment for pause/resume session
Bug: 163794808
Test: Build
Change-Id: I37d15e0b0ae6646b89b63efde3731368181a01d4
2021-04-06 19:45:51 -07:00
Wei Wang
7a7462397a power: bump default example implementation to version 2
Bug: 177492680
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: If423a7d0fb800a9528336245c7dbf42689080f0b
2021-04-06 02:57:36 +00:00
Wei Wang
a98f551aad Merge "ADPF: IPower: add aidl interfaces" into sc-dev 2021-04-05 20:50:41 +00:00
Wei Wang
050034128f ADPF: IPower: add aidl interfaces
Test: Manual test, run bouncy ball
Test: atest VtsHalPowerTargetTest
Bug: 163794808
Change-Id: I295cf03b33ae8cb68826641c08a877a2a3e3a461
Signed-off-by: Wei Wang <wvw@google.com>
2021-04-05 22:19:03 +08:00
Benjamin Schwartz
3bad122962 power/stats: Index the state residency data providers
Data providers that provided data for multiple entities were being added
to the data structure as nullptr due to move semantics. Now they will
only be added once (ensuring no more nullptr entries) and an index will
map each power entity id to its corresponding data provider.

Bug: 184290936
Test: Presubmit
Change-Id: I858269beb36ba5f87bb14a228079f3abd6c2332f
2021-04-01 18:26:38 -07:00
Treehugger Robot
2175ee289a Merge "power/stats: Add host_supported" 2021-03-30 01:33:56 +00:00