Searched refs:RelevanceUtils (Results 1 – 4 of 4) sorted by relevance
19 import static com.android.server.connectivity.ipmemorystore.RelevanceUtils.CAPPED_RELEVANCE;40 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()69 final long firstBump = RelevanceUtils.bumpExpiryDate(expiry);[all …]
27 public class RelevanceUtils { class
231 final long newExpiry = RelevanceUtils.bumpExpiryDate( in storeNetworkAttributesAndBlobSync()
365 return expiry < 0 ? (int) expiry : RelevanceUtils.computeRelevanceForNow(expiry); in getRelevance()