Home
last modified time | relevance | path

Searched refs:zos (Results 1 – 5 of 5) 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/javatests/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/metalava/src/main/java/com/android/tools/metalava/
DExtractAnnotations.kt110 JarOutputStream(BufferedOutputStream(fileOutputStream)).use { zos -> in <lambda>() method
123 zos.putNextEntry(outEntry) in <lambda>()
160 zos.write(bytes) in <lambda>()
161 zos.closeEntry() in <lambda>()