Home
last modified time | relevance | path

Searched refs:MtpObjectInfo (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/av/media/mtp/
DMtpObjectInfo.cpp27 MtpObjectInfo::MtpObjectInfo(MtpObjectHandle handle) in MtpObjectInfo() function in android::MtpObjectInfo
51 MtpObjectInfo::~MtpObjectInfo() { in ~MtpObjectInfo()
58 bool MtpObjectInfo::read(MtpDataPacket& packet) { in read()
97 void MtpObjectInfo::print() { in print()
DMtpObjectInfo.h26 class MtpObjectInfo {
50 explicit MtpObjectInfo(MtpObjectHandle handle);
51 virtual ~MtpObjectInfo();
DMtpDevice.h36 class MtpObjectInfo; variable
104 MtpObjectInfo* getObjectInfo(MtpObjectHandle handle);
106 MtpObjectHandle sendObjectInfo(MtpObjectInfo* info);
DIMtpDatabase.h26 class MtpObjectInfo; variable
85 MtpObjectInfo& info) = 0;
DMtpDevice.cpp428 MtpObjectInfo* MtpDevice::getObjectInfo(MtpObjectHandle handle) { in getObjectInfo()
441 MtpObjectInfo* info = new MtpObjectInfo(handle); in getObjectInfo()
465 MtpObjectHandle MtpDevice::sendObjectInfo(MtpObjectInfo* info) { in sendObjectInfo()
553 MtpObjectInfo* info = getObjectInfo(handle); in getParent()
564 MtpObjectInfo* info = getObjectInfo(handle); in getStorageID()
DAndroid.bp29 "MtpObjectInfo.cpp",
DMtpServer.cpp740 MtpObjectInfo info(handle); in doGetObjectInfo()
1044 MtpObjectInfo info(objectHandle); in doMoveObject()
1122 MtpObjectInfo info(objectHandle); in doCopyObject()
/frameworks/base/media/java/android/mtp/
DMtpObjectInfo.java31 public final class MtpObjectInfo { class
54 private MtpObjectInfo() { in MtpObjectInfo() method in MtpObjectInfo
356 private MtpObjectInfo mObjectInfo;
359 mObjectInfo = new MtpObjectInfo(); in Builder()
369 public Builder(MtpObjectInfo objectInfo) { in Builder()
370 mObjectInfo = new MtpObjectInfo(); in Builder()
508 public MtpObjectInfo build() { in build()
509 MtpObjectInfo result = mObjectInfo; in build()
DMtpDevice.java281 public @Nullable MtpObjectInfo getObjectInfo(int objectHandle) { in getObjectInfo()
371 public @Nullable MtpObjectInfo sendObjectInfo(@NonNull MtpObjectInfo info) { in sendObjectInfo()
427 private native MtpObjectInfo native_get_object_info(int objectHandle); in native_get_object_info()
440 private native MtpObjectInfo native_send_object_info(MtpObjectInfo info); in native_send_object_info()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpFileWriter.java20 import android.mtp.MtpObjectInfo;
73 final MtpObjectInfo placeholderObjectInfo = in flush()
81 final MtpObjectInfo targetObjectInfo = new MtpObjectInfo.Builder(placeholderObjectInfo) in flush()
89 final MtpObjectInfo newObjectInfo = manager.getObjectInfo( in flush()
DMtpManager.java30 import android.mtp.MtpObjectInfo;
130 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo()
193 int createDocument(int deviceId, MtpObjectInfo objectInfo, in createDocument()
197 final MtpObjectInfo sendObjectInfoResult = device.sendObjectInfo(objectInfo); in createDocument()
DDocumentLoader.java24 import android.mtp.MtpObjectInfo;
328 final ArrayList<MtpObjectInfo> infoList = new ArrayList<>(); in loadObjectInfoList()
341 final MtpObjectInfo info = infoList.get(i); in loadObjectInfoList()
381 infoList.toArray(new MtpObjectInfo[infoList.size()]), in loadObjectInfoList()
DMtpDocumentsProvider.java33 import android.mtp.MtpObjectInfo;
429 MtpObjectInfo info = null; in createDocument()
436 info = new MtpObjectInfo.Builder() in createDocument()
447 final MtpObjectInfo infoUniqueName; in createDocument()
456 new MtpObjectInfo.Builder(info).setName(suffixedName).build(); in createDocument()
475 final MtpObjectInfo infoWithHandle = in createDocument()
476 new MtpObjectInfo.Builder(info).setObjectHandle(objectHandle).build(); in createDocument()
DMtpDatabase.java34 import android.mtp.MtpObjectInfo;
378 int deviceId, String parentDocumentId, int[] operationsSupported, MtpObjectInfo info, in putNewDocument()
591 MtpObjectInfo info, Long size) { in updateObject()
823 int[] operationsSupported, MtpObjectInfo info, long size) { in getObjectDocumentValues()
849 private static String getMimeType(MtpObjectInfo info) { in getMimeType()
DMapper.java24 import android.mtp.MtpObjectInfo;
138 MtpObjectInfo[] documents, in putChildDocuments()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java21 import android.mtp.MtpObjectInfo;
309 new MtpObjectInfo[] { in testQueryDocument()
310 new MtpObjectInfo.Builder() in testQueryDocument()
347 new MtpObjectInfo[] { in testQueryDocument_directory()
348 new MtpObjectInfo.Builder() in testQueryDocument_directory()
459 new MtpObjectInfo[] { in testQueryChildDocuments()
460 new MtpObjectInfo.Builder() in testQueryChildDocuments()
508 setupDocuments(0, 0, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN, "1", new MtpObjectInfo[] { in testDeleteDocument()
509 new MtpObjectInfo.Builder() in testDeleteDocument()
528 setupDocuments(0, 0, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN, "1", new MtpObjectInfo[] { in testDeleteDocument_error()
[all …]
DTestMtpManager.java20 import android.mtp.MtpObjectInfo;
39 private final Map<String, MtpObjectInfo> mObjectInfos = new HashMap<>();
57 void setObjectInfo(int deviceId, MtpObjectInfo objectInfo) { in setObjectInfo()
119 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo()
153 int createDocument(int deviceId, MtpObjectInfo objectInfo, ParcelFileDescriptor source) in createDocument()
162 final MtpObjectInfo newInfo = new MtpObjectInfo.Builder(objectInfo). in createDocument()
DMtpDatabaseTest.java23 import android.mtp.MtpObjectInfo;
185 private MtpObjectInfo createDocument(int objectHandle, String name, int format, int size) { in createDocument()
186 final MtpObjectInfo.Builder builder = new MtpObjectInfo.Builder(); in createDocument()
199 mDatabase.getMapper().putChildDocuments(0, "2", OPERATIONS_SUPPORTED, new MtpObjectInfo[] { in testPutChildDocuments()
275 mDatabase.getMapper().putChildDocuments(0, "2", new int[0], new MtpObjectInfo[] { in testPutChildDocuments_operationsSupported()
292 }, new MtpObjectInfo[] { in testPutChildDocuments_operationsSupported()
308 }, new MtpObjectInfo[] { in testPutChildDocuments_operationsSupported()
395 mDatabase.getMapper().putChildDocuments(0, "2", OPERATIONS_SUPPORTED, new MtpObjectInfo[] { in testRestoreIdForChildDocuments()
413 mDatabase.getMapper().putChildDocuments(0, "2", OPERATIONS_SUPPORTED, new MtpObjectInfo[] { in testRestoreIdForChildDocuments()
546 mDatabase.getMapper().putChildDocuments(0, "2", OPERATIONS_SUPPORTED, new MtpObjectInfo[] { in testRestoreIdForDifferentParents()
[all …]
DDocumentLoaderTest.java21 import android.mtp.MtpObjectInfo;
129 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in testError_GetObjectInfo()
193 manager.setObjectInfo(0, new MtpObjectInfo.Builder() in setUpDocument()
217 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo()
DMtpManagerTest.java24 import android.mtp.MtpObjectInfo;
145 new MtpObjectInfo.Builder() in testCreateDocumentAndGetPartialObject()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectBrowser.java27 import android.mtp.MtpObjectInfo;
48 private List<MtpObjectInfo> mObjectList;
88 MtpObjectInfo info = mObjectList.get(position); in getView()
134 MtpObjectInfo info = mObjectList.get(position); in onListItemClick()
DMtpClient.java31 import android.mtp.MtpObjectInfo;
305 public MtpObjectInfo getObjectInfo(String deviceName, int objectHandle) { in getObjectInfo()
341 public List<MtpObjectInfo> getObjectList(String deviceName, int storageId, int objectHandle) { in getObjectList()
356 ArrayList<MtpObjectInfo> objectList = new ArrayList<MtpObjectInfo>(length); in getObjectList()
358 MtpObjectInfo info = device.getObjectInfo(handles[i]); in getObjectList()
DObjectViewer.java27 import android.mtp.MtpObjectInfo;
118 MtpObjectInfo info = mClient.getObjectInfo(mDeviceName, mObjectID); in onResume()
/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()
365 MtpObjectInfo* objectInfo = device->getObjectInfo(objectID); in android_mtp_MtpDevice_get_object_info()
615 MtpObjectInfo* object_info = new MtpObjectInfo(-1); in android_mtp_MtpDevice_send_object_info()
Dandroid_mtp_MtpDatabase.cpp155 MtpObjectInfo& info);
779 MtpObjectInfo& info) { in getObjectInfo()

12