Home
last modified time | relevance | path

Searched refs:mRootNode (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DBrowseNodeTest.java47 private BrowseNode mRootNode; field in BrowseNodeTest
54 mRootNode = mBrowseTree.mRootNode; in setUp()
78 mRootNode.setExpectedChildren(expectedChildren); in getExpectedChildren()
80 assertThat(mRootNode.getExpectedChildren()).isEqualTo(expectedChildren); in getExpectedChildren()
91 assertThat(mRootNode.getChild(0)).isNull(); in addChildren()
93 mRootNode.addChildren(children); in addChildren()
95 assertThat(mRootNode.getChildrenCount()).isEqualTo(children.size()); in addChildren()
96 assertThat(mRootNode.getChildren().get(0).getBluetoothID()).isEqualTo(TEST_PLAYER_ID); in addChildren()
97 assertThat(mRootNode.getChildren().get(1).getID()).isEqualTo(TEST_UUID); in addChildren()
121 mRootNode.addChild(browseNode); in removeChild()
[all …]
DBrowseTreeTest.java55 assertThat(browseTree.mRootNode.mItem.getDevice()).isEqualTo(null); in constructor_withoutDevice()
62 assertThat(browseTree.mRootNode.mItem.getDevice()).isEqualTo(mTestDevice); in constructor_withDevice()
95 assertThat(browseTree.mRootNode.getChildrenCount()).isEqualTo(0); in onConnected()
99 assertThat(browseTree.mRootNode.getChildrenCount()).isEqualTo(1); in onConnected()
108 String mediaId1 = browseTree1.mRootNode.getID(); in sameDeviceDifferentBrowseTrees_uniqueMediaIds()
109 String mediaId2 = browseTree2.mRootNode.getID(); in sameDeviceDifferentBrowseTrees_uniqueMediaIds()
117 assertThat(browseTree.findBrowseNodeByID(BrowseTree.ROOT)).isEqualTo(browseTree.mRootNode); in findBrowseNodeByIDForRoot()
125 assertThat(browseTree.findBrowseNodeByID(deviceId)).isEqualTo(browseTree.mRootNode); in findBrowseNodeByIDForDevice()
132 final String deviceId = browseTree.mRootNode.getID(); in findBrowseNodeByIDForDevice_flagEnabled()
133 assertThat(browseTree.findBrowseNodeByID(deviceId)).isEqualTo(browseTree.mRootNode); in findBrowseNodeByIDForDevice_flagEnabled()
[all …]
DAvrcpControllerStateMachineTest.java441 Assert.assertEquals(0, mAvrcpControllerService.sBrowseTree.mRootNode.getChildrenCount()); in testBrowsingOnly()
443 Assert.assertEquals(1, mAvrcpControllerService.sBrowseTree.mRootNode.getChildrenCount()); in testBrowsingOnly()
489 BrowseTree.BrowseNode results = mAvrcpStateMachine.mBrowseTree.mRootNode; in testGetDeviceRootNode_flagRandomDeviceIdEnabled_rootNodeMatchesUuidFormat()
724 BrowseTree.BrowseNode results = mAvrcpStateMachine.mBrowseTree.mRootNode; in testBrowsingCommands()
772 Assert.assertFalse(mAvrcpStateMachine.mBrowseTree.mRootNode.isCached()); in testAvailablePlayersChanged()
801 Assert.assertFalse(mAvrcpStateMachine.mBrowseTree.mRootNode.isCached()); in testAvailablePlayersReceived_AddressedPlayerExists()
821 Assert.assertTrue(mAvrcpStateMachine.mBrowseTree.mRootNode.isCached()); in testAvailablePlayersReceived_AddressedPlayerExists()
852 Assert.assertFalse(mAvrcpStateMachine.mBrowseTree.mRootNode.isCached()); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist()
873 Assert.assertTrue(mAvrcpStateMachine.mBrowseTree.mRootNode.isCached()); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist()
899 BrowseTree.BrowseNode results = mAvrcpStateMachine.mBrowseTree.mRootNode; in testAddressedPlayerChangedToNewKnownPlayer()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DBrowseTree.java62 final BrowseNode mRootNode; field in BrowseTree
72 mRootNode = in BrowseTree()
79 mRootNode.setCached(true); in BrowseTree()
81 mRootNode = in BrowseTree()
90 mRootNode = in BrowseTree()
103 mRootNode.mBrowseScope = AvrcpControllerService.BROWSE_SCOPE_PLAYER_LIST; in BrowseTree()
104 mRootNode.setExpectedChildren(DEFAULT_FOLDER_SIZE); in BrowseTree()
123 mBrowseMap.put(mRootNode.getID(), mRootNode); in BrowseTree() local
126 mCurrentBrowseNode = mRootNode; in BrowseTree()
137 mRootNode.addChild(browseNode); in onConnected()
[all …]
DAvrcpControllerStateMachine.java300 requestContents(mBrowseTree.mRootNode); in onBrowsingConnected()
310 mBrowseTree.mRootNode.setCached(false); in onBrowsingDisconnected()
313 BluetoothMediaBrowserService.notifyChanged(mBrowseTree.mRootNode); in onBrowsingDisconnected()
460 mService.sBrowseTree.mRootNode.addChild(mBrowseTree.mRootNode); in enter()
461 BluetoothMediaBrowserService.notifyChanged(mService.sBrowseTree.mRootNode); in enter()
826 mBrowseTree.mRootNode.setCached(false); in processAvailablePlayerChanged()
827 mBrowseTree.mRootNode.setExpectedChildren(BrowseTree.DEFAULT_FOLDER_SIZE); in processAvailablePlayerChanged()
828 BluetoothMediaBrowserService.notifyChanged(mBrowseTree.mRootNode); in processAvailablePlayerChanged()
830 requestContents(mBrowseTree.mRootNode); in processAvailablePlayerChanged()
937 BrowseTree.BrowseNode rootNode = mBrowseTree.mRootNode; in processMessage()
[all …]