Home
last modified time | relevance | path

Searched refs:minimalZipEntry (Results 1 – 4 of 4) sorted by relevance

/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/
DDefaultDeflateCompressionDiviner.java56 public final MinimalZipEntry minimalZipEntry; field in DefaultDeflateCompressionDiviner.DivinationResult
71 MinimalZipEntry minimalZipEntry, JreDeflateParameters divinedParameters) { in DivinationResult() argument
72 if (minimalZipEntry == null) { in DivinationResult()
75 this.minimalZipEntry = minimalZipEntry; in DivinationResult()
93 for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { in divineDeflateParameters()
95 if (minimalZipEntry.isDeflateCompressed()) { in divineDeflateParameters()
100 minimalZipEntry.getFileOffsetOfCompressedData(), in divineDeflateParameters()
101 minimalZipEntry.getCompressedSize()); in divineDeflateParameters()
104 if (minimalZipEntry.getCompressedSize() < (100 * 1024)) { in divineDeflateParameters()
106 byte[] compressedBytes = new byte[(int) minimalZipEntry.getCompressedSize()]; in divineDeflateParameters()
[all …]
DPreDiffExecutor.java218 new ByteArrayHolder(divinationResult.minimalZipEntry.getFileNameBytes()); in generatePreDiffPlan()
219 originalNewArchiveZipEntriesByPath.put(key, divinationResult.minimalZipEntry); in generatePreDiffPlan()
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DDefaultDeflateCompressionDivinerTest.java119 Assert.assertEquals(expected.path, actual.minimalZipEntry.getFileName()); in testDivineDeflateParameters_File()
123 Assert.assertTrue(actual.minimalZipEntry.isDeflateCompressed()); in testDivineDeflateParameters_File()
130 Assert.assertFalse(actual.minimalZipEntry.isDeflateCompressed()); in testDivineDeflateParameters_File()
DPreDiffPlannerTest.java256 … ByteArrayHolder key = new ByteArrayHolder(divinationResult.minimalZipEntry.getFileNameBytes()); in invokeGeneratePreDiffPlan()
257 originalNewArchiveZipEntriesByPath.put(key, divinationResult.minimalZipEntry); in invokeGeneratePreDiffPlan()