Home
last modified time | relevance | path

Searched refs:AppStandbyUtils (Results 1 – 8 of 8) sorted by relevance

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DAppStandbyDeviceInfo.java18 import com.android.compatibility.common.util.AppStandbyUtils;
30 store.addResult(KEY_APP_STANDBY_ENABLED, AppStandbyUtils.isAppStandbyEnabled()); in collectDeviceInfo()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java48 import com.android.compatibility.common.util.AppStandbyUtils;
127 sOrigAppStandbyEnabled = AppStandbyUtils.isAppStandbyEnabledAtRuntime(); in setUpTests()
129 AppStandbyUtils.setAppStandbyEnabledAtRuntime(true); in setUpTests()
152 assumeTrue("App Standby not enabled on device", AppStandbyUtils.isAppStandbyEnabled()); in setUp()
267 AppStandbyUtils.setAppStandbyEnabledAtRuntime(sOrigAppStandbyEnabled); in tearDownTests()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppStandbyUtils.java26 public class AppStandbyUtils { class
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java42 import com.android.compatibility.common.util.AppStandbyUtils;
350 if (!AppStandbyUtils.isAppStandbyEnabled()) { in testExpeditedJobExecutes_IdleApp()
486 if (!AppStandbyUtils.isAppStandbyEnabled()) { in testExpeditedJobBypassesSimultaneousFirewalls_noDataSaver()
906 if (!AppStandbyUtils.isAppStandbyEnabled()) { in testExpeditedJobDoesNotBypassSimultaneousFirewalls_withDataSaver()
DTestAppInterface.java61 import com.android.compatibility.common.util.AppStandbyUtils;
109 if (AppStandbyUtils.isAppStandbyEnabled()) { in TestAppInterface()
DJobThrottlingTest.java54 import com.android.compatibility.common.util.AppStandbyUtils;
140 mAppStandbyEnabled = AppStandbyUtils.isAppStandbyEnabled(); in setUp()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java103 import com.android.compatibility.common.util.AppStandbyUtils;
252 assumeTrue("App Standby not enabled on device", AppStandbyUtils.isAppStandbyEnabled()); in setUp()
400 assertFalse(AppStandbyUtils.isAppStandbyEnabled()); in testTogglingViaSettings()
405 assertFalse(AppStandbyUtils.isAppStandbyEnabled()); in testTogglingViaSettings()
409 assertTrue(AppStandbyUtils.isAppStandbyEnabled()); in testTogglingViaSettings()
740 final boolean origValue = AppStandbyUtils.isAppStandbyEnabledAtRuntime(); in testGetAppStandbyBuckets()
741 AppStandbyUtils.setAppStandbyEnabledAtRuntime(true); in testGetAppStandbyBuckets()
744 AppStandbyUtils.isAppStandbyEnabled()); in testGetAppStandbyBuckets()
753 AppStandbyUtils.setAppStandbyEnabledAtRuntime(origValue); in testGetAppStandbyBuckets()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java122 import com.android.compatibility.common.util.AppStandbyUtils;
228 mAppStandbyEnabled = AppStandbyUtils.isAppStandbyEnabled(); in setUp()