Home
last modified time | relevance | path

Searched refs:srcNodeId (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Ddistributed_ui.cpp384 void DistributedUI::SetIdMapping(int32_t srcNodeId, int32_t sinkNodeId) in SetIdMapping() argument
386 nodeIdMapping_[srcNodeId] = sinkNodeId; in SetIdMapping()
389 int32_t DistributedUI::GetIdMapping(int32_t srcNodeId) in GetIdMapping() argument
392 auto iter = nodeIdMapping_.find(srcNodeId); in GetIdMapping()
549 auto srcNodeId = nodeObject->GetInt(DISTRIBUTE_UI_ID); in RestoreNode() local
555 srcNodeId, srcParentNodeId, depth); in RestoreNode()
565 auto sinkNodeId = srcNodeId == -1 ? -1 : ElementRegister::GetInstance()->MakeUniqueId(); in RestoreNode()
582 SetIdMapping(srcNodeId, uiNode->GetId()); in RestoreNode()
H A Ddistributed_ui.h100 void SetIdMapping(int32_t srcNodeId, int32_t sinkNodeId);
101 int32_t GetIdMapping(int32_t srcNodeId);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/base/
H A Ddistributed_ui_test_ng.cpp298 int32_t srcNodeId = 0; variable
300 distributedUI.SetIdMapping(srcNodeId, sinkNodeId);
301 EXPECT_EQ(distributedUI.GetIdMapping(srcNodeId), sinkNodeId);
306 distributedUI.SetIdMapping(srcNodeId, sinkNodeId + 1);