Searched refs:tabIndexNodes (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/focus/ |
H A D | focus_node.cpp | 92 void FocusNode::CollectTabIndexNodes(TabIndexNodeList& tabIndexNodes) in CollectTabIndexNodes() argument 106 child->CollectTabIndexNodes(tabIndexNodes); in CollectTabIndexNodes() 116 auto iter = tabIndexNodes.begin(); in GoToFocusByTabNodeIdx() 118 if (iter == tabIndexNodes.end()) { in GoToFocusByTabNodeIdx() 156 TabIndexNodeList tabIndexNodes; in HandleFocusByTabIndex() local 157 tabIndexNodes.clear(); in HandleFocusByTabIndex() 158 mainNode->CollectTabIndexNodes(tabIndexNodes); in HandleFocusByTabIndex() 183 return GoToFocusByTabNodeIdx(tabIndexNodes, curTabFocusIndex); in HandleFocusByTabIndex() 861 int32_t FocusGroup::GetFocusingTabNodeIdx(TabIndexNodeList& tabIndexNodes) in GetFocusingTabNodeIdx() argument 863 if (tabIndexNodes.empty()) { in GetFocusingTabNodeIdx() [all …]
|
H A D | focus_node.h | 47 void CollectTabIndexNodes(TabIndexNodeList& tabIndexNodes); 48 bool GoToFocusByTabNodeIdx(TabIndexNodeList& tabIndexNodes, int32_t tabNodeIdx); 333 int32_t GetFocusingTabNodeIdx(TabIndexNodeList& tabIndexNodes);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/focus/ |
H A D | focus_view.cpp | 338 TabIndexNodeList tabIndexNodes; in TriggerFocusMove() local 339 tabIndexNodes.clear(); in TriggerFocusMove() 340 viewFocusHub->CollectTabIndexNodes(tabIndexNodes); in TriggerFocusMove() 341 if (tabIndexNodes.empty()) { in TriggerFocusMove() 350 …tabIndexNodes.sort([](std::pair<int32_t, WeakPtr<FocusHub>>& a, std::pair<int32_t, WeakPtr<FocusHu… in TriggerFocusMove() 353 return viewFocusHub->GoToFocusByTabNodeIdx(tabIndexNodes, 0); in TriggerFocusMove()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/ |
H A D | focus_hub_test_ng.cpp | 752 TabIndexNodeList tabIndexNodes; variable 761 tabIndexNodes.emplace_back(focusHub->GetTabIndex(), focusHub); 771 EXPECT_EQ(focusHub->GetFocusingTabNodeIdx(tabIndexNodes), 0); 918 TabIndexNodeList tabIndexNodes; variable 919 EXPECT_FALSE(focusHub->GoToFocusByTabNodeIdx(tabIndexNodes, 0)); 925 tabIndexNodes.emplace_back(focusHub->GetTabIndex(), nullptr); 926 EXPECT_FALSE(focusHub->GoToFocusByTabNodeIdx(tabIndexNodes, 0)); 932 tabIndexNodes.emplace_back(focusHub->GetTabIndex(), focusHub); 933 EXPECT_FALSE(focusHub->GoToFocusByTabNodeIdx(tabIndexNodes, 1)); 941 EXPECT_FALSE(focusHub->GoToFocusByTabNodeIdx(tabIndexNodes, 1)); [all …]
|
H A D | focus_hub_test_ng_new.cpp | 373 TabIndexNodeList tabIndexNodes; variable 1069 TabIndexNodeList tabIndexNodes; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | focus_hub.cpp | 1976 void FocusHub::CollectTabIndexNodes(TabIndexNodeList& tabIndexNodes) in CollectTabIndexNodes() argument 1979 tabIndexNodes.emplace_back(GetTabIndex(), WeakClaim(this)); in CollectTabIndexNodes() 1983 child->CollectTabIndexNodes(tabIndexNodes); in CollectTabIndexNodes() 1990 auto iter = tabIndexNodes.begin(); in GoToFocusByTabNodeIdx() 1992 if (iter == tabIndexNodes.end()) { in GoToFocusByTabNodeIdx() 2198 for (auto& wpNode : tabIndexNodes) { in GetFocusingTabNodeIdx() 2219 TabIndexNodeList tabIndexNodes; in HandleFocusByTabIndex() local 2220 tabIndexNodes.clear(); in HandleFocusByTabIndex() 2221 CollectTabIndexNodes(tabIndexNodes); in HandleFocusByTabIndex() 2222 if (tabIndexNodes.empty()) { in HandleFocusByTabIndex() [all …]
|
H A D | focus_hub.h | 536 void CollectTabIndexNodes(TabIndexNodeList& tabIndexNodes); 537 bool GoToFocusByTabNodeIdx(TabIndexNodeList& tabIndexNodes, int32_t tabNodeIdx); 542 int32_t GetFocusingTabNodeIdx(TabIndexNodeList& tabIndexNodes) const;
|