/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerFgsDelegateTest.java | 136 private void prepareProcess(WatchUidRunner uidWatcher) throws Exception { in prepareProcess() argument 145 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in prepareProcess() 152 WatchUidRunner uidWatcher = createUiWatcher(); in testFgsDelegate() local 156 prepareProcess(uidWatcher); in testFgsDelegate() 160 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegate() 168 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in testFgsDelegate() 176 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegate() 184 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in testFgsDelegate() 192 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testFgsDelegate() 194 uidWatcher.finish(); in testFgsDelegate() [all …]
|
D | BadProviderTest.java | 57 WatchUidRunner uidWatcher = null; in testExitOnCreate() local 65 uidWatcher = new WatchUidRunner(InstrumentationRegistry.getInstrumentation(), in testExitOnCreate() 72 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate() 73 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate() 74 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate() 76 uidWatcher.finish(); in testExitOnCreate() 80 uidWatcher = new WatchUidRunner(InstrumentationRegistry.getInstrumentation(), in testExitOnCreate() 84 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate() 91 if (uidWatcher != null) { in testExitOnCreate() 92 uidWatcher.finish(); in testExitOnCreate()
|
D | ActivityManagerProcessStateTest.java | 377 WatchUidRunner uidWatcher = new WatchUidRunner(mInstrumentation, appInfo.uid, in testUidImportanceListener() local 403 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener() 413 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener() 414 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener() 415 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener() 425 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener() 426 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener() 438 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testUidImportanceListener() 439 uidWatcher.expect(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener() 452 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener() [all …]
|
D | ActivityManagerFgsBgStartTest.java | 1460 private void testVisibleActivityGracePeriodInternal(WatchUidRunner uidWatcher, String keyCode) in testVisibleActivityGracePeriodInternal() argument 1462 testVisibleActivityGracePeriodInternal(uidWatcher, keyCode, null, in testVisibleActivityGracePeriodInternal() 1463 () -> uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testVisibleActivityGracePeriodInternal() 1466 testVisibleActivityGracePeriodInternal(uidWatcher, keyCode, in testVisibleActivityGracePeriodInternal() 1470 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testVisibleActivityGracePeriodInternal() 1479 private void testVisibleActivityGracePeriodInternal(WatchUidRunner uidWatcher, in testVisibleActivityGracePeriodInternal() argument 1485 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP); in testVisibleActivityGracePeriodInternal() 1494 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testVisibleActivityGracePeriodInternal() 1514 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testVisibleActivityGracePeriodInternal() 2443 WatchUidRunner uidWatcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in testStartMediaPlaybackFromBg() local [all …]
|
D | ActivityManagerTest.java | 2247 WatchUidRunner uidWatcher) throws Exception { in startRemoteActivityAndLinkToDeath() argument 2279 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in startRemoteActivityAndLinkToDeath()
|
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/ |
D | ActivityManagerForegroundServiceTypeTest.java | 336 private void startAndStopFgsType(ComponentName compName, int type, WatchUidRunner uidWatcher) in startAndStopFgsType() argument 339 if (uidWatcher != null) { in startAndStopFgsType() 340 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, null); in startAndStopFgsType() 342 stopService(compName, uidWatcher); in startAndStopFgsType() 374 private void stopService(ComponentName compName, WatchUidRunner uidWatcher) throws Exception { in stopService() argument 382 if (uidWatcher != null) { in stopService() 383 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in stopService()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | UserInitiatedJobTest.java | 217 try (WatchUidRunner uidWatcher = new WatchUidRunner( in testRestrictedBalToTop() argument 223 uidWatcher.waitFor(WatchUidRunner.CMD_IDLE); in testRestrictedBalToTop() 294 try (WatchUidRunner uidWatcher = new WatchUidRunner( in testRestrictedTopToBg() argument 298 uidWatcher.waitFor(WatchUidRunner.CMD_IDLE); in testRestrictedTopToBg()
|
D | NotificationTest.java | 217 try (WatchUidRunner uidWatcher = new WatchUidRunner( in testNotificationRemovedOnPackageRestriction() argument 221 uidWatcher.waitFor(UserInitiatedJobTest.WatchUidRunner.CMD_IDLE); in testNotificationRemovedOnPackageRestriction()
|