Home
last modified time | relevance | path

Searched refs:listFiles (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java65 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
68 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
88 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixFilePath()
91 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixFilePath()
111 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath()
114 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath()
134 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithWindowsFilePath()
137 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithWindowsFilePath()
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTestCase.groovy170 assert [] == fileSystem.listFiles(NEW_DIR)
175 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
178 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
189 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
193 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
195 assert fileSystem.listFiles(NO_SUCH_DIR) == []
197 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
209 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
210 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
DTestUnixFakeFileSystem.groovy54 List listFiles(String path) {
58 super.listFiles(path)
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTestCase.groovy170 assert [] == fileSystem.listFiles(NEW_DIR)
175 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
178 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
189 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
193 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
195 assert fileSystem.listFiles(NO_SUCH_DIR) == []
197 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
209 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
210 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
DTestUnixFakeFileSystem.groovy54 List listFiles(String path) {
58 super.listFiles(path)
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTestCase.groovy170 assert [] == fileSystem.listFiles(NEW_DIR)
175 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
178 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
189 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
193 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
195 assert fileSystem.listFiles(NO_SUCH_DIR) == []
197 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
209 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
210 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
DTestUnixFakeFileSystem.groovy54 List listFiles(String path) {
58 super.listFiles(path)
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTestCase.groovy170 assert [] == fileSystem.listFiles(NEW_DIR)
175 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
178 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
189 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
193 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
195 assert fileSystem.listFiles(NO_SUCH_DIR) == []
197 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
209 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
210 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
DTestUnixFakeFileSystem.groovy54 List listFiles(String path) {
58 super.listFiles(path)
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTestCase.groovy170 assert [] == fileSystem.listFiles(NEW_DIR)
175 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
178 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
189 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
193 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
195 assert fileSystem.listFiles(NO_SUCH_DIR) == []
197 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
209 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
210 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy159 assert [] == fileSystem.listFiles(NEW_DIR)
164 assert fileSystem.listFiles(NEW_DIR) == [fileEntry1]
167 assert fileSystem.listFiles(p(NEW_DIR, FILENAME1)) == [fileEntry1]
171 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
178 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2] as Set
182 assert fileSystem.listFiles(NEW_DIR) as Set == [fileEntry1, fileEntry2, dirEntry3] as Set
184 assert fileSystem.listFiles(NO_SUCH_DIR) == []
186 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
198 assert fileSystem.listFiles(p(NEW_DIR, '*.txt')) as Set == [fileEntry1, fileEntry2] as Set
199 assert fileSystem.listFiles(p(NEW_DIR, '*')) as Set == [fileEntry1, fileEntry2] as Set
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DFileFsFile.java43 public FsFile[] listFiles() { in listFiles() method in FileFsFile
44 return asFsFiles(file.listFiles()); in listFiles()
48 public FsFile[] listFiles(final Filter filter) { in listFiles() method in FileFsFile
49 return asFsFiles(file.listFiles(pathname -> filter.accept(new FileFsFile(pathname)))); in listFiles()
54 File[] files = file.listFiles(); in listFileNames()
DFsFile.java14 FsFile[] listFiles(); in listFiles() method
16 FsFile[] listFiles(Filter filter); in listFiles() method
DDocumentLoader.java22 FsFile[] files = resourceBase.listFiles(new StartsWithFilter(folderBaseName)); in load()
47 for (FsFile file : dir.listFiles(ENDS_WITH_XML)) { in loadFile()
DFs.java147 @Override public FsFile[] listFiles() { in listFiles() method in Fs.JarFs.JarFsFile
148 return listFiles(fsFile -> true); in listFiles()
151 @Override public FsFile[] listFiles(Filter filter) { in listFiles() method in Fs.JarFs.JarFsFile
188 for (FsFile fsFile : listFiles()) { in listFileNames()
DRawResourceLoader.java19 FsFile[] files = resourceBase.listFiles(new StartsWithFilter(folderBaseName)); in load()
29 FsFile[] files = rawDir.listFiles(); in loadRawFiles()
DDrawableResourceLoader.java21 FsFile[] files = resourcePath.getResourceBase().listFiles(); in findDrawableResources()
34 FsFile[] files = dir.listFiles(); in listDrawableResources()
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
DAbstractFileSystemTest.groovy242 * Test listFiles() method
247 assert [] == fileSystem.listFiles(NEW_DIR)
251 assert [fileInfo1] == fileSystem.listFiles(NEW_DIR)
254 assert [fileInfo1] == fileSystem.listFiles(p(NEW_DIR,FILENAME1))
258 assert [fileInfo1, fileInfo2] as Set == fileSystem.listFiles(NEW_DIR) as Set
266 assert [fileInfo1, fileInfo2] as Set == fileSystem.listFiles(NEW_DIR) as Set
270 assert [fileInfo1, fileInfo2, fileInfo3] as Set == fileSystem.listFiles(NEW_DIR) as Set
272 assert fileSystem.listFiles(NO_SUCH_DIR) == []
274 shouldFailWithMessageContaining("path") { fileSystem.listFiles(null) }
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java95 for (File f : getDataDirectory().listFiles()) { in clearDataDirectory()
2021 int origSize = getDataDirectory().listFiles().length; in testCaching_Methods()
2028 int numFiles = getDataDirectory().listFiles().length; in testCaching_Methods()
2039 assertEquals(numFiles, getDataDirectory().listFiles().length); in testCaching_Methods()
2047 assertTrue(numFiles < getDataDirectory().listFiles().length); in testCaching_Methods()
2048 numFiles = getDataDirectory().listFiles().length; in testCaching_Methods()
2054 assertTrue(numFiles < getDataDirectory().listFiles().length); in testCaching_Methods()
2055 numFiles = getDataDirectory().listFiles().length; in testCaching_Methods()
2062 assertTrue(numFiles < getDataDirectory().listFiles().length); in testCaching_Methods()
2063 numFiles = getDataDirectory().listFiles().length; in testCaching_Methods()
[all …]

12345678910