Home
last modified time | relevance | path

Searched refs:getFractionRunTime (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java208 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
210 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction()
211 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction()
213 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
214 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
216 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction()
217 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction()
218 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction()
219 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); in testFraction()
220 assertEquals(1, createJobStatus(now - 2000, now).getFractionRunTime(), DELTA); in testFraction()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java368 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed()
403 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied()
DJobStatus.java1009 public float getFractionRunTime() { in getFractionRunTime() method in JobStatus