Home
last modified time | relevance | path

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

/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java65 ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(outJar)); in main() local
79 zos.putNextEntry(newEntry); in main()
83 convert(bis, zos, targets); in main()
86 zos.write(bis.read()); in main()
88 zos.closeEntry(); in main()
92 zos.finish(); in main()
93 zos.close(); in main()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DArtStatsLogUtilsTest.java300 try (final ZipOutputStream zos = new ZipOutputStream(os)) { in zipFiles() argument
303 zos.putNextEntry(zipEntry); in zipFiles()
304 zos.write(Files.readAllBytes(file)); in zipFiles()
305 zos.closeEntry(); in zipFiles()
315 try (final ZipOutputStream zos = new ZipOutputStream(os)) { in createDexMetadata() argument
318 zos.putNextEntry(zipEntry); in createDexMetadata()
319 zos.write(entryName.getBytes()); in createDexMetadata()
320 zos.closeEntry(); in createDexMetadata()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DDumpTruck.java171 try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipfilePath))) { in zipUp() argument
177 zos.putNextEntry(entry); in zipUp()
180 zos.write(buf, 0, len); in zipUp()
182 zos.closeEntry(); in zipUp()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java153 final ZipOutputStream zos = new ZipOutputStream(os); in dumpAll() local
159 zos.putNextEntry(entry); in dumpAll()
164 FileUtils.copy(is, zos); in dumpAll()
169 zos.closeEntry(); in dumpAll()
173 IoUtils.closeQuietly(zos); in dumpAll()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1339 ZipOutputStream zos = new ZipOutputStream( in zipBugreport()
1341 addEntry(zos, info.bugreportFile.getName(), is); in zipBugreport()
1392 ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(tmpZip))) { in addDetailsToZipFileLocked()
1400 addEntry(zos, entryName, entry.getTime(), oldZip.getInputStream(entry)); in addDetailsToZipFileLocked()
1407 addEntry(zos, "title.txt", info.getTitle()); in addDetailsToZipFileLocked()
1408 addEntry(zos, "description.txt", info.getDescription()); in addDetailsToZipFileLocked()
1426 private static void addEntry(ZipOutputStream zos, String entry, String text) in addEntry() argument
1430 addEntry(zos, entry, new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8))); in addEntry()
1434 private static void addEntry(ZipOutputStream zos, String entryName, InputStream is) in addEntry() argument
1436 addEntry(zos, entryName, System.currentTimeMillis(), is); in addEntry()
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java880 try (ZipOutputStream zos = new ZipOutputStream( in writeZipFile() argument
883 zos.putNextEntry(entry); in writeZipFile()
885 zos.write(data, 0, data.length); in writeZipFile()
886 zos.closeEntry(); in writeZipFile()