Home
last modified time | relevance | path

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

12345678910

/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/treble/vf/
Dmerge.sh45 mv -f ${DIST_DIR}/${TARGET}-*.zip ${SYSTEM_DIR}
57 --framework-target-files ${SYSTEM_DIR}/${TARGET}-target_files*.zip \
58 --vendor-target-files ${VENDOR_DIR}/*-target_files-*.zip \
60 --output-target-files ${DIST_DIR}/${TARGET}-target_files-${BUILD_ID}.zip \
61 --output-img ${DIST_DIR}/${TARGET}-img-${BUILD_ID}.zip \
62 --output-ota ${DIST_DIR}/${TARGET}-ota-${BUILD_ID}.zip \
74 cp ${VENDOR_DIR}/otatools.zip ${DIST_DIR}/otatools_vendor.zip
78 ${VENDOR_DIR}/*-target_files-*.zip \
/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 python3' | cat - $(WTS_ACTS_DISTRO_DIR)/wts-acts.zip > $(WTS_ACTS_DIS…
/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/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/javatests/com/android/tradefed/util/
DZipUtil2Test.java20 import org.apache.commons.compress.archivers.zip.ZipFile;
78 final File zip = getTestDataFile("permission-test"); in testExtractFileFromZip() local
82 zipFile = new ZipFile(zip); in testExtractFileFromZip()
95 final File zip = getTestDataFile("permission-test"); in testExtractFileFromZipToTemp() local
99 zipFile = new ZipFile(zip); in testExtractFileFromZipToTemp()
110 final File zip = getTestDataFile("empty_dir"); in testExtractZipWithEmptyDir() local
114 ZipUtil2.extractZip(zip, destDir); in testExtractZipWithEmptyDir()
121 zipFile = new ZipFile(zip); in testExtractZipWithEmptyDir()
131 final File zip = getTestDataFile("permission-test"); in testExtractZip() local
135 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/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java17 package com.android.apksig.internal.zip;
22 import com.android.apksig.zip.ZipFormatException;
23 import com.android.apksig.zip.ZipSections;
31 import java.util.zip.CRC32;
32 import java.util.zip.Deflater;
132 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord() argument
144 long fileSize = zip.size(); in findZipEndOfCentralDirectoryRecord()
152 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord()
160 return findZipEndOfCentralDirectoryRecord(zip, UINT16_MAX_VALUE); in findZipEndOfCentralDirectoryRecord()
176 DataSource zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord() argument
[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/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/asuite/atest/bazel/scripts/
Dgen_workspace_archive.sh105 -o ${DIST_DIR}/atest_bazel_workspace.zip \
117 ${DIST_DIR}/bazel-test-suite.zip \
118 ${DIST_DIR}/empty-bazel-test-suite.zip \
119 ${DIST_DIR}/atest_bazel_workspace.zip
123 ${DIST_DIR}/atest_bazel_workspace.zip \
124 ${DIST_DIR}/empty-bazel-test-suite.zip
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java20 import com.android.tradefed.util.zip.CentralDirectoryInfo;
21 import com.android.tradefed.util.zip.EndCentralDirectoryInfo;
22 import com.android.tradefed.util.zip.LocalFileHeader;
40 import java.util.zip.DataFormatException;
41 import java.util.zip.GZIPOutputStream;
42 import java.util.zip.Inflater;
43 import java.util.zip.ZipEntry;
44 import java.util.zip.ZipException;
45 import java.util.zip.ZipFile;
46 import java.util.zip.ZipOutputStream;
[all …]
DZipUtil2.java22 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
23 import org.apache.commons.compress.archivers.zip.ZipFile;
117 try (java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile(toUnzip)) { in extractZip()
126 try (ZipFile zip = new ZipFile(toUnzip)) { in extractZip() argument
127 restorePermissions(zip, destDir); in extractZip()
/tools/aadevtools/avd/resource/
Davd_img_list.csv1 name,api,zip
2 avd_car,30,$HOME/Downloads/sdk-repo-linux-system-images-eng.USER.zip
3 sdk_gcar,30,$HOME/Downloads/sdk-repo-linux-system-images-7157940.zip
4 sdk_gcar,29,$HOME/Downloads/sdk-repo-linux-system-images-7086261.zip
/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/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/ndkports/
DDockerfile10 zip
14 RUN curl -L -o platform-tools.zip \
15 https://dl.google.com/android/repository/platform-tools-latest-linux.zip
16 RUN unzip platform-tools.zip platform-tools/adb
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetupTest.java109 String zip = "zip"; in testGetZipFile() local
110 mPrep.setTestZipName(zip); in testGetZipFile()
111 File file = new File(zip); in testGetZipFile()
112 when(mMockBuildInfo.getFile(zip)).thenReturn(file); in testGetZipFile()
120 String zip = "zip"; in testGetZipFileDoesntExist() local
121 mPrep.setTestZipName(zip); in testGetZipFileDoesntExist()
122 when(mMockBuildInfo.getFile(zip)).thenReturn(null); in testGetZipFileDoesntExist()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFolderSaver.java112 File zip = null; in tearDown() local
114 zip = ZipUtil.createZip(tempDir); in tearDown()
117 s = new FileInputStreamSource(zip); in tearDown()
123 FileUtil.deleteFile(zip); in tearDown()

12345678910