Home
last modified time | relevance | path

Searched refs:CentralDirectoryInfo (Results 1 – 9 of 9) sorted by relevance

/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/
DMergedZipEntryCollection.java44 private List<CentralDirectoryInfo> mZipEntries;
46 public MergedZipEntryCollection(List<CentralDirectoryInfo> zipEntries) { in MergedZipEntryCollection()
55 CentralDirectoryInfo lastEntry = mZipEntries.get(mZipEntries.size() - 1); in getEndOffset()
59 public List<CentralDirectoryInfo> getZipEntries() { in getZipEntries()
72 List<CentralDirectoryInfo> zipEntries) { in createCollections()
79 List<CentralDirectoryInfo> entries = in createCollections()
83 CentralDirectoryInfo::getLocalHeaderOffset)) in createCollections()
88 List<CentralDirectoryInfo> group = new ArrayList<>(); in createCollections()
89 for (CentralDirectoryInfo entry : entries) { in createCollections()
117 List<CentralDirectoryInfo> group) { in splitLargeGroups()
[all …]
DCentralDirectoryInfo.java34 public final class CentralDirectoryInfo { class
178 protected CentralDirectoryInfo() {} in CentralDirectoryInfo() method in CentralDirectoryInfo
187 public CentralDirectoryInfo(byte[] data, int startOffset) throws IOException { in CentralDirectoryInfo() method in CentralDirectoryInfo
199 public CentralDirectoryInfo(byte[] data, int startOffset, boolean useZip64) throws IOException { in CentralDirectoryInfo() method in CentralDirectoryInfo
/tools/tradefederation/core/javatests/com/android/tradefed/util/zip/
DMergedZipEntryCollectionTest.java36 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_smallGap()
38 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_smallGap()
59 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_largeGap()
61 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_largeGap()
84 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_smallGapPercent()
88 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_smallGapPercent()
95 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_smallGapPercent()
110 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_largeGapPercent()
114 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_largeGapPercent()
121 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_largeGapPercent()
[all …]
DCentralDirectoryInfoTest.java100 CentralDirectoryInfo info = new CentralDirectoryInfo(data, DEFAULT_OFFSET, false); in centralDirectoryInfo()
118 CentralDirectoryInfo info = new CentralDirectoryInfo(data, DEFAULT_OFFSET, false); in centralDirectoryInfo_symLink()
132 CentralDirectoryInfo info = new CentralDirectoryInfo(data, DEFAULT_OFFSET, true); in centralDirectoryInfo_useZip64()
149 CentralDirectoryInfo info = new CentralDirectoryInfo(data, DEFAULT_OFFSET, true); in centralDirectoryInfo_useZip64_multipleEntriesInExtraField()
164 RuntimeException.class, () -> new CentralDirectoryInfo(data, DEFAULT_OFFSET, true)); in centralDirectoryInfo_noZip64Field_throwException()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DRemoteZipTest.java23 import com.android.tradefed.util.zip.CentralDirectoryInfo;
48 private List<CentralDirectoryInfo> mExpectedEntries;
105 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntries()
126 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntriesWithUseZip64()
140 List<CentralDirectoryInfo> files = new ArrayList<>(); in testDownloadFilesFromZip()
141 for (CentralDirectoryInfo info : mExpectedEntries) { in testDownloadFilesFromZip()
DZipUtilFuncTest.java18 import com.android.tradefed.util.zip.CentralDirectoryInfo;
93 List<CentralDirectoryInfo> zipEntries = in testCentralDirectoryInfos()
100 for (CentralDirectoryInfo entry : zipEntries) { in testCentralDirectoryInfos()
164 private boolean validateCentralDirectoryInfo(CentralDirectoryInfo entry) { in validateCentralDirectoryInfo()
172 ZipFile zipFile, List<CentralDirectoryInfo> zipEntries) { in validateCentralDirectoryInfos()
173 for (CentralDirectoryInfo entry : zipEntries) { in validateCentralDirectoryInfos()
DZipUtilTest.java24 import com.android.tradefed.util.zip.CentralDirectoryInfo;
233 List<CentralDirectoryInfo> zipEntries = in testPartipUnzip()
241 CentralDirectoryInfo zipEntry; in testPartipUnzip()
458 List<CentralDirectoryInfo> zipEntries = in testPartialUnzipWithUseZip64()
467 CentralDirectoryInfo zipEntry; in testPartialUnzipWithUseZip64()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java20 import com.android.tradefed.util.zip.CentralDirectoryInfo;
408 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
431 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
448 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
467 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
473 List<CentralDirectoryInfo> infos = new ArrayList<>(); in getZipCentralDirectoryInfos()
485 CentralDirectoryInfo info = new CentralDirectoryInfo(data, startOffset, useZip64); in getZipCentralDirectoryInfos()
500 public static void applyPermission(File targetFile, CentralDirectoryInfo zipEntry) in applyPermission()
521 public static void unzipPartialZipFolder(File targetFile, CentralDirectoryInfo zipEntry) in unzipPartialZipFolder()
556 CentralDirectoryInfo zipEntry, in unzipPartialZipFile()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java27 import com.android.tradefed.util.zip.CentralDirectoryInfo;
49 private List<CentralDirectoryInfo> mZipEntries;
118 public List<CentralDirectoryInfo> getZipEntries() throws BuildRetrievalError, IOException { in getZipEntries()
174 public void downloadFiles(File destDir, List<CentralDirectoryInfo> originalFiles) in downloadFiles()
179 List<CentralDirectoryInfo> toBeDownloaded = Collections.synchronizedList(new ArrayList<>()); in downloadFiles()
203 for (CentralDirectoryInfo info : new ArrayList<>(toBeDownloaded)) { in downloadFiles()
311 for (CentralDirectoryInfo entry : collection.getZipEntries()) { in unzipDownloadedCollection()