diff options
-rw-r--r-- | tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java b/tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java index a7931505453..a04548817fd 100644 --- a/tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java +++ b/tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java @@ -274,6 +274,13 @@ public class UsageStatsTest { } @Test + public void testGetAppStandbyBucket() throws Exception { + // App should be at least active, since it's running instrumentation tests + assertLessThanOrEqual(UsageStatsManager.STANDBY_BUCKET_ACTIVE, + mUsageStatsManager.getAppStandbyBucket()); + } + + @Test public void testQueryEventsForSelf() throws Exception { setAppOpsMode("ignore"); // To ensure permission is not required // Time drifts of 2s are expected inside usage stats |