Home
last modified time | relevance | path

Searched refs:zos (Results 1 – 6 of 6) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java218 try(ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {
224 zos.putNextEntry(entry);
225 zos.putNextEntry(new ZipEntry("foo/bar"));
226 zos.write(new byte[] { 1, 2, 3, 4 });
227 zos.closeEntry();
256 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {
262 zos.putNextEntry(fooDir);
263 zos.closeEntry();
311 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {
312 zos.putNextEntry(new ZipEntry("file1"));
[all …]
DExtraFieldTest.java92 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(mZipFile))) { in readEntryWithNoExtraField() argument
93 zos.putNextEntry(new ZipEntry("foo")); in readEntryWithNoExtraField()
94 zos.write(new byte[] { 1, 2, 3 }); in readEntryWithNoExtraField()
118 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(mZipFile))) { in readSingleExtraField() argument
121 zos.putNextEntry(ze); in readSingleExtraField()
122 zos.write(new byte[] { 1, 2, 3 }); in readSingleExtraField()
164 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(mZipFile))) { in readMultipleExtraFields() argument
168 zos.putNextEntry(ze); in readMultipleExtraFields()
169 zos.write(new byte[] { 1, 2, 3 }); in readMultipleExtraFields()
DAlignmentTest.java228 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {
232 zos.putNextEntry(ze);
234 zos.write(pattern);
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtilFuncTest.java129 ZipOutputStream zos = new ZipOutputStream(fos); in createLargeZipFile() local
131 zos.setLevel(ZipOutputStream.STORED); in createLargeZipFile()
142 addToZipFile(localLargeFile.getAbsolutePath(), zos); in createLargeZipFile() local
144 zos.close(); in createLargeZipFile()
149 private static void addToZipFile(String fileName, ZipOutputStream zos) throws IOException { in addToZipFile() argument
153 zos.putNextEntry(zipEntry); in addToZipFile()
157 zos.write(bytes, 0, length); in addToZipFile()
159 zos.closeEntry(); in addToZipFile()
/tools/metalava/src/main/java/com/android/tools/metalava/
DRewriteAnnotations.kt214 val zos = closer.register(ZipOutputStream(bos)) in <lambda>() constant
242 zos.putNextEntry(newEntry) in <lambda>()
253 zos.write(rewritten) in <lambda>()
255 zos.write(bytes) in <lambda>()
258 zis.copyTo(zos) in <lambda>()
261 zos.closeEntry() in <lambda>()
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DZip.kt47 ZipOutputStream(fos).use { zos -> in createZipFromDirectory() method
49 zip(it, it.relativeTo(input).path, zos) in createZipFromDirectory()