/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/ |
H A D | navrouter_group_test_ng.cpp | 429 navDestinationPattern->OnModifyDone(); 436 navDestinationPattern->OnModifyDone(); 439 navDestinationPattern->OnModifyDone(); 492 navDestinationPattern->OnModifyDone(); 498 navDestinationPattern->OnModifyDone(); 683 ASSERT_NE(navDestinationPattern, nullptr); 1089 …EXPECT_NE(stackTest->FindIndex(navDestinationPattern->name_, navDestinationPattern->customNode_, t… 1120 navDestinationPattern->name_ = "Page01"; 1157 …EXPECT_EQ(stackTest->FindIndex(navDestinationPattern->name_, navDestinationPattern->customNode_, t… 1195 navDestinationPattern->name_ = "Page01"; [all …]
|
H A D | navrouter_pattern_test_ng.cpp | 82 ASSERT_NE(navDestinationPattern, nullptr); 85 navDestinationPattern->OnAttachToMainTree(); 105 navDestinationPattern->OnAttachToMainTree(); 126 navDestinationPattern->OnAttachToMainTree(); 316 ASSERT_NE(navDestinationPattern, nullptr); 352 ASSERT_NE(navDestinationPattern, nullptr); 386 ASSERT_NE(navDestinationPattern, nullptr); 650 ASSERT_NE(navDestinationPattern, nullptr); 669 ASSERT_NE(navDestinationPattern, nullptr); 695 ASSERT_NE(navDestinationPattern, nullptr); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/ |
H A D | navdestination_layout_algorithm.cpp | 59 auto navDestinationPattern = hostNode->GetPattern<NavDestinationPattern>(); in CheckTopEdgeOverlap() local 60 CHECK_NULL_RETURN(navDestinationPattern, false); in CheckTopEdgeOverlap() 141 auto navDestinationPattern = hostNode->GetPattern<NavDestinationPattern>(); in MeasureTitleBar() local 142 CHECK_NULL_RETURN(navDestinationPattern, 0.0f); in MeasureTitleBar() 230 CHECK_NULL_RETURN(navDestinationPattern, 0.0f); in LayoutTitleBar() 231 navDestinationPattern->SetTitleBarOffsetY(offsetY); in LayoutTitleBar() 309 CHECK_NULL_RETURN(navDestinationPattern, defaultBarHeight); in TransferBarHeight() 346 CHECK_NULL_VOID(navDestinationPattern); in Measure() 360 navDestinationPattern->SetTitleBarHeight(titleBarHeight); in Measure() 364 navDestinationPattern->SetToolBarHeight(toolBarHeight); in Measure() [all …]
|
H A D | navrouter_group_node.cpp | 74 auto navDestinationPattern = AceType::DynamicCast<NavDestinationPattern>( in OnDetachFromMainTree() local 76 stack->Remove(navDestinationPattern->GetName(), navDestinationNode_); in OnDetachFromMainTree() 162 auto navDestinationPattern = navDestination->GetPattern<NavDestinationPattern>(); in AddNavDestinationToNavigation() local 163 CHECK_NULL_VOID(navDestinationPattern); in AddNavDestinationToNavigation() 165 auto shallowBuilder = navDestinationPattern->GetShallowBuilder(); in AddNavDestinationToNavigation() 174 navDestinationPattern->SetNavigationStack(stack); in AddNavDestinationToNavigation() 175 name = navDestinationPattern->GetName(); in AddNavDestinationToNavigation() 179 auto navDestinationPattern = navDestination->GetPattern<NavDestinationPattern>(); in AddNavDestinationToNavigation() local 180 navDestinationPattern->SetNavigationId(navigationNode->GetInspectorId().value_or("")); in AddNavDestinationToNavigation()
|
H A D | navdestination_model_ng.cpp | 394 CHECK_NULL_VOID(navDestinationPattern); in SetTitlebarOptions() 601 CHECK_NULL_VOID(navDestinationPattern); in SetMenuItems() 602 navDestinationPattern->SetTitleBarMenuItems(menuItems); in SetMenuItems() 640 CHECK_NULL_VOID(navDestinationPattern); in SetBackgroundColor() 646 navDestinationPattern->SetIsUserDefinedBgColor(true); in SetBackgroundColor() 654 CHECK_NULL_VOID(navDestinationPattern); in SetBackgroundColor() 660 navDestinationPattern->SetIsUserDefinedBgColor(true); in SetBackgroundColor() 835 CHECK_NULL_VOID(navDestinationPattern); in SetTitlebarOptions() 859 CHECK_NULL_VOID(navDestinationPattern); in SetMenuItems() 871 CHECK_NULL_VOID(navDestinationPattern); in SetMenuItemAction() [all …]
|
H A D | navdestination_group_node.cpp | 138 auto navDestinationPattern = GetPattern<NavDestinationPattern>(); in ProcessShallowBuilder() local 139 CHECK_NULL_VOID(navDestinationPattern); in ProcessShallowBuilder() 140 auto shallowBuilder = navDestinationPattern->GetShallowBuilder(); in ProcessShallowBuilder() 144 auto ctx = navDestinationPattern->GetNavDestinationContext(); in ProcessShallowBuilder() 273 auto navDestinationPattern = GetPattern<NavDestinationPattern>(); in SystemTransitionPushCallback() local 274 …auto navigation = AceType::DynamicCast<NavigationGroupNode>(navDestinationPattern->GetNavigationNo… in SystemTransitionPushCallback()
|
H A D | navdestination_pattern.cpp | 58 auto navDestinationPattern = navDestinationGroupNode->GetPattern<NavDestinationPattern>(); in BuildMenu() local 59 CHECK_NULL_VOID(navDestinationPattern); in BuildMenu() 60 auto titleBarMenuItems = navDestinationPattern->GetTitleBarMenuItems(); in BuildMenu() 61 auto toolBarMenuItems = navDestinationPattern->GetToolBarMenuItems(); in BuildMenu() 68 if (navDestinationPattern->HasMenuNodeId()) { in BuildMenu() 69 … auto menuNode = NavigationTitleUtil::CreateMenuItems(navDestinationPattern->GetMenuNodeId(), in BuildMenu() 77 …auto landscapeMenuNode = NavigationTitleUtil::CreateMenuItems(navDestinationPattern->GetLandscapeM… in BuildMenu()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_wrapper_pattern.h | 52 auto navDestinationPattern = rootNode->GetPattern<NavDestinationPattern>(); in OnAttachToMainTree() local 53 CHECK_NULL_VOID(navDestinationPattern); in OnAttachToMainTree() 54 auto zIndex = navDestinationPattern->GetTitlebarZIndex(); in OnAttachToMainTree()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/ |
H A D | navigation_layout_test_ng.cpp | 149 EXPECT_NE(navDestinationPattern, nullptr); 151 navDestinationPattern->SetIsOnShow(isOnShow); 183 EXPECT_NE(navDestinationPattern, nullptr); 185 navDestinationPattern->SetIsOnShow(isOnShow); 217 EXPECT_NE(navDestinationPattern, nullptr); 278 EXPECT_NE(navDestinationPattern, nullptr); 312 EXPECT_NE(navDestinationPattern, nullptr); 346 EXPECT_NE(navDestinationPattern, nullptr); 903 navDestinationPattern->SetIsOnShow(false); 958 navDestinationPattern->SetIsOnShow(false); [all …]
|
H A D | bar_style_test_ng.cpp | 156 auto navDestinationPattern = navDestination->GetPattern<NavDestinationPatternBase>(); variable 157 ASSERT_NE(navDestinationPattern, nullptr); 158 …ASSERT_EQ(navDestinationPattern->GetTitleBarStyle().value_or(BarStyle::STANDARD), candidateBarStyl… 405 auto navDestinationPattern = navDestination->GetPattern<NavDestinationPattern>(); variable 406 ASSERT_NE(navDestinationPattern, nullptr); 407 navDestinationPattern->OnModifyDone();
|
H A D | navigation_model_test_ng.cpp | 1355 navDestinationPattern->customNode_ = remainChild; 1360 EXPECT_TRUE(navDestinationPattern->GetCustomNode() == remainChild); 1535 navDestinationPattern->isOnShow_ = false; 1537 navDestinationPattern->customNode_ = remainChild; 1543 EXPECT_FALSE(navDestinationPattern->GetIsOnShow()); 1544 EXPECT_TRUE(navDestinationPattern->GetCustomNode() == remainChild); 1581 navDestinationPattern->isOnShow_ = true; 1583 navDestinationPattern->customNode_ = nullptr; 1589 EXPECT_TRUE(navDestinationPattern->GetIsOnShow()); 1624 navDestinationPattern->customNode_ = nullptr; [all …]
|
H A D | navigation_branch_test_ng.cpp | 457 navDestinationPattern->SetIsOnShow(false); 497 navDestinationPattern->SetIsOnShow(true); 601 navDestinationPattern->SetIsOnShow(false); 641 navDestinationPattern->SetIsOnShow(true); 1624 ASSERT_NE(navDestinationPattern, nullptr); 1625 navDestinationPattern->shallowBuilder_ = AceType::MakeRefPtr<ShallowBuilder>( 1662 navDestinationPattern->SetIsOnShow(false); 1663 navDestinationPattern->shallowBuilder_ = nullptr; 1695 ASSERT_NE(navDestinationPattern, nullptr); 1696 navDestinationPattern->SetIsOnShow(true); [all …]
|
H A D | navdestination_test_ng.cpp | 257 auto navDestinationPattern = navigationGroupNode->GetPattern<NavDestinationPattern>(); variable 258 ASSERT_NE(navDestinationPattern, nullptr); 259 …auto navDestinationLayoutProperty = navDestinationPattern->GetLayoutProperty<NavDestinationLayoutP… 400 auto navDestinationPattern = navigationGroupNode->GetPattern<NavDestinationPattern>(); variable 401 ASSERT_NE(navDestinationPattern, nullptr); 407 navDestinationPattern->OnLanguageConfigurationUpdate(); 408 EXPECT_TRUE(navDestinationPattern->isRightToLeft_); 414 navDestinationPattern->OnLanguageConfigurationUpdate(); 415 EXPECT_FALSE(navDestinationPattern->isRightToLeft_);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | navigation_group_node.cpp | 192 CHECK_NULL_RETURN(navDestinationPattern, false); in ReorderNavDestination() 193 navDestinationPattern->SetName(childNode.first); in ReorderNavDestination() 194 navDestinationPattern->SetCustomNode(uiNode); in ReorderNavDestination() 459 if (navDestinationPattern->OverlayOnBackPressed()) { in CheckCanHandleBack() 461 navDestinationPattern->GetName().c_str()); in CheckCanHandleBack() 471 navDestinationPattern->GetName().c_str()); in CheckCanHandleBack() 479 navDestinationPattern->GetName().c_str()); in CheckCanHandleBack() 894 CHECK_NULL_VOID(navDestinationPattern); in DealNavigationExit() 1167 if (!navDestinationPattern) { in RemoveDialogDestination() 1187 if (navDestinationPattern->GetIsOnShow()) { in DealRemoveDestination() [all …]
|
H A D | navigation_pattern.cpp | 571 if (!navDestinationPattern) { in ApplyTopNavPathSystemBarStyleOrRestore() 585 auto destCurrStyle = navDestinationPattern->GetCurrentStyle(); in ApplyTopNavPathSystemBarStyleOrRestore() 1027 CHECK_NULL_VOID(navDestinationPattern); in FireNavigationInner() 1038 navDestinationPattern->SetIsOnShow(true); in FireNavigationInner() 1052 CHECK_NULL_VOID(navDestinationPattern); in FireNavigationInner() 1061 navDestinationPattern->SetIsOnShow(false); in FireNavigationInner() 1598 if (navigationNode && navDestinationPattern) { in GenerateUINodeByIndex() 2598 NotifyPageShow(navDestinationPattern->GetName()); in NotifyDestinationLifecycle() 2599 navDestinationPattern->SetIsOnShow(true); in NotifyDestinationLifecycle() 2610 NotifyPageHide(navDestinationPattern->GetName()); in NotifyDestinationLifecycle() [all …]
|
H A D | navigation_title_util.cpp | 911 auto navDestinationPattern = navDestination->GetPattern<NavDestinationPattern>(); in IsNeedHoverModeAction() local 912 CHECK_NULL_RETURN(navDestinationPattern, false); in IsNeedHoverModeAction() 913 …navigationGroupNode = AceType::DynamicCast<NavigationGroupNode>(navDestinationPattern->GetNavigati… in IsNeedHoverModeAction()
|
H A D | title_bar_layout_algorithm.cpp | 1010 …auto navDestinationPattern = AceType::DynamicCast<NavDestinationPattern>(navDestinationNode->GetPa… in Measure() local 1011 CHECK_NULL_BREAK(navDestinationPattern); in Measure() 1012 showBackButton_ = navDestinationPattern->GetBackButtonState(); in Measure()
|