Home
last modified time | relevance | path

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

1234

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/render_context/
Dshader_cache_test.cpp54 auto &cache = ShaderCache::Instance(); variable
56 cache.SetFilePath(testedFileDir);
62 cache.InitShaderCache(identity, 0, false);
63 EXPECT_EQ(nullptr, cache.load(*fakeData));
81 auto &cache = ShaderCache::Instance(); variable
87 cache.InitShaderCache(identity, 0, false);
88 EXPECT_EQ(nullptr, cache.load(*fakeData));
107 auto &cache = ShaderCache::Instance(); variable
109 cache.SetFilePath(testedFileDir);
116 cache.InitShaderCache(identity, 0, false);
[all …]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
Dmemory_handler.cpp28 auto &cache = ShaderCache::Instance(); in ConfigureContext() local
29 cache.SetFilePath(cacheFilePath); in ConfigureContext()
30 cache.InitShaderCache(identity, size, isUni); in ConfigureContext()
31 context->fPersistentCache = &cache; in ConfigureContext()
37 auto& cache = ShaderCache::Instance();
38 cache.SetFilePath(cacheFilePath);
39 cache.InitShaderCache(identity, size, isUni);
40 context->SetPersistentCache(&cache);
70 const auto& cache = ShaderCache::Instance(); in QuerryShader() local
71 if (!cache.IfInitialized()) { in QuerryShader()
[all …]
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/
Db_json_entity_extension_config_test.cpp77 auto cache = cachedEntity.Structuralize(); variable
78 vector<string> includes = cache.GetIncludes();
80 vector<string> excludes = cache.GetExcludes();
109 auto cache = cachedEntity.Structuralize(); variable
110 vector<string> includes = cache.GetIncludes();
140 auto cache = cachedEntity.Structuralize(); variable
141 vector<string> excludes = cache.GetExcludes();
171 auto cache = cachedEntity.Structuralize(); variable
172 vector<string> includes = cache.GetIncludes();
175 vector<string> excludes = cache.GetExcludes();
[all …]
Db_json_entity_ext_manage_test.cpp121 auto cache = cachedEntity.Structuralize(); variable
125 cache.SetExtManage(info);
128 auto fileNames = cache.GetExtManage();
130 auto fileInfo = cache.GetExtManageInfo();
168 auto cache = cachedEntity.Structuralize(); variable
174 cache.SetExtManage(info);
177 auto fileNames = cache.GetExtManage();
180 auto fileInfo = cache.GetExtManageInfo();
227 auto cache = cachedEntity.Structuralize(); variable
234 cache.SetExtManage(info);
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
Ddecoration.cpp454 for (const auto& cache : caches_) { in ToString() local
455 switch (cache.first) { in ToString()
458 str.append(cache.second.cmds).append(" "); in ToString()
463 str.append(std::to_string(cache.second.para1)).append(","); in ToString()
464 str.append(std::to_string(cache.second.para2)).append(","); in ToString()
465 str.append(std::to_string(cache.second.para3)).append(","); in ToString()
466 str.append(std::to_string(cache.second.para4)).append(","); in ToString()
467 str.append(std::to_string(cache.second.para5)).append(","); in ToString()
468 str.append(std::to_string(cache.second.para6)).append(" "); in ToString()
473 str.append(std::to_string(cache.second.para1)).append(","); in ToString()
[all …]
/foundation/communication/netstack/frameworks/js/napi/http/
DBUILD.gn21 "cache/base64/include",
22 "cache/cache_constant/include",
23 "cache/cache_proxy/include",
24 "cache/cache_strategy/include",
25 "cache/lru_cache/include",
61 "cache/base64/src/base64_utils.cpp",
62 "cache/cache_proxy/src/cache_proxy.cpp",
63 "cache/cache_strategy/src/http_cache_request.cpp",
64 "cache/cache_strategy/src/http_cache_response.cpp",
65 "cache/cache_strategy/src/http_cache_strategy.cpp",
[all …]
/foundation/communication/netstack/test/unittest/http/cache/
DBUILD.gn35 "$NETSTACK_NAPI_ROOT/http/cache/cache_constant/include",
36 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/include",
39 "$NETSTACK_NAPI_ROOT/http/cache/base64/include",
46 "$NETSTACK_NAPI_ROOT/http/cache/base64/src/base64_utils.cpp",
47 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/src/http_cache_request.cpp",
48 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/src/http_cache_response.cpp",
49 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/src/http_cache_strategy.cpp",
50 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/src/http_time.cpp",
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
Drecently_unused_bundle_aging_handler.cpp146 for (const auto &cache : caches) { in CleanCache() local
147 APP_LOGD("cache path: %{public}s", cache.c_str()); in CleanCache()
148 ErrCode ret = InstalldClient::GetInstance()->CleanBundleDataDir(cache); in CleanCache()
150 APP_LOGE("CleanBundleDataDir failed, path: %{private}s", cache.c_str()); in CleanCache()
191 std::vector<std::string> cache; in GetCachePath() local
192 if (InstalldClient::GetInstance()->GetBundleCachePath(st, cache) != ERR_OK) { in GetCachePath()
197 std::copy(cache.begin(), cache.end(), std::back_inserter(caches)); in GetCachePath()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
Dpixelmap_image.cpp158 auto cache = pipeline->GetImageCache(); in Cache() local
159 CHECK_NULL_VOID(cache); in Cache()
160 cache->CacheImageData(key, MakeRefPtr<PixmapCachedData>(GetPixelMap())); in Cache()
167 auto cache = pipeline->GetImageCache(); in QueryFromCache() local
168 CHECK_NULL_RETURN(cache, nullptr); in QueryFromCache()
169 auto data = DynamicCast<PixmapCachedData>(cache->GetCacheImageData(key)); in QueryFromCache()
Dskia_image.cpp145 auto cache = pipelineCtx->GetImageCache(); in Cache() local
146 CHECK_NULL_VOID(cache); in Cache()
157 auto cache = pipelineCtx->GetImageCache(); in QueryFromCache() local
158 CHECK_NULL_RETURN(cache, nullptr); in QueryFromCache()
159 auto cacheImage = cache->GetCacheImage(key); in QueryFromCache()
Danimated_image.cpp259 auto cache = ctx->GetImageCache(); in CacheFrame() local
260 CHECK_NULL_VOID(cache); in CacheFrame()
266 cache->CacheImage(key, cacheNode); in CacheFrame()
333 auto cache = ctx->GetImageCache(); in CacheFrame() local
334 CHECK_NULL_VOID(cache); in CacheFrame()
337 cache->CacheImageData(key, MakeRefPtr<PixmapCachedData>(currentFrame_)); in CacheFrame()
/foundation/arkui/ace_engine_lite/frameworks/packages/runtime-core/src/observer/
Dsubject.js145 function hijack(target, key, cache) { argument
156 const subSubject = Subject.of(cache);
161 return cache;
164 cache = value;
/foundation/resourceschedule/ffrt/src/util/
Dslab.h172 std::vector<T*> cache; variable
191 cache.push_back(reinterpret_cast<T*>(p + i)); in expand()
200 if (cache.empty()) { in alloc()
206 p = cache.back(); in alloc()
207 cache.pop_back(); in alloc()
215 cache.push_back(p); in free()
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/
Dprepared_model_service.cpp67 sptr<Ashmem> cache = Ashmem::CreateAshmem(name, size); in ExportModelCache() local
68 if (cache == nullptr) { in ExportModelCache()
73 bool ret = cache->MapReadAndWriteAshmem(); in ExportModelCache()
79 ret = cache->WriteToAshmem(buffer, size, 0); in ExportModelCache()
80 cache->UnmapAshmem(); in ExportModelCache()
86 m_cacheBuffer = cache; in ExportModelCache()
89 …modelCache.emplace_back(SharedBuffer {cache->GetAshmemFd(), cache->GetAshmemSize(), 0, cache->GetA… in ExportModelCache()
/foundation/arkui/ace_engine/frameworks/core/image/
Dimage_cache.cpp62 std::unordered_map<std::string, typename std::list<CacheNode<T>>::iterator>& cache, in CacheWithCountLimitLRU() argument
65 auto iter = cache.find(key); in CacheWithCountLimitLRU()
66 if (iter == cache.end()) { in CacheWithCountLimitLRU()
67 if (cache.size() == capacity) { in CacheWithCountLimitLRU()
68 cache.erase(cacheList.back().cacheKey); in CacheWithCountLimitLRU()
72 cache.emplace(key, cacheList.begin()); in CacheWithCountLimitLRU()
82 std::unordered_map<std::string, typename std::list<CacheNode<T>>::iterator>& cache) in GetCacheObjWithCountLimitLRU() argument
84 auto iter = cache.find(key); in GetCacheObjWithCountLimitLRU()
85 if (iter != cache.end()) { in GetCacheObjWithCountLimitLRU()
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
Dext_extension.cpp114 auto cache = cachedEntity.Structuralize(); in IndexFileReady() local
115 cache.SetExtManage(pkgInfo); in IndexFileReady()
138 auto cache = cachedEntity.Structuralize(); in BigFileReady() local
139 map<string, pair<string, struct stat>> pkgInfo = cache.GetExtManageInfo(); in BigFileReady()
328 auto cache = cachedEntity.Structuralize(); in AsyncTaskBackup() local
329 if (!cache.GetAllowToBackupRestore()) { in AsyncTaskBackup()
338 ret = ptr->DoBackup(cache); in AsyncTaskBackup()
381 auto cache = cachedEntity.Structuralize(); in IsAllFileReceived() local
382 set<string> info = cache.GetExtManage(); in IsAllFileReceived()
403 auto cache = cachedEntity.Structuralize(); in RestoreBigFiles() local
[all …]
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/
Dprepared_model_service.cpp69 sptr<Ashmem> cache = Ashmem::CreateAshmem(name, size); in ExportModelCache() local
70 if (cache == nullptr) { in ExportModelCache()
75 bool ret = cache->MapReadAndWriteAshmem(); in ExportModelCache()
81 ret = cache->WriteToAshmem(buffer, size, 0); in ExportModelCache()
82 cache->UnmapAshmem(); in ExportModelCache()
88 m_cacheBuffer = cache; in ExportModelCache()
91 …modelCache.emplace_back(SharedBuffer {cache->GetAshmemFd(), cache->GetAshmemSize(), 0, cache->GetA… in ExportModelCache()
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
Dimage_provider.cpp53 auto cache = pipelineCtx->GetImageCache(); in CacheImageObject() local
54 CHECK_NULL_VOID(cache); in CacheImageObject()
55 if (cache && obj->IsSupportCache()) { in CacheImageObject()
56 cache->CacheImgObjNG(obj->GetSourceInfo().GetKey(), obj); in CacheImageObject()
88 auto cache = pipeline->GetImageCache(); in QueryThumbnailCache() local
89 CHECK_NULL_RETURN(cache, nullptr); in QueryThumbnailCache()
90 auto data = DynamicCast<PixmapCachedData>(cache->GetCacheImageData(src.GetKey())); in QueryThumbnailCache()
/foundation/communication/netstack/test/unittest/http/
DBUILD.gn36 "$NETSTACK_NAPI_ROOT/http/cache/cache_constant/include",
37 "$NETSTACK_NAPI_ROOT/http/cache/cache_strategy/include",
40 "$NETSTACK_NAPI_ROOT/http/cache/base64/include",
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
Ddrawing_image.cpp121 auto cache = pipelineCtx->GetImageCache(); in Cache() local
122 CHECK_NULL_VOID(cache); in Cache()
133 auto cache = pipelineCtx->GetImageCache(); in QueryFromCache() local
134 CHECK_NULL_RETURN(cache, nullptr); in QueryFromCache()
135 auto cacheImage = cache->GetCacheImage(key); in QueryFromCache()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render_backend/
Ddrawing_context.cpp72 auto &cache = ShaderCache::Instance(); in SetUpDrawingContext() local
75 cache.SetFilePath(UNIRENDER_CACHE_DIR); in SetUpDrawingContext()
77 cache.InitShaderCache(glesVersion, size, isUni); in SetUpDrawingContext()
78 options.fPersistentCache = &cache; in SetUpDrawingContext()
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
Dlazy_for_each_builder.h240 …Ptr<UINode> CacheItem(int32_t index, std::unordered_map<std::string, LazyForEachCacheChild>& cache, in CacheItem() argument
246 cache.try_emplace(itemInfo.first, LazyForEachCacheChild(index, itemInfo.second)); in CacheItem()
260 std::unordered_map<std::string, LazyForEachCacheChild> cache; in PreBuild() local
276 cache.try_emplace(key, std::move(node)); in PreBuild()
288 auto uiNode = CacheItem(index, cache, itemConstraint); in PreBuild()
308 expiringItem_.swap(cache); in PreBuild()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
Ddns_resolv_config.cpp20 … NetManagerStandard::LRUCache<AddrInfo> &cache) in DelayedTaskWrapper() argument
21 : hostName_(std::move(hostName)), cache_(cache) in DelayedTaskWrapper()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
Dkvdb_manager.h88 const std::map<std::string, IKvDB *> &cache, bool isNeedCheckPasswd, int &errCode) const;
90 …sOpenMemoryDb(const KvDBProperties &properties, const std::map<std::string, IKvDB *> &cache) const;
124 …mCacheByIdentify(const std::string &identifier, const std::map<std::string, IKvDB *> &cache) const;
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
Dgatt_client_profile.cpp792 auto cache = pimpl->cacheMap_.find(connectHandle); in GetServices() local
793 if (cache != pimpl->cacheMap_.end()) { in GetServices()
794 return &cache->second.GetServices(); in GetServices()
802 auto cache = pimpl->cacheMap_.find(connectHandle); in GetCharacteristicEndHandle() local
803 if (cache != pimpl->cacheMap_.end()) { in GetCharacteristicEndHandle()
804 return cache->second.GetCharacteristicEndHandle(svcHandle, handle); in GetCharacteristicEndHandle()
820 auto cache = pimpl->cacheMap_.find(connectHandle); in GetService() local
821 if (cache != pimpl->cacheMap_.end()) { in GetService()
822 auto sIt = cache->second.GetServices().find(handle); in GetService()
823 if (sIt != cache->second.GetServices().end()) { in GetService()
[all …]

1234