Home
last modified time | relevance | path

Searched refs:cachedValue (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/util/
DExpirableCache.java190 CachedValue<V> cachedValue = getCachedValue(key); in getPossiblyExpired() local
191 return cachedValue == null ? null : cachedValue.getValue(); in getPossiblyExpired()
205 CachedValue<V> cachedValue = getCachedValue(key); in get() local
206 return cachedValue == null || cachedValue.isExpired() ? null : cachedValue.getValue(); in get()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DTypefaceUtils.java40 final Float cachedValue = sTextHeightCache.get(key); in getCharHeight() local
41 if (cachedValue != null) { in getCharHeight()
42 return cachedValue; in getCharHeight()
60 final Float cachedValue = sTextWidthCache.get(key); in getCharWidth() local
61 if (cachedValue != null) { in getCharWidth()
62 return cachedValue; in getCharWidth()
/packages/apps/Dialer/tests/src/com/android/dialer/util/
DExpirableCacheTest.java113 CachedValue<Integer> cachedValue = mCache.getCachedValue("a"); in testComputingCache() local
114 assertNotNull("Should have been created implicitly", cachedValue); in testComputingCache()
115 assertEquals(0, cachedValue.getValue().intValue()); in testComputingCache()
116 assertFalse("Should not be expired", cachedValue.isExpired()); in testComputingCache()