Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/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 …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java19 import com.android.tradefed.util.zip.CentralDirectoryInfo;
378 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
397 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
414 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
433 public static List<CentralDirectoryInfo> getZipCentralDirectoryInfos( in getZipCentralDirectoryInfos()
439 List<CentralDirectoryInfo> infos = new ArrayList<>(); in getZipCentralDirectoryInfos()
451 CentralDirectoryInfo info = new CentralDirectoryInfo(data, startOffset, useZip64); in getZipCentralDirectoryInfos()
466 public static void applyPermission(File targetFile, CentralDirectoryInfo zipEntry) in applyPermission()
487 public static void unzipPartialZipFolder(File targetFile, CentralDirectoryInfo zipEntry) in unzipPartialZipFolder()
518 CentralDirectoryInfo zipEntry, in unzipPartialZipFile()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/
DMergedZipEntryCollection.java38 private List<CentralDirectoryInfo> mZipEntries;
40 public MergedZipEntryCollection(List<CentralDirectoryInfo> zipEntries) { in MergedZipEntryCollection()
49 CentralDirectoryInfo lastEntry = mZipEntries.get(mZipEntries.size() - 1); in getEndOffset()
53 public List<CentralDirectoryInfo> getZipEntries() { in getZipEntries()
66 List<CentralDirectoryInfo> zipEntries) { in createCollections()
72 List<CentralDirectoryInfo> entries = in createCollections()
75 .sorted(Comparator.comparing(CentralDirectoryInfo::getLocalHeaderOffset)) in createCollections()
80 List<CentralDirectoryInfo> group = new ArrayList<>(); in createCollections()
81 for (CentralDirectoryInfo entry : entries) { in createCollections()
DCentralDirectoryInfo.java35 public final class CentralDirectoryInfo { class
174 protected CentralDirectoryInfo() {} in CentralDirectoryInfo() method in CentralDirectoryInfo
183 public CentralDirectoryInfo(byte[] data, int startOffset) throws IOException { in CentralDirectoryInfo() method in CentralDirectoryInfo
195 public CentralDirectoryInfo(byte[] data, int startOffset, boolean useZip64) throws IOException { in CentralDirectoryInfo() method in CentralDirectoryInfo
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRemoteZipTest.java23 import com.android.tradefed.util.zip.CentralDirectoryInfo;
48 private List<CentralDirectoryInfo> mExpectedEntries;
104 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntries()
124 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntriesWithUseZip64()
138 List<CentralDirectoryInfo> files = new ArrayList<>(); in testDownloadFilesFromZip()
139 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.java18 import com.android.tradefed.util.zip.CentralDirectoryInfo;
214 List<CentralDirectoryInfo> zipEntries = in testPartipUnzip()
222 CentralDirectoryInfo zipEntry; in testPartipUnzip()
374 List<CentralDirectoryInfo> zipEntries = in testPartialUnzipWithUseZip64()
383 CentralDirectoryInfo zipEntry; in testPartialUnzipWithUseZip64()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java21 import com.android.tradefed.util.zip.CentralDirectoryInfo;
35 private List<CentralDirectoryInfo> mZipEntries;
95 public List<CentralDirectoryInfo> getZipEntries() throws BuildRetrievalError, IOException { in getZipEntries()
150 public void downloadFiles(File destDir, List<CentralDirectoryInfo> files) in downloadFiles()
181 for (CentralDirectoryInfo entry : collection.getZipEntries()) { in downloadFiles()