/system/core/libutils/tests/ |
D | LruCache_test.cpp | 141 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/ |
D | log_is_loggable.c | 49 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/ |
D | record_test.cpp | 61 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 …]
|
D | record_file_reader.cpp | 153 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/ |
D | otapreopt_slot.te | 4 # 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.
|
D | cppreopts.te | 16 # Allow cppreopts copy files into the dalvik-cache 27 # write into dalvik-cache
|
D | uncrypt.te | 17 # Read /cache/recovery/command 18 # Read /cache/recovery/uncrypt_file
|
D | zygote.te | 24 # 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.
|
D | dex2oat.te | 6 # 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,
|
D | idmap.te | 5 # Use open file to /data/resource-cache file inherited from installd.
|
D | file.te | 91 # /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
|
D | domain_deprecated.te | 43 # Read /data/dalvik-cache. 47 # Read already opened /cache files.
|
D | file_contexts | 250 /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
|
D | recovery.te | 66 # Required to e.g. wipe userdata/cache. 84 # Manage files on /cache and /cache/recovery
|
D | install_recovery.te | 23 # Create and delete /cache/saved.file
|
D | installd.te | 58 # Create files under /data/dalvik-cache. 62 # Create files under /data/resource-cache.
|
D | platform_app.te | 28 # Write to /cache.
|
/system/core/metricsd/uploader/ |
D | upload_service_test.cc | 283 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/ |
D | init.rc | 237 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 …]
|
D | Android.mk | 135 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/ |
D | shill.conf.in | 53 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/ |
D | update_engine.rc | 4 group root system wakelock dbus inet cache
|
/system/core/include/utils/ |
D | LruCache.h | 107 Iterator(const LruCache<TKey, TValue>& cache): in Iterator() argument 108 mCache(cache), mIterator(mCache.mSet->begin()), mBeginReturned(false) { in Iterator()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.h | 88 int cache( const AssemblyKeyBase& key,
|
/system/core/logcat/ |
D | event.logtags | 106 60002 view_build_drawing_cache (View created drawing cache|1|5) 107 60003 view_use_drawing_cache (View drawn using bitmap cache|1|5)
|