summaryrefslogtreecommitdiffstats
path: root/services/usage
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2015-05-08 13:20:22 -0700
committerAmith Yamasani <yamasani@google.com>2015-05-08 13:20:22 -0700
commite5f330456bdf5e138485ee117929fc4337866132 (patch)
tree9c4b921692303f129febd3c56fcfbad9f95837ab /services/usage
parente678b41cdb56847c094260607ea39aea4abb808e (diff)
downloadframeworks_base-e5f330456bdf5e138485ee117929fc4337866132.zip
frameworks_base-e5f330456bdf5e138485ee117929fc4337866132.tar.gz
frameworks_base-e5f330456bdf5e138485ee117929fc4337866132.tar.bz2
Rename *AppIdle to *AppInactive per api-council
Change to setAppInactive and isAppInactive in a few places. Bug: 20823737 Change-Id: Ie57dbc0dd2842e771bb5fd9f69b8041aacaa005c
Diffstat (limited to 'services/usage')
-rw-r--r--services/usage/java/com/android/server/usage/UsageStatsService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsService.java b/services/usage/java/com/android/server/usage/UsageStatsService.java
index 117cbe4..48b127a 100644
--- a/services/usage/java/com/android/server/usage/UsageStatsService.java
+++ b/services/usage/java/com/android/server/usage/UsageStatsService.java
@@ -718,10 +718,10 @@ public class UsageStatsService extends SystemService implements
}
@Override
- public boolean isAppIdle(String packageName, int userId) {
+ public boolean isAppInactive(String packageName, int userId) {
try {
userId = ActivityManagerNative.getDefault().handleIncomingUser(Binder.getCallingPid(),
- Binder.getCallingUid(), userId, false, true, "isAppIdle", null);
+ Binder.getCallingUid(), userId, false, true, "isAppInactive", null);
} catch (RemoteException re) {
return false;
}
@@ -734,7 +734,7 @@ public class UsageStatsService extends SystemService implements
}
@Override
- public void setAppIdle(String packageName, boolean idle, int userId) {
+ public void setAppInactive(String packageName, boolean idle, int userId) {
final int callingUid = Binder.getCallingUid();
try {
userId = ActivityManagerNative.getDefault().handleIncomingUser(