/external/guava/guava-tests/test/com/google/common/io/ |
D | MoreFilesFileTraverserTest.java | 62 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 …]
|
D | FilesFileTraverserTest.java | 81 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/ |
D | FilesFileTraverserTest.java | 81 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/flatbuffers/reflection/ |
D | generate_code.sh | 20 newFile="$tempDir/reflection_generated.h" 24 if [ -f "$newFile" ]; then 25 if ! cmp -s "$originalFile" "$newFile"; then 26 mv $newFile $originalFile 28 rm $newFile
|
/external/turbine/javatests/com/google/turbine/main/ |
D | MainTest.java | 79 Path sourcesa = temporaryFolder.newFile("sourcesa.jar").toPath(); in sourceJarClash() 84 Path sourcesb = temporaryFolder.newFile("sourcesb.jar").toPath(); in sourceJarClash() 89 Path output = temporaryFolder.newFile("output.jar").toPath(); in sourceJarClash() 105 Path src = temporaryFolder.newFile("package-info.jar").toPath(); in packageInfo() 108 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfo() 122 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in packageInfoSrcjar() 128 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfoSrcjar() 159 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in moduleInfos() 167 Path src = temporaryFolder.newFile("module-info.java").toPath(); in moduleInfos() 170 Path output = temporaryFolder.newFile("output.jar").toPath(); in moduleInfos() [all …]
|
D | ReducedClasspathTest.java | 90 libcJdeps = temporaryFolder.newFile("libc.jdeps").toPath(); in setup() 105 Path lib = temporaryFolder.newFile(jarPath).toPath(); in createLibrary() 117 Path src = temporaryFolder.newFile("Test.java").toPath(); in succeedsWithoutFallingBack() 126 Path output = temporaryFolder.newFile("output.jar").toPath(); in succeedsWithoutFallingBack() 139 temporaryFolder.newFile("no.such.jar").toString(), in succeedsWithoutFallingBack() 151 Path src = temporaryFolder.newFile("Test.java").toPath(); in succeedsAfterFallingBack() 161 Path output = temporaryFolder.newFile("output.jar").toPath(); in succeedsAfterFallingBack() 180 Path src = temporaryFolder.newFile("Test.java").toPath(); in bazelFallback() 190 Path output = temporaryFolder.newFile("output.jar").toPath(); in bazelFallback() 191 Path jdeps = temporaryFolder.newFile("output.jdeps").toPath(); in bazelFallback() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/ |
D | PluginFinderTest.java | 38 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/ |
D | Converter.java | 73 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/ |
D | PivotData.java | 166 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 …]
|
D | GenerateComparison.java | 129 CLDRFile newFile = null; in main() local 132 newFile = newFactory.make(locale, true, true); in main() 138 newFile = SimpleFactory.makeFile(locale); // make empty file in main() 153 } else if (newFile == null) { in main() 161 if (newFile.isAliasedAtTopLevel()) { in main() 174 newFile.forEach(paths::add); in main() 176 paths.addAll(newFile.getExtraPaths()); in main() 222 String newValue = newFile.getStringValue(path); in main() 238 String newFoundLocale = getStatus(newFile, newRoot, path, newValue, newStatus); in main() 296 String newFullPath = newFile.getFullXPath(path); in main()
|
D | GenerateDecompCollationRules.java | 165 CLDRFile newFile = new CLDRFile(xmlSource); in main() local 166 newFile.add(xpp.toString(), "xyzzy"); in main() 167 …newFile.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()
|
D | GenerateLanguageContainment.java | 249 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 294 …newFile.add("//" + DtdType.supplementalData + "/languageGroups/languageGroup[@parent=\"" + base + … in printXML() 298 printXML(newFile, parentToChild, child); in printXML()
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | FileTreeTest.java | 442 Directory newFile = Directory.create(new Random().nextInt()); in createDirectory() local 443 dir.link(Name.simple(name), newFile); in createDirectory() local 444 files.put(name, newFile); in createDirectory() 445 return newFile; in createDirectory() 450 File newFile = regularFile(0); in createFile() local 451 dir.link(Name.simple(name), newFile); in createFile() local 452 files.put(name, newFile); in createFile() 453 return newFile; in createFile() 458 File newFile = SymbolicLink.create(new Random().nextInt(), pathService.parsePath(target)); in createSymbolicLink() local 459 dir.link(Name.simple(name), newFile); in createSymbolicLink() local [all …]
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | OkioKotlinTest.kt | 50 val file = temp.newFile() in fileSink() 57 val file = temp.newFile() in fileAppendingSink() 66 val file = temp.newFile() in fileSource() 75 val file = temp.newFile() in pathSink() 82 val file = temp.newFile() in pathSinkWithOptions() 90 val file = temp.newFile() in pathSource()
|
/external/downloader/src/test/java/com/google/android/downloader/ |
D | SimpleFileDownloadDestinationTest.java | 51 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileEmpty() 60 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileNonEmpty() 81 File targetFile = temporaryFolder.newFile(); in metadata_fileEmpty() 92 File targetFile = temporaryFolder.newFile(); in metadata_fileNonEmpty() 115 File targetFile = temporaryFolder.newFile(); in openByteChannel_fileEmpty() 132 File targetFile = temporaryFolder.newFile(); in openByteChannel_fileNonEmpty() 151 File targetFile = temporaryFolder.newFile(); in openByteChannel_metadata() 168 File targetFile = temporaryFolder.newFile(); in clear_fileNonEmpty()
|
D | ProtoFileDownloadDestinationTest.java | 51 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileEmpty() 60 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileNonEmpty() 81 File targetFile = temporaryFolder.newFile(); in metadata_fileEmpty() 92 File targetFile = temporaryFolder.newFile(); in metadata_fileNonEmpty() 115 File targetFile = temporaryFolder.newFile(); in openByteChannel_fileEmpty() 132 File targetFile = temporaryFolder.newFile(); in openByteChannel_fileNonEmpty() 151 File targetFile = temporaryFolder.newFile(); in openByteChannel_metadata() 168 File targetFile = temporaryFolder.newFile(); in clear_fileNonEmpty()
|
D | DownloaderTest.java | 124 File destinationFile = temporaryFolder.newFile(); in downloadOneFile() 163 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_partialContent() 195 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_noMetadata() 220 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_withEtag() 247 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_withLastModified() 282 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_partialContent_overwritesExistingContent() 314 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_existingContent_noServerSupport() 346 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_rangeNotSatisfiable() 368 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_oAuthTokenProvider() 396 File destinationFile = temporaryFolder.newFile(); in downloadOneFile_oAuthTokenProvider_nullToken() [all …]
|
D | IOUtilTest.java | 47 File testFile = temporaryFolder.newFile(); in validateChannel_notOpen() 56 File testFile = temporaryFolder.newFile(); in validateChannel_valid() 64 File testFile = temporaryFolder.newFile(); in blockingWrite()
|
/external/dagger2/java/dagger/hilt/android/plugin/src/test/kotlin/ |
D | GradleTestRunner.kt | 68 return tempFolder.newFile("/src/main/java/$srcPath").apply { writeText(srcContent) } in addSrc() 74 return tempFolder.newFile("/src/main/res/$resPath").apply { writeText(resContent) } in addRes() 101 buildFile = tempFolder.newFile("build.gradle").apply { in writeBuildFile() 158 gradlePropertiesFile = tempFolder.newFile("gradle.properties").apply { in writeGradleProperties() 169 manifestFile = tempFolder.newFile("/src/main/AndroidManifest.xml").apply { in writeAndroidManifest()
|
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/ |
D | ResourceLoaderAdaptor.java | 103 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/cldr/tools/java/org/unicode/cldr/util/ |
D | TempPrintWriter.java | 100 …private static boolean replaceDifferentOrDelete(String oldFile, String newFile, boolean skipCopyri… in replaceDifferentOrDelete() argument 104 final boolean identical = filesAreIdentical(oldFile, newFile, skipCopyright, lines); in replaceDifferentOrDelete() 106 new File(newFile).delete(); in replaceDifferentOrDelete() 109 System.out.println("Found difference in : " + oldFile + ", " + newFile); in replaceDifferentOrDelete() 114 new File(newFile).renameTo(oldFile2); in replaceDifferentOrDelete()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/ |
D | NetworkCache.java | 105 File newFile = new File(newFileName); in renameTempFile() local 106 boolean renamed = file.renameTo(newFile); in renameTempFile() 107 Logger.debug("Copying temp file to real file (" + newFile + ")"); in renameTempFile() 109 …Logger.warning("Unable to rename cache file " + file.getAbsolutePath() + " to " + newFile.getAbsol… in renameTempFile()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ |
D | TestUtils.java | 81 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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CachedContent.java | 159 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/turbine/javatests/com/google/turbine/zip/ |
D | ZipTest.java | 66 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()
|