/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 37 private final HashMap<String, WifiP2pDevice> mDevices = new HashMap<String, WifiP2pDevice>(); field in WifiP2pDeviceList 46 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList() 55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList() 75 if (mDevices.isEmpty()) return false; in clear() 76 mDevices.clear(); in clear() 88 mDevices.get(device.deviceAddress).status = device.status; in update() 94 WifiP2pDevice d = mDevices.get(device.deviceAddress); in updateSupplicantDetails() 106 mDevices.put(device.deviceAddress, device); in updateSupplicantDetails() 112 WifiP2pDevice d = mDevices.get(deviceAddress); in updateGroupCapability() 121 WifiP2pDevice d = mDevices.get(deviceAddress); in updateStatus() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 88 private final ArrayList<DeviceInfo> mDevices = new ArrayList<>(); field in DeviceDiscoveryAction 105 mDevices.clear(); in start() 129 mDevices.add(info); in allocateDevices() 134 Slog.v(TAG, "Start [Physical Address Stage]:" + mDevices.size()); in startPhysicalAddressStage() 162 Slog.v(TAG, "Start [Osd Name Stage]:" + mDevices.size()); in startOsdNameStage() 185 Slog.v(TAG, "Start [Vendor Id Stage]:" + mDevices.size()); in startVendorIdStage() 247 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); in handleReportPhysicalAddress() 249 DeviceInfo current = mDevices.get(mProcessedDeviceCount); in handleReportPhysicalAddress() 273 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); 275 DeviceInfo current = mDevices.get(mProcessedDeviceCount); [all …]
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 59 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>(); field in MtpClient 70 synchronized (mDevices) { 71 MtpDevice mtpDevice = mDevices.get(deviceName); 84 mDevices.remove(deviceName); 180 mDevices.put(usbDevice.getDeviceName(), mtpDevice); in openDeviceLocked() 203 synchronized (mDevices) { in addListener() 216 synchronized (mDevices) { in removeListener() 229 synchronized (mDevices) { in getDevice() 230 return mDevices.get(deviceName); in getDevice() 242 synchronized (mDevices) { in getDevice() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 47 private final HashMap<String, UsbDevice> mDevices = new HashMap<String, UsbDevice>(); field in UsbHostManager 145 if (mDevices.get(deviceName) != null) { in beginUsbDeviceAdded() 222 mDevices.put(mNewDevice.getDeviceName(), mNewDevice); in endUsbDeviceAdded() 239 UsbDevice device = mDevices.remove(deviceName); in usbDeviceRemoved() 263 for (String name : mDevices.keySet()) { in getDeviceList() 264 devices.putParcelable(name, mDevices.get(name)); in getDeviceList() 275 UsbDevice device = mDevices.get(deviceName); in openDevice() 289 for (String name : mDevices.keySet()) { in dump() 290 pw.println(" " + name + ": " + mDevices.get(name)); in dump()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 51 private final SparseArray<LocalDisplayDevice> mDevices = field in LocalDisplayAdapter 91 LocalDisplayDevice device = mDevices.get(builtInDisplayId); in tryConnectDisplayLocked() 96 mDevices.put(builtInDisplayId, device); in tryConnectDisplayLocked() 110 LocalDisplayDevice device = mDevices.get(builtInDisplayId); in tryDisconnectDisplayLocked() 113 mDevices.remove(builtInDisplayId); in tryDisconnectDisplayLocked()
|
/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 672 size_t size = mDevices.size(); in getDeviceByDescriptorLocked() 674 Device* device = mDevices.valueAt(i); in getDeviceByDescriptorLocked() 686 ssize_t index = mDevices.indexOfKey(deviceId); in getDeviceLocked() 687 return index >= 0 ? mDevices.valueAt(index) : NULL; in getDeviceLocked() 691 for (size_t i = 0; i < mDevices.size(); i++) { in getDeviceByPathLocked() 692 Device* device = mDevices.valueAt(i); in getDeviceByPathLocked() 801 ssize_t deviceIndex = mDevices.indexOfKey(eventItem.data.u32); in getEvents() 808 Device* device = mDevices.valueAt(deviceIndex); in getEvents() 1024 if (mDevices.indexOfKey(VIRTUAL_KEYBOARD_ID) < 0) { in scanDevicesLocked() 1372 mDevices.add(device->id, device); in addDeviceLocked() [all …]
|
D | InputReader.cpp | 252 for (size_t i = 0; i < mDevices.size(); i++) { in ~InputReader() 253 delete mDevices.valueAt(i); in ~InputReader() 360 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in addDeviceLocked() 382 mDevices.add(deviceId, device); in addDeviceLocked() 388 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in removeDeviceLocked() 394 device = mDevices.valueAt(deviceIndex); in removeDeviceLocked() 395 mDevices.removeItemsAt(deviceIndex, 1); in removeDeviceLocked() 472 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in processEventsForDeviceLocked() 478 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked() 488 for (size_t i = 0; i < mDevices.size(); i++) { in timeoutExpiredLocked() [all …]
|
D | EventHub.h | 421 KeyedVector<int32_t, Device*> mDevices; variable
|
D | InputReader.h | 483 KeyedVector<int32_t, InputDevice*> mDevices; variable
|
/frameworks/base/docs/html/training/game-controllers/ |
D | compatibility.jd | 405 private final SparseArray<long[]> mDevices; 411 mDevices = new SparseArray<long[]>(); 440 int size = imv.mDevices.size(); 442 long[] lastContact = imv.mDevices.valueAt(i); 447 int id = imv.mDevices.keyAt(i); 452 imv.mDevices.remove(id); 496 long[] timeArray = mDevices.get(id); 501 mDevices.put(id, timeArray);
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 334 KeyedVector<int32_t, Device*> mDevices; member in android::FakeEventHub 340 for (size_t i = 0; i < mDevices.size(); i++) { in ~FakeEventHub() 341 delete mDevices.valueAt(i); in ~FakeEventHub() 351 mDevices.add(deviceId, device); in addDevice() 357 delete mDevices.valueFor(deviceId); in removeDevice() 358 mDevices.removeItem(deviceId); in removeDevice() 471 ssize_t index = mDevices.indexOfKey(deviceId); in getDevice() 472 return index >= 0 ? mDevices.valueAt(index) : NULL; in getDevice()
|