Home
last modified time | relevance | path

Searched refs:AmUtils (Results 1 – 25 of 29) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21128/test-app/src/android/security/cts/CVE_2023_21128_test/
DDeviceTest.java35 import com.android.compatibility.common.util.AmUtils;
68 AmUtils.setStandbyBucket(helperAppPackage, STANDBY_BUCKET_ACTIVE); in testCVE_2023_21128()
69 final int firstStandbyBucketValue = AmUtils.getStandbyBucket(helperAppPackage); in testCVE_2023_21128()
70 AmUtils.setStandbyBucket(helperAppPackage, STANDBY_BUCKET_NEVER); in testCVE_2023_21128()
71 final int secondStandbyBucketValue = AmUtils.getStandbyBucket(helperAppPackage); in testCVE_2023_21128()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastFreezerTest.java37 import com.android.compatibility.common.util.AmUtils;
90 AmUtils.waitForBroadcastBarrier(); in testBroadcastOptions_appFreezingDelayed()
107 AmUtils.waitForBroadcastBarrier(); in testBroadcastOptions_appFreezingDelayed()
160 AmUtils.waitForBroadcastBarrier(); in testBroadcastDelivery_syncTxnWhileFrozen()
188 AmUtils.waitForBroadcastBarrier(); in testBroadcastDelivery_pendingFreezeCancelled()
203 AmUtils.waitForBroadcastBarrier(); in testBroadcastDelivery_pendingFreezeCancelled()
DBroadcastDeferralTest.java32 import com.android.compatibility.common.util.AmUtils;
91 AmUtils.waitForBroadcastBarrier(); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive()
150 AmUtils.waitForBroadcastBarrier(); in testFgBroadcastDeliveryToFrozenApp()
DBaseBroadcastTest.java41 import com.android.compatibility.common.util.AmUtils;
90 AmUtils.waitForBroadcastBarrier(); in setUp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java133 AmUtils.waitForBroadcastBarrier(); in enableBatterySaver()
140 AmUtils.waitForBroadcastBarrier(); in enableBatterySaver()
148 AmUtils.waitForBroadcastBarrier(); in enableBatterySaver()
173 AmUtils.waitForBroadcastBarrier(); in turnOnScreen()
DAmUtils.java18 public class AmUtils { class
25 private AmUtils() { in AmUtils() method in AmUtils
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DBaseCarrierApiTest.java30 import com.android.compatibility.common.util.AmUtils;
97 AmUtils.waitForBroadcastBarrier(); in ensurePreconditionsMet()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java53 import com.android.compatibility.common.util.AmUtils;
104 AmUtils.setStandbyBucket(APP1_PACKAGE, UsageStatsManager.STANDBY_BUCKET_ACTIVE); in setUp()
156 AmUtils.waitForBroadcastIdle(); in removeAllAccounts()
222 AmUtils.setStandbyBucket(APP1_PACKAGE, UsageStatsManager.STANDBY_BUCKET_ACTIVE); in testSoftErrorRetriesActiveApp()
257 AmUtils.setStandbyBucket(APP1_PACKAGE, UsageStatsManager.STANDBY_BUCKET_RARE); in testExpeditedJobSync()
287 AmUtils.setStandbyBucket(APP1_PACKAGE, UsageStatsManager.STANDBY_BUCKET_RARE); in testExpeditedJobSync_InDoze()
308 AmUtils.setStandbyBucket(APP1_PACKAGE, STANDBY_BUCKET_NEVER); in testInitialSyncInNeverBucket()
317 AmUtils.getStandbyBucket(APP1_PACKAGE) in testInitialSyncInNeverBucket()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java34 import com.android.compatibility.common.util.AmUtils;
142 AmUtils.waitForBroadcastIdle(); in checkActionChargingDeferred()
154 AmUtils.waitForBroadcastIdle(); in checkActionChargingDeferred()
DBatterySaverBgServiceTest.java21 import static com.android.compatibility.common.util.AmUtils.runKill;
22 import static com.android.compatibility.common.util.AmUtils.runMakeUidIdle;
DBatterySaverAlarmTest.java21 import static com.android.compatibility.common.util.AmUtils.runKill;
22 import static com.android.compatibility.common.util.AmUtils.runMakeUidIdle;
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/
DBroadcastsTest.java32 import com.android.compatibility.common.util.AmUtils;
108 AmUtils.waitForBroadcastIdle(); in testNonSupportedBroadcastsNotDelivered()
/cts/tests/tests/media/common/src/android/media/cts/
DUtils.java32 import com.android.compatibility.common.util.AmUtils;
126 AmUtils.waitForBroadcastBarrier(); in toggleNotificationPolicyAccess()
/cts/tests/app/src/android/app/cts/fgs/bootcompleted/
DBootCompletedFgsStartTest.java53 import com.android.compatibility.common.util.AmUtils;
115 AmUtils.waitForBroadcastBarrier(); in setUp()
/cts/tests/app/src/android/app/cts/
DForceStopTest.java65 import com.android.compatibility.common.util.AmUtils;
107 AmUtils.waitForBroadcastBarrier(); in setUp()
318 AmUtils.waitForBroadcastBarrier(); in testBootCompletedBroadcasts_broadcast()
577 AmUtils.waitForBroadcastBarrier(); in waitForActivity()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java65 import com.android.compatibility.common.util.AmUtils;
367 AmUtils.waitForBroadcastBarrier(); in suspendPackage()
376 AmUtils.waitForBroadcastBarrier(); in toggleNotificationPolicyAccess()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTestsBase.java56 import com.android.compatibility.common.util.AmUtils;
134 AmUtils.waitForBroadcastBarrier(); in sendCommand()
DAppEnumerationTests.java191 import com.android.compatibility.common.util.AmUtils;
397 AmUtils.waitForBroadcastBarrier(); in startActivityWithUriGrant_cannotSeeProviderAfterUpdated()
423 AmUtils.waitForBroadcastBarrier(); in startActivityWithPersistableUriGrant_canSeeProviderAfterUpdated()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java47 import com.android.compatibility.common.util.AmUtils;
294 AmUtils.waitForBroadcastBarrier(); in toggleNotificationPolicyAccess()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/pm/
DPackageManagerHelperTest.java50 import com.android.compatibility.common.util.AmUtils;
308 AmUtils.waitForBroadcastBarrier(); in waitForActivity()
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java36 import com.android.compatibility.common.util.AmUtils;
122 AmUtils.waitForBroadcastIdle(); in setUp()
/cts/tests/backup/src/android/backup/cts/
DAppLocalesBackupTest.java44 import com.android.compatibility.common.util.AmUtils;
182 AmUtils.waitForBroadcastIdle(); in testBackupRestore_appInstalledAfterRestore_doesLazyRestore()
/cts/tests/app/AppStartTest/src/android/app/cts/
DActivityManagerAppStartInfoTest.java44 import com.android.compatibility.common.util.AmUtils;
568 AmUtils.waitForBroadcastBarrier(); in waitForActivity()
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DLocaleManagerTests.java65 import com.android.compatibility.common.util.AmUtils;
147 AmUtils.waitForBroadcastIdle(); in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityLifecycleTests.java90 import com.android.compatibility.common.util.AmUtils;
751 AmUtils.runKill(targetActivity.getPackageName(), true /* wait */); in testRestoreFromKill()

12