/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
RecommendationModifier.java | 32 * @param oldFile the old file that is being diffed 38 File oldFile, File newFile, List<QualifiedRecommendation> originalRecommendations);
|
FileByFileV1DeltaGenerator.java | 59 * @param oldFile the original old file to read (will not be modified) 66 public void generateDelta(File oldFile, File newFile, OutputStream patchOut) 75 .readingOriginalFiles(oldFile, newFile) 99 * @param oldFile the original old file to read (will not be modified) 105 public PreDiffPlan generatePreDiffPlan(File oldFile, File newFile) 111 .readingOriginalFiles(oldFile, newFile)
|
PreDiffPlanner.java | 39 private final File oldFile; 70 * @param oldFile the old file, used to compare bytes between old and new entries as necessary 81 File oldFile, 87 this.oldFile = oldFile; 107 recommendations = modifier.getModifiedRecommendations(oldFile, newFile, recommendations); 156 new Crc32SimilarityFinder(oldFile, oldArchiveZipEntriesByPath.values()); 372 oldFile,
|
DeltaFriendlyOldBlobSizeLimiter.java | 68 File oldFile, File newFile, List<QualifiedRecommendation> originalRecommendations) { 73 long bytesRemaining = maxSizeBytes - oldFile.length();
|
TotalRecompressionLimiter.java | 85 File oldFile, File newFile, List<QualifiedRecommendation> originalRecommendations) {
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
PreDiffPlannerTest.java | 240 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) 249 for (MinimalZipEntry zipEntry : MinimalZipArchive.listEntries(oldFile)) { 263 oldFile, 289 File oldFile = storeAndMapArchive(bytes); 291 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); 297 findEntry(oldFile, ENTRY_A_LEVEL_6), 308 File oldFile = storeAndMapArchive(oldBytes); 310 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); 315 findRangeWithoutParams(oldFile, ENTRY_A_LEVEL_6), 321 findEntry(oldFile, ENTRY_A_LEVEL_6) [all...] |
PreDiffExecutorTest.java | 124 File oldFile = store(bytes); 128 .readingOriginalFiles(oldFile, newFile) 139 assertFileEquals(oldFile, deltaFriendlyOldFile); 146 File oldFile = store(oldBytes); 151 .readingOriginalFiles(oldFile, newFile) 161 Assert.assertTrue(oldFile.length() < deltaFriendlyOldFile.length()); 174 MinimalZipEntry oldEntry = findEntry(oldFile, ENTRY_LEVEL_6.path); 210 File oldFile = store(oldBytes); 216 .readingOriginalFiles(oldFile, newFile) 228 assertFileEquals(oldFile, deltaFriendlyOldFile) [all...] |
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
PatchExplainerTest.java | 129 private File oldFile = null; 138 oldFile = File.createTempFile("patchexplainertest", "old"); 144 if (oldFile != null) { 146 oldFile.delete(); 163 save(bytes, oldFile); 166 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); 178 save(oldBytes, oldFile); 181 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile); 195 save(oldBytes, oldFile); 204 List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile) [all...] |
/external/archive-patcher/sample/src/main/java/com/google/archivepatcher/sample/ |
SamplePatchApplier.java | 32 File oldFile = new File(args[0]); // must be a zip archive 38 new FileByFileV1DeltaApplier().applyDelta(oldFile, patchIn, newFileOut);
|
SamplePatchGenerator.java | 31 File oldFile = new File(args[0]); // must be a zip archive 37 new FileByFileV1DeltaGenerator().generateDelta(oldFile, newFile, compressedPatchOut);
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/ |
BsPatchTest.java | 50 private File oldFile; 57 oldFile = File.createTempFile("archive_patcher", "old"); 58 oldFile.deleteOnExit(); 60 if (oldFile != null) { 61 oldFile.delete(); 69 if (oldFile != null) { 70 oldFile.delete(); 72 oldFile = null; 82 RandomAccessFile oldData = new RandomAccessFile(oldFile, "r"); 96 RandomAccessFile oldData = new RandomAccessFile(oldFile, "r") [all...] |
/external/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/ |
FileByFileTool.java | 153 File oldFile = getRequiredFileOrDie(oldPath, "old file"); 157 oldFile, 164 applyPatch(oldFile, patchFile, new File(newPath)); 171 * @param oldFile the old file (will be read) 182 File oldFile, 201 generator.generateDelta(oldFile, newFile, bufferedPatchOut); 208 * @param oldFile the old file (will be read) 213 public static void applyPatch(File oldFile, File patchFile, File newFile) throws IOException { 223 applier.applyDelta(oldFile, bufferedPatchIn, bufferedNewOut);
|
PatchExplainerTool.java | 133 File oldFile = getRequiredFileOrDie(oldPath, "old file"); 151 oldFile,
|
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/ |
FileByFileV1IntegrationTest.java | 45 private File oldFile = null; 119 oldFile = File.createTempFile("fbf_test", "old"); 120 oldFile.deleteOnExit(); 123 tempDir = oldFile.getParentFile(); 128 oldFile.delete(); 160 writeFile(oldFile, oldArchiveBytes); 185 generator.generateDelta(oldFile, newFile, patchBuffer); 191 applier.applyDelta(oldFile, patchIn, newOut);
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
FileByFileV1DeltaApplierTest.java | 79 private File oldFile; 120 oldFile = File.createTempFile("fbfv1dat", "old"); 121 oldFile.deleteOnExit(); 129 FileOutputStream out = new FileOutputStream(oldFile); 178 // Write a single uncompress instruction to uncompress the compressed content in oldFile 238 oldFile.delete(); 251 fakeApplier.applyDelta(oldFile, new ByteArrayInputStream(patchBytes), actualNewBlobOut); 265 fakeApplier.applyDelta(oldFile, new ByteArrayInputStream(patchBytes), actualNewBlobOut);
|
/external/syzkaller/pkg/osutil/ |
fileutil.go | 13 // CopyFile atomically copies oldFile to newFile preserving permissions and modification time. 14 func CopyFile(oldFile, newFile string) error { 15 oldf, err := os.Open(oldFile)
|
/external/archive-patcher/explainer/src/main/java/com/google/archivepatcher/explainer/ |
PatchExplainer.java | 90 * @param oldFile the old file 99 File oldFile, File newFile, RecommendationModifier... recommendationModifiers) 104 Map<ByteArrayHolder, MinimalZipEntry> allOldEntries = mapEntries(oldFile); 122 new PreDiffExecutor.Builder().readingOriginalFiles(oldFile, newFile); 172 uncompress(oldFile, oldOffset, oldLength, uncompressor, oldTemp.file); 174 extractCopy(oldFile, oldOffset, oldLength, oldTemp.file);
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
CompareData.java | 78 CLDRFile oldFile = (CLDRFile) oldFactory.make(locale, false); 83 String oldValue = oldFile.getStringValue(path); 93 for (Iterator<String> it2 = oldFile.iterator(); it2.hasNext();) {
|
GenerateComparison.java | 114 CLDRFile oldFile = null; 117 oldFile = oldFactory.make(locale, true, true); 123 oldFile = SimpleFactory.makeFile(locale); // make empty file 146 if (oldFile == null) { 166 CollectionUtilities.addAll(oldFile.iterator(), paths); 168 paths.addAll(oldFile.getExtraPaths()); 217 String oldValue = oldFile.getStringValue(cleanedPath); 513 private static String getStatus(CLDRFile oldFile, CLDRFile oldRoot, String path, 515 String oldLocale = oldFile.getSourceLocaleID(path, oldStatus);
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
CaptureHolder.java | 286 File oldFile = new File(mCapturedStates[mIndexToPlace].fileNameBase + suffix); 287 boolean deleted = oldFile.delete(); 289 Log.d(TAG, "Delete old capture: " + oldFile.toString() + 290 (oldFile.exists() ? " unable to delete" : " was not present"));
|
/frameworks/av/media/mtp/ |
MtpUtils.cpp | 143 string oldFile = fromPathStr + name; 148 ret += copyRecursive(oldFile.c_str(), newFile.c_str()); 150 ret += copyFile(oldFile.c_str(), newFile.c_str());
|
/external/lzma/CPP/Windows/ |
FileDir.cpp | 166 bool MyMoveFile(CFSTR oldFile, CFSTR newFile)
171 if (::MoveFile(fs2fas(oldFile), fs2fas(newFile)))
177 IF_USE_MAIN_PATH_2(oldFile, newFile)
178 if (::MoveFileW(fs2us(oldFile), fs2us(newFile)))
184 if (GetSuperPaths(oldFile, newFile, d1, d2, USE_MAIN_PATH_2))
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
ReportAPI.java | 92 String oldFile = null; 100 oldFile = args[++i]; 112 new ReportAPI(oldFile, newFile, internal).writeReport(outFile, html, internal); 133 ReportAPI(String oldFile, String newFile, boolean internal) { 134 this(APIData.read(oldFile, internal), APIData.read(newFile, internal));
|
/external/skia/tools/bookmaker/ |
parserCommon.cpp | 50 void ParserCommon::CopyToFile(string oldFile, string newFile) { 53 FILE* oldOut = fopen(oldFile.c_str(), "wb"); 55 SkDebugf("could not open file %s\n", oldFile.c_str());
|
/external/skqp/tools/bookmaker/ |
parserCommon.cpp | 50 void ParserCommon::CopyToFile(string oldFile, string newFile) { 53 FILE* oldOut = fopen(oldFile.c_str(), "wb"); 55 SkDebugf("could not open file %s\n", oldFile.c_str());
|