Searched refs:rescheduledJob (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 951 JobStatus rescheduledJob = mService.getRescheduleJobForFailureLocked(originalJob, in testGetRescheduleJobForFailure_cumulativeExecution() local 954 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testGetRescheduleJobForFailure_cumulativeExecution() 957 rescheduledJob.incrementCumulativeExecutionTime( in testGetRescheduleJobForFailure_cumulativeExecution() 959 rescheduledJob = mService.getRescheduleJobForFailureLocked(rescheduledJob, in testGetRescheduleJobForFailure_cumulativeExecution() 962 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testGetRescheduleJobForFailure_cumulativeExecution() 965 rescheduledJob.incrementCumulativeExecutionTime( in testGetRescheduleJobForFailure_cumulativeExecution() 967 rescheduledJob = mService.getRescheduleJobForFailureLocked(rescheduledJob, in testGetRescheduleJobForFailure_cumulativeExecution() 970 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testGetRescheduleJobForFailure_cumulativeExecution() 973 rescheduledJob.incrementCumulativeExecutionTime(2); in testGetRescheduleJobForFailure_cumulativeExecution() 974 rescheduledJob = mService.getRescheduleJobForFailureLocked(rescheduledJob, in testGetRescheduleJobForFailure_cumulativeExecution() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 774 JobStatus rescheduledJob = new JobStatus(job, NO_EARLIEST_RUNTIME, NO_LATEST_RUNTIME, in testShouldTreatAsUserInitiated_userDemoted() local 776 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testShouldTreatAsUserInitiated_userDemoted() 781 rescheduledJob = new JobStatus(job, NO_EARLIEST_RUNTIME, NO_LATEST_RUNTIME, in testShouldTreatAsUserInitiated_userDemoted() 783 assertFalse(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testShouldTreatAsUserInitiated_userDemoted() 785 rescheduledJob.removeInternalFlags(JobStatus.INTERNAL_FLAG_DEMOTED_BY_USER); in testShouldTreatAsUserInitiated_userDemoted() 786 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testShouldTreatAsUserInitiated_userDemoted() 799 JobStatus rescheduledJob = new JobStatus(job, NO_EARLIEST_RUNTIME, NO_LATEST_RUNTIME, in testShouldTreatAsUserInitiated_systemDemoted() local 801 assertTrue(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testShouldTreatAsUserInitiated_systemDemoted() 806 rescheduledJob = new JobStatus(job, NO_EARLIEST_RUNTIME, NO_LATEST_RUNTIME, in testShouldTreatAsUserInitiated_systemDemoted() 808 assertFalse(rescheduledJob.shouldTreatAsUserInitiatedJob()); in testShouldTreatAsUserInitiated_systemDemoted() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerService.java | 3246 final JobStatus rescheduledJob = needsReschedule 3248 if (rescheduledJob != null 3249 && !rescheduledJob.shouldTreatAsUserInitiatedJob() 3252 rescheduledJob.disallowRunInBatterySaverAndDoze(); 3257 if (!stopTrackingJobLocked(jobStatus, rescheduledJob, !jobStatus.getJob().isPeriodic())) { 3271 if (rescheduledJob != null) { 3273 rescheduledJob.prepareLocked(); 3275 Slog.w(TAG, "Unable to regrant job permissions for " + rescheduledJob); 3277 startTrackingJobLocked(rescheduledJob, jobStatus);
|