Searched refs:isDir (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/media/java/android/mtp/ |
D | MtpStorageManager.java | 153 MtpObject(String name, int id, MtpStorage storage, MtpObject parent, boolean isDir) { in MtpObject() argument 161 mIsDir = isDir; in MtpObject() 177 public boolean isDir() { in isDir() method in MtpStorageManager.MtpObject 457 if (obj == null || !obj.isDir()) in getByPath() 553 if (o.isDir()) in getObjects() 567 if (object == null || !object.isDir()) { in getChildren() 606 boolean isDir) { in addObjectToCache() argument 619 MtpObject obj = new MtpObject(newName, getNextObjectId(), parent.mStorage, parent, isDir); in addObjectToCache() 649 if (removed.isDir() && recursive) { in removeObjectFromCache() 659 private synchronized void handleAddedObject(MtpObject parent, String path, boolean isDir) { in handleAddedObject() argument [all …]
|
D | MtpDatabase.java | 597 if (obj.isDir()) { in renameFile() 655 deleteFromMedia(obj, oldPath, obj.isDir()); in endMoveObject() 928 deleteFromMedia(obj, obj.getPath(), obj.isDir()); in endDeleteObject() 951 private void deleteFromMedia(MtpStorageManager.MtpObject obj, Path path, boolean isDir) { in deleteFromMedia() argument 955 if (isDir) { in deleteFromMedia() 967 if (!isDir && path.toString().toLowerCase(Locale.US).endsWith(NO_MEDIA)) { in deleteFromMedia()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | TestWebData.java | 109 TestWebData(int length, int lastModified, String name, String type, boolean isDir) { in TestWebData() argument 114 testDir = isDir; in TestWebData()
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
D | MtpStorageManagerTest.java | 216 Assert.assertTrue(obj.isDir()); in testMtpObjectIsDirTrue() 226 Assert.assertFalse(stream.get(0).isDir()); in testMtpObjectIsDirFalse() 533 Assert.assertTrue(manager.getObject(objectsAdded.get(0)).isDir()); in testObjectAddedDir() 551 Assert.assertTrue(manager.getObject(objectsAdded.get(2)).isDir()); in testObjectAddedRecursiveDir() 938 .stream().filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectSuccess() 941 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectSuccess() 1010 .filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectFailed() 1013 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectFailed() 1033 .filter(MtpStorageManager.MtpObject::isDir).findFirst().get(); in testCopyObjectFailedAdded() 1036 .filter(o -> !o.isDir()).findFirst().get(); in testCopyObjectFailedAdded() [all …]
|