Home
last modified time | relevance | path

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

/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/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputSliceTest.java79 private final List<MediaDevice> mDevices = new ArrayList<>(); field in MediaOutputSliceTest
104 mMediaDeviceUpdateWorker.onDeviceListUpdate(mDevices); in setUp()
147 mDevices.clear(); in getSlice_shouldHaveActiveDeviceName()
162 mDevices.clear(); in onNotifyChange_foundMediaDevice_connect()
165 when(mLocalMediaManager.getMediaDeviceById(mDevices, TEST_DEVICE_1_ID)).thenReturn(device); in onNotifyChange_foundMediaDevice_connect()
166 mDevices.add(device); in onNotifyChange_foundMediaDevice_connect()
168 mMediaDeviceUpdateWorker.onDeviceListUpdate(mDevices); in onNotifyChange_foundMediaDevice_connect()
180 mDevices.clear(); in onNotifyChange_notFoundMediaDevice_doNothing()
183 when(mLocalMediaManager.getMediaDeviceById(mDevices, TEST_DEVICE_1_ID)).thenReturn(device); in onNotifyChange_notFoundMediaDevice_doNothing()
184 mDevices.add(device); in onNotifyChange_notFoundMediaDevice_doNothing()
[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/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()
219 mDevices.remove(dev); in processMessage()
221 if (mDevices.isEmpty()) { in processMessage()
234 } else if (!mDevices.contains(dev)) { in processMessage()
277 mDevices.add(dev); in processMessage()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DTrustedDeviceListPreferenceControllerTest.java66 List<TrustedDeviceInfo> mDevices = new ArrayList<>(); field in TrustedDeviceListPreferenceControllerTest
90 mDevices.add(mTestDevice1); in setUp()
91 mDevices.add(mTestDevice2); in setUp()
129 mCarUserManagerHelper.getCurrentProcessUserId())).thenReturn(mDevices); in onDeviceAdded_refreshUi()
189 mCarUserManagerHelper.getCurrentProcessUserId())).thenReturn(mDevices); in onPreferenceClicked_hasPassword_showDialog()
/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