/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 17 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 …]
|
D | ZFileReadOnlyTest.java | 17 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/ |
D | ApkZFileCreator.java | 19 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 …]
|
D | ZFiles.java | 21 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/ |
D | ManifestGenerationTest.java | 24 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 …]
|
D | FullApkSignTest.java | 24 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/ |
D | MultiCompressorTest.java | 17 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/ |
D | ZipUtil.java | 19 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 …]
|
D | ZipUtil2.java | 20 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/ |
D | Android.mk | 24 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/ |
D | ZipUtils.java | 17 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/ |
D | DeflateExecutionCompressor.java | 17 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;
|
D | BestAndDefaultDeflateExecutorCompressor.java | 17 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;
|
D | ExecutorCompressor.java | 17 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/ |
D | Bugreport.java | 24 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/ |
D | InstallAllTestZipAppsSetupTest.java | 102 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/ |
D | ClusterLogSaverTest.java | 50 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/ |
D | read_acts_results.py | 104 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/ |
D | ZipUtil2Test.java | 20 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()
|
D | ZipUtilFuncTest.java | 18 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/ |
D | TfSuiteRunner.java | 36 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/ |
D | InflaterByteSource.java | 17 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;
|
D | ZFileOptions.java | 17 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/ |
D | FolderSaver.java | 106 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/ |
D | RemoteZip.java | 21 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;
|