Home
last modified time | relevance | path

Searched refs:contexts_ (Results 1 - 5 of 5) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/
H A Djsi_context_module.cpp26 thread_local std::unordered_map<int32_t, std::shared_ptr<JsValue>> JsiContextModule::contexts_; member in OHOS::Ace::Framework::JsiContextModule
70 auto it = contexts_.find(currentInstance); in GetContext()
71 if (it != contexts_.end()) { in GetContext()
80 it = contexts_.find(currentInstance); in GetContext()
81 if (it != contexts_.end()) { in GetContext()
101 if (contexts_.find(key) != contexts_.end()) { in AddContext()
105 contexts_.emplace(key, value); in AddContext()
110 auto it = contexts_.find(key); in RemoveContext()
111 if (it != contexts_ in RemoveContext()
[all...]
H A Djsi_context_module.h45 static thread_local std::unordered_map<int32_t, std::shared_ptr<JsValue>> contexts_; member in OHOS::Ace::Framework::JsiContextModule
/foundation/CastEngine/castengine_wifi_display/services/context/
H A Dcontext_manager.cpp32 contexts_.clear(); in ~ContextManager()
163 for (auto &item : contexts_) { in CheckAgentSize()
173 for (auto &item : contexts_) { in CheckAgentSize()
190 if (contexts_.size() >= maxContext_) { in HandleContextCreate()
196 contexts_.emplace(context->GetId(), context); in HandleContextCreate()
197 SHARING_LOGI("contextId: %{public}d contextSize: %{public}zu.", context->GetId(), contexts_.size()); in HandleContextCreate()
236 auto itr = contexts_.find(contextId); in GetContextById()
237 if (itr != contexts_.end()) { in GetContextById()
250 auto itr = contexts_.find(contextId); in DestroyContext()
251 if (itr != contexts_ in DestroyContext()
[all...]
H A Dcontext_manager.h68 std::unordered_map<int32_t, Context::Ptr> contexts_; member in OHOS::Sharing::ContextManager
/foundation/CastEngine/castengine_wifi_display/tests/unittest/context/
H A Dcontext_unit_test.cpp937 ContextManager::GetInstance().contexts_ = {}; in HWTEST_F()

Completed in 3 milliseconds