diff options
| author | Amith Yamasani <yamasani@google.com> | 2015-05-08 13:20:22 -0700 |
|---|---|---|
| committer | Amith Yamasani <yamasani@google.com> | 2015-05-08 13:20:22 -0700 |
| commit | e5f330456bdf5e138485ee117929fc4337866132 (patch) | |
| tree | 9c4b921692303f129febd3c56fcfbad9f95837ab /core/java/android | |
| parent | e678b41cdb56847c094260607ea39aea4abb808e (diff) | |
Rename *AppIdle to *AppInactive per api-council
Change to setAppInactive and isAppInactive in a few places.
Bug: 20823737
Change-Id: Ie57dbc0dd2842e771bb5fd9f69b8041aacaa005c
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/usage/IUsageStatsManager.aidl | 4 | ||||
| -rw-r--r-- | core/java/android/app/usage/UsageStatsManager.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/core/java/android/app/usage/IUsageStatsManager.aidl b/core/java/android/app/usage/IUsageStatsManager.aidl index 23659e389afc..254408a830fc 100644 --- a/core/java/android/app/usage/IUsageStatsManager.aidl +++ b/core/java/android/app/usage/IUsageStatsManager.aidl @@ -30,6 +30,6 @@ interface IUsageStatsManager { ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, String callingPackage); UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); - void setAppIdle(String packageName, boolean idle, int userId); - boolean isAppIdle(String packageName, int userId); + void setAppInactive(String packageName, boolean inactive, int userId); + boolean isAppInactive(String packageName, int userId); } diff --git a/core/java/android/app/usage/UsageStatsManager.java b/core/java/android/app/usage/UsageStatsManager.java index 8a01d663055c..c74bbddaaadf 100644 --- a/core/java/android/app/usage/UsageStatsManager.java +++ b/core/java/android/app/usage/UsageStatsManager.java @@ -220,15 +220,15 @@ public final class UsageStatsManager { } /** - * Returns whether the specified app is currently considered idle. This will be true if the + * Returns whether the specified app is currently considered inactive. This will be true if the * app hasn't been used directly or indirectly for a period of time defined by the system. This * could be of the order of several hours or days. * @param packageName The package name of the app to query - * @return whether the app is currently considered idle + * @return whether the app is currently considered inactive */ - public boolean isAppIdle(String packageName) { + public boolean isAppInactive(String packageName) { try { - return mService.isAppIdle(packageName, UserHandle.myUserId()); + return mService.isAppInactive(packageName, UserHandle.myUserId()); } catch (RemoteException e) { // fall through and return default } |
