Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c72691ec authored by Michael Wachenschwanz's avatar Michael Wachenschwanz Committed by android-build-merger
Browse files

Merge "Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev...

Merge "Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev am: a324083f am: 92b6c298" into qt-r1-dev-plus-aosp
am: 75843e23

Change-Id: I5775e87d77b24f37173a62e5d2078c24c4bf6f6b
parents 59869a01 75843e23
Loading
Loading
Loading
Loading
+6 −13
Original line number Original line Diff line number Diff line
@@ -281,20 +281,13 @@ public final class UsageStatsManager {


    /**
    /**
     * Gets application usage stats for the given time range, aggregated by the specified interval.
     * 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:
     * <p>
     * 2013 - com.example.alpha
     * The returned list will contain one or more {@link UsageStats} objects for each package, with
     * 2013 - com.example.beta
     * usage data that covers at least the given time range.
     * 2014 - com.example.alpha
     * Note: The begin and end times of the time range may be expanded to the nearest whole interval
     * 2014 - com.example.beta
     * period.
     * 2014 - com.example.charlie
     * </p>
     * </pre>
     *
     *
     * <p> The caller must have {@link android.Manifest.permission#PACKAGE_USAGE_STATS} </p>
     * <p> The caller must have {@link android.Manifest.permission#PACKAGE_USAGE_STATS} </p>
     *
     *