Home
last modified time | relevance | path

Searched refs:zip (Results 1 – 25 of 129) sorted by relevance

123456

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DApkZFileCreator.java19 import com.android.tools.build.apkzlib.zip.AlignmentRule;
20 import com.android.tools.build.apkzlib.zip.AlignmentRules;
21 import com.android.tools.build.apkzlib.zip.StoredEntry;
22 import com.android.tools.build.apkzlib.zip.ZFile;
23 import com.android.tools.build.apkzlib.zip.ZFileOptions;
55 private final ZFile zip; field in ApkZFileCreator
95 zip = ZFiles.apk( in ApkZFileCreator()
109 public void writeZip(@Nonnull File zip, @Nullable Function<String, String> transform, in writeZip() argument
112 Preconditions.checkArgument(zip.isFile(), "!zip.isFile()"); in writeZip()
116 ZFile toMerge = closer.register(new ZFile(zip)); in writeZip()
[all …]
DZFiles.java21 import com.android.tools.build.apkzlib.zip.AlignmentRule;
22 import com.android.tools.build.apkzlib.zip.AlignmentRules;
23 import com.android.tools.build.apkzlib.zip.ZFile;
24 import com.android.tools.build.apkzlib.zip.ZFileOptions;
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/compress/
DDeflateExecutionCompressor.java17 package com.android.tools.build.apkzlib.zip.compress;
19 import com.android.tools.build.apkzlib.zip.CompressionMethod;
20 import com.android.tools.build.apkzlib.zip.CompressionResult;
21 import com.android.tools.build.apkzlib.zip.utils.ByteTracker;
22 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
25 import java.util.zip.Deflater;
26 import java.util.zip.DeflaterOutputStream;
DBestAndDefaultDeflateExecutorCompressor.java17 package com.android.tools.build.apkzlib.zip.compress;
19 import com.android.tools.build.apkzlib.zip.CompressionResult;
20 import com.android.tools.build.apkzlib.zip.utils.ByteTracker;
21 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
24 import java.util.zip.Deflater;
DExecutorCompressor.java17 package com.android.tools.build.apkzlib.zip.compress;
19 import com.android.tools.build.apkzlib.zip.CompressionResult;
20 import com.android.tools.build.apkzlib.zip.Compressor;
21 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
/tools/test/connectivity/
DAndroid.mk24 ACTS_DISTRO := $(HOST_OUT)/acts-dist/acts.zip
29 @rm -f $(HOST_OUT)/acts-dist/acts.zip
30 …$(hide) zip $(HOST_OUT)/acts-dist/acts.zip $(shell find tools/test/connectivity/acts/* ! -wholenam…
38 WTS_ACTS_DISTRO_ARCHIVE := $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip
50 $(hide) zip -r $(WTS_ACTS_DISTRO_ARCHIVE) -j tools/test/connectivity/wts-acts/*.py
52 …$(hide) echo '#!/usr/bin/env python' | cat - $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip > $(WTS_ACTS_DIST…
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java24 import com.android.tools.build.apkzlib.zip.StoredEntry;
25 import com.android.tools.build.apkzlib.zip.ZFile;
46 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in elementaryManifestGeneration() local
48 try (ZFile zf = new ZFile(zip)) { in elementaryManifestGeneration()
81 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnHalfWrittenFile() local
83 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnHalfWrittenFile()
117 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnExistingFile() local
119 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnExistingFile()
155 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnIncrementalNoChanges() local
157 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnIncrementalNoChanges()
[all …]
DFullApkSignTest.java24 import com.android.tools.build.apkzlib.zip.AlignmentRule;
25 import com.android.tools.build.apkzlib.zip.AlignmentRules;
26 import com.android.tools.build.apkzlib.zip.StoredEntry;
27 import com.android.tools.build.apkzlib.zip.ZFile;
28 import com.android.tools.build.apkzlib.zip.ZFileOptions;
29 import com.android.tools.build.apkzlib.zip.ZFileTestConstants;
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java17 package com.android.tools.build.apkzlib.zip.compress;
24 import com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo;
25 import com.android.tools.build.apkzlib.zip.CompressionMethod;
26 import com.android.tools.build.apkzlib.zip.StoredEntry;
27 import com.android.tools.build.apkzlib.zip.ZFile;
28 import com.android.tools.build.apkzlib.zip.ZFileOptions;
32 import java.util.zip.Deflater;
62 File zip = new File(mTemporaryFolder.getRoot(), "test.zip"); in storeIsBest() local
64 try (ZFile zf = new ZFile(zip)) { in storeIsBest()
79 File zip = new File(mTemporaryFolder.getRoot(), "test.zip"); in sameCompressionResultButBetterThanStore() local
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DInflaterByteSource.java17 package com.android.tools.build.apkzlib.zip;
19 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
24 import java.util.zip.Inflater;
25 import java.util.zip.InflaterInputStream;
DZFileOptions.java17 package com.android.tools.build.apkzlib.zip;
19 import com.android.tools.build.apkzlib.zip.compress.DeflateExecutionCompressor;
20 import com.android.tools.build.apkzlib.zip.utils.ByteTracker;
22 import java.util.zip.Deflater;
DCompressor.java17 package com.android.tools.build.apkzlib.zip;
19 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
DCompressionResult.java17 package com.android.tools.build.apkzlib.zip;
19 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
DProcessedAndRawByteSources.java17 package com.android.tools.build.apkzlib.zip;
19 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
/tools/tradefederation/core/src/com/android/tradefed/util/
DZipUtil2.java20 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
21 import org.apache.commons.compress.archivers.zip.ZipFile;
86 try (ZipFile zip = new ZipFile(zipFile)) { in extractZip() argument
87 extractZip(zip, destDir); in extractZip()
120 try (ZipFile zip = new ZipFile(zipFile)) { in extractZipToTemp() argument
121 extractZip(zip, localRootDir); in extractZipToTemp()
DBugreport.java24 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
25 import org.apache.commons.compress.archivers.zip.ZipFile;
81 try (ZipFile zip = new ZipFile(mBugreport)) { in getMainFile() argument
83 mainEntry = ZipUtil2.extractFileFromZip(zip, "main_entry.txt"); in getMainFile()
90 return ZipUtil2.extractFileFromZip(zip, bugreportName); in getMainFile()
145 try (ZipFile zip = new ZipFile(mBugreport)) { in extractFileBugreport() argument
146 bugreport = ZipUtil2.extractFileFromZip(zip, name); in extractFileBugreport()
DZipUtil.java31 import java.util.zip.GZIPOutputStream;
32 import java.util.zip.ZipEntry;
33 import java.util.zip.ZipException;
34 import java.util.zip.ZipFile;
35 import java.util.zip.ZipOutputStream;
341 try (ZipFile zip = new ZipFile(zipFile)) { in extractZipToTemp() argument
342 extractZip(zip, localRootDir); in extractZipToTemp()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java17 package com.android.apksig.internal.zip;
25 import java.util.zip.CRC32;
26 import java.util.zip.Deflater;
112 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord() argument
124 long fileSize = zip.size(); in findZipEndOfCentralDirectoryRecord()
132 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord()
140 return findZipEndOfCentralDirectoryRecord(zip, UINT16_MAX_VALUE); in findZipEndOfCentralDirectoryRecord()
156 DataSource zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord() argument
171 long fileSize = zip.size(); in findZipEndOfCentralDirectoryRecord()
181 ByteBuffer buf = zip.getByteBuffer(bufOffsetInFile, maxEocdSize); in findZipEndOfCentralDirectoryRecord()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java17 package com.android.tools.build.apkzlib.zip;
31 import com.android.tools.build.apkzlib.zip.compress.DeflateExecutionCompressor;
32 import com.android.tools.build.apkzlib.zip.utils.CloseableByteSource;
33 import com.android.tools.build.apkzlib.zip.utils.RandomAccessFileUtils;
53 import java.util.zip.Deflater;
54 import java.util.zip.ZipEntry;
55 import java.util.zip.ZipFile;
56 import java.util.zip.ZipInputStream;
57 import java.util.zip.ZipOutputStream;
544 File zip = new File(mTemporaryFolder.getRoot(), "z.zip"); in addingFileDoesNotAddDirectoriesAutomatically() local
[all …]
DZFileReadOnlyTest.java17 package com.android.tools.build.apkzlib.zip;
47 File zip = new File(temporaryFolder.getRoot(), "foo.zip"); in makeTestZip() local
48 try (ZFile zf = new ZFile(zip)) { in makeTestZip()
52 return zip; in makeTestZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtil2Test.java20 import org.apache.commons.compress.archivers.zip.ZipFile;
74 final File zip = getTestDataFile("permission-test"); in testExtractFileFromZip() local
78 zipFile = new ZipFile(zip); in testExtractFileFromZip()
89 final File zip = getTestDataFile("permission-test"); in testExtractZip() local
93 zipFile = new ZipFile(zip); in testExtractZip()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFolderSaver.java89 File zip = null; in tearDown() local
91 zip = ZipUtil.createZip(tempDir); in tearDown()
94 s = new FileInputStreamSource(zip); in tearDown()
100 FileUtil.deleteFile(zip); in tearDown()
/tools/acloud/
DREADME.md7 `$ make acloud` # this produces acloud.zip
11 `$ pip install acloud.zip`
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetupTest.java101 String zip = "zip"; in testGetZipFile() local
102 mPrep.setTestZipName(zip); in testGetZipFile()
103 File file = new File(zip); in testGetZipFile()
104 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile()
113 String zip = "zip"; in testGetZipFileDoesntExist() local
114 mPrep.setTestZipName(zip); in testGetZipFileDoesntExist()
115 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist()
/tools/external/gradle/
DBUILD8 srcs = ["gradle-2.14.1-bin.zip"],
29 srcs = ["gradle-3.4.1-bin.zip"],
50 srcs = ["gradle-3.5-20170307000048+0000-bin.zip"],

123456