Home
last modified time | relevance | path

Searched refs:mDevices (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputSliceTest.java83 private final List<MediaDevice> mDevices = new ArrayList<>(); field in MediaOutputSliceTest
107 mMediaDeviceUpdateWorker.onDeviceListUpdate(mDevices); in setUp()
151 mDevices.clear(); in getSlice_shouldHaveActiveDeviceName()
166 mDevices.add(device); in getSlice_shouldHaveActiveDeviceName()
167 mDevices.add(device2); in getSlice_shouldHaveActiveDeviceName()
168 mMediaDeviceUpdateWorker.onDeviceListUpdate(mDevices); in getSlice_shouldHaveActiveDeviceName()
180 mDevices.clear(); in getSlice_disconnectedBluetooth_verifyTitle()
195 mDevices.add(device); in getSlice_disconnectedBluetooth_verifyTitle()
196 mDevices.add(device2); in getSlice_disconnectedBluetooth_verifyTitle()
197 mMediaDeviceUpdateWorker.onDeviceListUpdate(mDevices); in getSlice_disconnectedBluetooth_verifyTitle()
[all …]
DMediaOutputIndicatorSliceTest.java82 private final List<MediaDevice> mDevices = new ArrayList<>(); field in MediaOutputIndicatorSliceTest
133 mDevices.add(mDevice1); in getSlice_withConnectedDevice_verifyMetadata()
134 when(sMediaOutputIndicatorWorker.getMediaDevices()).thenReturn(mDevices); in getSlice_withConnectedDevice_verifyMetadata()
153 mDevices.clear(); in getSlice_noConnectedDevice_returnErrorSlice()
154 when(sMediaOutputIndicatorWorker.getMediaDevices()).thenReturn(mDevices); in getSlice_noConnectedDevice_returnErrorSlice()
165 mDevices.add(mDevice1); in getSlice_audioModeIsInCommunication_returnErrorSlice()
166 mDevices.add(mDevice2); in getSlice_audioModeIsInCommunication_returnErrorSlice()
167 when(sMediaOutputIndicatorWorker.getMediaDevices()).thenReturn(mDevices); in getSlice_audioModeIsInCommunication_returnErrorSlice()
179 mDevices.add(mDevice1); in getSlice_audioModeIsRingtone_returnErrorSlice()
180 mDevices.add(mDevice2); in getSlice_audioModeIsRingtone_returnErrorSlice()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java60 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>(); field in MtpClient
78 synchronized (mDevices) {
79 MtpDevice mtpDevice = mDevices.get(deviceName);
92 mDevices.remove(deviceName);
200 mDevices.put(usbDevice.getDeviceName(), mtpDevice); in openDeviceLocked()
229 synchronized (mDevices) { in addListener()
242 synchronized (mDevices) { in removeListener()
255 synchronized (mDevices) { in getDevice()
256 return mDevices.get(deviceName); in getDevice()
268 synchronized (mDevices) { in getDevice()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java57 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>(); field in MtpClient
75 synchronized (mDevices) {
76 MtpDevice mtpDevice = mDevices.get(deviceName);
89 mDevices.remove(deviceName);
198 mDevices.put(usbDevice.getDeviceName(), mtpDevice); in openDeviceLocked()
227 synchronized (mDevices) { in addListener()
240 synchronized (mDevices) { in removeListener()
252 synchronized (mDevices) { in getDeviceList()
256 if (mDevices.get(usbDevice.getDeviceName()) == null) { in getDeviceList()
261 return new ArrayList<MtpDevice>(mDevices.values()); in getDeviceList()
/packages/services/Mtp/tests/src/com/android/mtp/
DTestMtpManager.java38 private final SparseArray<MtpDeviceRecord> mDevices = new SparseArray<>(); field in TestMtpManager
50 mDevices.put(device.deviceId, device); in addValidDevice()
79 final MtpDeviceRecord[] result = new MtpDeviceRecord[mDevices.size()]; in getDevices()
80 for (int i = 0; i < mDevices.size(); i++) { in getDevices()
81 final MtpDeviceRecord device = mDevices.valueAt(i); in getDevices()
95 final MtpDeviceRecord device = mDevices.get(deviceId); in openDevice()
102 mDevices.put(deviceId, record); in openDevice()
108 final MtpDeviceRecord device = mDevices.get(deviceId); in closeDevice()
112 mDevices.put( in closeDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java63 private final HashMap<String, DeviceProperties> mDevices; field in RemoteDevices
116 mDevices = new HashMap<String, DeviceProperties>(); in RemoteDevices()
154 if (mDevices != null) { in reset()
155 mDevices.clear(); in reset()
169 synchronized (mDevices) { in getDeviceProperties()
170 return mDevices.get(device.getAddress()); in getDeviceProperties()
175 DeviceProperties prop = mDevices.get(Utils.getAddressStringFromByte(address)); in getDevice()
184 synchronized (mDevices) { in addDeviceProperties()
189 DeviceProperties pv = mDevices.put(key, prop); in addDeviceProperties()
201 mDevices.remove(deleteKey); in addDeviceProperties()
DBondStateMachine.java172 private final ArrayList<BluetoothDevice> mDevices = new ArrayList<BluetoothDevice>(); field in BondStateMachine.PendingCommandState
185 if (mDevices.contains(dev) && msg.what != CANCEL_BOND in processMessage()
218 result = !mDevices.remove(dev); in processMessage()
219 if (mDevices.isEmpty()) { in processMessage()
237 } else if (!mDevices.contains(dev)) { in processMessage()
280 mDevices.add(dev); in processMessage()
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java70 private final SparseArray<MtpDevice> mDevices = new SparseArray<>(); field in MtpManager
110 mDevices.put(deviceId, device); in openDevice()
116 mDevices.remove(deviceId); in closeDevice()
245 mDevices.get(deviceId), in getDevice()
267 final MtpDevice mtpDevice = mDevices.get(device.getDeviceId()); in createDeviceRecord()
/packages/services/Car/tools/keventreader/server/
Deventgatherer.cpp28 mDevices.emplace(dev->descriptor(), std::move(dev)); in EventGatherer()
36 return mDevices.size(); in size()
52 if (auto dev = mDevices[fd.fd].get()) { in read()
Deventgatherer.h36 std::map<int, std::unique_ptr<InputSource>> mDevices;
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java52 private AudioDeviceInfo[] mDevices = new AudioDeviceInfo[0]; field in CellBroadcastAlertAudioTest
103 doReturn(mDevices).when(mMockedAudioManager).getDevices(anyInt()); in setUp()
DCellBroadcastReceiverTest.java89 private AudioDeviceInfo[] mDevices = new AudioDeviceInfo[0]; field in CellBroadcastReceiverTest