Home
last modified time | relevance | path

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

12

/system/core/libutils/tests/
DLruCache_test.cpp141 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local
143 EXPECT_EQ(NULL, cache.get(0)); in TEST_F()
144 EXPECT_EQ(0u, cache.size()); in TEST_F()
148 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() local
150 cache.put(1, "one"); in TEST_F()
151 cache.put(2, "two"); in TEST_F()
152 cache.put(3, "three"); in TEST_F()
153 EXPECT_STREQ("one", cache.get(1)); in TEST_F()
154 EXPECT_STREQ("two", cache.get(2)); in TEST_F()
155 EXPECT_STREQ("three", cache.get(3)); in TEST_F()
[all …]
/system/core/liblog/
Dlog_is_loggable.c49 struct cache { struct
55 static int check_cache(struct cache *cache) in check_cache() argument
57 return cache->pinfo in check_cache()
58 && __system_property_serial(cache->pinfo) != cache->serial; in check_cache()
64 static void refresh_cache(struct cache *cache, const char *key) in refresh_cache() argument
68 if (!cache->pinfo) { in refresh_cache()
69 cache->pinfo = __system_property_find(key); in refresh_cache()
70 if (!cache->pinfo) { in refresh_cache()
74 cache->serial = __system_property_serial(cache->pinfo); in refresh_cache()
75 __system_property_read(cache->pinfo, 0, buf); in refresh_cache()
[all …]
/system/extras/simpleperf/
Drecord_test.cpp61 RecordCache cache(event_attr, 2, 2); in TEST_F() local
75 cache.Push(buf1.data(), buf1.size()); in TEST_F()
76 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
78 cache.Push(buf2.data(), buf2.size()); in TEST_F()
80 std::unique_ptr<Record> popped_r = cache.Pop(); in TEST_F()
83 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
85 cache.Push(buf3.data(), buf3.size()); in TEST_F()
86 ASSERT_EQ(nullptr, cache.Pop()); in TEST_F()
88 cache.Push(buf4.data(), buf4.size()); in TEST_F()
90 popped_r = cache.Pop(); in TEST_F()
[all …]
Drecord_file_reader.cpp153 RecordCache cache(file_attrs_[0].attr); in ReadDataSection() local
161 cache.Push(std::move(record)); in ReadDataSection()
162 record = cache.Pop(); in ReadDataSection()
174 std::vector<std::unique_ptr<Record>> records = cache.PopAll(); in ReadDataSection()
/system/sepolicy/
Dotapreopt_slot.te4 # from /data/ota to /data/dalvik-cache.
13 # 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.
Dcppreopts.te16 # Allow cppreopts copy files into the dalvik-cache
27 # write into dalvik-cache
Duncrypt.te17 # Read /cache/recovery/command
18 # Read /cache/recovery/uncrypt_file
Dzygote.te24 # Write to /data/dalvik-cache.
27 # Create symlinks in /data/dalvik-cache
29 # Write to /data/resource-cache
102 # Zygote should never execute anything from /data except for /data/dalvik-cache files.
Ddex2oat.te6 # Read symlinks in /data/dalvik-cache. This is required for PIC mode boot images, where
33 # Create and read symlinks in /data/ota/dalvik-cache. This is required for PIC mode boot images,
Didmap.te5 # Use open file to /data/resource-cache file inherited from installd.
Dfile.te91 # /data/dalvik-cache
102 # /data/resource-cache
175 # Default type for anything under /cache
177 # Type for /cache/backup_stage/* (fd interchange with apps)
179 # type for anything under /cache/backup (local transport storage)
181 # Type for anything under /cache/recovery
Ddomain_deprecated.te43 # Read /data/dalvik-cache.
47 # Read already opened /cache files.
Dfile_contexts250 /data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0
251 /data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
359 /cache(/.*)? u:object_r:cache_file:s0
360 /cache/recovery(/.*)? u:object_r:cache_recovery_file:s0
362 /cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0
364 /cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
366 /data/cache(/.*)? u:object_r:cache_file:s0
367 /data/cache/recovery(/.*)? u:object_r:cache_recovery_file:s0
369 /data/cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0
371 /data/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
Drecovery.te66 # Required to e.g. wipe userdata/cache.
84 # Manage files on /cache and /cache/recovery
Dinstall_recovery.te23 # Create and delete /cache/saved.file
Dinstalld.te58 # Create files under /data/dalvik-cache.
62 # Create files under /data/resource-cache.
Dplatform_app.te28 # Write to /cache.
/system/core/metricsd/uploader/
Dupload_service_test.cc283 SystemProfileCache cache(true, dir_.path()); in TEST_F() local
284 cache.Initialize(); in TEST_F()
285 int session_id = cache.profile_.session_id; in TEST_F()
286 cache.initialized_ = false; in TEST_F()
287 cache.Initialize(); in TEST_F()
288 EXPECT_EQ(cache.profile_.session_id, session_id + 1); in TEST_F()
294 SystemProfileCache cache(true, dir_.path()); in TEST_F() local
295 ASSERT_FALSE(cache.Initialize()); in TEST_F()
297 ASSERT_FALSE(cache.Initialize()); in TEST_F()
299 ASSERT_TRUE(cache.Initialize()); in TEST_F()
/system/core/rootdir/
Dinit.rc237 export DOWNLOAD_CACHE /data/cache
310 # We chown/chmod /cache again so because mount is run as root + defaults
311 chown system cache /cache
312 chmod 0770 /cache
313 # We restorecon /cache in case the cache partition has been reset.
314 restorecon_recursive /cache
316 # Create /cache/recovery in case it's not there. It'll also fix the odd
318 mkdir /cache/recovery 0770 system cache
320 # Backup/restore mechanism uses the cache partition
321 mkdir /cache/backup_stage 0700 system system
[all …]
DAndroid.mk135 LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/cache
137 LOCAL_POST_INSTALL_CMD += ; ln -sf /data/cache $(TARGET_ROOT_OUT)/cache
/system/connectivity/shill/init/
Dshill.conf.in53 mkdir -p /var/cache/shill
56 if [ ! -f /var/cache/shill/default.profile -a \
57 -f /var/cache/flimflam/default.profile ]; then
58 mv /var/cache/flimflam/default.profile /var/cache/shill/default.profile
59 chmod a+r /var/cache/shill/default.profile
/system/update_engine/
Dupdate_engine.rc4 group root system wakelock dbus inet cache
/system/core/include/utils/
DLruCache.h107 Iterator(const LruCache<TKey, TValue>& cache): in Iterator() argument
108 mCache(cache), mIterator(mCache.mSet->begin()), mBeginReturned(false) { in Iterator()
/system/core/libpixelflinger/codeflinger/
DCodeCache.h88 int cache( const AssemblyKeyBase& key,
/system/core/logcat/
Devent.logtags106 60002 view_build_drawing_cache (View created drawing cache|1|5)
107 60003 view_use_drawing_cache (View drawn using bitmap cache|1|5)

12