• Home
  • Raw
  • Download

Lines Matching refs:obj

435         MtpStorageManager.MtpObject obj = mManager.getObject(handle);  in endSendObject()  local
436 if (obj == null || !mManager.endSendObject(obj, succeeded)) { in endSendObject()
442 updateMediaStore(mContext, obj.getPath().toFile()); in endSendObject()
506 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getObjectPropertyList() local
507 if (obj == null) { in getObjectPropertyList()
510 if (obj.getFormat() == format || format == 0) { in getObjectPropertyList()
511 thisObj = obj; in getObjectPropertyList()
534 for (MtpStorageManager.MtpObject obj : objs) { in getObjectPropertyList()
538 format = obj.getFormat(); in getObjectPropertyList()
557 int err = propertyGroup.getPropertyList(mMediaProvider, obj.getVolumeName(), obj, ret); in getObjectPropertyList()
566 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in renameFile() local
567 if (obj == null) { in renameFile()
570 Path oldPath = obj.getPath(); in renameFile()
573 if (!mManager.beginRenameObject(obj, newName)) in renameFile()
575 Path newPath = obj.getPath(); in renameFile()
584 if (!mManager.endRenameObject(obj, oldPath.getFileName().toString(), success)) { in renameFile()
598 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in beginMoveObject() local
601 if (obj == null || parent == null) in beginMoveObject()
604 boolean allowed = mManager.beginMoveObject(obj, parent); in beginMoveObject()
615 MtpStorageManager.MtpObject obj = mManager.getObject(objId); in endMoveObject() local
616 String name = obj.getName(); in endMoveObject()
622 obj = mManager.getObject(objId); in endMoveObject()
623 if (!success || obj == null) in endMoveObject()
635 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in beginCopyObject() local
638 if (obj == null || parent == null) in beginCopyObject()
640 return mManager.beginCopyObject(obj, parent); in beginCopyObject()
645 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in endCopyObject() local
646 if (obj == null || !mManager.endCopyObject(obj, success)) { in endCopyObject()
654 updateMediaStore(mContext, obj.getPath().toFile()); in endCopyObject()
757 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getObjectInfo() local
758 if (obj == null) { in getObjectInfo()
761 outStorageFormatParent[0] = obj.getStorageId(); in getObjectInfo()
762 outStorageFormatParent[1] = obj.getFormat(); in getObjectInfo()
763 outStorageFormatParent[2] = obj.getParent().isRoot() ? 0 : obj.getParent().getId(); in getObjectInfo()
765 int nameLen = Integer.min(obj.getName().length(), 255); in getObjectInfo()
766 obj.getName().getChars(0, nameLen, outName, 0); in getObjectInfo()
769 outCreatedModified[0] = obj.getModifiedTime(); in getObjectInfo()
770 outCreatedModified[1] = obj.getModifiedTime(); in getObjectInfo()
776 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getObjectFilePath() local
777 if (obj == null) { in getObjectFilePath()
781 String path = obj.getPath().toString(); in getObjectFilePath()
786 outFileLengthFormat[0] = obj.getSize(); in getObjectFilePath()
787 outFileLengthFormat[1] = obj.getFormat(); in getObjectFilePath()
820 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getObjectFormat() local
821 if (obj == null) { in getObjectFormat()
824 return obj.getFormat(); in getObjectFormat()
854 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getThumbnailInfo() local
855 if (obj == null) { in getThumbnailInfo()
859 String path = obj.getPath().toString(); in getThumbnailInfo()
860 switch (obj.getFormat()) { in getThumbnailInfo()
903 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getThumbnailData() local
904 if (obj == null) { in getThumbnailData()
908 String path = obj.getPath().toString(); in getThumbnailData()
909 switch (obj.getFormat()) { in getThumbnailData()
942 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in beginDeleteObject() local
943 if (obj == null) { in beginDeleteObject()
946 if (!mManager.beginRemoveObject(obj)) { in beginDeleteObject()
954 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in endDeleteObject() local
955 if (obj == null) { in endDeleteObject()
958 if (!mManager.endRemoveObject(obj, success)) in endDeleteObject()
961 deleteFromMedia(obj, obj.getPath(), obj.isDir()); in endDeleteObject()
964 private void deleteFromMedia(MtpStorageManager.MtpObject obj, Path path, boolean isDir) { in deleteFromMedia() argument
965 final Uri objectsUri = MediaStore.Files.getContentUri(obj.getVolumeName()); in deleteFromMedia()