Lines Matching refs:edit
232 ObjectEdit* edit = mObjectEditList[i];
233 commitEdit(edit);
234 delete edit;
276 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd);
277 mObjectEditList.add(edit);
283 ObjectEdit* edit = mObjectEditList[i];
284 if (edit->mHandle == handle) return edit;
292 ObjectEdit* edit = mObjectEditList[i];
293 if (edit->mHandle == handle) {
294 delete edit;
302 void MtpServer::commitEdit(ObjectEdit* edit) {
303 mDatabase->endSendObject((const char *)edit->mPath, edit->mHandle, edit->mFormat, true);
690 ObjectEdit* edit = getEditObject(handle);
691 if (edit)
692 size = (edit->mSize > 0xFFFFFFFFLL ? 0xFFFFFFFF : (uint32_t)edit->mSize);
1099 ObjectEdit* edit = getEditObject(handle);
1100 if (!edit) {
1101 LOGE("object not open for edit in doSendPartialObject");
1106 if (offset > edit->mSize) {
1107 LOGD("writing past end of object, offset: %lld, edit->mSize: %lld", offset, edit->mSize);
1111 const char* filePath = (const char *)edit->mPath;
1121 ret = write(edit->mFD, mData.getData(), initialData);
1128 mfr.fd = edit->mFD;
1148 if (end > edit->mSize) {
1149 edit->mSize = end;
1156 ObjectEdit* edit = getEditObject(handle);
1157 if (!edit) {
1158 LOGE("object not open for edit in doTruncateObject");
1165 if (ftruncate(edit->mFD, offset) != 0) {
1168 edit->mSize = offset;
1176 LOGE("object already open for edit in doBeginEditObject");
1199 ObjectEdit* edit = getEditObject(handle);
1200 if (!edit) {
1201 LOGE("object not open for edit in doEndEditObject");
1205 commitEdit(edit);