Lines Matching refs:cache
66 sp<HidlMemoryCache> cache = HidlMemoryCache::getInstance(); in HidlCacheWhiteBoxTest() local
67 EXPECT_FALSE(cache->cached(token)); in HidlCacheWhiteBoxTest()
71 EXPECT_FALSE(cache->cached(token)); in HidlCacheWhiteBoxTest()
74 sp<IMemory> mem1 = cache->fetch(token); in HidlCacheWhiteBoxTest()
75 EXPECT_TRUE(cache->cached(token)); in HidlCacheWhiteBoxTest()
76 EXPECT_NE(nullptr, cache->getCachedLocked(token).get()); in HidlCacheWhiteBoxTest()
77 sp<IMemory> mem2 = cache->fetch(token); in HidlCacheWhiteBoxTest()
78 EXPECT_TRUE(cache->cached(token)); in HidlCacheWhiteBoxTest()
79 EXPECT_NE(nullptr, cache->getCachedLocked(token).get()); in HidlCacheWhiteBoxTest()
81 EXPECT_FALSE(cache->cached(token)); in HidlCacheWhiteBoxTest()
84 EXPECT_TRUE(cache->cached(token)); in HidlCacheWhiteBoxTest()
85 EXPECT_NE(nullptr, cache->getCachedLocked(token).get()); in HidlCacheWhiteBoxTest()
91 EXPECT_TRUE(cache->cached(token)); in HidlCacheWhiteBoxTest()
92 EXPECT_NE(nullptr, cache->getCachedLocked(token).get()); in HidlCacheWhiteBoxTest()
94 EXPECT_FALSE(cache->cached(token)); in HidlCacheWhiteBoxTest()
95 EXPECT_TRUE(cache->lock(token)); in HidlCacheWhiteBoxTest()
96 EXPECT_TRUE(cache->cached(token)); in HidlCacheWhiteBoxTest()
97 EXPECT_NE(nullptr, cache->getCachedLocked(token).get()); in HidlCacheWhiteBoxTest()
98 EXPECT_TRUE(cache->unlock(token)); in HidlCacheWhiteBoxTest()
99 EXPECT_FALSE(cache->cached(token)); in HidlCacheWhiteBoxTest()