Searched refs:getCurPercentOfLifecycleLocked (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | FlexibilityControllerTest.java | 642 assertEquals(60, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 647 assertEquals(100, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 652 assertEquals(90, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 672 assertEquals(60, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 677 assertEquals(100, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 682 assertEquals(90, mFlexibilityController.getCurPercentOfLifecycleLocked(js, nowElapsed)); in testCurPercent() 1780 assertEquals(0, mFlexibilityController.getCurPercentOfLifecycleLocked(js, FROZEN_TIME)); in testOnPrefetchCacheUpdated()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | FlexibilityController.java | 705 int getCurPercentOfLifecycleLocked(JobStatus js, long nowElapsed) { in getCurPercentOfLifecycleLocked() method in FlexibilityController 876 final int curPercent = getCurPercentOfLifecycleLocked(js, nowElapsed); in updateFlexibleConstraints() 897 final int curPercent = getCurPercentOfLifecycleLocked(js, nowElapsed); in calculateNumDroppedConstraints() 948 pw.print(getCurPercentOfLifecycleLocked(js, nowElapsed)); in dump()
|