/system/core/libutils/ |
D | LruCache_test.cpp | 154 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local 156 EXPECT_EQ(nullptr, cache.get(0)); in TEST_F() 157 EXPECT_EQ(0u, cache.size()); in TEST_F() 161 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local 163 cache.put(1, "one"); in TEST_F() 164 cache.put(2, "two"); in TEST_F() 165 cache.put(3, "three"); in TEST_F() 166 EXPECT_STREQ("one", cache.get(1)); in TEST_F() 167 EXPECT_STREQ("two", cache.get(2)); in TEST_F() 168 EXPECT_STREQ("three", cache.get(3)); in TEST_F() [all …]
|
/system/core/liblog/ |
D | properties.cpp | 50 struct cache { struct 56 struct cache cache; member 60 static int check_cache(struct cache* cache) { in check_cache() argument 61 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; in check_cache() 67 static void refresh_cache(struct cache_char* cache, const char* key) { in refresh_cache() argument 70 if (!cache->cache.pinfo) { in refresh_cache() 71 cache->cache.pinfo = __system_property_find(key); in refresh_cache() 72 if (!cache->cache.pinfo) { in refresh_cache() 76 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache() 77 __system_property_read(cache->cache.pinfo, 0, buf); in refresh_cache() [all …]
|
/system/extras/simpleperf/ |
D | CallChainJoiner_test.cpp | 26 static bool JoinCallChain(LRUCache& cache, uint32_t tid, in JoinCallChain() argument 33 cache.AddCallChain(tid, tmp_ip, tmp_sp); in JoinCallChain() 38 LRUCache cache(sizeof(CacheNode) * 2, 1); in TEST() local 39 ASSERT_EQ(cache.Stat().max_node_count, 2u); in TEST() 43 ASSERT_TRUE(JoinCallChain(cache, 0, ip, sp, ip, sp)); in TEST() 44 ASSERT_TRUE(JoinCallChain(cache, 1, ip, sp, ip, sp)); in TEST() 45 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST() 46 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST() 47 ASSERT_NE(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST() 48 ASSERT_NE(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST() [all …]
|
/system/libhidl/libhidlcache/ |
D | libhidlcache_test.cpp | 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() [all …]
|
D | HidlCache.h | 36 HidlCacheLock(sp<HidlCache> cache, const Key& key) : mCache(cache), mKey(key) { in HidlCacheLock() argument 119 wp<Value> cache = mCached[key]; in getCachedLocked() local 120 sp<Value> mem = cache.promote(); in getCachedLocked()
|
/system/netd/resolv/ |
D | res_cache.cpp | 1138 Cache* cache; member 1167 static void cache_flush_pending_requests_locked(struct resolv_cache* cache) { in cache_flush_pending_requests_locked() argument 1169 if (!cache) return; in cache_flush_pending_requests_locked() 1171 ri = cache->pending_requests.next; in cache_flush_pending_requests_locked() 1179 cache->pending_requests.next = NULL; in cache_flush_pending_requests_locked() 1186 static bool cache_has_pending_request_locked(resolv_cache* cache, const Entry* key, in cache_has_pending_request_locked() argument 1188 if (!cache || !key) return false; in cache_has_pending_request_locked() 1190 resolv_cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked() 1191 resolv_cache::pending_req_info* prev = &cache->pending_requests; in cache_has_pending_request_locked() 1211 static void _cache_notify_waiting_tid_locked(struct resolv_cache* cache, const Entry* key) { in _cache_notify_waiting_tid_locked() argument [all …]
|
D | DnsTlsSessionCache.cpp | 45 DnsTlsSessionCache* cache = reinterpret_cast<DnsTlsSessionCache*>( in newSessionCallback() local 47 if (!cache) { in newSessionCallback() 52 cache->recordSession(session); in newSessionCallback()
|
D | DnsTlsSocketFactory.h | 37 DnsTlsSessionCache* _Nonnull cache) override { in createDnsTlsSocket() argument 38 auto socket = std::make_unique<DnsTlsSocket>(server, mark, observer, cache); in createDnsTlsSocket()
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | otapreopt_slot.te | 4 # from /data/ota to /data/dalvik-cache. 10 # The otapreopt_slot renames the OTA dalvik-cache to the regular dalvik-cache, and cleans up 17 # Delete old content of the dalvik-cache. 26 # Needed so we can move artifacts into /data/dalvik-cache/dalvik-cache.
|
D | cppreopts.te | 10 # Allow cppreopts copy files into the dalvik-cache 21 # write into dalvik-cache
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | otapreopt_slot.te | 4 # from /data/ota to /data/dalvik-cache. 10 # The otapreopt_slot renames the OTA dalvik-cache to the regular dalvik-cache, and cleans up 17 # Delete old content of the dalvik-cache. 26 # Needed so we can move artifacts into /data/dalvik-cache/dalvik-cache.
|
D | cppreopts.te | 10 # Allow cppreopts copy files into the dalvik-cache 21 # write into dalvik-cache
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | otapreopt_slot.te | 4 # from /data/ota to /data/dalvik-cache. 10 # The otapreopt_slot renames the OTA dalvik-cache to the regular dalvik-cache, and cleans up 17 # Delete old content of the dalvik-cache. 26 # Needed so we can move artifacts into /data/dalvik-cache/dalvik-cache.
|
D | cppreopts.te | 10 # Allow cppreopts copy files into the dalvik-cache 21 # write into dalvik-cache
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | mediaprovider.te | 12 # DownloadProvider uses /cache. 15 # /cache is a symlink to /data/cache on some devices. Allow reading the link. 17 # mediaprovider searches through /cache looking for orphans 18 # Ignore denials to /cache/recovery and /cache/backup.
|
/system/sepolicy/private/ |
D | otapreopt_slot.te | 2 # from /data/ota to /data/dalvik-cache. 11 # The otapreopt_slot renames the OTA dalvik-cache to the regular dalvik-cache, and cleans up 18 # Delete old content of the dalvik-cache. 27 # Needed so we can move artifacts into /data/dalvik-cache/dalvik-cache.
|
D | mediaprovider.te | 12 # DownloadProvider uses /cache. 15 # /cache is a symlink to /data/cache on some devices. Allow reading the link. 17 # mediaprovider searches through /cache looking for orphans 18 # Ignore denials to /cache/recovery and /cache/backup.
|
D | file_contexts_overlayfs | 4 /cache/overlay/(system|product)/upper u:object_r:system_file:s0 5 /cache/overlay/(vendor|odm)/upper u:object_r:vendor_file:s0 6 /cache/overlay/oem/upper u:object_r:vendor_file:s0
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | otapreopt_slot.te | 2 # from /data/ota to /data/dalvik-cache. 11 # The otapreopt_slot renames the OTA dalvik-cache to the regular dalvik-cache, and cleans up 18 # Delete old content of the dalvik-cache. 27 # Needed so we can move artifacts into /data/dalvik-cache/dalvik-cache.
|
D | mediaprovider.te | 12 # DownloadProvider uses /cache. 15 # /cache is a symlink to /data/cache on some devices. Allow reading the link. 17 # mediaprovider searches through /cache looking for orphans 18 # Ignore denials to /cache/recovery and /cache/backup.
|
D | file_contexts_overlayfs | 4 /cache/overlay/(system|product)/upper u:object_r:system_file:s0 5 /cache/overlay/(vendor|odm)/upper u:object_r:vendor_file:s0 6 /cache/overlay/oem/upper u:object_r:vendor_file:s0
|
/system/extras/tests/pagingtest/ |
D | pageinout_test.c | 12 int pageinout_test(int test_runs, bool cache, unsigned long long file_size) { in pageinout_test() argument 47 if (!cache) { in pageinout_test() 88 printf("%scached page-in: %llu MB/s\n", cache ? "" : "un", in pageinout_test() 91 printf("%scached page-out (clean): %llu MB/s\n", cache ? "" : "un", in pageinout_test()
|
D | pagingtest.h | 17 int pageinout_test(int test_runs, bool cache, unsigned long long file_size); 18 int thrashing_test(int test_runs, bool cache);
|
D | thrashing_test.c | 14 int thrashing_test(int test_runs, bool cache) { in thrashing_test() argument 49 if (!cache) { in thrashing_test() 72 printf("%scached thrashing: %llu MB/s\n", cache ? "" : "un", in thrashing_test()
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | mediaprovider.te | 12 # DownloadProvider uses /cache. 15 # /cache is a symlink to /data/cache on some devices. Allow reading the link.
|