Home
last modified time | relevance | path

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

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DPendingJobQueue.java266 final JobStatus job1 = aj1.job;
268 if (job1 == job2) {
273 if (job1.overrideState != job2.overrideState) {
276 return Integer.compare(job2.overrideState, job1.overrideState);
279 final boolean job1UI = job1.getJob().isUserInitiated();
286 final boolean job1EJ = job1.isRequestedExpeditedJob();
294 if (Objects.equals(job1.getNamespace(), job2.getNamespace())) {
295 final int job1Priority = job1.getEffectivePriority();
304 if (job1.lastEvaluatedBias != job2.lastEvaluatedBias) {
306 return Integer.compare(job2.lastEvaluatedBias, job1.lastEvaluatedBias);
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java194 JobStatus job1 = createJobStatus("testBatteryNotLow", SOURCE_PACKAGE, CALLING_UID, in testBatteryNotLow() local
200 trackJobs(job1); in testBatteryNotLow()
201 assertFalse(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
204 assertTrue(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
269 JobStatus job1 = createJobStatus("testCharging_BatteryNotLow", SOURCE_PACKAGE, CALLING_UID, in testCharging_BatteryNotLow() local
280 trackJobs(job1, job2); in testCharging_BatteryNotLow()
281 assertFalse(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_CHARGING)); in testCharging_BatteryNotLow()
285 assertTrue(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_CHARGING)); in testCharging_BatteryNotLow()
DQuotaControllerTest.java2349 JobStatus job1 = createJobStatus("testIsWithinQuotaLocked_WithQuotaBump_Duration", 1); in testIsWithinQuotaLocked_WithQuotaBump_Duration() local
2353 mQuotaController.maybeStartTrackingJobLocked(job1, null); in testIsWithinQuotaLocked_WithQuotaBump_Duration()
2354 mQuotaController.prepareForExecutionLocked(job1); in testIsWithinQuotaLocked_WithQuotaBump_Duration()
2369 mQuotaController.maybeStopTrackingJobLocked(job1, null); in testIsWithinQuotaLocked_WithQuotaBump_Duration()
2435 JobStatus job1 = createJobStatus("testIsWithinQuotaLocked_WithQuotaBump_JobCount", 1); in testIsWithinQuotaLocked_WithQuotaBump_JobCount() local
2439 mQuotaController.maybeStartTrackingJobLocked(job1, null); in testIsWithinQuotaLocked_WithQuotaBump_JobCount()
2440 mQuotaController.prepareForExecutionLocked(job1); in testIsWithinQuotaLocked_WithQuotaBump_JobCount()
2455 mQuotaController.maybeStopTrackingJobLocked(job1, null); in testIsWithinQuotaLocked_WithQuotaBump_JobCount()
2522 JobStatus job1 = createJobStatus("testIsWithinQuotaLocked_WithQuotaBump_JobCount", 1); in testIsWithinQuotaLocked_WithQuotaBump_SessionCount() local
2526 mQuotaController.maybeStartTrackingJobLocked(job1, null); in testIsWithinQuotaLocked_WithQuotaBump_SessionCount()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPendingJobQueueTest.java237 JobStatus job1 = createJobStatus("testRemove", createJobInfo(1), 1); in testRemove_outOfOrder() local
245 job1.enqueueTime = 3; in testRemove_outOfOrder()
259 jobs.add(job1); in testRemove_outOfOrder()
287 jobs.add(job1); in testRemove_outOfOrder()
313 jobs.add(job1); in testRemove_outOfOrder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/
DFlowUtilTests.kt143 val job1 = launch { assertThatFlow(stoppable.pairwise()).emitsExactly(WithPrev(1, 2)) } in <lambda>() constant
149 assertThatJob(job1).isCompleted() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/
DConnectivityRepositoryImplTest.kt220 val job1 = underTest.forceHiddenSlots.onEach { latest1 = it }.launchIn(this) in forceHiddenSlots_newSubscriberGetsCurrentValue() constant
233 job1.cancel() in forceHiddenSlots_newSubscriberGetsCurrentValue()