Home
last modified time | relevance | path

Searched refs:zipEntry (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DZipUtilTest.java241 CentralDirectoryInfo zipEntry; in testPartipUnzip() local
247 zipEntry = in testPartipUnzip()
253 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
255 new LocalFileHeader(partialZipFile, (int) zipEntry.getLocalHeaderOffset()); in testPartipUnzip()
259 zipEntry, in testPartipUnzip()
261 zipEntry.getLocalHeaderOffset()); in testPartipUnzip()
268 zipEntry = in testPartipUnzip()
274 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
276 new LocalFileHeader(partialZipFile, (int) zipEntry.getLocalHeaderOffset()); in testPartipUnzip()
280 zipEntry, in testPartipUnzip()
[all …]
DZipUtilFuncTest.java152 ZipEntry zipEntry = new ZipEntry(fileName); in addToZipFile() local
153 zos.putNextEntry(zipEntry); in addToZipFile()
177 ZipEntry zipEntry = entries.nextElement(); in validateCentralDirectoryInfos() local
178 if (zipEntry.getName().equals(entry.getFileName())) { in validateCentralDirectoryInfos()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java284 ZipEntry zipEntry = new ZipEntry(buildPath(relativePathSegs)); in addToZip() local
285 out.putNextEntry(zipEntry); in addToZip()
500 public static void applyPermission(File targetFile, CentralDirectoryInfo zipEntry) in applyPermission() argument
507 if (zipEntry.getFilePermission() != 0) { in applyPermission()
509 targetFile.toPath(), FileUtil.unixModeToPosix(zipEntry.getFilePermission())); in applyPermission()
521 public static void unzipPartialZipFolder(File targetFile, CentralDirectoryInfo zipEntry) in unzipPartialZipFolder() argument
523 unzipPartialZipFile(null, targetFile, zipEntry, null, -1); in unzipPartialZipFolder()
556 CentralDirectoryInfo zipEntry, in unzipPartialZipFile() argument
561 if (zipEntry.getFileName().endsWith("/")) { in unzipPartialZipFile()
567 if (zipEntry.getCompressedSize() == 0) { in unzipPartialZipFile()
[all …]
/tools/platform-compat/java/com/android/annotationvisitor/
DJarReader.java57 .filter(zipEntry -> zipEntry.getName().endsWith(".class")) in stream()
58 .map(zipEntry -> openZipEntry(zipEntry)) in stream()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java1157 ZipEntry zipEntry = new ZipEntry("file"); in zipFileWithEocdMarkerInFileContents() local
1158 zipEntry.setMethod(ZipEntry.STORED); in zipFileWithEocdMarkerInFileContents()
1159 zipEntry.setCompressedSize(4); in zipFileWithEocdMarkerInFileContents()
1160 zipEntry.setSize(4); in zipFileWithEocdMarkerInFileContents()
1161 zipEntry.setCrc(Hashing.crc32().hashBytes(bytes).padToLong()); in zipFileWithEocdMarkerInFileContents()
1162 zos.putNextEntry(zipEntry); in zipFileWithEocdMarkerInFileContents()