Home
last modified time | relevance | path

Searched refs:rootNode (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/menu/
DMenuControllerTest.kt25 import com.android.car.customization.tool.domain.rootNode
47 private val fakeRootProvider = Provider { rootNode } in <lambda>()
62 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()
84 Menu(rootNode, rootNode), 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()
123 underTest.handleAction(Menu(rootNode, firstLevelSubNavigation), ReloadMenuAction) in when_the_menu_is_reloaded_then_the_menu_is_updated_and_the_currentParent_preserved()
[all …]
DMenuUtilsTest.kt25 import com.android.car.customization.tool.domain.rootNode
48 val firstLevelNode = rootNode.findParentOf(secondLevelSubNavigation) in parent_of_element_found_correctly()
49 val zeroLevelNode = rootNode.findParentOf(firstLevelSubNavigation) in parent_of_element_found_correctly()
52 assertEquals(rootNode, zeroLevelNode) in parent_of_element_found_correctly()
57 val childFromFirstLevel = rootNode in child_subMenuNavigation_node_found_correctly()
59 val childFromSecondLevel = rootNode in child_subMenuNavigation_node_found_correctly()
61 val notExistingChild = rootNode.findSubMenuNavigationNode(nodeId = 100) in child_subMenuNavigation_node_found_correctly()
74 val startingMenu = Menu(rootNode, currentParentNode = rootNode) in when_modifying_a_switch_the_value_is_updated_correctly()
81 val newSwitch = newMenu.rootNode.findNode(secondLevelSwitch1.displayTextRes) 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()
[all …]
/packages/services/Car/tests/CustomizationTool/tests/src/com/android/car/customization/tool/domain/
DCustomizationToolStateMachineTest.kt57 … `when`(mockMenuController.buildMenu()).thenReturn(Menu(rootNode, currentParentNode = rootNode)) in when_the_action_toggle_is_received_the_page_state_is_updated()
65 Menu(rootNode, rootNode), in when_the_action_toggle_is_received_the_page_state_is_updated()
74 Menu(rootNode, rootNode), in when_the_action_toggle_is_received_the_page_state_is_updated()
83 val initialMenu = Menu(rootNode, rootNode) in when_a_menu_action_is_received_then_it_is_forwarded_to_the_MenuController()
90 ).thenReturn(Menu(rootNode, firstLevelSubNavigation)) in when_a_menu_action_is_received_then_it_is_forwarded_to_the_MenuController()
98 Menu(rootNode, rootNode), in when_a_menu_action_is_received_then_it_is_forwarded_to_the_MenuController()
106 Menu(rootNode, firstLevelSubNavigation), in when_a_menu_action_is_received_then_it_is_forwarded_to_the_MenuController()
133 Menu(rootNode, rootNode), in when_a_panel_action_is_received_then_it_is_forwarded_to_the_PanelController()
141 val mockMenuController = MenuController({ rootNode }, mock(), mapOf()) in expect_exception_when_action_is_not_implemented_in_the_state_machine()
DTestData.kt45 return Menu(rootNode = rootNode, currentParentNode = secondLevelSubNavigation) in reduce()
97 internal val rootNode = MenuItem.SubMenuNavigation( constant
/packages/services/Car/cpp/evs/support_library/
DConfigManager.cpp62 Json::Value rootNode; in initialize() local
63 bool parseOk = Json::parseFromStream(builder, configStream, &rootNode, &errorMessage); in initialize()
74 Json::Value car = rootNode["car"]; in initialize()
89 Json::Value displayNode = rootNode["display"]; in initialize()
104 Json::Value graphicNode = rootNode["graphic"]; in initialize()
120 Json::Value cameraArray = rootNode["cameras"]; in initialize()
/packages/services/Car/cpp/evs/apps/default/src/
DConfigManager.cpp57 Json::Value rootNode; in initialize() local
58 bool parseOk = Json::parseFromStream(builder, configStream, &rootNode, &errorMessage); in initialize()
69 Json::Value car = rootNode["car"]; in initialize()
84 Json::Value displayArray = rootNode["displays"]; in initialize()
106 Json::Value graphicNode = rootNode["graphic"]; in initialize()
122 Json::Value cameraArray = rootNode["cameras"]; in initialize()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/viewcapture_analysis/
DViewCaptureAnalyzer.java124 final ViewNode rootNode = frame.getNode(); in analyzeWindowData() local
127 final boolean isFirstFrame = windowWidthPx != rootNode.getWidth() in analyzeWindowData()
128 || windowHeightPx != rootNode.getHeight(); in analyzeWindowData()
130 windowWidthPx = rootNode.getWidth(); in analyzeWindowData()
131 windowHeightPx = rootNode.getHeight(); in analyzeWindowData()
135 final int windowSizePx = Math.max(rootNode.getWidth(), rootNode.getHeight()); in analyzeWindowData()
/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()
141 return Menu(rootNode = newRoot, currentParentNode = newParentNode) in reloadMenu()
DMenu.kt36 val rootNode: MenuItem.SubMenuNavigation, constant in com.android.car.customization.tool.domain.menu.Menu
DMenuUtils.kt131 val newRoot = modifyNode(oldMenu.rootNode, itemId, block) in modifyMenu()
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DNavigator.java695 AccessibilityNodeInfo rootNode = window.getRoot(); in findNonEmptyFocusAreas() local
696 if (rootNode == null) { in findNonEmptyFocusAreas()
698 } else if (!isClientNode(rootNode)) { in findNonEmptyFocusAreas()
699 addNonEmptyFocusAreas(rootNode, results); in findNonEmptyFocusAreas()
704 Utils.recycleNode(rootNode); in findNonEmptyFocusAreas()
829 private void addNonEmptyFocusAreas(@NonNull AccessibilityNodeInfo rootNode, in addNonEmptyFocusAreas() argument
831 mTreeTraverser.depthFirstSelect(rootNode, in addNonEmptyFocusAreas()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
Dsuggest.cpp96 DicNode rootNode; in initializeSearch() local
98 traverseSession->getPrevWordIds(), &rootNode); in initializeSearch()
99 traverseSession->getDicTraverseCache()->copyPushActive(&rootNode); in initializeSearch()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java937 BrowseTree.BrowseNode rootNode = mBrowseTree.mRootNode; in processMessage() local
944 if (!rootNode.isCached()) { in processMessage()
989 rootNode.addChildren(playerList); in processMessage()
991 rootNode.setExpectedChildren(playerList.size()); in processMessage()
992 rootNode.setCached(true); in processMessage()
993 notifyChanged(rootNode); in processMessage()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java959 BrowseTree.BrowseNode rootNode = mAvrcpStateMachine.mBrowseTree.mRootNode; in testAddressedPlayerChangedToUnknownPlayer() local
962 mAvrcpStateMachine.requestContents(rootNode); in testAddressedPlayerChangedToUnknownPlayer()
1013 BrowseTree.BrowseNode rootNode = mAvrcpStateMachine.mBrowseTree.mRootNode; in testAddressedPlayerChangedToSamePlayerId() local
1016 mAvrcpStateMachine.requestContents(rootNode); in testAddressedPlayerChangedToSamePlayerId()
/packages/services/Car/tests/BugReportApp/libs/
Djackson-core-2.9.9.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/LICENSE META-INF ...
/packages/apps/Car/DebuggingRestrictionController/libs/
Djackson-core-2.11.1.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE META-INF ...