Set AppStandbyController charging state on init

Test: manual (restart device and "adb shell dumpsys usagestats | grep
mCharging=")
Test: CtsHostsideNetworkTests
Fixes:80545083

Change-Id: I0592622b83525159eeca611b3cc1021347bc53ca
Merged-In: I0592622b83525159eeca611b3cc1021347bc53ca
(cherry-picked from 13b1e1774c)
(cherry picked from commit 4d5b4b03c8065fc6421456a6135f6d247d2d1dd5)
This commit is contained in:
Michael Wachenschwanz
2018-05-31 15:16:00 -07:00
committed by Po-Chien Hsueh
parent 421449a4a6
commit 2795cca1cf

View File

@@ -207,8 +207,8 @@ public class UsageStatsService extends SystemService implements
@Override
public void onBootPhase(int phase) {
mAppStandby.onBootPhase(phase);
if (phase == PHASE_SYSTEM_SERVICES_READY) {
mAppStandby.onBootPhase(phase);
// initialize mDpmInternal
getDpmInternal();