Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/util/
DHashedStringCacheTest.java68 HashedStringCache.HashResult cachedResult = in testHashedStringNotOriginalString() local
70 assertThat(cachedResult.hashedString, is(not(TEST_STRING))); in testHashedStringNotOriginalString()
76 HashedStringCache.HashResult cachedResult = in testThatMultipleCallsResultInSameHash() local
80 assertThat(cachedResult2.hashedString, is(cachedResult.hashedString)); in testThatMultipleCallsResultInSameHash()
87 HashedStringCache.HashResult cachedResult = in testThatMultipleInputResultInDifferentHash() local
91 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatMultipleInputResultInDifferentHash()
97 HashedStringCache.HashResult cachedResult = in testThatZeroDaysResultsInNewHash() local
101 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatZeroDaysResultsInNewHash()
107 HashedStringCache.HashResult cachedResult = in testThatNegativeDaysResultsInNewHash() local
111 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatNegativeDaysResultsInNewHash()
[all …]
/frameworks/base/core/java/android/app/
DPropertyInvalidatedCache.java306 protected boolean debugCompareQueryResults(Result cachedResult, Result fetchedResult) { in debugCompareQueryResults() argument
309 return Objects.equals(cachedResult, fetchedResult); in debugCompareQueryResults()
376 final Result cachedResult; in query() local
379 cachedResult = mCache.get(query); in query()
381 if (cachedResult != null) mHits++; in query()
391 cachedResult = null; in query()
400 if (cachedResult != null) { in query()
401 final Result refreshedResult = refresh(cachedResult, query); in query()
402 if (refreshedResult != cachedResult) { in query()
432 return maybeCheckConsistency(query, cachedResult); in query()