Lines Matching refs:mData
194 int ret = mData.read(mHandle); in run()
205 mData.reset(); in run()
209 if (!dataIn && mData.hasData()) { in run()
210 mData.setOperationCode(operation); in run()
211 mData.setTransactionID(transaction); in run()
213 ret = mData.write(mHandle); in run()
468 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
470 mData.putUInt32(0); in doGetDeviceInfo()
473 mData.putUInt32(6); in doGetDeviceInfo()
475 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
483 mData.putString(string); // MTP Extensions in doGetDeviceInfo()
484 mData.putUInt16(0); //Functional Mode in doGetDeviceInfo()
485 mData.putAUInt16(kSupportedOperationCodes, in doGetDeviceInfo()
487 mData.putAUInt16(kSupportedEventCodes, in doGetDeviceInfo()
489 mData.putAUInt16(deviceProperties); // Device Properties Supported in doGetDeviceInfo()
490 mData.putAUInt16(captureFormats); // Capture Formats in doGetDeviceInfo()
491 mData.putAUInt16(playbackFormats); // Playback Formats in doGetDeviceInfo()
493 mData.putString(mDeviceInfoManufacturer); // Manufacturer in doGetDeviceInfo()
494 mData.putString(mDeviceInfoModel); // Model in doGetDeviceInfo()
495 mData.putString(mDeviceInfoDeviceVersion); // Device Version in doGetDeviceInfo()
496 mData.putString(mDeviceInfoSerialNumber); // Serial Number in doGetDeviceInfo()
532 mData.putUInt32(count); in doGetStorageIDs()
534 mData.putUInt32(mStorages[i]->getStorageID()); in doGetStorageIDs()
552 mData.putUInt16(storage->getType()); in doGetStorageInfo()
553 mData.putUInt16(storage->getFileSystemType()); in doGetStorageInfo()
554 mData.putUInt16(storage->getAccessCapability()); in doGetStorageInfo()
555 mData.putUInt64(storage->getMaxCapacity()); in doGetStorageInfo()
556 mData.putUInt64(storage->getFreeSpace()); in doGetStorageInfo()
557 mData.putUInt32(1024*1024*1024); // Free Space in Objects in doGetStorageInfo()
559 mData.putString(string); in doGetStorageInfo()
560 mData.putEmptyString(); // Volume Identifier in doGetStorageInfo()
572 mData.putAUInt16(properties); in doGetObjectPropsSupported()
593 mData.putAUInt32(handles); in doGetObjectHandles()
632 mData.putAUInt32(handles); in doGetObjectReferences()
635 mData.putEmptyArray(); in doGetObjectReferences()
649 MtpObjectHandleList* references = mData.getAUInt32(); in doSetObjectReferences()
667 return mDatabase->getObjectPropertyValue(handle, property, mData); in doGetObjectPropValue()
680 return mDatabase->setObjectPropertyValue(handle, property, mData); in doSetObjectPropValue()
690 return mDatabase->getDevicePropertyValue(property, mData); in doGetDevicePropValue()
700 return mDatabase->setDevicePropertyValue(property, mData); in doSetDevicePropValue()
729 return mDatabase->getObjectPropertyList(handle, format, property, groupCode, depth, mData); in doGetObjectPropList()
743 mData.putUInt32(info.mStorageID); in doGetObjectInfo()
744 mData.putUInt16(info.mFormat); in doGetObjectInfo()
745 mData.putUInt16(info.mProtectionStatus); in doGetObjectInfo()
752 mData.putUInt32(size); in doGetObjectInfo()
754 mData.putUInt16(info.mThumbFormat); in doGetObjectInfo()
755 mData.putUInt32(info.mThumbCompressedSize); in doGetObjectInfo()
756 mData.putUInt32(info.mThumbPixWidth); in doGetObjectInfo()
757 mData.putUInt32(info.mThumbPixHeight); in doGetObjectInfo()
758 mData.putUInt32(info.mImagePixWidth); in doGetObjectInfo()
759 mData.putUInt32(info.mImagePixHeight); in doGetObjectInfo()
760 mData.putUInt32(info.mImagePixDepth); in doGetObjectInfo()
761 mData.putUInt32(info.mParent); in doGetObjectInfo()
762 mData.putUInt16(info.mAssociationType); in doGetObjectInfo()
763 mData.putUInt32(info.mAssociationDesc); in doGetObjectInfo()
764 mData.putUInt32(info.mSequenceNumber); in doGetObjectInfo()
765 mData.putString(info.mName); in doGetObjectInfo()
767 mData.putString(date); // date created in doGetObjectInfo()
769 mData.putString(date); // date modified in doGetObjectInfo()
770 mData.putEmptyString(); // keywords in doGetObjectInfo()
833 mData.setOperationCode(mRequest.getOperationCode()); in doGetThumb()
834 mData.setTransactionID(mRequest.getTransactionID()); in doGetThumb()
835 mData.writeData(mHandle, thumb, thumbSize); in doGetThumb()
931 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // storage ID in doSendObjectInfo()
932 if (!mData.getUInt16(temp16)) return MTP_RESPONSE_INVALID_PARAMETER; in doSendObjectInfo()
934 if (!mData.getUInt16(temp16)) return MTP_RESPONSE_INVALID_PARAMETER; // protection status in doSendObjectInfo()
935 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; in doSendObjectInfo()
937 if (!mData.getUInt16(temp16)) return MTP_RESPONSE_INVALID_PARAMETER; // thumb format in doSendObjectInfo()
938 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // thumb compressed size in doSendObjectInfo()
939 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // thumb pix width in doSendObjectInfo()
940 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // thumb pix height in doSendObjectInfo()
941 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // image pix width in doSendObjectInfo()
942 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // image pix height in doSendObjectInfo()
943 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // image bit depth in doSendObjectInfo()
944 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // parent in doSendObjectInfo()
945 if (!mData.getUInt16(temp16)) return MTP_RESPONSE_INVALID_PARAMETER; in doSendObjectInfo()
946 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; in doSendObjectInfo()
947 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // sequence number in doSendObjectInfo()
949 if (!mData.getString(name)) return MTP_RESPONSE_INVALID_PARAMETER; // file name in doSendObjectInfo()
954 if (!mData.getString(created)) return MTP_RESPONSE_INVALID_PARAMETER; // date created in doSendObjectInfo()
955 if (!mData.getString(modified)) return MTP_RESPONSE_INVALID_PARAMETER; // date modified in doSendObjectInfo()
1174 ret = mData.read(mHandle); in doSendObject()
1203 ret = write(mfr.fd, mData.getData(), initialData); in doSendObject()
1253 mData.reset(); in doSendObject()
1305 property->write(mData); in doGetObjectPropDesc()
1318 property->write(mData); in doGetDevicePropDesc()
1351 int ret = mData.read(mHandle); in doSendPartialObject()
1357 ret = pwrite(edit->mFD, mData.getData(), initialData, offset); in doSendPartialObject()
1389 mData.reset(); in doSendPartialObject()