summaryrefslogtreecommitdiff
path: root/services/java/com
diff options
context:
space:
mode:
authorMat Bevilacqua <matbev@google.com>2020-07-30 17:26:45 -0700
committerMat Bevilacqua <matbev@google.com>2020-09-14 20:30:49 +0000
commit81601212202f87f8d96349d431419d9e8b7bd2d4 (patch)
tree20afd4d1bf1af2332cb8a820e274bb4cf94e1d74 /services/java/com
parent969e1943257c36c0678f70edfa47d05e1182d96a (diff)
Initial commit of PowerStatsService
Bug: 164465661 Bug: 164466995 Bug: 167280723 Test: Verified PowerStatsService is functional on targets that have ODPM data. Change-Id: Ic555b380c566ea26bc2214374f142c5448ea2ee7
Diffstat (limited to 'services/java/com')
-rw-r--r--services/java/com/android/server/SystemServer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 97ae505b4fcf..ddd23778884a 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -150,6 +150,7 @@ import com.android.server.policy.role.LegacyRoleResolutionPolicy;
import com.android.server.power.PowerManagerService;
import com.android.server.power.ShutdownThread;
import com.android.server.power.ThermalManagerService;
+import com.android.server.powerstats.PowerStatsService;
import com.android.server.profcollect.ProfcollectForwardingService;
import com.android.server.recoverysystem.RecoverySystemService;
import com.android.server.restrictions.RestrictionsManagerService;
@@ -761,6 +762,11 @@ public final class SystemServer {
mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);
t.traceEnd();
+ t.traceBegin("StartPowerStatsService");
+ // Tracks rail data to be used for power statistics.
+ mSystemServiceManager.startService(PowerStatsService.class);
+ t.traceEnd();
+
// Activity manager runs the show.
t.traceBegin("StartActivityManager");
// TODO: Might need to move after migration to WM.