Home
last modified time | relevance | path

Searched refs:pis (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPushbackInputStreamTest.java27 PushbackInputStream pis; field in PushbackInputStreamTest
65 pis = new PushbackInputStream(new ByteArrayInputStream("Hello" in test_ConstructorLjava_io_InputStream()
67 pis.unread("He".getBytes()); in test_ConstructorLjava_io_InputStream()
81 pis = new PushbackInputStream(new ByteArrayInputStream("Hello" in test_ConstructorLjava_io_InputStreamI()
83 pis.unread("Hellos".getBytes()); in test_ConstructorLjava_io_InputStreamI()
112 assertTrue("Available returned incorrect number of bytes", pis in test_available()
124 assertTrue("markSupported returned true", !pis.markSupported()); in test_markSupported()
133 assertTrue("Incorrect byte read", pis.read() == fileString in test_read()
148 pis.read(buf, 0, buf.length); in test_read$BII()
162 pis.skip(50); in test_skipJ()
[all …]
DPipedInputStreamTest.java56 PipedInputStream pis; field in PipedInputStreamTest
73 pis = new PipedInputStream(new PipedOutputStream()); in test_ConstructorLjava_io_PipedOutputStream()
74 pis.available(); in test_ConstructorLjava_io_PipedOutputStream()
79 pis = new PipedInputStream(); in test_readException()
83 pis.connect(pos); in test_readException()
87 pis.read(); in test_readException()
93 pis.close(); in test_readException()
104 pis = new PipedInputStream(); in test_available()
107 pis.connect(pos); in test_available()
115 + pis.available(), pis.available() == 1000); in test_available()
[all …]
DPipedOutputStreamTest.java165 PipedInputStream pis = new PipedInputStream(); in test_write$BII_2() local
168 pos = new PipedOutputStream(pis); in test_write$BII_2()
176 pis = new PipedInputStream(); in test_write$BII_2()
177 PipedOutputStream out = new PipedOutputStream(pis); in test_write$BII_2()
184 pis = new PipedInputStream(); in test_write$BII_2()
185 pos = new PipedOutputStream(pis); in test_write$BII_2()
190 pis = new PipedInputStream(); in test_write$BII_2()
191 pos = new PipedOutputStream(pis); in test_write$BII_2()
199 pis = new PipedInputStream(); in test_write$BII_2()
200 pos = new PipedOutputStream(pis); in test_write$BII_2()
/libcore/luni/src/test/java/libcore/java/io/
DOldPushbackInputStreamTest.java29 PushbackInputStream pis; field in OldPushbackInputStreamTest
36 pis = new PushbackInputStream(new ByteArrayInputStream("Hello" in test_ConstructorLjava_io_InputStream()
38 pis.unread("He".getBytes()); in test_ConstructorLjava_io_InputStream()
51 pis = new PushbackInputStream(bas, 0); in test_ConstructorLjava_io_InputStreamI()
57 pis = new PushbackInputStream(bas, -1); in test_ConstructorLjava_io_InputStreamI()
63 pis = new PushbackInputStream(bas , 5); in test_ConstructorLjava_io_InputStreamI()
65 pis.unread("Hello world".getBytes()); in test_ConstructorLjava_io_InputStreamI()
104 assertTrue("markSupported returned true", !pis.markSupported()); in test_markSupported()
121 fileString.getBytes()[0], pis.read()); in test_read()
186 pis.skip(50); in test_skipJ()
[all …]
DOldPipedOutputStreamTest.java106 PipedInputStream pis = new PipedInputStream(new PipedOutputStream()); in test_ConstructorLjava_io_PipedInputStream() local
108 out = new PipedOutputStream(pis); in test_ConstructorLjava_io_PipedInputStream()
DOldBufferedReaderTest.java383 final PipedInputStream pis = new PipedInputStream(); in test_8778372() local
384 final PipedOutputStream pos = new PipedOutputStream(pis); in test_8778372()
393 BufferedReader br = new BufferedReader(new InputStreamReader(pis)); in test_8778372()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java5633 final PipedInputStream pis = new PipedInputStream(); in test_hasNextLine_sequence() local
5635 final Scanner scanner = new Scanner(pis); in test_hasNextLine_sequence()
5636 pis.connect(pos); in test_hasNextLine_sequence()
5657 pis.close(); in test_hasNextLine_sequence()