Home
last modified time | relevance | path

Searched refs:currentParentNode (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/menu/
DMenuControllerTest.kt62 assertEquals(Menu(rootNode, currentParentNode = rootNode), menu) in build_menu_test()
80 val expectedMenu = Menu(rootNode, currentParentNode = firstLevelSubNavigation) in when_opening_submenu_the_currentParent_is_updated_correctly()
97 Menu(rootNode, currentParentNode = rootNode), in expect_exception_if_the_submenu_is_not_a_direct_child_of_the_current_parent()
105 val expectedMenu = Menu(rootNode, currentParentNode = rootNode) in when_navigating_up_then_the_currentParent_is_updated_correctly()
110 Menu(rootNode, currentParentNode = firstLevelSubNavigation), in when_navigating_up_then_the_currentParent_is_updated_correctly()
120 val expectedMenu = Menu(rootNode, currentParentNode = firstLevelSubNavigation) in when_the_menu_is_reloaded_then_the_menu_is_updated_and_the_currentParent_preserved()
135 underTest.handleAction(Menu(rootNode, currentParentNode = rootNode), FakeMenuAction()) in expect_exception_when_action_is_not_supported()
151 underTest.handleAction(Menu(rootNode, currentParentNode = rootNode), fakeAction) in when_an_additional_reducer_is_provided_the_menuController_uses_it()
156 Menu(rootNode, currentParentNode = rootNode), in when_an_additional_reducer_is_provided_the_menuController_uses_it()
DMenuUtilsTest.kt74 val startingMenu = Menu(rootNode, currentParentNode = rootNode) in when_modifying_a_switch_the_value_is_updated_correctly()
94 val startingMenu = Menu(rootNode, currentParentNode = rootNode) in when_selecting_a_new_active_item_in_a_dropdown_the_menu_is_updated_correctly()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/domain/menu/
DMenuController.kt48 return Menu(rootNode = root, currentParentNode = root) in buildMenu()
95 val newParent = oldMenu.rootNode.findParentOf(oldMenu.currentParentNode) in navigateUp()
99 return oldMenu.copy(currentParentNode = newParent) in navigateUp()
115 oldMenu.currentParentNode.subMenu.find { it.displayTextRes == action.newParentId } in navigateToSubMenu()
122 return oldMenu.copy(currentParentNode = newParent as MenuItem.SubMenuNavigation) in navigateToSubMenu()
135 … val newParentNode = newRoot.findSubMenuNavigationNode(oldMenu.currentParentNode.displayTextRes) in reloadMenu()
141 return Menu(rootNode = newRoot, currentParentNode = newParentNode) in reloadMenu()
DMenuUtils.kt132 val newParentNode = newRoot.findSubMenuNavigationNode(oldMenu.currentParentNode.displayTextRes) in modifyMenu()
135 oldMenu.currentParentNode.displayTextRes in modifyMenu()
DMenu.kt37 val currentParentNode: MenuItem.SubMenuNavigation, constant in com.android.car.customization.tool.domain.menu.Menu
/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/
DTestData.kt45 return Menu(rootNode = rootNode, currentParentNode = secondLevelSubNavigation) in reduce()
DCustomizationToolStateMachineTest.kt57 … `when`(mockMenuController.buildMenu()).thenReturn(Menu(rootNode, currentParentNode = rootNode)) in when_the_action_toggle_is_received_the_page_state_is_updated()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/
DCustomizationToolUI.kt142 (adapter as MenuAdapter).submitList(state.menu.currentParentNode.subMenu) in <lambda>()