Home
last modified time | relevance | path

Searched refs:objectInfo (Results 1 – 4 of 4) sorted by relevance

/packages/services/Mtp/tests/src/com/android/mtp/
DTestMtpManager.java57 void setObjectInfo(int deviceId, MtpObjectInfo objectInfo) { in setObjectInfo() argument
58 mObjectInfos.put(pack(deviceId, objectInfo.getObjectHandle()), objectInfo); in setObjectInfo() local
153 int createDocument(int deviceId, MtpObjectInfo objectInfo, ParcelFileDescriptor source) in createDocument() argument
155 Assert.assertNotSame(0, objectInfo.getStorageId()); in createDocument()
156 Assert.assertNotSame(-1, objectInfo.getStorageId()); in createDocument()
157 Assert.assertNotSame(0, objectInfo.getParent()); in createDocument()
162 final MtpObjectInfo newInfo = new MtpObjectInfo.Builder(objectInfo). in createDocument()
165 if (objectInfo.getFormat() != 0x3001) { in createDocument()
168 final byte[] buffer = new byte[objectInfo.getCompressedSize()]; in createDocument()
169 if (inputStream.read(buffer, 0, objectInfo.getCompressedSize()) != in createDocument()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndexRunnable.java142 protected void addObject(IngestObjectInfo objectInfo, in addObject() argument
144 mDateInstance.setTimestamp(objectInfo.getDateCreated()); in addObject()
151 bucket.add(objectInfo); in addObject()
152 mIndex.onObjectIndexed(objectInfo, numObjects); in addObject()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java252 IngestObjectInfo objectInfo; in handleMessage() local
257 objectInfo = parent.mFetchObjectInfo; in handleMessage()
262 Object result = parent.fetchMtpImageDataFromDevice(device, objectInfo); in handleMessage()
267 if (parent.mFetchObjectInfo != objectInfo) { in handleMessage()
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java193 int createDocument(int deviceId, MtpObjectInfo objectInfo, in createDocument() argument
197 final MtpObjectInfo sendObjectInfoResult = device.sendObjectInfo(objectInfo); in createDocument()
201 if (objectInfo.getFormat() != MtpConstants.FORMAT_ASSOCIATION) { in createDocument()