summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wachenschwanz <mwachens@google.com> 2019-05-16 06:18:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-05-16 06:18:48 +0000
commita324083f3da0d49a504e540e68bded4fcab2a511 (patch)
treee0c56241265ced67feccfe93098e1f959d2c3b6c
parentf68b125ade9c3cf5f9e4ee6738697184a1503588 (diff)
parentd1e659be259bc1c8a113a7ec39fa76b9ae4dbbb9 (diff)
Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev
-rw-r--r--core/java/android/app/usage/UsageStatsManager.java19
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>
*