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.java397 protected boolean debugCompareQueryResults(Result cachedResult, Result fetchedResult) { in debugCompareQueryResults() argument
400 return Objects.equals(cachedResult, fetchedResult); in debugCompareQueryResults()
500 final Result cachedResult; in query() local
503 cachedResult = mCache.get(query); in query()
505 if (cachedResult != null) mHits++; in query()
515 cachedResult = null; in query()
524 if (cachedResult != null) { in query()
525 final Result refreshedResult = refresh(cachedResult, query); in query()
526 if (refreshedResult != cachedResult) { in query()
556 return maybeCheckConsistency(query, cachedResult); in query()