Home | History | Annotate | Download | only in mtp

Lines Matching refs:handle

244 void MtpServer::sendObjectAdded(MtpObjectHandle handle) {
245 ALOGV("sendObjectAdded %d\n", handle);
246 sendEvent(MTP_EVENT_OBJECT_ADDED, handle);
249 void MtpServer::sendObjectRemoved(MtpObjectHandle handle) {
250 ALOGV("sendObjectRemoved %d\n", handle);
251 sendEvent(MTP_EVENT_OBJECT_REMOVED, handle);
274 void MtpServer::addEditObject(MtpObjectHandle handle, MtpString& path,
276 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd);
280 MtpServer::ObjectEdit* MtpServer::getEditObject(MtpObjectHandle handle) {
284 if (edit->mHandle == handle) return edit;
289 void MtpServer::removeEditObject(MtpObjectHandle handle) {
293 if (edit->mHandle == handle) {
586 MtpObjectHandle handle = mRequest.getParameter(1);
588 // FIXME - check for invalid object handle
589 MtpObjectHandleList* handles = mDatabase->getObjectReferences(handle);
604 MtpStorageID handle = mRequest.getParameter(1);
607 MtpResponseCode result = mDatabase->setObjectReferences(handle, references);
615 MtpObjectHandle handle = mRequest.getParameter(1);
617 ALOGV("GetObjectPropValue %d %s\n", handle,
620 return mDatabase->getObjectPropertyValue(handle, property, mData);
626 MtpObjectHandle handle = mRequest.getParameter(1);
628 ALOGV("SetObjectPropValue %d %s\n", handle,
631 return mDatabase->setObjectPropertyValue(handle, property, mData);
662 MtpObjectHandle handle = mRequest.getParameter(1);
669 handle, MtpDebug::getFormatCodeName(format),
672 return mDatabase->getObjectPropertyList(handle, format, property, groupCode, depth, mData);
678 MtpObjectHandle handle = mRequest.getParameter(1);
679 MtpObjectInfo info(handle);
680 MtpResponseCode result = mDatabase->getObjectInfo(handle, info);
690 ObjectEdit* edit = getEditObject(handle);
719 MtpObjectHandle handle = mRequest.getParameter(1);
723 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format);
752 MtpObjectHandle handle = mRequest.getParameter(1);
754 void* thumb = mDatabase->getThumbnail(handle, thumbSize);
770 MtpObjectHandle handle = mRequest.getParameter(1);
786 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format);
883 MtpObjectHandle handle = mDatabase->beginSendObject((const char*)path,
885 if (handle == kInvalidObjectHandle) {
898 mDatabase->endSendObject(path, handle, MTP_FORMAT_ASSOCIATION, MTP_RESPONSE_OK);
901 // save the handle for the SendObject call, which should follow
902 mSendObjectHandle = handle;
908 mResponse.setParameter(3, handle);
1047 MtpObjectHandle handle = mRequest.getParameter(1);
1049 // FIXME - support deleting all objects if handle is 0xFFFFFFFF
1054 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format);
1057 result = mDatabase->deleteFile(handle);
1094 MtpObjectHandle handle = mRequest.getParameter(1);
1100 ObjectEdit* edit = getEditObject(handle);
1156 MtpObjectHandle handle = mRequest.getParameter(1);
1157 ObjectEdit* edit = getEditObject(handle);
1175 MtpObjectHandle handle = mRequest.getParameter(1);
1176 if (getEditObject(handle)) {
1184 int result = mDatabase->getObjectFilePath(handle, path, fileLength, format);
1194 addEditObject(handle, path, fileLength, format, fd);
1199 MtpObjectHandle handle = mRequest.getParameter(1);
1200 ObjectEdit* edit = getEditObject(handle);
1207 removeEditObject(handle);