Searched refs:MediaDevice (Results 1 – 12 of 12) sorted by relevance
88 final MediaDevice device = mock(MediaDevice.class); in startScan_mediaDevicesListShouldBeClear()98 final MediaDevice currentDevice = mock(MediaDevice.class); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()99 final MediaDevice device = mock(MediaDevice.class); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()118 final MediaDevice device = mock(BluetoothMediaDevice.class); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice()135 final MediaDevice device1 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice()136 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice()143 final MediaDevice device = mLocalMediaManager in getMediaDeviceById_idExist_shouldReturnMediaDevice()151 final MediaDevice device1 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull()152 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull()159 final MediaDevice device = mLocalMediaManager in getMediaDeviceById_idNotExist_shouldReturnNull()[all …]
82 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteAdded_mediaDeviceNotExistInList_addMediaDevice()87 final MediaDevice infoDevice = mInfoMediaManager.mMediaDevices.get(0); in onRouteAdded_mediaDeviceNotExistInList_addMediaDevice()98 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteAdded_mediaDeviceExistInList_doNothing()114 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()128 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
43 private MediaDevice mDevice;126 final MediaDevice device = mMediaManager.findMediaDevice(TEST_ID); in findMediaDevice_idExist_shouldReturnMediaDevice()135 final MediaDevice device = mMediaManager.findMediaDevice("123"); in findMediaDevice_idNotExist_shouldReturnNull()
49 private static final Comparator<MediaDevice> COMPARATOR = Comparator.naturalOrder();100 private List<MediaDevice> mMediaDevices = new ArrayList<>();
42 private static final Comparator<MediaDevice> COMPARATOR = Comparator.naturalOrder();64 List<MediaDevice> mMediaDevices = new ArrayList<>();66 MediaDevice mPhoneDevice;68 MediaDevice mCurrentConnectedDevice;113 public void connectDevice(MediaDevice connectDevice) { in connectDevice()114 final MediaDevice device = getMediaDeviceById(mMediaDevices, connectDevice.getId()); in connectDevice()145 void dispatchSelectedDeviceStateChanged(MediaDevice device, @MediaDeviceState int state) { in dispatchSelectedDeviceStateChanged()203 public MediaDevice getMediaDeviceById(List<MediaDevice> devices, String id) { in getMediaDeviceById()204 for (MediaDevice mediaDevice : devices) { in getMediaDeviceById()218 public MediaDevice getCurrentConnectedDevice() { in getCurrentConnectedDevice()[all …]
34 protected final List<MediaDevice> mMediaDevices = new ArrayList<>();70 protected MediaDevice findMediaDevice(String id) { in findMediaDevice()71 for (MediaDevice mediaDevice : mMediaDevices) { in findMediaDevice()80 protected void dispatchDeviceAdded(MediaDevice mediaDevice) { in dispatchDeviceAdded()88 protected void dispatchDeviceRemoved(MediaDevice mediaDevice) { in dispatchDeviceRemoved()104 protected void dispatchDeviceListRemoved(List<MediaDevice> devices) { in dispatchDeviceListRemoved()137 void onDeviceAdded(MediaDevice device); in onDeviceAdded()144 void onDeviceListAdded(List<MediaDevice> devices); in onDeviceListAdded()151 void onDeviceRemoved(MediaDevice device); in onDeviceRemoved()158 void onDeviceListRemoved(List<MediaDevice> devices); in onDeviceListRemoved()
30 public abstract class MediaDevice implements Comparable<MediaDevice> { class48 MediaDevice(Context context, @MediaDeviceType int type) { in MediaDevice() method in MediaDevice132 public int compareTo(MediaDevice another) { in compareTo()187 if (!(obj instanceof MediaDevice)) { in equals()190 final MediaDevice otherDevice = (MediaDevice) obj; in equals()
51 private MediaDevice mLastAddedDevice;52 private MediaDevice mLastRemovedDevice;160 MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(cachedDevice)); in addMediaDevice()176 for (MediaDevice device : mMediaDevices) { in unregisterDeviceAttributeChangeCallback()189 final List<MediaDevice> removeDevicesList = new ArrayList<>(); in onBluetoothStateChanged()190 for (MediaDevice device : mMediaDevices) { in onBluetoothStateChanged()239 final MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(cachedDevice)); in removeMediaDevice()295 final MediaDevice activeHearingAidDevice = findActiveHearingAidDevice(); in onActiveDeviceChanged()304 private MediaDevice findActiveHearingAidDevice() { in findActiveHearingAidDevice()
75 MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(route)); in onRouteAdded()86 final MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(route)); in onRouteRemoved()
30 public class InfoMediaDevice extends MediaDevice {
32 public class BluetoothMediaDevice extends MediaDevice {
32 public class PhoneMediaDevice extends MediaDevice {