Home
last modified time | relevance | path

Searched refs:TestAppInterface (Results 1 – 13 of 13) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DNotificationTest.java20 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
169 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnForceStop()
172 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnForceStop()
206 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnPackageRestriction()
209 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnPackageRestriction()
262 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnTaskManagerStop()
265 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnTaskManagerStop()
305 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotification_userInitiated_anrWhenNotProvided()
342 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotification_userInitiated_noAnrWhenProvided()
379 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotification_regular_noAnrWhenNotProvided()
[all …]
DConnectivityConstraintTest.java77 private TestAppInterface mTestAppInterface;
330 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testCellularConstraintExecutedAndStopped_Foreground()
428 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testExpeditedJobExecutes_DozeOn()
460 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testFgExpeditedJobBypassesDataSaver()
527 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testJobExecutes_afterAppIsKilled()
557 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testUserInitiatedJobExecutes_BatterySaverOn()
582 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testUserInitiatedJobExecutes_DozeOn()
583 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testUserInitiatedJobExecutes_DozeOn()
619 mTestAppInterface = new TestAppInterface(mContext, CONNECTIVITY_JOB_ID); in testCellularConstraintExecutedAndStopped()
659 if (CompatChanges.isChangeEnabled(TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS)) { in testJobParametersNetwork()
[all …]
DExpeditedJobTest.java21 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
58 private TestAppInterface mTestAppInterface;
66 mTestAppInterface = new TestAppInterface(mContext, mTestJobId); in setUp()
101 mTestAppInterface.assertJobUidState(new TestAppInterface.ExpectedJobUidState.Builder() in testJobUidState_noRequiredNetwork()
137 mTestAppInterface.assertJobUidState(new TestAppInterface.ExpectedJobUidState.Builder() in testJobUidState_withRequiredNetwork()
DTimingConstraintsTest.java110 if (CompatChanges.isChangeEnabled(TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS)) { in testJobParameters_expiredDeadline()
113 TestAppInterface.TEST_APP_PACKAGE, in testJobParameters_expiredDeadline()
114 Map.of(TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS, in testJobParameters_expiredDeadline()
120 try (TestAppInterface testAppInterface = in testJobParameters_expiredDeadline()
121 new TestAppInterface(getContext(), EXPIRED_JOB_ID)) { in testJobParameters_expiredDeadline()
DUserInitiatedJobTest.java22 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
84 private TestAppInterface mTestAppInterface;
95 mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in setUp()
143 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testJobUidState()
159 mTestAppInterface.assertJobUidState(new TestAppInterface.ExpectedJobUidState.Builder() in testJobUidState()
355 mTestAppInterface.assertJobUidState(new TestAppInterface.ExpectedJobUidState.Builder() in testRestrictedUidState()
378 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testSchedulingBal()
DTestAppInterface.java74 class TestAppInterface implements AutoCloseable { class
75 private static final String TAG = TestAppInterface.class.getSimpleName();
92 TestAppInterface(Context ctx, int jobId) { in TestAppInterface() method in TestAppInterface
141 TestAppInterface.TEST_APP_PACKAGE, in cleanup()
DJobThrottlingTest.java21 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
123 private final TestAppInterface mTestAppInterface = new TestAppInterface(mContext, mTestJobId);
494 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testBackgroundUIJsThermal()
1018 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testUserInitiatedJobBypassesBatterySaverOn()
1045 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testUserInitiatedJobBypassesBatterySaver_toggling()
1076 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testUserInitiatedJobBypassesDeviceIdle()
1102 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testUserInitiatedJobBypassesDeviceIdle_toggling()
DJobSchedulingTest.java28 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
83 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStartJob()
111 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStopJob()
DJobInfoTest.java19 import static android.jobscheduler.cts.TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS;
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDualSuspendTests.java75 private TestAppInterface mTestAppInterface;
99 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspended()
114 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageUnsuspended()
149 mTestAppInterface = new TestAppInterface(mContext); in assertDpmCanSuspendUnderUserRestriction()
170 mTestAppInterface = new TestAppInterface(mContext); in testUnsuspendedOnUninstallBlocked()
184 mTestAppInterface = new TestAppInterface(mContext); in assertUnsuspendedOnUserRestriction()
DTestAppInterface.java45 public class TestAppInterface { class
46 private static final String TAG = TestAppInterface.class.getSimpleName();
75 TestAppInterface(Context context) { in TestAppInterface() method in TestAppInterface
DSuspendPackagesTest.java83 private TestAppInterface mTestAppInterface;
123 mTestAppInterface = new TestAppInterface(mContext); in testSuspendedStateFromApp()
140 mTestAppInterface = new TestAppInterface(mContext); in testMyPackageSuspendedUnsuspended()
159 mTestAppInterface = new TestAppInterface(mContext); in testUpdatingAppExtras()
190 mTestAppInterface = new TestAppInterface(mContext); in testActivityStoppedOnSuspend()
DDialogTests.java76 private TestAppInterface mTestAppInterface;
83 mTestAppInterface = new TestAppInterface(mContext); in setUp()