Searched refs:mTestAppInterface (Results 1 – 9 of 9) sorted by relevance
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobThrottlingTest.java | 111 private final TestAppInterface mTestAppInterface = new TestAppInterface(mContext, mTestJobId); field in JobThrottlingTest 199 mTestAppInterface.awaitJobStart(5_000)); in testAllowWhileIdleJobInTempwhitelist() 202 mTestAppInterface.awaitJobStart(5_000)); in testAllowWhileIdleJobInTempwhitelist() 212 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately() 215 mTestAppInterface.awaitJobStop(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately() 222 mTestAppInterface.startAndKeepTestActivity(); in testForegroundJobsStartImmediately() 224 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately() 234 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testBackgroundJobsDelayed() 237 mTestAppInterface.awaitJobStop(DEFAULT_WAIT_TIMEOUT)); in testBackgroundJobsDelayed() 241 mTestAppInterface.awaitJobStart(2000)); in testBackgroundJobsDelayed() [all …]
|
D | UserInitiatedJobTest.java | 83 private TestAppInterface mTestAppInterface; field in UserInitiatedJobTest 93 mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in setUp() 117 mTestAppInterface.cleanup(); in tearDown() 138 mTestAppInterface.closeActivity(true); in testJobUidState() 139 mTestAppInterface.postUiInitiatingNotification( in testJobUidState() 151 mTestAppInterface.awaitJobStart(2 * DEFAULT_WAIT_TIMEOUT_MS)); in testJobUidState() 152 mTestAppInterface.assertJobUidState(ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND, in testJobUidState() 166 mTestAppInterface.startAndKeepTestActivity(true); in testTopUiUnlimited() 168 mTestAppInterface.scheduleJob( in testTopUiUnlimited() 180 mTestAppInterface.awaitJobStart(i, DEFAULT_WAIT_TIMEOUT_MS)); in testTopUiUnlimited() [all …]
|
D | ConnectivityConstraintTest.java | 76 private TestAppInterface mTestAppInterface; field in ConnectivityConstraintTest 96 if (mTestAppInterface != null) { in tearDown() 97 mTestAppInterface.cleanup(); in tearDown() 328 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testCellularConstraintExecutedAndStopped_Foreground() 329 mTestAppInterface.startAndKeepTestActivity(); in testCellularConstraintExecutedAndStopped_Foreground() 332 mTestAppInterface.scheduleJob(false, JobInfo.NETWORK_TYPE_ANY, false); in testCellularConstraintExecutedAndStopped_Foreground() 334 mTestAppInterface.runSatisfiedJob(); in testCellularConstraintExecutedAndStopped_Foreground() 336 mTestAppInterface.awaitJobStart(30_000)); in testCellularConstraintExecutedAndStopped_Foreground() 342 mTestAppInterface.awaitJobStop(30_000)); in testCellularConstraintExecutedAndStopped_Foreground() 426 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testExpeditedJobExecutes_DozeOn() [all …]
|
D | ExpeditedJobTest.java | 56 private TestAppInterface mTestAppInterface; field in ExpeditedJobTest 63 mTestAppInterface = new TestAppInterface(mContext, mTestJobId); in setUp() 73 mTestAppInterface.cleanup(); in tearDown() 83 mTestAppInterface.scheduleJob(Map.of( in testJobUidState_noRequiredNetwork() 87 mTestAppInterface.forceRunJob(); in testJobUidState_noRequiredNetwork() 89 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testJobUidState_noRequiredNetwork() 90 mTestAppInterface.assertJobUidState(ActivityManager.PROCESS_STATE_TRANSIENT_BACKGROUND, in testJobUidState_noRequiredNetwork() 101 mTestAppInterface.scheduleJob( in testJobUidState_withRequiredNetwork() 111 mTestAppInterface.forceRunJob(); in testJobUidState_withRequiredNetwork() 113 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testJobUidState_withRequiredNetwork() [all …]
|
D | NotificationTest.java | 157 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnForceStop() argument 161 mTestAppInterface.startAndKeepTestActivity(true); in testNotificationRemovedOnForceStop() 162 mTestAppInterface.scheduleJob( in testNotificationRemovedOnForceStop() 174 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testNotificationRemovedOnForceStop() 179 mTestAppInterface.forceStopApp(); in testNotificationRemovedOnForceStop() 236 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnTaskManagerStop() argument 240 mTestAppInterface.startAndKeepTestActivity(true); in testNotificationRemovedOnTaskManagerStop() 241 mTestAppInterface.scheduleJob( in testNotificationRemovedOnTaskManagerStop() 253 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testNotificationRemovedOnTaskManagerStop() 259 mTestAppInterface.stopJob(JobParameters.STOP_REASON_USER, in testNotificationRemovedOnTaskManagerStop() [all …]
|
D | JobSchedulingTest.java | 79 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStartJob() argument 89 mTestAppInterface.scheduleJob( in testAnr_onStartJob() 96 mTestAppInterface.forceRunJob(); in testAnr_onStartJob() 98 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testAnr_onStartJob() 107 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStopJob() argument 117 mTestAppInterface.scheduleJob( in testAnr_onStopJob() 124 mTestAppInterface.forceRunJob(); in testAnr_onStopJob() 126 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testAnr_onStopJob() 128 mTestAppInterface.cancelJob(); in testAnr_onStopJob()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | DualSuspendTests.java | 73 private TestAppInterface mTestAppInterface; field in DualSuspendTests 92 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspended() 94 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspended() 97 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspended() 99 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspended() 102 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspended() 107 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageUnsuspended() 111 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_UNSUSPENDED); in testMyPackageUnsuspended() 113 final Intent unexpectedIntent = mTestAppInterface.awaitBroadcast(5_000); in testMyPackageUnsuspended() 118 mTestAppInterface.awaitBroadcast()); in testMyPackageUnsuspended() [all …]
|
D | SuspendPackagesTest.java | 83 private TestAppInterface mTestAppInterface; field in SuspendPackagesTest 123 mTestAppInterface = new TestAppInterface(mContext); in testSuspendedStateFromApp() 124 assertFalse(mTestAppInterface.isTestAppSuspended()); in testSuspendedStateFromApp() 125 assertNull(mTestAppInterface.getTestAppSuspendedExtras()); in testSuspendedStateFromApp() 131 final Bundle extrasFromApp = mTestAppInterface.getTestAppSuspendedExtras(); in testSuspendedStateFromApp() 132 final boolean suspendedFromApp = mTestAppInterface.isTestAppSuspended(); in testSuspendedStateFromApp() 140 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspendedUnsuspended() 142 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspendedUnsuspended() 147 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspendedUnsuspended() 149 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_UNSUSPENDED); in testMyPackageSuspendedUnsuspended() [all …]
|
D | DialogTests.java | 67 private TestAppInterface mTestAppInterface; field in DialogTests 74 mTestAppInterface = new TestAppInterface(mContext); in setUp() 92 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_unsuspend() 98 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_unsuspend() 108 final Intent activityIntent = mTestAppInterface.awaitTestActivityStart(); in testInterceptorActivity_unsuspend() 111 assertFalse("Test package still suspended", mTestAppInterface.isTestAppSuspended()); in testInterceptorActivity_unsuspend() 156 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_moreDetails() 161 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_moreDetails() 205 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_strings() 210 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_strings() [all …]
|