Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 2 of 2) sorted by relevance

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java76 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testGetDistroVersion_closesStream() local
77 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testGetDistroVersion_closesStream()
79 inputStream.assertClosed(); in testGetDistroVersion_closesStream()
92 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testExtractTo_closesStream() local
93 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testExtractTo_closesStream()
96 inputStream.assertClosed(); in testExtractTo_closesStream()
111 TestInputStream inputStream = in testExtractZipSafely_goodZip() local
113 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in testExtractZipSafely_goodZip()
114 inputStream.assertClosed(); in testExtractZipSafely_goodZip()
144 TestInputStream inputStream = new TestInputStream( in doExtractZipFails() local
[all …]
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java65 private final InputStream inputStream; field in TimeZoneDistro
78 public TimeZoneDistro(InputStream inputStream) { in TimeZoneDistro() argument
79 this.inputStream = inputStream; in TimeZoneDistro()
87 byte[] contents = getEntryContents(inputStream, DISTRO_VERSION_FILE_NAME); in getDistroVersion()
126 extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in extractTo()