rename power_stats service to powerstats

Tests: adb shell incident -b > incident_report.proto
Tests: dumpsys powerstats
Tests: atest FrameworksServicesTests:PowerStatsServiceTest
Bug: 159813106
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: I22d41bece3db8cd62d07885f19ed0c07e9039e09
This commit is contained in:
Thierry Strudel
2021-03-11 14:47:51 -08:00
parent d3035fe485
commit 22fc755399
2 changed files with 4 additions and 4 deletions

View File

@@ -3869,7 +3869,7 @@ public abstract class Context {
* @see #getSystemService(String)
* @hide
*/
public static final String POWER_STATS_SERVICE = "power_stats";
public static final String POWER_STATS_SERVICE = "powerstats";
/**
* Use with {@link #getSystemService(String)} to retrieve a

View File

@@ -513,17 +513,17 @@ message IncidentProto {
optional com.android.server.powerstats.PowerStatsServiceMeterProto powerstats_meter = 3054 [
(section).type = SECTION_DUMPSYS,
(section).args = "power_stats --proto meter"
(section).args = "powerstats --proto meter"
];
optional com.android.server.powerstats.PowerStatsServiceModelProto powerstats_model = 3055 [
(section).type = SECTION_DUMPSYS,
(section).args = "power_stats --proto model"
(section).args = "powerstats --proto model"
];
optional com.android.server.powerstats.PowerStatsServiceResidencyProto powerstats_residency = 3056 [
(section).type = SECTION_DUMPSYS,
(section).args = "power_stats --proto residency"
(section).args = "powerstats --proto residency"
];
// Dumps in text format (on userdebug and eng builds only): 4000 ~ 4999