Searched refs:mMediaDevices (Results 1 – 9 of 9) sorted by relevance
121 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaDeviceTest191 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()192 mMediaDevices.add(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()194 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()195 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()196 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()203 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_differentRange_sortWithRange()204 mMediaDevices.add(mBluetoothMediaDevice2); in compareTo_differentRange_sortWithRange()206 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_differentRange_sortWithRange()207 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_differentRange_sortWithRange()[all …]
151 mLocalMediaManager.mMediaDevices.add(device); in onDeviceListAdded_shouldClearDeviceList()152 assertThat(mLocalMediaManager.mMediaDevices).hasSize(1); in onDeviceListAdded_shouldClearDeviceList()154 assertThat(mLocalMediaManager.mMediaDevices).isEmpty(); in onDeviceListAdded_shouldClearDeviceList()161 mLocalMediaManager.mMediaDevices.add(currentDevice); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()162 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()174 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice1); in connectDevice_deviceNotEqualCurrentConnectedDevice_isConnectingState()175 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice2); in connectDevice_deviceNotEqualCurrentConnectedDevice_isConnectingState()186 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice1); in connectDevice_deviceEqualCurrentConnectedDevice_notConnectingState()187 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice2); in connectDevice_deviceEqualCurrentConnectedDevice_notConnectingState()200 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice()[all …]
206 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()209 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()261 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()264 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()271 assertThat(mInfoMediaManager.mMediaDevices).hasSize(0); in onPreferredFeaturesChanged_differentPackageName_doNothing()298 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()301 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()324 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRoutesChanged_getAvailableRoutes_shouldFilterDevice()327 assertThat(mInfoMediaManager.mMediaDevices).hasSize(2); in onRoutesChanged_getAvailableRoutes_shouldFilterDevice()349 assertThat(mInfoMediaManager.mMediaDevices).hasSize(4); in onRouteChanged_getAvailableRoutesWithPreferenceListExit_ordersRoutes()[all …]
34 mMediaDevices.insert(mMediaDevices.begin(), {desc, getDeviceOutGroup(desc->type())}); in setRemovableMediaDevices()36 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in setRemovableMediaDevices()38 mMediaDevices.erase(iter); in setRemovableMediaDevices()50 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevices()63 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevice()
93 List<MediaDevice> mMediaDevices = new CopyOnWriteArrayList<>(); field in LocalMediaManager247 final List<MediaDevice> mediaDevices = new ArrayList<>(mMediaDevices); in dispatchDeviceListUpdate()303 for (MediaDevice mediaDevice : mMediaDevices) { in getMediaDeviceById()469 for (MediaDevice device : mMediaDevices) { in updateCurrentConnectedDevice()520 mMediaDevices.clear(); in onDeviceListAdded()521 mMediaDevices.addAll(devices); in onDeviceListAdded()529 mMediaDevices.addAll(buildDisconnectedBluetoothDevice()); in onDeviceListAdded()533 mMediaDevices.add(mutingExpectedDevice); in onDeviceListAdded()621 if (!mMediaDevices.contains(mediaDevice)) { in buildDisconnectedBluetoothDevice()649 mMediaDevices.removeAll(devices); in onDeviceListRemoved()[all …]
135 protected final List<MediaDevice> mMediaDevices = new CopyOnWriteArrayList<>(); field in InfoMediaManager307 for (MediaDevice mediaDevice : mMediaDevices) { in findMediaDevice()330 mMediaDevices.clear(); in registerCallback()610 dispatchDeviceListAdded(mMediaDevices); in refreshDevices()616 mMediaDevices.clear(); in buildAvailableRoutes()628 if (!mMediaDevices.isEmpty()) { in buildAvailableRoutes()630 mCurrentConnectedDevice = mMediaDevices.get(0); in buildAvailableRoutes()748 mMediaDevices.add(mediaDevice); in addMediaDevice()
172 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaOutputControllerTest224 mMediaDevices.add(mMediaDevice1); in setUp()225 mMediaDevices.add(mMediaDevice2); in setUp()419 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in onDeviceListUpdate_withNearbyDevices_updatesRangeInformation()432 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in onDeviceListUpdate_withNearbyDevices_rankByRangeInformation()434 assertThat(mMediaDevices.get(0).getId()).isEqualTo(TEST_DEVICE_1_ID); in onDeviceListUpdate_withNearbyDevices_rankByRangeInformation()445 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in routeProcessSupport_onDeviceListUpdate_preferenceExist_NotUpdatesRangeInformation()468 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in onDeviceListUpdate_verifyDeviceListCallback()476 assertThat(devices.containsAll(mMediaDevices)).isTrue(); in onDeviceListUpdate_verifyDeviceListCallback()477 assertThat(devices.size()).isEqualTo(mMediaDevices.size()); in onDeviceListUpdate_verifyDeviceListCallback()[all …]
92 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaOutputAdapterTest114 mMediaDevices.add(mMediaDevice1); in setUp()115 mMediaDevices.add(mMediaDevice2); in setUp()
48 std::vector<DeviceGroupDescriptor> mMediaDevices; variable