Searched refs:baos (Results 1 – 6 of 6) sorted by relevance
/system/timezone/testing/src/main/java/libcore/timezone/testing/ |
D | ZoneInfoTestHelper.java | 123 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in build() local 126 writeInt(baos, magic); in build() 130 baos.write(i); in build() 136 writeInt(baos, transitionsCount); in build() 141 writeInt(baos, typesCount); in build() 143 writeInt(baos, 0xdeadbeef); in build() 146 writeIntArray(baos, transitionTimes); in build() 149 writeByteArray(baos, transitionTypes); in build() 153 writeInt(baos, offsetsSeconds[i]); in build() 154 writeByte(baos, isDsts[i]); in build() [all …]
|
/system/timezone/distro/core/src/test/com/android/timezone/distro/ |
D | TimeZoneDistroTest.java | 57 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testGetDistroVersion() local 58 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testGetDistroVersion() 63 TimeZoneDistro distro = new TimeZoneDistro(baos.toByteArray()); in testGetDistroVersion() 70 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testGetDistroVersion_closesStream() local 71 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testGetDistroVersion_closesStream() 75 byte[] bytes = baos.toByteArray(); in testGetDistroVersion_closesStream() 86 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExtractTo_closesStream() local 87 try (ZipOutputStream zipOutputStream = new ZipOutputStream(baos)) { in testExtractTo_closesStream() 91 byte[] bytes = baos.toByteArray(); in testExtractTo_closesStream() 101 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExtractZipSafely_goodZip() local [all …]
|
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/ |
D | TimeZoneDistroBuilder.java | 112 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildUnvalidatedBytes() local 113 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in buildUnvalidatedBytes() 131 return baos.toByteArray(); in buildUnvalidatedBytes() 170 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readFileAsByteArray() local 174 baos.write(buffer, 0, count); in readFileAsByteArray() 177 return baos.toByteArray(); in readFileAsByteArray()
|
/system/tools/xsdc/tests/src/com/android/xsdc/tests/ |
D | TestHelper.java | 55 private ByteArrayOutputStream baos; field in TestHelper.InMemoryJavaClassObject 60 baos = new ByteArrayOutputStream(); in InMemoryJavaClassObject() 65 return baos.toByteArray(); in getBytes() 70 return baos; in openOutputStream()
|
/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | TimeZoneDistro.java | 105 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in getEntryContents() argument 108 baos.write(buffer, 0, count); in getEntryContents() 110 return baos.toByteArray(); in getEntryContents()
|
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstallerTest.java | 776 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in createTimeZoneDistroWithVersionBytes() local 777 try (ZipOutputStream zos = new ZipOutputStream(baos)) { in createTimeZoneDistroWithVersionBytes() 791 return new TimeZoneDistro(baos.toByteArray()); in createTimeZoneDistroWithVersionBytes()
|