diff options
| author | 2019-05-16 06:18:48 +0000 | |
|---|---|---|
| committer | 2019-05-16 06:18:48 +0000 | |
| commit | a324083f3da0d49a504e540e68bded4fcab2a511 (patch) | |
| tree | e0c56241265ced67feccfe93098e1f959d2c3b6c | |
| parent | f68b125ade9c3cf5f9e4ee6738697184a1503588 (diff) | |
| parent | d1e659be259bc1c8a113a7ec39fa76b9ae4dbbb9 (diff) | |
Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev
| -rw-r--r-- | core/java/android/app/usage/UsageStatsManager.java | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/core/java/android/app/usage/UsageStatsManager.java b/core/java/android/app/usage/UsageStatsManager.java index 7fa436084246..749a011153cd 100644 --- a/core/java/android/app/usage/UsageStatsManager.java +++ b/core/java/android/app/usage/UsageStatsManager.java @@ -281,20 +281,13 @@ public final class UsageStatsManager { /** * Gets application usage stats for the given time range, aggregated by the specified interval. - * <p>The returned list will contain a {@link UsageStats} object for each package that - * has data for an interval that is a subset of the time range given. To illustrate:</p> - * <pre> - * intervalType = INTERVAL_YEARLY - * beginTime = 2013 - * endTime = 2015 (exclusive) * - * Results: - * 2013 - com.example.alpha - * 2013 - com.example.beta - * 2014 - com.example.alpha - * 2014 - com.example.beta - * 2014 - com.example.charlie - * </pre> + * <p> + * The returned list will contain one or more {@link UsageStats} objects for each package, with + * usage data that covers at least the given time range. + * Note: The begin and end times of the time range may be expanded to the nearest whole interval + * period. + * </p> * * <p> The caller must have {@link android.Manifest.permission#PACKAGE_USAGE_STATS} </p> * |