/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | ZipUtilTest.java | 83 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 …]
|
D | BugreportTest.java | 68 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()
|
D | ZipUtilFuncTest.java | 94 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfos() 114 ZipUtil.getZipCentralDirectoryInfos( in testCentralDirectoryInfosWithoutUseZip64()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | OtaZipfileBuildProvider.java | 23 import com.android.tradefed.util.ZipUtil; 95 ZipUtil.closeZip(otaZip); in getBuildPropContents()
|
D | LocalDeviceBuildProvider.java | 26 import com.android.tradefed.util.ZipUtil; 176 zipFile = ZipUtil.createZip(buildFiles); in createBuildImageZip()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 51 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 …]
|
D | TfSuiteRunnerTest.java | 49 import com.android.tradefed.util.ZipUtil; 286 additionalTestsZipFile = ZipUtil.createZip(zipDir); in testLoadTests_additionalTestsZip()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | FolderSaver.java | 31 import com.android.tradefed.util.ZipUtil; 114 zip = ZipUtil.createZip(tempDir); in tearDown()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | GkiDeviceFlashPreparerTest.java | 45 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()
|
D | DynamicSystemPreparerTest.java | 34 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()
|
D | GsiDeviceFlashPreparerTest.java | 41 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/ |
D | ZipCompressionStrategy.java | 33 return ZipUtil.createZip(source); in compress()
|
D | RemoteZip.java | 152 ZipUtil.getZipCentralDirectoryInfos( in getZipEntries() 326 ZipUtil.unzipPartialZipFile( in unzipDownloadedCollection()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | ClangCodeCoverageCollector.java | 43 import com.android.tradefed.util.ZipUtil; 269 mLlvmProfileTool = ZipUtil.extractZipToTemp(profileToolZip, "llvm-profdata"); in getProfileTool() 281 mLlvmProfileTool = ZipUtil.extractZipToTemp(profileToolZip, "llvm-profdata"); in getProfileTool()
|
D | GcovCodeCoverageCollector.java | 38 import com.android.tradefed.util.ZipUtil; 190 return ZipUtil.createZip(Arrays.asList(untarDir.listFiles()), "native_coverage"); in convertTarToZip()
|
D | FilePullerDeviceMetricCollector.java | 26 import com.android.tradefed.util.ZipUtil; 164 File compressedFile = ZipUtil.createZip(pulledDirectory, in processMetricRequest()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ZipUtil2.java | 85 ZipUtil.validateDestinationDir(destDir, entry.getName()); in extractZip() 118 ZipUtil.extractZip(zipFile, destDir); in extractZip()
|
D | FileUtil.java | 1110 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/ |
D | TestMappingTest.java | 30 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/ |
D | AtraceRunMetricCollector.java | 32 import com.android.tradefed.util.ZipUtil; 95 atraceZip = ZipUtil.createZip(testDirectory); in uploadTraceFiles()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | LocalAndroidVirtualDeviceTest.java | 37 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/ |
D | MixImageZipPreparerTest.java | 34 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/ |
D | GcsRemoteFileResolverTest.java | 32 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/ |
D | MixImageZipPreparer.java | 37 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/ |
D | LocalAndroidVirtualDevice.java | 41 import com.android.tradefed.util.ZipUtil; 201 } else if (ZipUtil.isZipFileValid(file, false)) { in extractArchive() 202 file = ZipUtil.extractZipToTemp(file, file.getName()); in extractArchive()
|