Home
last modified time | relevance | path

Searched refs:mMediaDevices (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DMediaDeviceTest.java100 private List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaDeviceTest
147 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()
148 mMediaDevices.add(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()
150 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()
151 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()
152 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst()
158 mMediaDevices.add(mInfoMediaDevice1); in compareTo_carKit_info_carKitFirst()
159 mMediaDevices.add(mBluetoothMediaDevice1); in compareTo_carKit_info_carKitFirst()
161 assertThat(mMediaDevices.get(0)).isEqualTo(mInfoMediaDevice1); in compareTo_carKit_info_carKitFirst()
162 Collections.sort(mMediaDevices, COMPARATOR); in compareTo_carKit_info_carKitFirst()
[all …]
DLocalMediaManagerTest.java89 mLocalMediaManager.mMediaDevices.add(device); in startScan_mediaDevicesListShouldBeClear()
91 assertThat(mLocalMediaManager.mMediaDevices).hasSize(1); in startScan_mediaDevicesListShouldBeClear()
93 assertThat(mLocalMediaManager.mMediaDevices).isEmpty(); in startScan_mediaDevicesListShouldBeClear()
100 mLocalMediaManager.mMediaDevices.add(currentDevice); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
101 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
120 mLocalMediaManager.mMediaDevices.add(device); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice()
137 mLocalMediaManager.mMediaDevices.add(device1); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
138 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
144 .getMediaDeviceById(mLocalMediaManager.mMediaDevices, TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
153 mLocalMediaManager.mMediaDevices.add(device1); in getMediaDeviceById_idNotExist_shouldReturnNull()
[all …]
DBluetoothMediaManagerTest.java101 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
103 assertThat(mMediaManager.mMediaDevices).hasSize(devices.size()); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
118 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
120 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
129 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
131 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
146 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
148 assertThat(mMediaManager.mMediaDevices).hasSize(devices.size()); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
157 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noHapProfileBluetoothDevice_shouldNotAddDevice()
159 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noHapProfileBluetoothDevice_shouldNotAddDevice()
[all …]
DInfoMediaManagerTest.java87 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRouteAdded_mediaDeviceNotExistInList_addMediaDevice()
96 mInfoMediaManager.mMediaDevices.add(infoDevice); in onRouteAdded_mediaDeviceExistInList_doNothing()
99 final int size = mInfoMediaManager.mMediaDevices.size(); in onRouteAdded_mediaDeviceExistInList_doNothing()
104 assertThat(mInfoMediaManager.mMediaDevices).hasSize(size); in onRouteAdded_mediaDeviceExistInList_doNothing()
112 mInfoMediaManager.mMediaDevices.add(infoDevice); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()
116 assertThat(mInfoMediaManager.mMediaDevices).hasSize(1); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()
120 assertThat(mInfoMediaManager.mMediaDevices).isEmpty(); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()
129 final int size = mInfoMediaManager.mMediaDevices.size(); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
134 assertThat(mInfoMediaManager.mMediaDevices).hasSize(size); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
DMediaManagerTest.java99 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/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java64 List<MediaDevice> mMediaDevices = new ArrayList<>(); field in LocalMediaManager
114 final MediaDevice device = getMediaDeviceById(mMediaDevices, connectDevice.getId()); in connectDevice()
157 mMediaDevices.clear(); in startScan()
164 if (mMediaDevices.size() > 0 && !mMediaDevices.contains(mPhoneDevice)) { in addPhoneDeviceIfNecessary()
168 mMediaDevices.add(mPhoneDevice); in addPhoneDeviceIfNecessary()
174 if (mMediaDevices.size() == 1 && mMediaDevices.contains(mPhoneDevice)) { in removePhoneMediaDeviceIfNecessary()
175 mMediaDevices.clear(); in removePhoneMediaDeviceIfNecessary()
181 Collections.sort(mMediaDevices, COMPARATOR); in dispatchDeviceListUpdate()
183 callback.onDeviceListUpdate(new ArrayList<>(mMediaDevices)); in dispatchDeviceListUpdate()
223 for (MediaDevice device : mMediaDevices) { in updateCurrentConnectedDevice()
[all …]
DInfoMediaManager.java55 mMediaDevices.clear(); in startScan()
79 mMediaDevices.add(mediaDevice); in onRouteAdded()
89 mMediaDevices.remove(mediaDevice); in onRouteRemoved()
DBluetoothMediaManager.java86 mMediaDevices.clear(); in buildBluetoothDeviceList()
165 mMediaDevices.add(mediaDevice); in addMediaDevice()
176 for (MediaDevice device : mMediaDevices) { in unregisterDeviceAttributeChangeCallback()
190 for (MediaDevice device : mMediaDevices) { in onBluetoothStateChanged()
195 mMediaDevices.removeAll(removeDevicesList); in onBluetoothStateChanged()
243 mMediaDevices.remove(mediaDevice); in removeMediaDevice()
DMediaManager.java34 protected final List<MediaDevice> mMediaDevices = new ArrayList<>(); field in MediaManager
71 for (MediaDevice mediaDevice : mMediaDevices) { in findMediaDevice()
99 callback.onDeviceListAdded(new ArrayList<>(mMediaDevices)); in dispatchDeviceListAdded()
/frameworks/av/services/audiopolicy/engine/common/src/
DLastRemovableMediaDevices.cpp34 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()
/frameworks/av/services/audiopolicy/engine/common/include/
DLastRemovableMediaDevices.h45 std::vector<DeviceGroupDescriptor> mMediaDevices; variable