Home
last modified time | relevance | path

Searched refs:oldFile (Results 1 – 25 of 34) sorted by relevance

12

/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DPreDiffPlannerTest.java240 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) in invokeGeneratePreDiffPlan() argument
249 for (MinimalZipEntry zipEntry : MinimalZipArchive.listEntries(oldFile)) { in invokeGeneratePreDiffPlan()
263 oldFile, in invokeGeneratePreDiffPlan()
289 File oldFile = storeAndMapArchive(bytes); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() local
291 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
297 findEntry(oldFile, ENTRY_A_LEVEL_6), in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
308 File oldFile = storeAndMapArchive(oldBytes); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() local
310 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged()
315 findRangeWithoutParams(oldFile, ENTRY_A_LEVEL_6), in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged()
321 findEntry(oldFile, ENTRY_A_LEVEL_6), in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged()
[all …]
DPreDiffExecutorTest.java124 File oldFile = store(bytes); in testPrepareForDiffing_OneCompressedEntry_Unchanged() local
128 .readingOriginalFiles(oldFile, newFile) in testPrepareForDiffing_OneCompressedEntry_Unchanged()
139 assertFileEquals(oldFile, deltaFriendlyOldFile); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
146 File oldFile = store(oldBytes); in testPrepareForDiffing_OneCompressedEntry_Changed() local
151 .readingOriginalFiles(oldFile, newFile) in testPrepareForDiffing_OneCompressedEntry_Changed()
161 Assert.assertTrue(oldFile.length() < deltaFriendlyOldFile.length()); in testPrepareForDiffing_OneCompressedEntry_Changed()
174 MinimalZipEntry oldEntry = findEntry(oldFile, ENTRY_LEVEL_6.path); in testPrepareForDiffing_OneCompressedEntry_Changed()
210 File oldFile = store(oldBytes);
216 .readingOriginalFiles(oldFile, newFile)
228 assertFileEquals(oldFile, deltaFriendlyOldFile);
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
DBsPatchTest.java50 private File oldFile; field in BsPatchTest
57 oldFile = File.createTempFile("archive_patcher", "old"); in setUp()
58 oldFile.deleteOnExit(); in setUp()
60 if (oldFile != null) { in setUp()
61 oldFile.delete(); in setUp()
69 if (oldFile != null) { in tearDown()
70 oldFile.delete(); in tearDown()
72 oldFile = null; in tearDown()
82 RandomAccessFile oldData = new RandomAccessFile(oldFile, "r"); in testTransformBytes()
96 RandomAccessFile oldData = new RandomAccessFile(oldFile, "r"); in testTransformBytes_Error_NotEnoughBytes()
[all …]
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/
DPatchExplainerTest.java129 private File oldFile = null; field in PatchExplainerTest
138 oldFile = File.createTempFile("patchexplainertest", "old"); in setup()
144 if (oldFile != null) { in tearDown()
146 oldFile.delete(); in tearDown()
163 save(bytes, oldFile); in testExplainPatch_CompressedBytesIdentical()
166 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesIdentical()
178 save(oldBytes, oldFile); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged()
181 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged()
195 save(oldBytes, oldFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
204 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
[all …]
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/
DFileByFileV1IntegrationTest.java45 private File oldFile = null; field in FileByFileV1IntegrationTest
119 oldFile = File.createTempFile("fbf_test", "old"); in setUp()
120 oldFile.deleteOnExit(); in setUp()
123 tempDir = oldFile.getParentFile(); in setUp()
128 oldFile.delete(); in tearDown()
160 writeFile(oldFile, oldArchiveBytes); in testPatchAndApply()
185 generator.generateDelta(oldFile, newFile, patchBuffer); in testPatchAndApply()
191 applier.applyDelta(oldFile, patchIn, newOut); in testPatchAndApply()
/external/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/
DFileByFileTool.java153 File oldFile = getRequiredFileOrDie(oldPath, "old file"); in run() local
157 oldFile, in run()
164 applyPatch(oldFile, patchFile, new File(newPath)); in run()
182 File oldFile, 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
223 applier.applyDelta(oldFile, bufferedPatchIn, bufferedNewOut); in applyPatch()
DPatchExplainerTool.java133 File oldFile = getRequiredFileOrDie(oldPath, "old file"); in run() local
151 oldFile, in run()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/
DFileByFileV1DeltaApplierTest.java79 private File oldFile; field in FileByFileV1DeltaApplierTest
120 oldFile = File.createTempFile("fbfv1dat", "old"); in setUp()
121 oldFile.deleteOnExit(); in setUp()
129 FileOutputStream out = new FileOutputStream(oldFile); in setUp()
238 oldFile.delete(); in tearDown()
251 fakeApplier.applyDelta(oldFile, new ByteArrayInputStream(patchBytes), actualNewBlobOut); in testApplyDelta()
265 fakeApplier.applyDelta(oldFile, new ByteArrayInputStream(patchBytes), actualNewBlobOut); in testApplyDelta_DoesntCloseStream()
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/
DPreDiffPlanner.java39 private final File oldFile; field in PreDiffPlanner
81 File oldFile, in PreDiffPlanner() argument
87 this.oldFile = oldFile; in PreDiffPlanner()
107 recommendations = modifier.getModifiedRecommendations(oldFile, newFile, recommendations); in generatePreDiffPlan()
156 new Crc32SimilarityFinder(oldFile, oldArchiveZipEntriesByPath.values()); in getDefaultRecommendations()
372 oldFile, in compressedBytesChanged()
DFileByFileV1DeltaGenerator.java66 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()
DDeltaFriendlyOldBlobSizeLimiter.java68 File oldFile, File newFile, List<QualifiedRecommendation> originalRecommendations) { in getModifiedRecommendations() argument
73 long bytesRemaining = maxSizeBytes - oldFile.length(); in getModifiedRecommendations()
DRecommendationModifier.java38 File oldFile, File newFile, List<QualifiedRecommendation> originalRecommendations); in getModifiedRecommendations() argument
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateComparison.java114 CLDRFile oldFile = null; in main() local
117 oldFile = oldFactory.make(locale, true, true); in main()
123 oldFile = SimpleFactory.makeFile(locale); // make empty file in main()
146 if (oldFile == null) { in main()
166 CollectionUtilities.addAll(oldFile.iterator(), paths); in main()
168 paths.addAll(oldFile.getExtraPaths()); in main()
217 String oldValue = oldFile.getStringValue(cleanedPath); in main()
513 private static String getStatus(CLDRFile oldFile, CLDRFile oldRoot, String path, in getStatus() argument
515 String oldLocale = oldFile.getSourceLocaleID(path, oldStatus); in getStatus()
DCompareData.java78 CLDRFile oldFile = (CLDRFile) oldFactory.make(locale, false); in main() local
83 String oldValue = oldFile.getStringValue(path); in main()
93 for (Iterator<String> it2 = oldFile.iterator(); it2.hasNext();) { in main()
DGenerateChangeChart.java70 CLDRFile oldFile = old.make(locale, true); in main() local
77 for (String path : oldFile) { in main()
82 String oldValue = oldFile.getStringValue(path); in main()
83 String source = oldFile.getSourceLocaleID(path, status); in main()
/external/archive-patcher/explainer/src/main/java/com/google/archivepatcher/explainer/
DPatchExplainer.java99 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) in explainPatch() argument
104 Map<ByteArrayHolder, MinimalZipEntry> allOldEntries = mapEntries(oldFile); in explainPatch()
122 new PreDiffExecutor.Builder().readingOriginalFiles(oldFile, newFile); in explainPatch()
172 uncompress(oldFile, oldOffset, oldLength, uncompressor, oldTemp.file); in explainPatch()
174 extractCopy(oldFile, oldOffset, oldLength, oldTemp.file); in explainPatch()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DCaptureHolder.java286 File oldFile = new File(mCapturedStates[mIndexToPlace].fileNameBase + suffix); in run() local
287 boolean deleted = oldFile.delete(); in run()
289 Log.d(TAG, "Delete old capture: " + oldFile.toString() + in run()
290 (oldFile.exists() ? " unable to delete" : " was not present")); in run()
/external/archive-patcher/sample/src/main/java/com/google/archivepatcher/sample/
DSamplePatchGenerator.java31 File oldFile = new File(args[0]); // must be a zip archive in main() local
37 new FileByFileV1DeltaGenerator().generateDelta(oldFile, newFile, compressedPatchOut); in main()
DSamplePatchApplier.java32 File oldFile = new File(args[0]); // must be a zip archive in main() local
38 new FileByFileV1DeltaApplier().applyDelta(oldFile, patchIn, newFileOut); in main()
/external/syzkaller/pkg/osutil/
Dfileutil.go14 func CopyFile(oldFile, newFile string) error { argument
15 oldf, err := os.Open(oldFile)
/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/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DReportAPI.java92 String oldFile = null; in main() local
100 oldFile = args[++i]; in main()
112 new ReportAPI(oldFile, newFile, internal).writeReport(outFile, html, internal); in main()
133 ReportAPI(String oldFile, String newFile, boolean internal) { in ReportAPI() argument
134 this(APIData.read(oldFile, internal), APIData.read(newFile, internal)); in ReportAPI()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestTransforms.java207 File oldFile = ids.get(id); in addTransformID() local
208 if (oldFile == null || oldFile.equals(file)) { in addTransformID()
212 "\" already defined in " + oldFile.getName()); in addTransformID()
295 File oldFile = entry.getValue(); in TestTransformIDs() local
297 "\"; the previous CLDR release had defined it in " + oldFile.getName()); in TestTransformIDs()
/external/cldr/tools/java/org/unicode/cldr/util/
DFindDTDOrder.java421 BufferedReader oldFile = FileUtilities.openUTF8Reader(dir, filename); in writeNewSupplemental() local
432 CldrUtility.copyUpTo(oldFile, PatternCache.get("\\s*" + in writeNewSupplemental()
436 CldrUtility.copyUpTo(oldFile, PatternCache.get("\\s*" + in writeNewSupplemental()
440 CldrUtility.copyUpTo(oldFile, null, Log.getLog(), false); // copy to end in writeNewSupplemental()
443 oldFile.close(); in writeNewSupplemental()
/external/skia/tools/bookmaker/
DparserCommon.cpp50 void ParserCommon::CopyToFile(string oldFile, string newFile) { in CopyToFile() argument
53 FILE* oldOut = fopen(oldFile.c_str(), "wb"); in CopyToFile()
55 SkDebugf("could not open file %s\n", oldFile.c_str()); in CopyToFile()

12