Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 88) sorted by relevance

1234

/system/core/libutils/
DLruCache_test.cpp157 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local
159 EXPECT_EQ(nullptr, cache.get(0)); in TEST_F()
160 EXPECT_EQ(0u, cache.size()); in TEST_F()
164 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local
166 cache.put(1, "one"); in TEST_F()
167 cache.put(2, "two"); in TEST_F()
168 cache.put(3, "three"); in TEST_F()
169 EXPECT_STREQ("one", cache.get(1)); in TEST_F()
170 EXPECT_STREQ("two", cache.get(2)); in TEST_F()
171 EXPECT_STREQ("three", cache.get(3)); in TEST_F()
[all …]
DLruCache_fuzz.cpp37 [](FuzzedDataProvider*, FuzzCache* cache) -> void { cache->removeOldest(); }, in __anon3091d9e80102()
38 [](FuzzedDataProvider*, FuzzCache* cache) -> void { cache->peekOldestValue(); }, in __anon3091d9e80202()
39 [](FuzzedDataProvider*, FuzzCache* cache) -> void { cache->clear(); }, in __anon3091d9e80302()
40 [](FuzzedDataProvider*, FuzzCache* cache) -> void { cache->size(); }, in __anon3091d9e80402()
41 [](FuzzedDataProvider*, FuzzCache* cache) -> void { in __anon3091d9e80502()
42 android::LruCache<size_t, size_t>::Iterator iter(*cache); in __anon3091d9e80502()
48 [](FuzzedDataProvider* dataProvider, FuzzCache* cache) -> void { in __anon3091d9e80602()
51 cache->put(key, val); in __anon3091d9e80602()
53 [](FuzzedDataProvider* dataProvider, FuzzCache* cache) -> void { in __anon3091d9e80702()
55 cache->get(key); in __anon3091d9e80702()
[all …]
/system/logging/liblog/
Dproperties.cpp56 struct cache { struct
62 struct cache cache; argument
66 static int check_cache(struct cache* cache) { in check_cache() argument
67 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; in check_cache()
73 static void refresh_cache(struct cache_char* cache, const char* key) { in refresh_cache() argument
76 if (!cache->cache.pinfo) { in refresh_cache()
77 cache->cache.pinfo = __system_property_find(key); in refresh_cache()
78 if (!cache->cache.pinfo) { in refresh_cache()
82 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache()
83 __system_property_read(cache->cache.pinfo, 0, buf); in refresh_cache()
[all …]
/system/extras/simpleperf/
DCallChainJoiner_test.cpp26 static bool JoinCallChain(LRUCache& cache, uint32_t tid, const std::vector<uint64_t>& input_ip, in JoinCallChain() argument
32 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/sepolicy/private/
Dotapreopt_slot.te2 # 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.
Dmediaprovider.te12 # 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.
Dfile_contexts_overlayfs4 /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
Duncrypt.te15 # Read /cache/recovery/command
16 # Read /cache/recovery/uncrypt_file
Dcppreopts.te15 # Allow cppreopts copy files into the dalvik-cache
26 # write into dalvik-cache
Dapp_zygote.te58 # For ART (read /data/dalvik-cache).
65 # Read /data/misc/apexdata/ to (get to com.android.art/dalvik-cache).
67 # For ART APEX (read /data/misc/apexdata/com.android.art/dalvik-cache).
96 # /data/resource-cache
134 # Do not allow app_zygote access to /cache.
/system/chre/build/aconfig_embedded_flagging/
Dbuild_flags.sh30 $IN_ACONFIG_BIN create-cache \
35 --cache $OUT_DIR/chre_embedded_cache
39 --cache $OUT_DIR/chre_embedded_cache \
44 --cache $OUT_DIR/chre_embedded_cache \
/system/security/keystore2/src/
Dboot_level_keys.rs191 cache: VecDeque<ZVec>, field
201 let mut cache: VecDeque<ZVec> = VecDeque::new(); in new() localVariable
202 cache.push_back(level_zero_key); in new()
203 Self { current: 0, cache } in new()
211 boot_level >= self.current && !self.cache.is_empty() in level_accessible()
222 let first_not_cached = self.current + self.cache.len(); in get_hkdf_key()
228 let highest_key = self.cache.back().unwrap(); in get_hkdf_key()
231 self.cache.push_back(next_key); in get_hkdf_key()
235 Ok(Some(self.cache.get(boot_level - self.current).unwrap())) in get_hkdf_key()
246 self.cache.len() in advance_boot_level()
[all …]
/system/unwinding/libunwindstack/
DMemory.cpp490 CacheDataType* cache) { in InternalCachedRead() argument
492 auto entry = cache->find(addr_page); in InternalCachedRead()
494 if (entry != cache->end()) { in InternalCachedRead()
497 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
500 cache->erase(addr_page); in InternalCachedRead()
516 entry = cache->find(addr_page); in InternalCachedRead()
517 if (entry != cache->end()) { in InternalCachedRead()
520 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
523 cache->erase(addr_page); in InternalCachedRead()
547 CacheDataType* cache = reinterpret_cast<CacheDataType*>(memory); in MemoryThreadCache() local
[all …]
/system/extras/tests/pagingtest/
Dpageinout_test.c12 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()
Dpagingtest.h17 int pageinout_test(int test_runs, bool cache, unsigned long long file_size);
18 int thrashing_test(int test_runs, bool cache);
Dthrashing_test.c14 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/logging/logcat/
Dprocess_names.h28 ProcessNames() : cache(kMaxCacheEntries) {} in ProcessNames()
51 android::LruCache<uint64_t, std::string> cache; variable
Dprocess_names.cpp69 const std::string& cached = cache.get(pid); in Get()
76 cache.put(pid, name); in Get()
/system/extras/simpleperf/doc/
Dexecutable_commands_reference.md9 instructions have executed, or how many cache misses have happened.
71 List of hw-cache events:
85 the ARM PMU on the device. The kernel has wrapped part of them into hardware events and hw-cache
122 # Stat event cache-references and cache-misses.
123 $ simpleperf stat -e cache-references,cache-misses -p 11904 --duration 10
132 # Stat using event cache-references, cache-references:u,....
133 $ simpleperf stat -p 7394 -e cache-references,cache-references:u,cache-references:k \
134 -e cache-misses,cache-misses:u,cache-misses:k,instructions --duration 1
138 490,713 cache-references # 151.682 M/sec
139 899,652 cache-references:u # 130.152 M/sec
[all …]
/system/update_engine/liburing_cpp/
D.gitignore3 .cache
/system/update_engine/
D.gitignore14 .cache
Dupdate_engine_nostats.rc5 group root system wakelock inet cache media_rw
Dupdate_engine.rc5 group root system wakelock inet cache media_rw
/system/core/rootdir/
DAndroid.mk179 LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/cache
181 LOCAL_POST_INSTALL_CMD += ; ln -sf /data/cache $(TARGET_ROOT_OUT)/cache
182 ALL_ROOTDIR_SYMLINKS += $(TARGET_ROOT_OUT)/cache
/system/memory/libmeminfo/testdata1/
Dmaps_short1 …56c00000 r-xp 00000000 00:00 0 [anon:dalvik-zygote-jit-code-cache]

1234