Home
last modified time | relevance | path

Searched refs:AvrcpPlayer (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpPlayerTest.java38 private static final int TEST_FEATURE = AvrcpPlayer.FEATURE_PLAY;
59 AvrcpPlayer.Builder builder = new AvrcpPlayer.Builder(); in buildAvrcpPlayer()
67 AvrcpPlayer avrcpPlayer = builder.build(); in buildAvrcpPlayer()
81 AvrcpPlayer avrcpPlayer = new AvrcpPlayer.Builder().build(); in setAndGetPlayTime()
90 AvrcpPlayer avrcpPlayer = new AvrcpPlayer.Builder().build(); in setPlayStatus()
112 AvrcpPlayer avrcpPlayer = new AvrcpPlayer.Builder().build(); in setSupportedPlayerApplicationSettings()
129 AvrcpPlayer avrcpPlayer = new AvrcpPlayer.Builder().build(); in supportsSetting()
139 setSupportedFeature(supportedFeatures, AvrcpPlayer.FEATURE_STOP); in updateAvailableActions()
140 setSupportedFeature(supportedFeatures, AvrcpPlayer.FEATURE_PAUSE); in updateAvailableActions()
141 setSupportedFeature(supportedFeatures, AvrcpPlayer.FEATURE_REWIND); in updateAvailableActions()
[all …]
DAvrcpControllerStateMachineTest.java254 private AvrcpPlayer makePlayer( in makePlayer()
260 AvrcpPlayer.Builder apb = new AvrcpPlayer.Builder(); in makePlayer()
734 AvrcpPlayer playerOne = makePlayer(mTestDevice, 1, playerName, playerFeatures, 1); in testBrowsingCommands()
735 List<AvrcpPlayer> testPlayers = new ArrayList<>(); in testBrowsingCommands()
808 AvrcpPlayer playerOne = makePlayer(mTestDevice, 1, "Player 1", playerFeatures, 1); in testAvailablePlayersReceived_AddressedPlayerExists()
809 AvrcpPlayer playerTwo = makePlayer(mTestDevice, 2, "Player 2", playerFeatures, 1); in testAvailablePlayersReceived_AddressedPlayerExists()
810 List<AvrcpPlayer> testPlayers = new ArrayList<>(); in testAvailablePlayersReceived_AddressedPlayerExists()
822 SparseArray<AvrcpPlayer> players = mAvrcpStateMachine.getAvailablePlayers(); in testAvailablePlayersReceived_AddressedPlayerExists()
825 for (AvrcpPlayer player : testPlayers) { in testAvailablePlayersReceived_AddressedPlayerExists()
859 AvrcpPlayer playerOne = makePlayer(mTestDevice, 1, "Player 1", playerFeatures, 1); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist()
[all …]
DBrowseNodeTest.java62 new AvrcpPlayer.Builder() in constructor_withAvrcpPlayer()
65 .setSupportedFeature(AvrcpPlayer.FEATURE_BROWSING) in constructor_withAvrcpPlayer()
85 AvrcpPlayer childAvrcpPlayer = in addChildren()
86 new AvrcpPlayer.Builder().setPlayerId(TEST_PLAYER_ID).build(); in addChildren()
DAvrcpControllerNativeInterfaceTest.java85 int playerType = AvrcpPlayer.TYPE_AUDIO; // No getter exists in createFromNativePlayerItem()
87 AvrcpPlayer player = in createFromNativePlayerItem()
DAvrcpControllerServiceTest.java486 List<AvrcpPlayer> items = List.of(mock(AvrcpPlayer.class)); in handleGetPlayerItemsRsp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java134 private AvrcpPlayer mAddressedPlayer;
136 private SparseArray<AvrcpPlayer> mAvailablePlayerList;
160 mAvailablePlayerList = new SparseArray<AvrcpPlayer>(); in AvrcpControllerStateMachine()
161 mAddressedPlayerId = AvrcpPlayer.DEFAULT_ID; in AvrcpControllerStateMachine()
163 AvrcpPlayer.Builder apb = new AvrcpPlayer.Builder(); in AvrcpControllerStateMachine()
166 apb.setSupportedFeature(AvrcpPlayer.FEATURE_PLAY); in AvrcpControllerStateMachine()
167 apb.setSupportedFeature(AvrcpPlayer.FEATURE_PAUSE); in AvrcpControllerStateMachine()
168 apb.setSupportedFeature(AvrcpPlayer.FEATURE_STOP); in AvrcpControllerStateMachine()
169 apb.setSupportedFeature(AvrcpPlayer.FEATURE_FORWARD); in AvrcpControllerStateMachine()
170 apb.setSupportedFeature(AvrcpPlayer.FEATURE_PREVIOUS); in AvrcpControllerStateMachine()
[all …]
DAvrcpPlayer.java31 class AvrcpPlayer { class
32 private static final String TAG = AvrcpPlayer.class.getSimpleName();
70 private AvrcpPlayer( in AvrcpPlayer() method in AvrcpPlayer
258 private int mPlayerId = AvrcpPlayer.DEFAULT_ID;
345 public AvrcpPlayer build() { in build()
346 AvrcpPlayer player = in build()
347 new AvrcpPlayer( in build()
DBrowseTree.java170 BrowseNode(AvrcpPlayer player) { in BrowseNode()
180 aid.setBrowsable(player.supportsFeature(AvrcpPlayer.FEATURE_BROWSING)); in BrowseNode()
218 } else if (child instanceof AvrcpPlayer) { in addChildren()
219 currentNode = new BrowseNode((AvrcpPlayer) child); in addChildren()
DAvrcpControllerNativeInterface.java213 void handleGetPlayerItemsRsp(byte[] address, AvrcpPlayer[] items) { in handleGetPlayerItemsRsp()
273 static AvrcpPlayer createFromNativePlayerItem( in createFromNativePlayerItem()
290 return new AvrcpPlayer.Builder() in createFromNativePlayerItem()
DAvrcpControllerService.java635 void handleGetPlayerItemsRsp(BluetoothDevice device, List<AvrcpPlayer> itemsList) { in handleGetPlayerItemsRsp()