summaryrefslogtreecommitdiffstats
path: root/services/usage
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-06-12 18:11:41 -0700
committerDianne Hackborn <hackbod@google.com>2015-06-15 11:53:59 -0700
commit1958e5e7870579337f1d1d3e6c6fae096ba3abb9 (patch)
treefad208704fc337915aff86df8021895eb1910701 /services/usage
parentf63655e49fcccd922e8d5f61c67f58bd4a361211 (diff)
downloadframeworks_base-1958e5e7870579337f1d1d3e6c6fae096ba3abb9.zip
frameworks_base-1958e5e7870579337f1d1d3e6c6fae096ba3abb9.tar.gz
frameworks_base-1958e5e7870579337f1d1d3e6c6fae096ba3abb9.tar.bz2
Fix issue #21813831: Need API for asking to be added to power whitelist
Add the API. Clean up a few related things. Change-Id: I190adad1812f36f6095b98a1001fedb94874e8b5
Diffstat (limited to 'services/usage')
-rw-r--r--services/usage/java/com/android/server/usage/UsageStatsService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsService.java b/services/usage/java/com/android/server/usage/UsageStatsService.java
index 837570b..75b8278 100644
--- a/services/usage/java/com/android/server/usage/UsageStatsService.java
+++ b/services/usage/java/com/android/server/usage/UsageStatsService.java
@@ -196,7 +196,7 @@ public class UsageStatsService extends SystemService implements
mAppWidgetManager = getContext().getSystemService(AppWidgetManager.class);
mDeviceIdleController = IDeviceIdleController.Stub.asInterface(
- ServiceManager.getService(DeviceIdleController.SERVICE_NAME));
+ ServiceManager.getService(Context.DEVICE_IDLE_CONTROLLER));
mBatteryStats = IBatteryStats.Stub.asInterface(
ServiceManager.getService(BatteryStats.SERVICE_NAME));
mDisplayManager = (DisplayManager) getContext().getSystemService(