Home
last modified time | relevance | path

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

1234567

/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 …]
/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/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/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 WTS_ACTS_DISTRO_ARCHIVE := $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip
51 $(hide) zip -r $(WTS_ACTS_DISTRO_ARCHIVE) -j tools/test/connectivity/wts-acts/*.py
53 …$(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/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/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/ndkports/src/main/kotlin/com/android/ndkports/
DZip.kt22 import java.util.zip.ZipEntry in <lambda>()
23 import java.util.zip.ZipOutputStream in <lambda>()
37 private fun zip(file: File, name: String, zipOut: ZipOutputStream) { in zip() method
49 zip(it, it.relativeTo(input).path, zos) in createZipFromDirectory()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
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()
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 …]
/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/ndkports/
DDockerfile8 RUN curl -o ndk.zip \
9 https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip
10 RUN unzip ndk.zip
/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 …]
/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/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;
/tools/test/graphicsbenchmark/
DREADME23 gamecore.zip
25 To create a gamecore.zip for distribution, run:
28 This will create a gamecore.zip in the 'dist' directory.

1234567