Home
last modified time | relevance | path

Searched refs:ZipUtil (Results 1 – 25 of 38) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtilTest.java73 ZipUtil.isZipFileValid(getTestDataFile("normal"), false)); in testSimpleCorruptZipCheck()
75 ZipUtil.isZipFileValid(getTestDataFile("truncated"), false)); in testSimpleCorruptZipCheck()
77 ZipUtil.isZipFileValid(getTestDataFile("corrupt"), false)); in testSimpleCorruptZipCheck()
85 ZipUtil.isZipFileValid(getTestDataFile("normal"), true)); in testThoroughCorruptZipCheck()
87 ZipUtil.isZipFileValid(getTestDataFile("truncated"), true)); in testThoroughCorruptZipCheck()
89 ZipUtil.isZipFileValid(getTestDataFile("corrupt"), true)); in testThoroughCorruptZipCheck()
106 zipFile = ZipUtil.createZip(tmpParentDir); in testCreateAndExtractZip()
107 ZipUtil.extractZip(new ZipFile(zipFile), extractedDir); in testCreateAndExtractZip()
136 zipFile = ZipUtil.createZip(Arrays.asList(file1, file2)); in testCreateAndExtractZip_fromFiles()
137 ZipUtil.extractZip(new ZipFile(zipFile), extractedDir); in testCreateAndExtractZip_fromFiles()
[all …]
DBugreportTest.java63 mZipFile = ZipUtil.createZip(new File("")); in setUp()
66 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in setUp()
67 ZipUtil.addToZip(out, new File(tempDir, "main_entry.txt"), new LinkedList<String>()); in setUp()
166 zipFile = ZipUtil.createZip(new File("")); in testBugreportz_noMainFile()
169 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in testBugreportz_noMainFile()
DZipUtilFuncTest.java94 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfos()
114 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfosWithoutUseZip64()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java41 import com.android.tradefed.util.ZipUtil;
258 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZip()
328 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
400 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipFailWithKeywords()
448 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipHostTests()
495 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_shard()
538 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_shardNoTest()
582 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_noTest()
647 ZipUtil.createZip(filesToZip, zipFile); in testLoadTestsWithModule()
700 ZipUtil.createZip(filesToZip, zipFile); in testLoadTestsWithMultiModules()
[all …]
DTfSuiteRunnerTest.java46 import com.android.tradefed.util.ZipUtil;
281 additionalTestsZipFile = ZipUtil.createZip(zipDir); in testLoadTests_additionalTestsZip()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java991 ZipUtil.extractZip(zipFile, destDir); in extractZip()
1005 return ZipUtil.extractFileFromZip(zipFile, filePath); in extractFileFromZip()
1019 return ZipUtil.createZip(dir); in createZip()
1033 ZipUtil.createZip(dir, zipFile); in createZip()
1044 ZipUtil.closeZip(zipFile); in closeZip()
1057 ZipUtil.gzipFile(file, gzipFile); in gzipFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparerTest.java38 import com.android.tradefed.util.ZipUtil;
185 ZipUtil.createZip(List.of(tmpFile), otatoolsZip); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip()
207 ZipUtil.createZip(List.of(mkbootimgFile), otatoolsZip); in testValidateGkiBootImg_FailToGenerateBootImg()
262 ZipUtil.createZip(List.of(tmpFile), otatoolsZip); in testSetUp_NoMkbootimgInOtatoolsZip()
305 ZipUtil.createZip(List.of(bootImg), gkiZip); in testSetup_Success_FromZip()
DGsiDeviceFlashPreparerTest.java38 import com.android.tradefed.util.ZipUtil;
169 ZipUtil.createZip(List.of(tmpFile), gsiZip); in testSetUp_NoSystemImageInGsiZip()
187 ZipUtil.createZip(List.of(systemImg), gsiZip); in testSetUp_NoVbmetaImageInGsiZip()
251 ZipUtil.createZip(List.of(systemImg, vbmetaImg), gsiZip); in testSetup_Success_FromZipFile()
351 ZipUtil.createZip(List.of(systemImg, vbmetaImg, bootImg), gsiZip); in testSetup_Success_WithGkiBootImgInZip()
DDynamicSystemPreparerTest.java30 import com.android.tradefed.util.ZipUtil;
92 return ZipUtil.createZip(tempFiles); in createImageZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java34 import com.android.tradefed.util.ZipUtil;
308 return ZipUtil.createZip(tempFiles); in createImageZip()
329 File mixedImageDir = ZipUtil.extractZipToTemp(mixedImageZip, "verifyImages"); in verifyImages()
461 ZipUtil.closeZip(zipFile); in runCreateZipTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java24 import com.android.tradefed.util.ZipUtil;
163 ZipUtil.createZip(filesToZip, zipFile); in testGetTests()
217 ZipUtil.createZip(filesToZip, zipFile); in testGetTests_matchKeywords()
547 ZipUtil.createZip(filesToZip, zipFile); in testExtractTestMappingsZip()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLocalAndroidVirtualDevice.java37 import com.android.tradefed.util.ZipUtil;
188 } else if (ZipUtil.isZipFileValid(file, false)) { in extractArchive()
189 file = ZipUtil.extractZipToTemp(file, file.getName()); in extractArchive()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java37 import com.android.tradefed.util.ZipUtil;
312 ZipUtil.closeZip(deviceImageZip); in setUp()
313 ZipUtil.closeZip(systemImageZip); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/build/
DOtaZipfileBuildProvider.java23 import com.android.tradefed.util.ZipUtil;
95 ZipUtil.closeZip(otaZip); in getBuildPropContents()
DLocalDeviceBuildProvider.java26 import com.android.tradefed.util.ZipUtil;
176 zipFile = ZipUtil.createZip(buildFiles); in createBuildImageZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFolderSaver.java31 import com.android.tradefed.util.ZipUtil;
108 zip = ZipUtil.createZip(tempDir); in tearDown()
DDynamicSystemPreparer.java29 import com.android.tradefed.util.ZipUtil;
78 ZipUtil.gzipFile(systemImage, systemImageGZ); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/remote/
DGcsRemoteFileResolverTest.java28 import com.android.tradefed.util.ZipUtil;
88 File zipFile = ZipUtil.createZip(testDir); in testResolve_unzip()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DNativeCodeCoverageListener.java33 import com.android.tradefed.util.ZipUtil;
164 return ZipUtil.createZip(Arrays.asList(untarDir.listFiles()), "native_coverage"); in convertTarToZip()
DClangCodeCoverageListener.java43 import com.android.tradefed.util.ZipUtil;
257 mLlvmProfdataTool = ZipUtil.extractZipToTemp(profileToolZip, "llvm-profdata"); in getProfileTool()
DUiAutomatorTest.java39 import com.android.tradefed.util.ZipUtil;
402 File atraceZip = ZipUtil.createZip(testTmpDirectory); in logTraceFiles()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java128 ZipUtil.getZipCentralDirectoryInfos( in getZipEntries()
190 ZipUtil.unzipPartialZipFile( in downloadFiles()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DCommonLogRemoteFileUtil.java29 import com.android.tradefed.util.ZipUtil;
192 File zipTombstones = ZipUtil.createZip(tombstonesDir); in fetchTombstones()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DAtraceRunMetricCollector.java32 import com.android.tradefed.util.ZipUtil;
95 atraceZip = ZipUtil.createZip(testDirectory); in uploadTraceFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessorTest.java33 import com.android.tradefed.util.ZipUtil;
560 ZipUtil.createZip(decompressedFile, compressedFile); in compressFile()

12