Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DZipUtilTest.java83 ZipUtil.isZipFileValid(getTestDataFile("normal"), false)); in testSimpleCorruptZipCheck()
85 ZipUtil.isZipFileValid(getTestDataFile("truncated"), false)); in testSimpleCorruptZipCheck()
87 ZipUtil.isZipFileValid(getTestDataFile("corrupt"), false)); in testSimpleCorruptZipCheck()
92 assertFalse(ZipUtil.isZipFileValid(null, true)); in testIsValid_null()
99 ZipUtil.isZipFileValid(getTestDataFile("normal"), true)); in testThoroughCorruptZipCheck()
101 ZipUtil.isZipFileValid(getTestDataFile("truncated"), true)); in testThoroughCorruptZipCheck()
103 ZipUtil.isZipFileValid(getTestDataFile("corrupt"), true)); in testThoroughCorruptZipCheck()
121 zipFile = ZipUtil.createZip(tmpParentDir); in testCreateAndExtractZip()
122 ZipUtil.extractZip(new ZipFile(zipFile), extractedDir); in testCreateAndExtractZip()
152 zipFile = ZipUtil.createZip(Arrays.asList(file1, file2)); in testCreateAndExtractZip_fromFiles()
[all …]
DBugreportTest.java68 mZipFile = ZipUtil.createZip(new File("")); in setUp()
71 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in setUp()
72 ZipUtil.addToZip(out, new File(tempDir, "main_entry.txt"), new LinkedList<String>()); in setUp()
161 zipFile = ZipUtil.createZip(new File("")); in testBugreportz_noMainFile()
164 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in testBugreportz_noMainFile()
DZipUtilFuncTest.java94 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfos()
114 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfosWithoutUseZip64()
/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/javatests/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java51 import com.android.tradefed.util.ZipUtil;
239 ZipUtil.createZip(filesToZip, zipFile); in testLoadTestsWhenRemoteTestTimeoutIsSet()
333 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZip()
398 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
465 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipFailWithKeywords()
511 ZipUtil.createZip(filesToZip, zipFile); in testLoadTests_testMappingsZipHostTests()
554 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_shard()
594 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_shardNoTest()
629 ZipUtil.createZip(srcDir, zipFile); in testLoadTests_noTest()
687 ZipUtil.createZip(filesToZip, zipFile); in testLoadTestsWithModule()
[all …]
DTfSuiteRunnerTest.java49 import com.android.tradefed.util.ZipUtil;
286 additionalTestsZipFile = ZipUtil.createZip(zipDir); in testLoadTests_additionalTestsZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFolderSaver.java31 import com.android.tradefed.util.ZipUtil;
114 zip = ZipUtil.createZip(tempDir); in tearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparerTest.java45 import com.android.tradefed.util.ZipUtil;
243 ZipUtil.createZip(List.of(tmpFile), otatoolsZip); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip()
264 ZipUtil.createZip(List.of(mkbootimgFile), otatoolsZip); in testValidateGkiBootImg_FailToGenerateBootImg()
308 ZipUtil.createZip(List.of(otaDir.listFiles()), otatoolsZip); in testAddHashFooter()
360 ZipUtil.createZip(List.of(tmpFile), otatoolsZip); in testSetUp_NoMkbootimgInOtatoolsZip()
474 ZipUtil.createZip(List.of(bootImg, vendorBootImg, vendorKernelBootImg, dtboImg), imgZip); in testSetup_Success_FromZip()
598 ZipUtil.createZip(List.of(otaDir.listFiles()), otatoolsZip); in testGetRequestedFile_VerifyExtractingFromZip()
652 ZipUtil.createZip(List.of(otaDir.listFiles()), otatoolsZip); in testBuildGkiSystemDlkmImg()
DDynamicSystemPreparerTest.java34 import com.android.tradefed.util.ZipUtil;
85 mTargetFilesZip = ZipUtil.createZip(mSystemImageDir, "system_target_files"); in setUp()
87 ZipUtil.createZip( in setUp()
91 ZipUtil.createZip( in setUp()
DGsiDeviceFlashPreparerTest.java41 import com.android.tradefed.util.ZipUtil;
174 ZipUtil.createZip(List.of(tmpFile), gsiZip); in testSetUp_NoSystemImageInGsiZip()
268 ZipUtil.createZip(List.of(systemImg, vbmetaImg), gsiZip); in testSetup_Success_FromZipFile()
365 ZipUtil.createZip(List.of(systemImg, vbmetaImg, bootImg), gsiZip); in testSetup_Success_WithGkiBootImgInZip()
/tools/tradefederation/core/src/com/android/tradefed/util/
DZipCompressionStrategy.java33 return ZipUtil.createZip(source); in compress()
DRemoteZip.java152 ZipUtil.getZipCentralDirectoryInfos( in getZipEntries()
326 ZipUtil.unzipPartialZipFile( in unzipDownloadedCollection()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DClangCodeCoverageCollector.java43 import com.android.tradefed.util.ZipUtil;
269 mLlvmProfileTool = ZipUtil.extractZipToTemp(profileToolZip, "llvm-profdata"); in getProfileTool()
281 mLlvmProfileTool = ZipUtil.extractZipToTemp(profileToolZip, "llvm-profdata"); in getProfileTool()
DGcovCodeCoverageCollector.java38 import com.android.tradefed.util.ZipUtil;
190 return ZipUtil.createZip(Arrays.asList(untarDir.listFiles()), "native_coverage"); in convertTarToZip()
DFilePullerDeviceMetricCollector.java26 import com.android.tradefed.util.ZipUtil;
164 File compressedFile = ZipUtil.createZip(pulledDirectory, in processMetricRequest()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil2.java85 ZipUtil.validateDestinationDir(destDir, entry.getName()); in extractZip()
118 ZipUtil.extractZip(zipFile, destDir); in extractZip()
DFileUtil.java1110 ZipUtil.extractZip(zipFile, destDir); in extractZip()
1124 return ZipUtil.extractFileFromZip(zipFile, filePath); in extractFileFromZip()
1138 return ZipUtil.createZip(dir); in createZip()
1152 ZipUtil.createZip(dir, zipFile); in createZip()
1163 ZipUtil.closeZip(zipFile); in closeZip()
1176 ZipUtil.gzipFile(file, gzipFile); in gzipFile()
/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/
DTestMappingTest.java30 import com.android.tradefed.util.ZipUtil;
220 ZipUtil.createZip(filesToZip, zipFile); in testGetTests()
276 ZipUtil.createZip(filesToZip, zipFile); in testGetTests_matchKeywords()
316 ZipUtil.createZip(filesToZip, zipFile); in testGetTests_withIgnoreKeywords()
645 ZipUtil.createZip(filesToZip, zipFile); in testExtractTestMappingsZip()
757 ZipUtil.createZip(filesToZip, zipFile); in testIncludeImports()
855 ZipUtil.createZip(filesToZip, zipFile); in testExcludeImports()
923 ZipUtil.createZip(filesToZip, zipFile); in testGetTestMappingSources()
958 ZipUtil.createZip(filesToZip, zipFile); in testMergeMissedTestMappingZips()
1007 ZipUtil.createZip(filesToZip, zipFile); in testMergeTestMappingZipsWithDuplicateSources()
[all …]
/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/javatests/com/android/tradefed/device/
DLocalAndroidVirtualDeviceTest.java37 import com.android.tradefed.util.ZipUtil;
177 mImageZip = ZipUtil.createZip(new ArrayList<File>()); in setUp()
221 mBootImageZip = ZipUtil.createZip(empty); in setUpExtraZips()
222 mSystemImageZip = ZipUtil.createZip(empty); in setUpExtraZips()
223 mOtaToolsZip = ZipUtil.createZip(empty); in setUpExtraZips()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java34 import com.android.tradefed.util.ZipUtil;
363 return ZipUtil.createZip(tempFiles); in createImageZip()
385 File mixedImageDir = ZipUtil.extractZipToTemp(mixedImageZip, "verifyImages"); in verifyImages()
538 ZipUtil.closeZip(zipFile); in runCreateZipTest()
/tools/tradefederation/core/javatests/com/android/tradefed/config/remote/
DGcsRemoteFileResolverTest.java32 import com.android.tradefed.util.ZipUtil;
128 File zipFile = ZipUtil.createZip(testDir); in testResolve_unzip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java37 import com.android.tradefed.util.ZipUtil;
332 ZipUtil.closeZip(deviceImageZip); in setUp()
333 ZipUtil.closeZip(systemImageZip); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLocalAndroidVirtualDevice.java41 import com.android.tradefed.util.ZipUtil;
201 } else if (ZipUtil.isZipFileValid(file, false)) { in extractArchive()
202 file = ZipUtil.extractZipToTemp(file, file.getName()); in extractArchive()

12