Searched refs:getFractionRunTime (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 101 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction() 103 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction() 104 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction() 106 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction() 107 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction() 109 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction() 110 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction() 111 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction() 112 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); in testFraction() 113 assertEquals(1, createJobStatus(now - 2000, now).getFractionRunTime(), DELTA); in testFraction()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 358 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed() 385 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied()
|
D | JobStatus.java | 905 public float getFractionRunTime() { in getFractionRunTime() method in JobStatus
|