Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DJobStatusTest.java210 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
212 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction()
213 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction()
215 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
216 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
218 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction()
219 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction()
220 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction()
221 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); in testFraction()
222 assertEquals(1, createJobStatus(now - 2000, now).getFractionRunTime(), DELTA); in testFraction()
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DConnectivityController.java608 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed()
649 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied()
H A DJobStatus.java1085 public float getFractionRunTime() { in getFractionRunTime() method in JobStatus
/aosp12/frameworks/base/services/
H A Dart-profile20861 HPLcom/android/server/job/controllers/JobStatus;->getFractionRunTime()F