Home
last modified time | relevance | path

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

12345678

/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/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/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/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java19 import com.android.tradefed.util.zip.CentralDirectoryInfo;
20 import com.android.tradefed.util.zip.EndCentralDirectoryInfo;
21 import com.android.tradefed.util.zip.LocalFileHeader;
36 import java.util.zip.DataFormatException;
37 import java.util.zip.GZIPOutputStream;
38 import java.util.zip.Inflater;
39 import java.util.zip.ZipEntry;
40 import java.util.zip.ZipException;
41 import java.util.zip.ZipFile;
42 import java.util.zip.ZipOutputStream;
[all …]
DZipUtil2.java20 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
21 import org.apache.commons.compress.archivers.zip.ZipFile;
98 try (ZipFile zip = new ZipFile(zipFile)) { in extractZip() argument
99 extractZip(zip, destDir); in extractZip()
132 try (ZipFile zip = new ZipFile(zipFile)) { in extractZipToTemp() argument
133 extractZip(zip, localRootDir); in extractZipToTemp()
/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…
39 ACTS_TESTS_DISTRO := $(ACTS_TESTS_DISTRO_DIR)/acts_tests.zip
51 …_TESTS_DISTRO_DIR) && find . ! -wholename "*__pycache__*" -printf "%P\n" | xargs zip acts_tests.zip
61 WTS_ACTS_DISTRO_ARCHIVE := $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip
73 $(hide) zip -r $(WTS_ACTS_DISTRO_ARCHIVE) -j tools/test/connectivity/wts-acts/*.py
75 …$(hide) echo '#!/usr/bin/env python' | cat - $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip > $(WTS_ACTS_DIST…
/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/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/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
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()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetupTest.java102 String zip = "zip"; in testGetZipFile() local
103 mPrep.setTestZipName(zip); in testGetZipFile()
104 File file = new File(zip); in testGetZipFile()
105 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile()
114 String zip = "zip"; in testGetZipFileDoesntExist() local
115 mPrep.setTestZipName(zip); in testGetZipFileDoesntExist()
116 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterLogSaverTest.java50 import java.util.zip.ZipEntry;
51 import java.util.zip.ZipInputStream;
52 import java.util.zip.ZipOutputStream;
104 try (ZipInputStream zip = new ZipInputStream(new FileInputStream(file))) { in getZipEntries() argument
106 for (ZipEntry entry = zip.getNextEntry(); entry != null; entry = zip.getNextEntry()) { in getZipEntries()
/tools/test/connectivity/tools/
Dread_acts_results.py104 widths = [max(map(len, col)) for col in zip(*master_results_data)]
107 print(' '.join((val.ljust(width) for val, width in zip(row,
120 print(' '.join((val.ljust(width) for val, width in zip(row,
126 print(' '.join((val.ljust(width) for val, width in zip(row,
133 for val, width in zip(row, widths))))
/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()
DZipUtilFuncTest.java18 import com.android.tradefed.util.zip.CentralDirectoryInfo;
19 import com.android.tradefed.util.zip.EndCentralDirectoryInfo;
25 import java.util.zip.ZipEntry;
26 import java.util.zip.ZipOutputStream;
31 import java.util.zip.ZipFile;
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTfSuiteRunner.java36 import org.apache.commons.compress.archivers.zip.ZipFile;
106 ZipFile zip = null; in loadTests() local
108 zip = new ZipFile(mAdditionalTestsZip); in loadTests()
109 ZipUtil2.extractZip(zip, testsDir); in loadTests()
119 StreamUtil.close(zip); in loadTests()
/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;
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFolderSaver.java106 File zip = null; in tearDown() local
108 zip = ZipUtil.createZip(tempDir); in tearDown()
111 s = new FileInputStreamSource(zip); in tearDown()
117 FileUtil.deleteFile(zip); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java21 import com.android.tradefed.util.zip.CentralDirectoryInfo;
22 import com.android.tradefed.util.zip.EndCentralDirectoryInfo;
23 import com.android.tradefed.util.zip.LocalFileHeader;
24 import com.android.tradefed.util.zip.MergedZipEntryCollection;

12345678