• Home
  • Raw
  • Download

Lines Matching refs:deviceId

77     synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException {  in openDevice()  argument
80 if (candidate.getDeviceId() == deviceId) { in openDevice()
86 ensureNotNull(rawDevice, "Not found USB device: " + deviceId); in openDevice()
111 mDevices.put(deviceId, device); in openDevice()
118 synchronized void closeDevice(int deviceId) throws IOException { in closeDevice() argument
119 getDevice(deviceId).close(); in closeDevice()
120 mDevices.remove(deviceId); in closeDevice()
134 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo() argument
135 final MtpDevice device = getDevice(deviceId); in getObjectInfo()
143 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) in getObjectHandles() argument
145 final MtpDevice device = getDevice(deviceId); in getObjectHandles()
153 byte[] getObject(int deviceId, int objectHandle, int expectedSize) in getObject() argument
155 final MtpDevice device = getDevice(deviceId); in getObject()
163 long getPartialObject(int deviceId, int objectHandle, long offset, long size, byte[] buffer) in getPartialObject() argument
165 final MtpDevice device = getDevice(deviceId); in getPartialObject()
171 long getPartialObject64(int deviceId, int objectHandle, long offset, long size, byte[] buffer) in getPartialObject64() argument
173 final MtpDevice device = getDevice(deviceId); in getPartialObject64()
179 byte[] getThumbnail(int deviceId, int objectHandle) throws IOException { in getThumbnail() argument
180 final MtpDevice device = getDevice(deviceId); in getThumbnail()
188 void deleteDocument(int deviceId, int objectHandle) throws IOException { in deleteDocument() argument
189 final MtpDevice device = getDevice(deviceId); in deleteDocument()
197 int createDocument(int deviceId, MtpObjectInfo objectInfo, in createDocument() argument
199 final MtpDevice device = getDevice(deviceId); in createDocument()
215 int getParent(int deviceId, int objectHandle) throws IOException { in getParent() argument
216 final MtpDevice device = getDevice(deviceId); in getParent()
226 void importFile(int deviceId, int objectHandle, ParcelFileDescriptor target) in importFile() argument
228 final MtpDevice device = getDevice(deviceId); in importFile()
237 MtpEvent readEvent(int deviceId, CancellationSignal signal) throws IOException { in readEvent() argument
238 final MtpDevice device = getDevice(deviceId); in readEvent()
242 long getObjectSizeLong(int deviceId, int objectHandle, int format) throws IOException { in getObjectSizeLong() argument
243 final MtpDevice device = getDevice(deviceId); in getObjectSizeLong()
247 private synchronized MtpDevice getDevice(int deviceId) throws IOException { in getDevice() argument
249 mDevices.get(deviceId), in getDevice()
250 "USB device " + deviceId + " is not opened."); in getDevice()
253 private MtpRoot[] getRoots(int deviceId) throws IOException { in getRoots() argument
254 final MtpDevice device = getDevice(deviceId); in getRoots()