Home
last modified time | relevance | path

Searched refs:CompressionMethod (Results 1 – 11 of 11) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java24 import com.android.tools.build.apkzlib.zip.CompressionMethod;
68 CompressionMethod.STORE, in soFilesUncompressedAndAligned()
89 CompressionMethod.DEFLATE, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
121 CompressionMethod.STORE, in soFilesMergedFromZipsCanBeUncompressedAndAligned()
165 CompressionMethod.DEFLATE, in soFilesUncompressedAndNotAligned()
186 CompressionMethod.DEFLATE, in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
218 CompressionMethod.DEFLATE, in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZipMergeTest.java108 assertEquals(CompressionMethod.DEFLATE, in mergeZipWithDeferredCrc()
118 assertEquals(CompressionMethod.DEFLATE, in mergeZipWithDeferredCrc()
145 assertEquals(CompressionMethod.DEFLATE, in mergeZipKeepsDeflatedAndStored()
149 assertEquals(CompressionMethod.STORE, in mergeZipKeepsDeflatedAndStored()
159 assertEquals(CompressionMethod.DEFLATE, in mergeZipKeepsDeflatedAndStored()
165 assertEquals(CompressionMethod.STORE, in mergeZipKeepsDeflatedAndStored()
DZFileTest.java652 assertEquals(CompressionMethod.DEFLATE, in addDirectoryRecursively()
658 assertEquals(CompressionMethod.DEFLATE, in addDirectoryRecursively()
671 assertEquals(CompressionMethod.STORE, in addDirectoryRecursively()
677 assertEquals(CompressionMethod.STORE, in addDirectoryRecursively()
686 assertEquals(CompressionMethod.DEFLATE, in addDirectoryRecursively()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectoryHeaderCompressInfo.java41 private final CompressionMethod mMethod;
62 @Nonnull CompressionMethod method, in CentralDirectoryHeaderCompressInfo()
78 @Nonnull CompressionMethod method, long compressedSize) { in CentralDirectoryHeaderCompressInfo()
82 if (header.getName().endsWith("/") || method == CompressionMethod.DEFLATE) { in CentralDirectoryHeaderCompressInfo()
107 public CompressionMethod getMethod() { in getMethod()
DCompressionMethod.java24 public enum CompressionMethod { enum
45 CompressionMethod(int methodCode) { in CompressionMethod() method in CompressionMethod
56 static CompressionMethod fromCode(long code) { in fromCode()
57 for (CompressionMethod method : values()) { in fromCode()
DCompressionResult.java31 private final CompressionMethod compressionMethod;
51 public CompressionResult(@Nonnull CloseableByteSource source, @Nonnull CompressionMethod method, in CompressionResult()
64 public CompressionMethod getCompressionMethod() { in getCompressionMethod()
DZFile.java1733 CompressionMethod.STORE, source.size())); in createSources()
1946 boolean isCompressed = compressionInfo.getMethod() != CompressionMethod.STORE; in chooseAlignment()
2040 if (fromCompressInfo.getMethod() == CompressionMethod.DEFLATE) { in mergeFrom()
2189 if (compressInfo.getMethod() == CompressionMethod.DEFLATE) { in realign()
DCentralDirectory.java295 CompressionMethod method = CompressionMethod.fromCode(methodCode); in readEntry()
DStoredEntry.java607 if (compressInfo.getMethod() == CompressionMethod.DEFLATE) { in createSourcesFromRawContents()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/compress/
DDeflateExecutionCompressor.java19 import com.android.tools.build.apkzlib.zip.CompressionMethod;
76 return new CompressionResult(source, CompressionMethod.STORE, source.size()); in immediateCompress()
78 return new CompressionResult(result, CompressionMethod.DEFLATE, result.size()); in immediateCompress()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java25 import com.android.tools.build.apkzlib.zip.CompressionMethod;
73 assertEquals(CompressionMethod.STORE, ci.getMethod()); in storeIsBest()
91 assertEquals(CompressionMethod.DEFLATE, ci.getMethod()); in sameCompressionResultButBetterThanStore()