/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MtpClient.java | 60 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/ |
D | MediaOutputSliceTest.java | 79 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/ |
D | MtpClient.java | 57 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/ |
D | RemoteDevices.java | 63 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()
|
D | BondStateMachine.java | 172 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/ |
D | TrustedDeviceListPreferenceControllerTest.java | 66 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/ |
D | eventgatherer.cpp | 28 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()
|
D | eventgatherer.h | 36 std::map<int, std::unique_ptr<InputSource>> mDevices;
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastAlertAudioTest.java | 52 private AudioDeviceInfo[] mDevices = new AudioDeviceInfo[0]; field in CellBroadcastAlertAudioTest 103 doReturn(mDevices).when(mMockedAudioManager).getDevices(anyInt()); in setUp()
|
D | CellBroadcastReceiverTest.java | 89 private AudioDeviceInfo[] mDevices = new AudioDeviceInfo[0]; field in CellBroadcastReceiverTest
|