/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobInfoTest.java | 49 private static final int JOB_ID = JobInfoTest.class.hashCode(); field in JobInfoTest 57 mJobScheduler.cancel(JOB_ID); in tearDown() 64 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 72 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBackoffCriteria() 82 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 89 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testBatteryNotLow() 98 JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, kJobServiceComponent); in testBias() 115 0, getBias(mJobScheduler.getPendingJob(JOB_ID))); in testBias() 126 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() 133 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCharging() [all …]
|
D | JobParametersTest.java | 37 private static final int JOB_ID = JobParametersTest.class.hashCode(); field in JobParametersTest 57 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testClipData() 63 runSatisfiedJob(JOB_ID); in testClipData() 75 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testExtras() 81 runSatisfiedJob(JOB_ID); in testExtras() 92 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testExpedited() 98 runSatisfiedJob(JOB_ID); in testExpedited() 104 ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testExpedited() 110 runSatisfiedJob(JOB_ID); in testExpedited() 120 JobInfo ji = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testUserInitiated() [all …]
|
D | JobSchedulingTest.java | 62 private static final int JOB_ID = JobSchedulingTest.class.hashCode(); field in JobSchedulingTest 68 mJobScheduler.cancel(JOB_ID); in tearDown() 79 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStartJob() 107 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testAnr_onStopJob() 136 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testCancel_runningJob() 177 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testMinSuccessfulSchedulingQuota() 200 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testFailingScheduleOnQuotaExceeded() 226 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) 250 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) 262 final int higherPriorityJobId = JOB_ID; [all …]
|
D | DataTransferTest.java | 26 private static final int JOB_ID = DataTransferTest.class.hashCode(); field in DataTransferTest 39 mJobScheduler.cancel(JOB_ID); in tearDown() 50 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testUpdateEstimatedNetworkBytes() 73 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testUpdateTransferredNetworkBytes() 115 + " " + JOB_ID) in getBytes()
|
D | NotificationTest.java | 52 private static final int JOB_ID = NotificationTest.class.hashCode(); field in NotificationTest 73 mJobScheduler.cancel(JOB_ID); in tearDown() 84 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testNotificationJobEndDetach() 108 mJobScheduler.cancel(JOB_ID); in testNotificationJobEndDetach() 121 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testNotificationJobEndRemove() 145 mJobScheduler.cancel(JOB_ID); in testNotificationJobEndRemove() 157 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnForceStop() 187 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnPackageRestriction() 236 try (TestAppInterface mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotificationRemovedOnTaskManagerStop() 272 try (TestAppInterface testAppInterface = new TestAppInterface(mContext, JOB_ID); in testNotification_userInitiated_anrWhenNotProvided() [all …]
|
D | JobWorkItemTest.java | 32 private static final int JOB_ID = JobWorkItemTest.class.hashCode(); field in JobWorkItemTest 36 final JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testAllInfoGivenToJob() 58 runSatisfiedJob(JOB_ID); in testAllInfoGivenToJob() 271 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testDeliveryCountBumped() 281 runSatisfiedJob(JOB_ID); in testDeliveryCountBumped() 291 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testPersisted_withIntent() 306 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent) in testPersisted_withPersistableBundle() 315 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testScheduleItemWithNetworkInfoAndNoNetworkConstraint_download() 327 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testScheduleItemWithNetworkInfoAndNoNetworkConstraint_upload() 340 JobInfo jobInfo = new JobInfo.Builder(JOB_ID, kJobServiceComponent).build(); in testScheduleItemWithNetworkInfoAndNoNetworkConstraint_minimumChunk() [all …]
|
D | UserInitiatedJobTest.java | 78 private static final int JOB_ID = UserInitiatedJobTest.class.hashCode(); field in UserInitiatedJobTest 93 mTestAppInterface = new TestAppInterface(mContext, JOB_ID); in setUp() 381 final int jobIdEj = JOB_ID; in testSchedulingEj() 382 final int jobIdUij = JOB_ID + 1; in testSchedulingEj() 449 int firstJobId = JOB_ID; in testSchedulingUij()
|
/cts/tests/app/FgsStartTest/helper/src/android/app/fgsstarttesthelper/ |
D | FgsNewLogicTest.java | 38 private static final int JOB_ID = 123454; field in FgsNewLogicTest 55 final var job = new JobInfo.Builder(JOB_ID, new ComponentName(context, Fgs.class)) in runTest()
|