Home
last modified time | relevance | path

Searched refs:computeRelevanceForTargetDate (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DRelevanceUtilsTests.java40 assertEquals(CAPPED_RELEVANCE, RelevanceUtils.computeRelevanceForTargetDate( in testComputeRelevanceForTargetDate()
43 assertEquals(0, RelevanceUtils.computeRelevanceForTargetDate(base - 1, base)); in testComputeRelevanceForTargetDate()
46 assertTrue(RelevanceUtils.computeRelevanceForTargetDate(base + 100 * dayInMillis, base) in testComputeRelevanceForTargetDate()
47 < RelevanceUtils.computeRelevanceForTargetDate(base + 150 * dayInMillis, base)); in testComputeRelevanceForTargetDate()
51 final int relevanceAtExpiry = RelevanceUtils.computeRelevanceForTargetDate(base, base); in testComputeRelevanceForTargetDate()
53 RelevanceUtils.computeRelevanceForTargetDate(base + 50 * dayInMillis, base); in testComputeRelevanceForTargetDate()
55 RelevanceUtils.computeRelevanceForTargetDate(base + 100 * dayInMillis, base); in testComputeRelevanceForTargetDate()
57 RelevanceUtils.computeRelevanceForTargetDate(base + 150 * dayInMillis, base); in testComputeRelevanceForTargetDate()
102 final int relevanceBeforeMaxLifetime = RelevanceUtils.computeRelevanceForTargetDate(expiry,
105 final int relevanceForMaxLifetime = RelevanceUtils.computeRelevanceForTargetDate(expiry,
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DRelevanceUtils.java234 return computeRelevanceForTargetDate(expiry, System.currentTimeMillis()); in computeRelevanceForNow()
252 public static int computeRelevanceForTargetDate(final long expiry, final long target) { in computeRelevanceForTargetDate() method in RelevanceUtils