/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | PreDiffPlannerTest.java | 240 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) in invokeGeneratePreDiffPlan() argument 255 for (DivinationResult divinationResult : diviner.divineDeflateParameters(newFile)) { in invokeGeneratePreDiffPlan() 265 newFile, in invokeGeneratePreDiffPlan() 290 File newFile = storeAndMapArchive(bytes); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() local 291 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() 298 findEntry(newFile, ENTRY_A_LEVEL_6), in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() 309 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() local 310 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 319 findRangeWithParams(newFile, ENTRY_A_LEVEL_9), plan.getNewFileUncompressionPlan().get(0)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 322 findEntry(newFile, ENTRY_A_LEVEL_9), in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() [all …]
|
D | PreDiffExecutorTest.java | 125 File newFile = store(bytes); in testPrepareForDiffing_OneCompressedEntry_Unchanged() local 128 .readingOriginalFiles(oldFile, newFile) in testPrepareForDiffing_OneCompressedEntry_Unchanged() 140 assertFileEquals(newFile, deltaFriendlyNewFile); in testPrepareForDiffing_OneCompressedEntry_Unchanged() 148 File newFile = store(newBytes); in testPrepareForDiffing_OneCompressedEntry_Changed() local 151 .readingOriginalFiles(oldFile, newFile) in testPrepareForDiffing_OneCompressedEntry_Changed() 162 Assert.assertTrue(newFile.length() < deltaFriendlyNewFile.length()); in testPrepareForDiffing_OneCompressedEntry_Changed() 190 MinimalZipEntry newEntry = findEntry(newFile, ENTRY_LEVEL_9.path); in testPrepareForDiffing_OneCompressedEntry_Changed() 212 File newFile = store(newBytes); 216 .readingOriginalFiles(oldFile, newFile) 229 assertFileEquals(newFile, deltaFriendlyNewFile);
|
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
D | PatchExplainerTest.java | 134 private File newFile = null; field in PatchExplainerTest 139 newFile = File.createTempFile("patchexplainertest", "new"); in setup() 151 if (newFile != null) { in tearDown() 153 newFile.delete(); in tearDown() 164 save(bytes, newFile); in testExplainPatch_CompressedBytesIdentical() 166 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesIdentical() 179 save(newBytes, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 181 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 196 save(newBytes, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() 204 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() [all …]
|
/external/turbine/javatests/com/google/turbine/main/ |
D | MainTest.java | 56 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/ |
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 | 167 CLDRFile newFile = SimpleFactory.makeFile(localeID); in writePivot() local 168 writeFile(newFile); in writePivot() 173 newFile = factory.make(parentID, false).cloneAsThawed(); in writePivot() 176 int deltaChangeCount = addPathsAndValuesFrom(newFile, uniquePaths, me, true); in writePivot() 179 writeFile(newFile); in writePivot() 183 newFile = factory.make(id, false).cloneAsThawed(); in writePivot() 184 if (newFile.getFullXPath("//ldml/alias", true) != null) { in writePivot() 188 deltaChangeCount = addPathsAndValuesFrom(newFile, uniquePaths, resolvedParent, false); in writePivot() 191 writeFile(newFile); in writePivot() 255 private void writeFile(CLDRFile newFile) throws IOException { in writeFile() argument [all …]
|
D | GenerateComparison.java | 125 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()
|
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() 300 printXML(newFile, parentToChild, child); in printXML()
|
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()
|
/external/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/ |
D | FileByFileTool.java | 155 File newFile = getRequiredFileOrDie(newPath, "new file"); in run() local 158 newFile, in run() 183 File newFile, in generatePatch() argument 201 generator.generateDelta(oldFile, newFile, bufferedPatchOut); in generatePatch() 213 public static void applyPatch(File oldFile, File patchFile, File newFile) throws IOException { in applyPatch() argument 221 FileOutputStream newOut = new FileOutputStream(newFile); in applyPatch()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | FileTreeTraverserTest.java | 61 File file = newFile("test"); in testFileTreeViewer_singleFile() 71 File a = newFile("a"); in testFileTreeViewer_multipleFiles() 73 File c = newFile("c"); in testFileTreeViewer_multipleFiles() 84 private File newFile(String name) throws IOException { in newFile() method in FileTreeTraverserTest
|
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/ |
D | FileByFileV1IntegrationTest.java | 46 private File newFile = null; field in FileByFileV1IntegrationTest 121 newFile = File.createTempFile("fbf_test", "new"); in setUp() 122 newFile.deleteOnExit(); in setUp() 129 newFile.delete(); in tearDown() 180 writeFile(newFile, newArchiveBytes); in testPatchAndApply() 185 generator.generateDelta(oldFile, newFile, patchBuffer); in testPatchAndApply()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | PreDiffPlanner.java | 44 private final File newFile; field in PreDiffPlanner 83 File newFile, in PreDiffPlanner() argument 89 this.newFile = newFile; in PreDiffPlanner() 107 recommendations = modifier.getModifiedRecommendations(oldFile, newFile, recommendations); in generatePreDiffPlan() 167 trivialRenameFinder.findSimilarFiles(newFile, newEntry.getValue()); in getDefaultRecommendations() 368 newFile, newEntry.getFileOffsetOfCompressedData(), newEntry.getCompressedSize()); in compressedBytesChanged()
|
D | FileByFileV1DeltaGenerator.java | 66 public void generateDelta(File oldFile, File newFile, OutputStream patchOut) in generateDelta() argument 75 .readingOriginalFiles(oldFile, newFile) in generateDelta() 105 public PreDiffPlan generatePreDiffPlan(File oldFile, File newFile) in generatePreDiffPlan() argument 111 .readingOriginalFiles(oldFile, newFile) in generatePreDiffPlan()
|
/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/syzkaller/pkg/osutil/ |
D | fileutil.go | 14 func CopyFile(oldFile, newFile string) error { 24 tmpFile := newFile + ".tmp" 40 return os.Rename(tmpFile, newFile)
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
D | TestUtils.java | 70 final Path newFile = outputFolder.resolve(ze.getName()); in unzip() local 73 Log.trace("mkdir %s", newFile.toAbsolutePath()); in unzip() 74 newFile.toFile().mkdirs(); in unzip() 76 Log.info("unzip %s", newFile.toAbsolutePath()); in unzip() 77 try (FileOutputStream fos = new FileOutputStream(newFile.toFile())) { in unzip()
|
/external/archive-patcher/explainer/src/main/java/com/google/archivepatcher/explainer/ |
D | PatchExplainer.java | 99 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) in explainPatch() argument 105 Map<ByteArrayHolder, MinimalZipEntry> allNewEntries = mapEntries(newFile); in explainPatch() 111 long compressedSize = getCompressedSize(newFile, entry.getValue(), compressor); in explainPatch() 122 new PreDiffExecutor.Builder().readingOriginalFiles(oldFile, newFile); in explainPatch() 181 uncompress(newFile, newOffset, newLength, uncompressor, newTemp.file); in explainPatch() 183 extractCopy(newFile, newOffset, newLength, newTemp.file); in explainPatch()
|
/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()
|
/external/archive-patcher/sample/src/main/java/com/google/archivepatcher/sample/ |
D | SamplePatchGenerator.java | 32 File newFile = new File(args[1]); // must be a zip archive in main() local 37 new FileByFileV1DeltaGenerator().generateDelta(oldFile, newFile, compressedPatchOut); in main()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | FileFsFile.java | 66 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/clang/test/Modules/ |
D | crashes.m | 11 @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/robolectric/src/main/java/org/robolectric/res/ |
D | NullResourceTable.java | 26 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/ |
D | FileOutputTest.java | 37 File destFile = folder.newFile("jacoco.exec"); in testCreateDestFileOnStartup() 51 File destFile = folder.newFile("jacoco.exec"); in testWriteData()
|