Home
last modified time | relevance | path

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

/system/timezone/testing/src/main/java/libcore/timezone/testing/
DZoneInfoTestHelper.java110 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in build() local
145 writeHeader(baos, magic, tzh_timecnt_32, tzh_typecnt, tzh_charcnt, tzh_leapcnt, in build()
147 writeIntList(baos, transitionTimes32Bit); in build()
148 writeByteList(baos, transitionTypes32Bit); in build()
149 writeTypes(baos, offsetsSeconds, isDsts); in build()
150 writeTrailingUnusued32BitData(baos, tzh_charcnt, tzh_leapcnt, tzh_ttisstdcnt, in build()
154 writeHeader(baos, magic, tzh_timecnt_64, tzh_typecnt, tzh_charcnt, tzh_leapcnt, in build()
156 writeLongArray(baos, transitionTimes64Bit); in build()
157 writeByteArray(baos, transitionTypes64Bit); in build()
158 writeTypes(baos, offsetsSeconds, isDsts); in build()
[all …]
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java56 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testGetDistroVersion() local
57 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testGetDistroVersion()
62 TimeZoneDistro distro = new TimeZoneDistro(baos.toByteArray()); in testGetDistroVersion()
69 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testGetDistroVersion_closesStream() local
70 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testGetDistroVersion_closesStream()
74 byte[] bytes = baos.toByteArray(); in testGetDistroVersion_closesStream()
85 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExtractTo_closesStream() local
86 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testExtractTo_closesStream()
90 byte[] bytes = baos.toByteArray(); in testExtractTo_closesStream()
100 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExtractZipSafely_goodZip() local
[all …]
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DXmlParserTest.java60 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in testPurchaseSimple() argument
62 new purchase.simple.XmlWriter(new PrintWriter(baos))) { in testPurchaseSimple()
65 actualStr = new String(baos.toByteArray()); in testPurchaseSimple()
102 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in testSimpleComplexContent() argument
104 new simple.complex.content.XmlWriter(new PrintWriter(baos))) { in testSimpleComplexContent()
107 actualStr = new String(baos.toByteArray()); in testSimpleComplexContent()
213 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in testPredefinedTypes() argument
215 new predefined.types.XmlWriter(new PrintWriter(baos))) { in testPredefinedTypes()
218 actualStr = new String(baos.toByteArray()); in testPredefinedTypes()
240 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in testSimpleType() argument
[all …]
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/
DTimeZoneDistroBuilder.java123 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildUnvalidatedBytes() local
124 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in buildUnvalidatedBytes()
146 return baos.toByteArray(); in buildUnvalidatedBytes()
185 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readFileAsByteArray() local
189 baos.write(buffer, 0, count); in readFileAsByteArray()
192 return baos.toByteArray(); in readFileAsByteArray()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java108 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in getEntryContents() argument
111 baos.write(buffer, 0, count); in getEntryContents()
113 return baos.toByteArray(); in getEntryContents()
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java826 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in createTimeZoneDistroWithVersionBytes() local
827 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in createTimeZoneDistroWithVersionBytes()
841 return new TimeZoneDistro(baos.toByteArray()); in createTimeZoneDistroWithVersionBytes()