Home
last modified time | relevance | path

Searched refs:newFile (Results 1 – 25 of 65) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/io/
DMoreFilesFileTraverserTest.java62 Path file = newFile("some-file"); in testFileTraverser_file()
68 Path file = newFile("some-file"); in testFileTraverser_singleFile()
80 Path fileA = newFile("file-a"); in testFileTraverser_multipleFilesAndDirectories()
81 Path fileB = newFile("file-b"); in testFileTraverser_multipleFilesAndDirectories()
91 Path fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
93 newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
94 newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
101 Path fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
103 Path fileB = newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
104 Path dir2 = newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
[all …]
DFilesFileTraverserTest.java81 File file = newFile("some-file"); in testFileTraverser_file()
87 File file = newFile("some-file"); in testFileTraverser_singleFile()
99 File fileA = newFile("file-a"); in testFileTraverser_multipleFilesAndDirectories()
100 File fileB = newFile("file-b"); in testFileTraverser_multipleFilesAndDirectories()
110 File fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
112 newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
113 newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
120 File fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
122 File fileB = newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
123 File dir2 = newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
[all …]
/external/guava/android/guava-tests/test/com/google/common/io/
DFilesFileTraverserTest.java81 File file = newFile("some-file"); in testFileTraverser_file()
87 File file = newFile("some-file"); in testFileTraverser_singleFile()
99 File fileA = newFile("file-a"); in testFileTraverser_multipleFilesAndDirectories()
100 File fileB = newFile("file-b"); in testFileTraverser_multipleFilesAndDirectories()
110 File fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
112 newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
113 newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
120 File fileA = newFile("file-a"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
122 File fileB = newFile("dir-1/file-b"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
123 File dir2 = newFile("dir-1/dir-2"); in testFileTraverser_multipleDirectoryLayers_traversalReturnsAll()
[all …]
/external/turbine/javatests/com/google/turbine/main/
DMainTest.java56 Path sourcesa = temporaryFolder.newFile("sourcesa.jar").toPath(); in sourceJarClash()
61 Path sourcesb = temporaryFolder.newFile("sourcesb.jar").toPath(); in sourceJarClash()
66 Path output = temporaryFolder.newFile("output.jar").toPath(); in sourceJarClash()
82 Path src = temporaryFolder.newFile("package-info.jar").toPath(); in packageInfo()
85 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfo()
101 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in packageInfoSrcjar()
107 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfoSrcjar()
140 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in moduleInfos()
148 Path src = temporaryFolder.newFile("module-info.java").toPath(); in moduleInfos()
151 Path output = temporaryFolder.newFile("output.jar").toPath(); in moduleInfos()
[all …]
/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/
DPluginFinderTest.java38 File f = tmp.newFile(); in no_valid_impl()
48 File f = tmp.newFile(); in single_implementation()
59 File f = tmp.newFile(); in single_implementation_disabled()
70 File f1 = tmp.newFile(); File f2 = tmp.newFile(); in multiple_implementations_only_one_enabled()
82 File f1 = tmp.newFile(); File f2 = tmp.newFile(); in multiple_implementations_only_one_useful()
94 File f1 = tmp.newFile(); File f2 = tmp.newFile(); in multiple_empty_implementations()
/external/testng/src/main/java/org/testng/
DConverter.java73 File newFile = new File(m_outputDirectory, baseName + ".yaml"); in run() local
74 writeFile(newFile, Yaml.toYaml(suite).toString()); in run()
77 File newFile = new File(m_outputDirectory, baseName + ".xml"); in run() local
78 writeFile(newFile, suite.toXml()); in run()
92 private void writeFile(File newFile, String content) throws IOException { in writeFile() argument
93 try (FileWriter bw = new FileWriter(newFile)) { in writeFile()
96 System.out.println("Wrote " + newFile); in writeFile()
/external/cldr/tools/java/org/unicode/cldr/tool/
DPivotData.java166 CLDRFile newFile = SimpleFactory.makeFile(localeID); in writePivot() local
167 writeFile(newFile); in writePivot()
172 newFile = factory.make(parentID, false).cloneAsThawed(); in writePivot()
175 int deltaChangeCount = addPathsAndValuesFrom(newFile, uniquePaths, me, true); in writePivot()
178 writeFile(newFile); in writePivot()
182 newFile = factory.make(id, false).cloneAsThawed(); in writePivot()
183 if (newFile.getFullXPath("//ldml/alias", true) != null) { in writePivot()
187 deltaChangeCount = addPathsAndValuesFrom(newFile, uniquePaths, resolvedParent, false); in writePivot()
190 writeFile(newFile); in writePivot()
254 private void writeFile(CLDRFile newFile) throws IOException { in writeFile() argument
[all …]
DGenerateComparison.java125 CLDRFile newFile = null; in main() local
128 newFile = newFactory.make(locale, true, true); in main()
134 newFile = SimpleFactory.makeFile(locale); // make empty file in main()
149 } else if (newFile == null) { in main()
157 if (newFile.isAliasedAtTopLevel()) { in main()
170 CollectionUtilities.addAll(newFile.iterator(), paths); in main()
172 paths.addAll(newFile.getExtraPaths()); in main()
218 String newValue = newFile.getStringValue(path); in main()
234 String newFoundLocale = getStatus(newFile, newRoot, path, newValue, newStatus); in main()
292 String newFullPath = newFile.getFullXPath(path); in main()
DGenerateLanguageContainment.java249 CLDRFile newFile = new CLDRFile(xmlSource); in main() local
250 newFile.setDtdType(DtdType.supplementalData); in main()
251 newFile.add("//" + DtdType.supplementalData + "/version[@number='$Revision$']", ""); in main()
252 printXML(newFile, parentToChild); in main()
255 newFile.write(outFile); in main()
282 private static void printXML(CLDRFile newFile, Multimap<String, String> parentToChild) { in printXML() argument
283 printXML(newFile, parentToChild, "mul"); in printXML()
286 …private static void printXML(CLDRFile newFile, Multimap<String, String> parentToChild, String base… in printXML() argument
294newFile.add("//" + DtdType.supplementalData + "/languageGroups/languageGroup[@parent=\"" + base + … in printXML()
300 printXML(newFile, parentToChild, child); in printXML()
DGenerateDecompCollationRules.java165 CLDRFile newFile = new CLDRFile(xmlSource); in main() local
166 newFile.add(xpp.toString(), "xyzzy"); in main()
167newFile.addComment(xpp.toString(), "Generated by " + GenerateDecompCollationRules.class.getSimpleN… in main()
169 final String filename = newFile.getLocaleID() + ".xml"; in main()
171 newFile.write(new PrintWriter(sw)); in main()
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
DResourceLoaderAdaptor.java103 File file = newFile(name); in locateFile()
113 file = newFile(filePath); in locateFile()
144 File file = newFile(path, filename); in locateFile()
156 File newFile(String filename) { in newFile() method in ResourceLoaderAdaptor
160 File newFile(String path, String filename) { in newFile() method in ResourceLoaderAdaptor
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java81 final Path newFile = outputFolder.resolve(ze.getName()); in unzip() local
84 Log.trace("mkdir %s", newFile::toAbsolutePath); in unzip()
85 newFile.toFile().mkdirs(); in unzip()
87 Log.info("unzip %s", newFile::toAbsolutePath); in unzip()
88 try (FileOutputStream fos = new FileOutputStream(newFile.toFile())) { in unzip()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java66 Path path = temporaryFolder.newFile("test.jar").toPath(); in compression()
79 Path path = temporaryFolder.newFile("test.jar").toPath(); in testEntries()
126 Path path = temporaryFolder.newFile("test.jar").toPath(); in attributes()
144 Path path = temporaryFolder.newFile("test.jar").toPath(); in zipFileCommentsAreSupported()
155 Path path = temporaryFolder.newFile("test.jar").toPath(); in malformedComment()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCachedContent.java159 File newFile = SimpleCacheSpan.getCacheFile(directory, id, position, lastTouchTimestamp); in setLastTouchTimestamp() local
160 if (file.renameTo(newFile)) { in setLastTouchTimestamp()
161 file = newFile; in setLastTouchTimestamp()
163 Log.w(TAG, "Failed to rename " + file + " to " + newFile); in setLastTouchTimestamp()
/external/clang/test/Modules/
Dcrashes.m11 @property (assign) id newFile; // expected-error {{property follows Cocoa naming convention for ret… property
12 …// expected-note {{explicitly declare getter '-newFile' with '__attribute__((objc_method_family(no…
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DFileFsFile.java66 return parentFile == null ? null : Fs.newFile(parentFile); in getParent()
95 return Fs.newFile(f); in join()
143 fsFiles[i] = Fs.newFile(files[i]); in asFsFiles()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/
DNullResourceTable.java26 new XmlContext("", Fs.newFile("."), Qualifiers.parse(""))); in getValue()
33 new XmlContext("", Fs.newFile("."), Qualifiers.parse(""))); in getValue()
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DFileOutputTest.java37 File destFile = folder.newFile("jacoco.exec"); in testCreateDestFileOnStartup()
51 File destFile = folder.newFile("jacoco.exec"); in testWriteData()
/external/emma/core/java12/com/vladium/util/
DFiles.java203 public static File newFile (final File dir, final File file) in newFile() method in Files
218 public static File newFile (final File dir, final String file) in newFile() method in Files
234 public static File newFile (final String dir, final String file) in newFile() method in Files
/external/emma/core/java12/com/vladium/emma/instr/
DInstrProcessor.java244 return isClass ? Files.newFile (m_outDir, CLASSES) : Files.newFile (m_outDir, LIB); in getFullOutDir()
251 return Files.newFile (getFullOutDir (pathDir, isClass), file.getPath ()); in getFullOutFile()
/external/junit/src/main/java/org/junit/rules/
DTemporaryFolder.java65 public File newFile(String fileName) throws IOException { in newFile() method in TemporaryFolder
77 public File newFile() throws IOException { in newFile() method in TemporaryFolder
/external/lzma/CPP/Windows/
DFileDir.cpp166 bool MyMoveFile(CFSTR oldFile, CFSTR newFile) in MyMoveFile() argument
171 if (::MoveFile(fs2fas(oldFile), fs2fas(newFile))) in MyMoveFile()
177 IF_USE_MAIN_PATH_2(oldFile, newFile) in MyMoveFile()
178 if (::MoveFileW(fs2us(oldFile), fs2us(newFile))) in MyMoveFile()
184 if (GetSuperPaths(oldFile, newFile, d1, d2, USE_MAIN_PATH_2)) in MyMoveFile()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/
DPropertiesDependencyResolverTest.java80 File file = temporaryFolder.newFile("file.properties"); in propsFile()
82 return Fs.newFile(file); in propsFile()
/external/turbine/javatests/com/google/turbine/deps/
DDependenciesTest.java77 Path lib = temporaryFolder.newFile(path).toPath(); in compileToJar()
266 Path cdeps = temporaryFolder.newFile("c.jdeps").toPath(); in reducedClasspathTest()
267 Path ddeps = temporaryFolder.newFile("d.jdeps").toPath(); in reducedClasspathTest()
268 Path gdeps = temporaryFolder.newFile("g.jdeps").toPath(); in reducedClasspathTest()
/external/okhttp/okio/okio/src/test/java/okio/
DOkioTest.java36 File file = temporaryFolder.newFile(); in readWriteFile()
50 File file = temporaryFolder.newFile(); in appendFile()

123