Home
last modified time | relevance | path

Searched refs:viewId (Results 1 - 25 of 33) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_stack_processor.h58 static void SetViewMap(const std::string& viewId, const JSRef<JSObject>& jsView) in SetViewMap() argument
60 if (viewMap_.find(viewId) != viewMap_.end()) { in SetViewMap()
61 LOGW("jsView already exists for viewId: %{public}s", viewId.c_str()); in SetViewMap()
65 viewMap_.emplace(viewId, jsView); in SetViewMap()
68 static JSRef<JSObject> GetViewById(const std::string viewId) in GetViewById() argument
70 auto it = viewMap_.find(viewId); in GetViewById()
72 LOGW("get view failed with viewId:%{public}s", viewId.c_str()); in GetViewById()
75 LOGI("get view success with viewId in GetViewById()
[all...]
H A Djs_lazy_foreach.cpp91 RefPtr<JSLazyForEachActuator> CreateActuator(const std::string& viewId) in CreateActuator() argument
99 return AceType::MakeRefPtr<JSLazyForEachComponent>(viewId); in CreateActuator()
178 std::string viewId = ViewStackModel::GetInstance()->ProcessViewId(params[PARAM_VIEW_ID]->ToString()); in Create() local
187 keyGenFunc = [viewId](const JSRef<JSVal>&, size_t index) { return viewId + "-" + std::to_string(index); }; in Create()
189 keyGenFunc = [viewId, keyGenerator = JSRef<JSFunc>::Cast(params[PARAM_KEY_GENERATOR])]( in Create()
193 return viewId + "-" + (key->IsString() || key->IsNumber() ? key->ToString() : std::to_string(index)); in Create()
201 const auto& actuator = CreateActuator(viewId); in Create()
H A Djs_view.cpp168 JSViewFullUpdate::JSViewFullUpdate(const std::string& viewId, JSRef<JSObject> jsObject, JSRef<JSFunc> jsRenderFunction) in JSViewFullUpdate() argument
170 viewId_ = viewId; in JSViewFullUpdate()
226 NodeInfo info = { .viewId = viewId_, in CreateViewNode()
307 std::string viewId = info[0]->ToString(); in FindChildById() local
308 info.SetReturnValue(GetChildById(viewId)); in FindChildById()
319 std::string viewId = std::to_string(info[0]->ToNumber<int32_t>()); in FindChildByIdForPreview() local
320 if (viewId_ == viewId) { in FindChildByIdForPreview()
326 if (GetChildByViewId(viewId, child.second, targetView)) { in FindChildByIdForPreview()
338 const std::string& viewId, JSRef<JSObject>& childView, JSRef<JSObject>& targetView) in GetChildByViewId()
342 if (view->viewId_ == viewId) { in GetChildByViewId()
337 GetChildByViewId( const std::string& viewId, JSRef<JSObject>& childView, JSRef<JSObject>& targetView) GetChildByViewId() argument
365 std::string viewId = info[0]->ToString(); ConstructorCallback() local
437 GetChildById(const std::string& viewId) GetChildById() argument
452 AddChildById(const std::string& viewId, const JSRef<JSObject>& obj) AddChildById() argument
478 RemoveChildGroupById(const std::string& viewId) RemoveChildGroupById() argument
508 ChildAccessedById(const std::string& viewId) ChildAccessedById() argument
1156 std::string viewId = std::to_string(info[0]->ToNumber<int32_t>()); FindChildByIdForPreview() local
[all...]
H A Djs_view.h145 virtual void RemoveChildGroupById(const std::string& viewId) {} in RemoveChildGroupById() argument
197 JSViewFullUpdate(const std::string& viewId, JSRef<JSObject> jsObject, JSRef<JSFunc> jsRenderFunction);
221 JSRef<JSObject> GetChildById(const std::string& viewId);
225 bool GetChildByViewId(const std::string& viewId, JSRef<JSObject>& childView, JSRef<JSObject>& targetView);
249 std::string AddChildById(const std::string& viewId, const JSRef<JSObject>& obj);
251 void RemoveChildGroupById(const std::string& viewId) override;
263 * Takes care of the viewId wrt to foreach
265 std::string ProcessViewId(const std::string& viewId);
270 void ChildAccessedById(const std::string& viewId);
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_full_update_model_ng_test.cpp66 std::string viewId = "id"; in HWTEST_F() local
72 NodeInfo info = { .viewId = viewId, in HWTEST_F()
91 std::string viewId = "id"; in HWTEST_F() local
103 NodeInfo info = { .viewId = viewId, in HWTEST_F()
124 std::string viewId = "id"; in HWTEST_F() local
140 NodeInfo info = { .viewId = viewId, in HWTEST_F()
H A Dview_partial_update_model_test_ng.cpp69 auto updateViewNodeFunction = [&viewIdStr](std::string viewId = "testViewIdStr") { viewIdStr = viewId; }; in HWTEST_F()
95 auto updateViewNodeFunction = [&viewIdStr](std::string viewId = "testViewIdStr") { viewIdStr = viewId; }; in HWTEST_F()
122 auto updateViewNodeFunction = [&viewIdStr](std::string viewId = "testViewIdStr") { viewIdStr = viewId; }; in HWTEST_F()
154 auto updateViewNodeFunction = [&viewIdStr](std::string viewId = "testViewIdStr") { viewIdStr = viewId; }; in HWTEST_F()
190 auto updateViewNodeFunction = [&viewIdStr](std::string viewId = "testViewIdStr") { viewIdStr = viewId; }; in HWTEST_F()
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/
H A Ddfx_module.cpp125 char *viewId = GetDomViewId(args); in DumpDomTree() local
136 if ((uIDumpDomTree != nullptr) && (uIDumpDomTree->DumpDomTree(viewId, path))) { in DumpDomTree()
138 if ((uIDumpDomTree != nullptr) && (uIDumpDomTree->DumpDomTree(viewId))) { in DumpDomTree()
149 JSI::ReleaseString(viewId); in DumpDomTree()
160 char *viewId = GetDomViewId(args); in DumpDomTree() local
161 char *msg = uIDumpDomTree->DumpDomNode(viewId); in DumpDomTree()
163 JSI::ReleaseString(viewId); in DumpDomTree()
168 JSI::ReleaseString(viewId); in DumpDomTree()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_partial_update_model_ng.cpp26 auto viewId = NG::ViewStackProcessor::GetInstance()->ClaimNodeId(); in CreateNode() local
27 ACE_LAYOUT_SCOPED_TRACE("Create[%s][self:%d]", info.jsViewName.c_str(), viewId); in CreateNode()
28 auto viewIdStr = std::to_string(viewId); in CreateNode()
35 customNode = NG::CustomTitleNode::CreateCustomTitleNode(viewId, key); in CreateNode()
37 customNode = NG::CustomMeasureLayoutNode::CreateCustomMeasureLayoutNode(viewId, key); in CreateNode()
50 customNode = NG::CustomNode::CreateCustomNode(viewId, key); in CreateNode()
H A Dview_stack_model_ng.h69 std::string ProcessViewId(const std::string& viewId) override
71 return ViewStackProcessor::GetInstance()->ProcessViewId(viewId);
H A Dview_stack_processor.cpp225 std::string ViewStackProcessor::ProcessViewId(const std::string& viewId) in ProcessViewId() argument
227 return viewKey_.empty() ? viewId : viewKey_ + "_" + viewId; in ProcessViewId()
H A Dview_full_update_model.h31 std::string viewId; member
H A Dview_full_update_model_ng.cpp26 std::string key = NG::ViewStackProcessor::GetInstance()->ProcessViewId(info.viewId); in CreateNode()
H A Dview_stack_model.h43 virtual std::string ProcessViewId(const std::string& viewId) = 0;
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/dfx/dfx3/
H A Dindex.js23 getDomTree(viewId) {
24 if (dfx.dumpDomTree(viewId)) {
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dfor_each_model_impl.cpp38 std::string viewId = viewStack->ProcessViewId(compilerGenId); in Create() local
39 viewStack->Push(AceType::MakeRefPtr<ForEachComponent>(viewId, "ForEach")); in Create()
H A Dview_stack_model_impl.h67 std::string ProcessViewId(const std::string& viewId) override
69 return ViewStackProcessor::GetInstance()->ProcessViewId(viewId);
H A Dview_full_update_model_impl.cpp25 std::string key = ViewStackProcessor::GetInstance()->ProcessViewId(info.viewId); in CreateNode()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dinspector_composed_component.h130 void SetViewId(std::string viewId) in SetViewId() argument
132 viewId_ = viewId; in SetViewId()
H A Dinspector_node.h87 void SetViewId(const std::string& viewId) in SetViewId() argument
89 viewId_ = viewId; in SetViewId()
/foundation/arkui/ui_lite/test/uitest/test_edit_text/
H A Dui_test_edit_text.cpp120 UIEditText* UITestEditText::SetupEditText(const char* value, const char* placeholder, const char* viewId) in SetupEditText() argument
127 editText->SetViewId(viewId); in SetupEditText()
134 printf("onchange viewId:%s, value:%s\n", view.GetViewId(), value); in OnChange()
H A Dui_test_edit_text.h48 UIEditText* SetupEditText(const char* value, const char* placeholder, const char* viewId);
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_foreach_ffi.h43 char* viewId, int64_t parentViewID, int64_t dataSize, ViewCallBack callbackView, IdCallBack callbackKey);
/foundation/arkui/ui_lite/test/uitest/test_view_zindex/
H A Dui_test_view_zindex.h41 UILabelButton* CreateZIndexBtn(const char* text, const char* viewId);
H A Dui_test_view_zindex.cpp123 UILabelButton* UITestViewZIndex::CreateZIndexBtn(const char* text, const char* viewId) in CreateZIndexBtn() argument
129 btn->SetViewId(viewId); in CreateZIndexBtn()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_page_router_abstract.h83 void AddView(int64_t viewId) in AddView() argument
85 viewStack_.emplace_back(viewId); in AddView()

Completed in 10 milliseconds

12