Home
last modified time | relevance | path

Searched refs:getAppStandbyBucket (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java107 private int getAppStandbyBucket(String packageName) throws Exception { in getAppStandbyBucket() method in AppIdleHostTest
122 assertEquals(SB_ACTIVE, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBucket()
125 assertEquals(20, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBucket()
135 assertEquals(SB_FREQUENT, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBuckets()
136 assertEquals(SB_WORKING_SET, getAppStandbyBucket(TEST_APP_PACKAGE2)); in testSetAppStandbyBuckets()
143 assertNotEquals(40, getAppStandbyBucket("com.android.shell")); in testCantSetOwnStandbyBucket()
150 assertEquals(SB_ACTIVE, getAppStandbyBucket(TEST_APP_PACKAGE)); in testOutOfBoundsStandbyBucket()
153 assertEquals(SB_ACTIVE, getAppStandbyBucket(TEST_APP_PACKAGE)); in testOutOfBoundsStandbyBucket()
156 assertEquals(SB_ACTIVE, getAppStandbyBucket(TEST_APP_PACKAGE)); in testOutOfBoundsStandbyBucket()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppStandbyUtils.java73 public static int getAppStandbyBucket(String packageName) { in getAppStandbyBucket() method in AppStandbyUtils
76 () -> sUsageStatsManager.getAppStandbyBucket(packageName)); in getAppStandbyBucket()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/battery/
DIgnoreBatteryOptimizationsTestActivity.java69 && mUsageStatsManager.getAppStandbyBucket() in isExempted()
77 && mUsageStatsManager.getAppStandbyBucket() in isFullyNotExempted()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java731 found |= event.getAppStandbyBucket() == STANDBY_BUCKET_RARE; in testStandbyBucketChangeLog()
761 mUsageStatsManager.getAppStandbyBucket()); in testGetAppStandbyBucket()
784 if (event.getAppStandbyBucket() == STANDBY_BUCKET_RARE) { in testQueryEventsForSelf()
787 else if (event.getAppStandbyBucket() == UsageStatsManager in testQueryEventsForSelf()
1058 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(pkg), in testNotificationSeen_verifyBucket()
1062 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(TEST_APP_PKG), in testNotificationSeen_verifyBucket()
1064 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(TEST_APP_API_32_PKG), in testNotificationSeen_verifyBucket()
1073 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(TEST_APP_PKG), in testNotificationSeen_verifyBucket()
1076 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(TEST_APP_API_32_PKG), in testNotificationSeen_verifyBucket()
1134 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(pkg), in testNotificationSeen_verifyBucket_retainPreTImpact()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java1169 public int getAppStandbyBucket() { in getAppStandbyBucket() method in Package
1170 return getAppStandbyBucket(TestApis.users().instrumented()); in getAppStandbyBucket()
1177 public int getAppStandbyBucket(UserReference user) { in getAppStandbyBucket() method in Package
1182 return usageStatsMgr.getAppStandbyBucket(mPackageName); in getAppStandbyBucket()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DApplicationExemptionsTest.java256 () -> sTestApp.pkg().getAppStandbyBucket()) in setApplicationExemptions_powerRestrictionExemption_exemptedAppStandbyBucket()
DUserControlDisabledPackagesTest.java246 Poll.forValue(() -> testApp.pkg().getAppStandbyBucket()) in setUserControlDisabledPackages_exemptFromStandbyBuckets()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt3208 …Permission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getAppStandbyBucket(String);
Dcurrent.txt9459 method public int getAppStandbyBucket();
9522 method public int getAppStandbyBucket();