Home
last modified time | relevance | path

Searched refs:MtpObject (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/java/android/mtp/
DMtpStorageManager.java56 MtpObject mObject;
58 MtpObjectObserver(MtpObject object) { in MtpObjectObserver()
71 MtpObject obj = mObject.getChild(path); in onEvent()
130 public static class MtpObject { class in MtpStorageManager
132 private MtpObject mParent;
143 private HashMap<String, MtpObject> mChildren;
147 MtpObject(String name, int id, MtpObject parent, boolean isDir) { in MtpObject() method in MtpStorageManager.MtpObject
186 public MtpObject getParent() { in getParent()
190 public MtpObject getRoot() { in getRoot()
220 private void setParent(MtpObject parent) { in setParent()
[all …]
DMtpDatabase.java374 MtpStorageManager.MtpObject parentObj = in beginSendObject()
385 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in endSendObject()
456 Stream<MtpStorageManager.MtpObject> objectStream = mManager.getObjects(parent, in getObjectList()
461 return objectStream.mapToInt(MtpStorageManager.MtpObject::getId).toArray(); in getObjectList()
465 Stream<MtpStorageManager.MtpObject> objectStream = mManager.getObjects(parent, in getNumObjects()
492 Stream<MtpStorageManager.MtpObject> objectStream = Stream.of(); in getObjectPropertyList()
501 MtpStorageManager.MtpObject obj = mManager.getObject(handle); in getObjectPropertyList()
514 Stream<MtpStorageManager.MtpObject> childStream = mManager.getObjects(handle, format, in getObjectPropertyList()
524 Iterator<MtpStorageManager.MtpObject> iter = objectStream.iterator(); in getObjectPropertyList()
526 MtpStorageManager.MtpObject obj = iter.next(); in getObjectPropertyList()
[all …]
DMtpPropertyGroup.java224 public int getPropertyList(MtpStorageManager.MtpObject object, MtpPropertyList list) { in getPropertyList()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java143 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectGetNameRoot()
152 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetNameNonRoot()
161 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectGetIdRoot()
170 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetIdNonRoot()
179 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectIsDirTrue()
188 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectIsDirFalse()
198 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetFormatDir()
208 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetFormatNonDir()
218 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetStorageId()
228 Stream<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetLastModified()
[all …]