Home
last modified time | relevance | path

Searched refs:mTestAppInterface (Results 1 – 6 of 6) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobThrottlingTest.java127 private TestAppInterface mTestAppInterface; field in JobThrottlingTest
159 mTestAppInterface = new TestAppInterface(mContext, mTestJobId); in setUp()
216 mTestAppInterface.awaitJobStart(5_000)); in testAllowWhileIdleJobInTempwhitelist()
219 mTestAppInterface.awaitJobStart(5_000)); in testAllowWhileIdleJobInTempwhitelist()
229 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately()
232 mTestAppInterface.awaitJobStop(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately()
239 mTestAppInterface.startAndKeepTestActivity(); in testForegroundJobsStartImmediately()
241 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testForegroundJobsStartImmediately()
251 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT)); in testBackgroundJobsDelayed()
254 mTestAppInterface.awaitJobStop(DEFAULT_WAIT_TIMEOUT)); in testBackgroundJobsDelayed()
[all …]
DConnectivityConstraintTest.java104 private TestAppInterface mTestAppInterface; field in ConnectivityConstraintTest
140 if (mTestAppInterface != null) { in tearDown()
141 mTestAppInterface.cleanup(); in tearDown()
372 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testCellularConstraintExecutedAndStopped_Foreground()
373 mTestAppInterface.startAndKeepTestActivity(); in testCellularConstraintExecutedAndStopped_Foreground()
376 mTestAppInterface.scheduleJob(false, JobInfo.NETWORK_TYPE_ANY, false); in testCellularConstraintExecutedAndStopped_Foreground()
378 mTestAppInterface.runSatisfiedJob(); in testCellularConstraintExecutedAndStopped_Foreground()
380 mTestAppInterface.awaitJobStart(30_000)); in testCellularConstraintExecutedAndStopped_Foreground()
386 mTestAppInterface.awaitJobStop(30_000)); in testCellularConstraintExecutedAndStopped_Foreground()
473 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testFgExpeditedJobBypassesDataSaver()
[all …]
DExpeditedJobTest.java53 private TestAppInterface mTestAppInterface; field in ExpeditedJobTest
60 mTestAppInterface = new TestAppInterface(mContext, mTestJobId); in setUp()
68 mTestAppInterface.cleanup(); in tearDown()
74 mTestAppInterface.scheduleJob(Map.of( in testJobUidState()
80 mTestAppInterface.awaitJobStart(DEFAULT_WAIT_TIMEOUT_MS)); in testJobUidState()
81 mTestAppInterface.assertJobUidState(ActivityManager.PROCESS_STATE_TRANSIENT_BACKGROUND, in testJobUidState()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDualSuspendTests.java71 private TestAppInterface mTestAppInterface; field in DualSuspendTests
90 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspended()
92 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspended()
95 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspended()
97 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspended()
100 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspended()
105 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageUnsuspended()
109 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_UNSUSPENDED); in testMyPackageUnsuspended()
111 final Intent unexpectedIntent = mTestAppInterface.awaitBroadcast(5_000); in testMyPackageUnsuspended()
116 mTestAppInterface.awaitBroadcast()); in testMyPackageUnsuspended()
[all …]
DSuspendPackagesTest.java77 private TestAppInterface mTestAppInterface; field in SuspendPackagesTest
107 mTestAppInterface = new TestAppInterface(mContext); in testSuspendedStateFromApp()
108 assertFalse(mTestAppInterface.isTestAppSuspended()); in testSuspendedStateFromApp()
109 assertNull(mTestAppInterface.getTestAppSuspendedExtras()); in testSuspendedStateFromApp()
115 final Bundle extrasFromApp = mTestAppInterface.getTestAppSuspendedExtras(); in testSuspendedStateFromApp()
116 final boolean suspendedFromApp = mTestAppInterface.isTestAppSuspended(); in testSuspendedStateFromApp()
124 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspendedUnsuspended()
126 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_SUSPENDED); in testMyPackageSuspendedUnsuspended()
131 mTestAppInterface.awaitBroadcast()); in testMyPackageSuspendedUnsuspended()
133 mTestAppInterface.startListeningForBroadcast(Intent.ACTION_MY_PACKAGE_UNSUSPENDED); in testMyPackageSuspendedUnsuspended()
[all …]
DDialogTests.java64 private TestAppInterface mTestAppInterface; field in DialogTests
71 mTestAppInterface = new TestAppInterface(mContext); in setUp()
93 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_unsuspend()
99 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_unsuspend()
127 final Intent activityIntent = mTestAppInterface.awaitTestActivityStart(); in testInterceptorActivity_unsuspend()
132 assertFalse("Test package still suspended", mTestAppInterface.isTestAppSuspended()); in testInterceptorActivity_unsuspend()
145 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_moreDetails()
150 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_moreDetails()
194 assertTrue(mTestAppInterface.awaitTestActivityStop()); in testInterceptorActivity_strings()
199 mTestAppInterface.awaitTestActivityStart(5_000)); in testInterceptorActivity_strings()
[all …]