Searched refs:deltaFriendlyOldFile (Results 1 – 3 of 3) sorted by relevance
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | PreDiffExecutor.java | 40 private File deltaFriendlyOldFile; field in PreDiffExecutor.Builder 70 public Builder writingDeltaFriendlyFiles(File deltaFriendlyOldFile, File deltaFriendlyNewFile) { in writingDeltaFriendlyFiles() argument 71 if (deltaFriendlyOldFile == null || deltaFriendlyNewFile == null) { in writingDeltaFriendlyFiles() 74 this.deltaFriendlyOldFile = deltaFriendlyOldFile; in writingDeltaFriendlyFiles() 107 deltaFriendlyOldFile, in build() 123 private final File deltaFriendlyOldFile; field in PreDiffExecutor 140 File deltaFriendlyOldFile, in PreDiffExecutor() argument 145 this.deltaFriendlyOldFile = deltaFriendlyOldFile; in PreDiffExecutor() 159 if (deltaFriendlyOldFile != null) { in prepareForDiffing() 182 try (FileOutputStream out = new FileOutputStream(deltaFriendlyOldFile); in generateDeltaFriendlyFiles()
|
D | FileByFileV1DeltaGenerator.java | 68 try (TempFileHolder deltaFriendlyOldFile = new TempFileHolder(); in generateDelta() argument 76 .writingDeltaFriendlyFiles(deltaFriendlyOldFile.file, deltaFriendlyNewFile.file); in generateDelta() 84 deltaFriendlyOldFile.file, deltaFriendlyNewFile.file, bufferedDeltaOut); in generateDelta() 89 deltaFriendlyOldFile.file.length(), in generateDelta() 107 try (TempFileHolder deltaFriendlyOldFile = new TempFileHolder(); in generatePreDiffPlan() argument 112 .writingDeltaFriendlyFiles(deltaFriendlyOldFile.file, deltaFriendlyNewFile.file); in generatePreDiffPlan()
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | PreDiffExecutorTest.java | 47 private File deltaFriendlyOldFile; field in PreDiffExecutorTest 53 deltaFriendlyOldFile = newTempFile(); in setup() 129 .writingDeltaFriendlyFiles(deltaFriendlyOldFile, deltaFriendlyNewFile) in testPrepareForDiffing_OneCompressedEntry_Unchanged() 139 assertFileEquals(oldFile, deltaFriendlyOldFile); in testPrepareForDiffing_OneCompressedEntry_Unchanged() 152 .writingDeltaFriendlyFiles(deltaFriendlyOldFile, deltaFriendlyNewFile) in testPrepareForDiffing_OneCompressedEntry_Changed() 161 Assert.assertTrue(oldFile.length() < deltaFriendlyOldFile.length()); in testPrepareForDiffing_OneCompressedEntry_Changed() 184 byte[] actualOld = readFile(deltaFriendlyOldFile); in testPrepareForDiffing_OneCompressedEntry_Changed() 217 .writingDeltaFriendlyFiles(deltaFriendlyOldFile, deltaFriendlyNewFile) 228 assertFileEquals(oldFile, deltaFriendlyOldFile);
|