Home
last modified time | relevance | path

Searched refs:isDirectory (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveHandleTest.java79 this(archiveEntry.getName(), archiveEntry.getSize(), archiveEntry.isDirectory()); in ArchiveEntryRecord()
82 private ArchiveEntryRecord(String name, long size, boolean isDirectory) { in ArchiveEntryRecord() argument
85 mIsDirectory = isDirectory; in ArchiveEntryRecord()
115 public boolean isDirectory() { in isDirectory() method in ArchiveHandleTest.ArchiveEntryRecord
408 when(archiveEntry.isDirectory()).thenReturn(true); in getInputStream_directoryEntry_shouldFail()
424 when(archiveEntry.isDirectory()).thenReturn(false); in getInputStream_zeroSizeEntry_shouldFail()
441 when(archiveEntry.isDirectory()).thenReturn(false); in getInputStream_emptyStringEntry_shouldFail()
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java79 if (root.isDirectory()) { in removeFileOrDirectoryExcept()
96 if (sourceDir.isDirectory() && targetDir.isDirectory()) { in moveAllContentUnderDirectory()
103 if (file.isDirectory()) { in moveAllContentUnderDirectory()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java35 if (target.isDirectory()) { in deleteAll()
60 + " isDirectory=" + dir.isDirectory()); in makeDirectory()
63 return dir.isDirectory(); in makeDirectory()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentsAdapter.java70 static boolean isDirectory(Cursor cursor) { in isDirectory() method in DocumentsAdapter
75 boolean isDirectory(Model model, int position) { in isDirectory() method in DocumentsAdapter
78 return isDirectory(cursor); in isDirectory()
DListDocumentHolder.java127 if (mDoc.isDirectory()) { in bindPreviewIcon()
175 return (mDoc.isDirectory() && !(mAction == State.ACTION_BROWSE)) ? in inSelectRegion()
213 if (mDoc.isDirectory()) { in bind()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DWriteableArchive.java85 if (entry.isDirectory()) { in addEntry()
141 final boolean isDirectory = Document.MIME_TYPE_DIR.equals(mimeType); in createDocument()
166 final String entryName = parentName + displayName + (isDirectory ? "/" : ""); in createDocument()
177 if (!isDirectory) { in createDocument()
DArchive.java103 Preconditions.checkArgument(entry.isDirectory() == entry.getName().endsWith("/"), in getEntryPath()
195 if (parentEntry == null || !parentEntry.isDirectory()) { in isChildDocument()
201 String pathWithSlash = entry.isDirectory() ? getEntryPath(entry) in isChildDocument()
298 if (entry.isDirectory()) { in getMimeTypeForEntry()
DReadableArchive.java101 if (entry.isDirectory() != entry.getName().endsWith("/")) { in ReadableArchive()
112 if (entry.isDirectory()) { in ReadableArchive()
130 delimiterIndex = entryPath.lastIndexOf('/', entry.isDirectory() in ReadableArchive()
154 public boolean isDirectory() { in ReadableArchive()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTsStreamWriter.java50 if (externalFilesDir == null || !externalFilesDir.isDirectory()) { in TsStreamWriter()
151 if (mDirectory == null || !mDirectory.isDirectory()) { in deleteOutdatedFiles()
200 if (mDirectory == null || !mDirectory.isDirectory()) { in getExistingIds()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorage.java80 assert(outDir.isDirectory()); in ClipStorage()
144 assert(mSlots[pos].isDirectory()); in prepareSlot()
198 assert(clipDir.isDirectory()); in prepareStorage()
/packages/apps/Camera2/src/com/android/camera/util/
DFileUtil.java35 if (!directory.exists() || !directory.isDirectory()) { in deleteDirectoryRecursively()
40 if (entry.isDirectory()) { in deleteDirectoryRecursively()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DFileUtils.java29 if (path.isDirectory()) { in deleteRecursively()
41 if (!dir.isDirectory()) { in deleteFilteredFiles()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DDeviceListFragment.java54 file -> !file.isHidden() && (file.isDirectory()
173 } else if (file.isDirectory()) { in onFileSelected()
199 if (!folder.isDirectory()) { in showFolderContent()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DDownloadCompletionReceiver.java54 if (!Files.isDirectory(destination.getParent())) { in getDestinationFile()
62 if (!Files.isDirectory(destination.getParent())) { in getDestinationFile()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryAppImpl.java95 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); in getDownloadCache()
97 if (!cacheDir.isDirectory()) { in getDownloadCache()
/packages/apps/Camera2/src/com/android/camera/session/
DSessionStorageManagerImpl.java70 if (!sessionDirectory.isDirectory()) { in getSessionDirectory()
123 return file.isDirectory(); in cleanUpExpiredSessions()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DSysfsLifetimeWriteInfoProvider.java104 if (!fspath.exists() || !fspath.isDirectory()) continue; in load()
105 File[] files = fspath.listFiles(File::isDirectory); in load()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentInfo.java241 + ", isDirectory=" + isDirectory() in toString()
296 public boolean isDirectory() { in isDirectory() method in DocumentInfo
322 return isDirectory() || (isArchive() && !isInArchive() && !isPartial()); in isContainer()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java128 if (file.isDirectory()) { in removeFileOrDirectory()
145 if (child.isDirectory()) { in addDirectory()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java143 if (input.isDirectory()) {
155 if (!input.isDirectory()) {
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipProfileDb.java81 if (file.isDirectory()) { in deleteProfile()
90 if(dbDir.isDirectory()) { in cleanupUponMigration()
/packages/apps/Camera2/src/com/android/camera/
DStorage.java333 if (inputPath.isDirectory()) { in renameFile()
386 return parentFile.isDirectory(); in createDirectoryIfNeeded()
504 if (!dir.isDirectory() || !dir.canWrite()) { in getAvailableSpace()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java328 if (doc.isDirectory()) { in makeOptimizedCopyProgress()
704 if (src.isDirectory()) { in createProgressTracker()
845 if (parent.isDirectory() && doc.authority.equals(parent.authority)) { in isDescendantOf()
862 if (!source.isDirectory() || !target.isDirectory()) { in isRecursiveCopy()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java225 assert(doc.isDirectory()); in springOpenDirectory()
539 assert(!doc.isDirectory()); in showChooserForDoc()
572 if (doc.isDirectory() && mState.stack.size() == 1 && mState.stack.get(0).equals(doc)) { in showInspector()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java196 if (!mRootDir.isDirectory()) { in initialize()
198 if (!mRootDir.isDirectory()) { in initialize()

1234