/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | MediaDeviceTest.java | 118 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaDeviceTest 183 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 184 mMediaDevices.add(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 186 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 187 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 188 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 194 mMediaDevices.add(mInfoMediaDevice1); in compareTo_carKit_info_carKitFirst() 195 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_carKit_info_carKitFirst() 197 assertThat(mMediaDevices.get(0)).isEqualTo(mInfoMediaDevice1); in compareTo_carKit_info_carKitFirst() 198 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_carKit_info_carKitFirst() [all …]
|
D | LocalMediaManagerTest.java | 126 mLocalMediaManager.mMediaDevices.add(device); in startScan_mediaDevicesListShouldBeClear() 128 assertThat(mLocalMediaManager.mMediaDevices).hasSize(1); in startScan_mediaDevicesListShouldBeClear() 130 assertThat(mLocalMediaManager.mMediaDevices).isEmpty(); in startScan_mediaDevicesListShouldBeClear() 137 mLocalMediaManager.mMediaDevices.add(currentDevice); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice() 138 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice() 153 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice1); in connectDevice_deviceNotEqualCurrentConnectedDevice_isConnectingState() 154 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice2); in connectDevice_deviceNotEqualCurrentConnectedDevice_isConnectingState() 166 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice1); in connectDevice_deviceEqualCurrentConnectedDevice_notConnectingState() 167 mLocalMediaManager.mMediaDevices.add(mInfoMediaDevice2); in connectDevice_deviceEqualCurrentConnectedDevice_notConnectingState() 181 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice() [all …]
|
D | InfoMediaManagerTest.java | 118 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 121 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 141 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice() 143 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice() 169 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 172 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 179 assertThat(mInfoMediaManager.mMediaDevices).hasSize(0); in onPreferredFeaturesChanged_differentPackageName_doNothing() 205 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() 208 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() 228 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRoutesChanged_buildAllRoutes_shouldAddMediaDevice() [all …]
|
D | MediaManagerTest.java | 99 mMediaManager.dispatchDeviceListRemoved(mMediaManager.mMediaDevices); in dispatchDeviceListRemoved_registerCallback_shouldDispatchCallback() 101 verify(mCallback).onDeviceListRemoved(mMediaManager.mMediaDevices); in dispatchDeviceListRemoved_registerCallback_shouldDispatchCallback() 124 mMediaManager.mMediaDevices.add(mDevice); in findMediaDevice_idExist_shouldReturnMediaDevice() 133 mMediaManager.mMediaDevices.add(mDevice); in findMediaDevice_idNotExist_shouldReturnNull()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | LastRemovableMediaDevices.cpp | 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() 60 for (auto iter = mMediaDevices.begin(); iter != mMediaDevices.end(); ++iter) { in getLastRemovableMediaDevice()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | LocalMediaManager.java | 84 List<MediaDevice> mMediaDevices = new CopyOnWriteArrayList<>(); field in LocalMediaManager 157 device = getMediaDeviceById(mMediaDevices, connectDevice.getId()); in connectDevice() 203 mMediaDevices.clear(); in startScan() 210 final List<MediaDevice> mediaDevices = new ArrayList<>(mMediaDevices); in dispatchDeviceListUpdate() 262 for (MediaDevice mediaDevice : mMediaDevices) { in getMediaDeviceById() 425 for (MediaDevice device : mMediaDevices) { in updateCurrentConnectedDevice() 468 if (!mMediaDevices.contains(device)) { in onDeviceAdded() 469 mMediaDevices.add(device); in onDeviceAdded() 482 mMediaDevices.clear(); in onDeviceListAdded() 483 mMediaDevices.addAll(devices); in onDeviceListAdded() [all …]
|
D | MediaManager.java | 35 protected final List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaManager 68 for (MediaDevice mediaDevice : mMediaDevices) { in findMediaDevice() 91 callback.onDeviceListAdded(new ArrayList<>(mMediaDevices)); in dispatchDeviceListAdded()
|
D | InfoMediaManager.java | 94 mMediaDevices.clear(); in startScan() 400 mMediaDevices.clear(); in refreshDevices() 506 mMediaDevices.add(mediaDevice); in addMediaDevice() 540 mMediaDevices.clear(); in onTransferred()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputController.java | 81 final List<MediaDevice> mMediaDevices = new CopyOnWriteArrayList<>(); field in MediaOutputController 113 mMediaDevices.clear(); in start() 150 mMediaDevices.clear(); in stop() 163 mMetricLogger.logOutputSuccess(device.toString(), mMediaDevices); in onSelectedDeviceStateChanged() local 174 mMetricLogger.logOutputFailure(mMediaDevices, reason); in onRequestFailed() 252 if (mMediaDevices.isEmpty()) { in buildMediaDevices() 258 mMediaDevices.addAll(devices); in buildMediaDevices() 263 mMediaDevices.add(0, device); in buildMediaDevices() 265 mMediaDevices.add(device); in buildMediaDevices() 272 for (MediaDevice originalDevice : mMediaDevices) { in buildMediaDevices() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputGroupDialogTest.java | 70 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaOutputGroupDialogTest 80 when(mLocalMediaManager.getSelectedMediaDevice()).thenReturn(mMediaDevices); in setUp() 95 mMediaDevices.add(mMediaDevice); in getHeaderSubtitle_singleDevice_verifyTitle() 103 mMediaDevices.add(mMediaDevice); in getHeaderSubtitle_multipleDevices_verifyTitle() 104 mMediaDevices.add(mMediaDevice1); in getHeaderSubtitle_multipleDevices_verifyTitle() 107 R.string.media_output_dialog_multiple_devices, mMediaDevices.size())); in getHeaderSubtitle_multipleDevices_verifyTitle()
|
D | MediaOutputAdapterTest.java | 64 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaOutputAdapterTest 72 when(mMediaOutputController.getMediaDevices()).thenReturn(mMediaDevices); in setUp() 89 mMediaDevices.add(mMediaDevice1); in setUp() 90 mMediaDevices.add(mMediaDevice2); in setUp() 95 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size()); in getItemCount_nonZeroMode_isDeviceSize() 102 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size() + 1); in getItemCount_zeroMode_containExtraOneForPairNew() 107 when(mMediaOutputController.getSelectedMediaDevice()).thenReturn(mMediaDevices); in getItemCount_withDynamicGroup_containExtraOneForGroup() 110 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size() + 1); in getItemCount_withDynamicGroup_containExtraOneForGroup() 131 when(mMediaOutputController.getSelectedMediaDevice()).thenReturn(mMediaDevices); in onBindViewHolder_bindGroup_withSessionName_verifyView() 148 when(mMediaOutputController.getSelectedMediaDevice()).thenReturn(mMediaDevices); in onBindViewHolder_bindGroup_noSessionName_verifyView() [all …]
|
D | MediaOutputControllerTest.java | 99 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaOutputControllerTest 126 mMediaDevices.add(mMediaDevice1); in setUp() 127 mMediaDevices.add(mMediaDevice2); in setUp() 195 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in onDeviceListUpdate_verifyDeviceListCallback() 198 assertThat(devices.containsAll(mMediaDevices)).isTrue(); in onDeviceListUpdate_verifyDeviceListCallback() 199 assertThat(devices.size()).isEqualTo(mMediaDevices.size()); in onDeviceListUpdate_verifyDeviceListCallback() 324 mMediaDevices.clear(); in isZeroMode_onlyFromPhoneOutput_returnTrue() 325 mMediaDevices.add(mMediaDevice1); in isZeroMode_onlyFromPhoneOutput_returnTrue() 327 mMediaOutputController.onDeviceListUpdate(mMediaDevices); in isZeroMode_onlyFromPhoneOutput_returnTrue() 346 mMediaDevices.clear(); in isZeroMode_notFromPhoneOutput_returnFalse() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | LastRemovableMediaDevices.h | 47 std::vector<DeviceGroupDescriptor> mMediaDevices; variable
|