From 22fc755399a07ccd6a9c3bd40ba8fc8d1894eb7a Mon Sep 17 00:00:00 2001 From: Thierry Strudel Date: Thu, 11 Mar 2021 14:47:51 -0800 Subject: [PATCH] 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 Change-Id: I22d41bece3db8cd62d07885f19ed0c07e9039e09 --- core/java/android/content/Context.java | 2 +- core/proto/android/os/incident.proto | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index df5c58c2634f0..ee612598abbc7 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -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 diff --git a/core/proto/android/os/incident.proto b/core/proto/android/os/incident.proto index 2b665c0fe9fc8..a5fbae9878ac8 100644 --- a/core/proto/android/os/incident.proto +++ b/core/proto/android/os/incident.proto @@ -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