Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/mtp/
DMtpObjectInfo.java369 public Builder(MtpObjectInfo objectInfo) { in Builder() argument
372 mObjectInfo.mAssociationDesc = objectInfo.mAssociationDesc; in Builder()
373 mObjectInfo.mAssociationType = objectInfo.mAssociationType; in Builder()
374 mObjectInfo.mCompressedSize = objectInfo.mCompressedSize; in Builder()
375 mObjectInfo.mDateCreated = objectInfo.mDateCreated; in Builder()
376 mObjectInfo.mDateModified = objectInfo.mDateModified; in Builder()
377 mObjectInfo.mFormat = objectInfo.mFormat; in Builder()
378 mObjectInfo.mImagePixDepth = objectInfo.mImagePixDepth; in Builder()
379 mObjectInfo.mImagePixHeight = objectInfo.mImagePixHeight; in Builder()
380 mObjectInfo.mImagePixWidth = objectInfo.mImagePixWidth; in Builder()
[all …]
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) { in fill_jobject_from_object_info() argument
139 if (objectInfo->mHandle) in fill_jobject_from_object_info()
140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle); in fill_jobject_from_object_info()
141 if (objectInfo->mStorageID) in fill_jobject_from_object_info()
142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID); in fill_jobject_from_object_info()
143 if (objectInfo->mFormat) in fill_jobject_from_object_info()
144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat); in fill_jobject_from_object_info()
145 if (objectInfo->mProtectionStatus) in fill_jobject_from_object_info()
146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus); in fill_jobject_from_object_info()
147 if (objectInfo->mCompressedSize) in fill_jobject_from_object_info()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/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 …]
/frameworks/base/packages/MtpDocumentsProvider/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()