/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | BufferedReaderTest.java | 94 br.read(); in test_close() 113 br.read(buf, 0, 500); in test_markI() 121 br.read(buf, 0, 1000); in test_markI() 136 in.read(new char[14], 0, 14); in test_markI() 138 assertTrue("Wrong chars", in.read() == (char) 6 in test_markI() 139 && in.read() == (char) 7); in test_markI() 146 assertTrue("Wrong chars 2", in.read() == (char) 6 in test_markI() 147 && in.read() == (char) 7); in test_markI() 152 int result = br.read(carray); in test_markI() 157 assertEquals("Assert 3:", '3', br.read()); in test_markI() [all …]
|
D | BufferedInputStreamTest.java | 97 str.read(); in test_ConstructorLjava_io_InputStream() 110 str.read(); in test_ConstructorLjava_io_InputStreamI() 122 is.read(); in test_ConstructorLjava_io_InputStreamI() 129 is.read(); in test_ConstructorLjava_io_InputStreamI() 133 is.read(); in test_ConstructorLjava_io_InputStreamI() 198 public int read() { in test_close() 203 public int read(byte[] buf, int offset, int length) { in test_close() 234 bufin.read(new byte[100], 0, 99); in test_close() 249 is.read(buf1, 0, buf1.length); in test_markI() 251 is.read(buf2, 0, buf2.length); in test_markI() [all …]
|
D | InputStreamReaderTest.java | 67 public int read() { in read() method in InputStreamReaderTest.LimitedByteArrayInputStream 76 public int read(byte[] buffer, int offset, int length) { in read() method in InputStreamReaderTest.LimitedByteArrayInputStream 143 is.read(); in test_close() 170 int count = reader.read(new char[1]); in test_close() 176 reader.read(); in test_close() 326 assertEquals('T', (char) reader.read()); in test_read() 327 assertEquals('h', (char) reader.read()); in test_read() 328 assertEquals('i', (char) reader.read()); in test_read() 329 assertEquals('s', (char) reader.read()); in test_read() 330 assertEquals(' ', (char) reader.read()); in test_read() [all …]
|
D | PushbackReaderTest.java | 42 pbr.read(buf, 0, 5); in test_ConstructorLjava_io_Reader() 66 pbr.read(); in test_close() 101 pbr.read(); in test_read() 102 c = (char) pbr.read(); in test_read() 106 assertTrue("Wrong double byte character", reader.read() == '\u8765'); in test_read() 119 pbr.read(c, 0, 5); in test_read$CII() 133 pbr.read(null, 1, 0); in test_read_$CII_Exception() 138 pbr.read(charArray, 0, -1); in test_read_$CII_Exception() 143 pbr.read(charArray, -1, 0); in test_read_$CII_Exception() 148 pbr.read(charArray, 0, 0); in test_read_$CII_Exception() [all …]
|
D | LineNumberInputStreamTest.java | 60 lnis.read(); in test_getLineNumber() 61 lnis.read(); in test_getLineNumber() 79 assertEquals("Failed to mark", '0', lnis.read()); in test_markI() 86 assertEquals("Failed to read correct byte", '0', lnis.read()); in test_read() 88 .read()); in test_read() 90 lnis2.read() == '\n'); in test_read() 92 .read()); in test_read() 94 lnis2.read() == '\n'); in test_read() 96 .read()); in test_read() 104 lnis.read(buf, 0, 100); in test_read$BII() [all …]
|
D | FileInputStreamTest.java | 181 is.read(); in test_close() 195 fis1.read(); in test_close_shared_fd() 219 int c = isr.read(); in test_read() 231 is.read(buf1); in test_read$B() 244 is.read(buf1, 0, buf1.length); in test_read$BII() 253 in.read(null, 0, 0); in test_read$BII() 270 is.read(buf, -1, 0); in test_read_$BII_IOException() 280 is.read(buf, 0, -1); in test_read_$BII_IOException() 290 is.read(buf, -1, -1); in test_read_$BII_IOException() 300 is.read(buf, 0, 1001); in test_read_$BII_IOException() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SourceChannelTest.java | 69 int count = source.read(ByteBuffer.allocate(10)); in test_read_LByteBuffer_DataAvailable() 79 source.read(nullBuf); in test_read_LByteBuffer_Exception() 93 long count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed() 96 count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed() 100 count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed() 111 source.read(readBuf); in test_read_LByteBuffer_SourceClosed() 119 source.read(readBuf); in test_read_LByteBuffer_SourceClosed() 127 source.read(nullBuf); in test_read_LByteBuffer_SourceClosed() 135 source.read(bufArray); in test_read_LByteBuffer_SourceClosed() 143 source.read(nullBufArray); in test_read_LByteBuffer_SourceClosed() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldSequenceInputStreamTest.java | 58 si.read(); in test_read() 60 s1.charAt(1), (char) si.read()); in test_read() 66 s1.charAt(2), (char) si.read()); in test_read() 73 si.read(); in test_read() 81 si.read(); in test_read() 82 si.read(); in test_read() 86 si.read(); in test_read() 96 s2.charAt(0), (char) si.read()); in test_read() 103 "sequence input stream.", si.read() == -1); in test_read() 108 assertEquals("IOException on second stream should not affect at this time!", 72, si.read()); in test_read_exc() [all …]
|
D | OldFilterInputStreamTest.java | 75 is.read(); in test_close() 100 is.read(buf1, 0, bufSize); in test_markI() 102 is.read(buf1, 0, bufSize); in test_markI() 108 is.read(buf2, 0, bufSize); in test_markI() 117 is.read(buf1, 0, bufSize); in test_markI() 119 is.read(buf1, 0, bufSize); in test_markI() 121 is.read(buf2, 0, bufSize); in test_markI() 143 int c = is.read(); in test_read() 149 is.read(); in test_read() 159 is.read(buf1); in test_read$B() [all …]
|
D | OldBufferedReaderTest.java | 63 br.read(); in test_close() 92 br.read(buf, 0, 500); in test_markI() 102 br.read(buf, 0, 1000); in test_markI() 116 in.read(new char[14], 0, 14); in test_markI() 118 assertTrue("Wrong chars", in.read() == (char) 6 in test_markI() 119 && in.read() == (char) 7); in test_markI() 130 assertTrue("Wrong chars 2", in.read() == (char) 6 in test_markI() 131 && in.read() == (char) 7); in test_markI() 147 int r = br.read(); in test_read() 151 assertTrue("Wrong double byte character", br.read() == '\u8765'); in test_read() [all …]
|
D | OldInputStreamReaderTest.java | 74 reader.read(new char[3], -1, 0); in testReadcharArrayintint() 80 reader.read(new char[3], 0, -1); in testReadcharArrayintint() 86 reader.read(new char[3], 4, 0); in testReadcharArrayintint() 92 reader.read(new char[3], 3, 1); in testReadcharArrayintint() 98 reader.read(new char[3], 1, 3); in testReadcharArrayintint() 104 reader.read(new char[3], 0, 4); in testReadcharArrayintint() 111 reader.read(null, 0, 0); in testReadcharArrayintint() 117 assertEquals(0, reader.read(new char[3], 3, 0)); in testReadcharArrayintint() 119 assertEquals(0, reader.read(chars, 0, 0)); in testReadcharArrayintint() 121 assertEquals(3, reader.read(chars, 0, 3)); in testReadcharArrayintint() [all …]
|
D | OldPushbackReaderTest.java | 41 pbr.read(buf, 0, 5); in test_ConstructorLjava_io_Reader() 114 assertEquals("Wrong value read!", 66, tobj.read()); in test_read() 117 tobj.read(); in test_read() 132 tobj.read(buf, 6, 5); in test_read$CII() 137 tobj.read(buf, 6, 5); in test_read$CII() 146 pbr.read(c, 0, 5); in test_read$CII() 150 assertEquals(0, pbr.read(c, 0, 0)); in test_read$CII() 151 assertEquals(c.length, pbr.read(c, 0, c.length)); in test_read$CII() 152 assertEquals(0, pbr.read(c, c.length, 0)); in test_read$CII() 168 pbr.read(nullCharArray, 0, 1); in test_read_$CII_Exception() [all …]
|
D | OldCharArrayReaderTest.java | 75 'W', cr.read()); in test_Constructor$CII() 85 cr.read(); in test_close() 100 cr.read(); in test_markI() 103 'W', cr.read()); in test_markI() 128 'H', cr.read()); in test_read() 131 cr.read() == '\u8765'); in test_read() 135 cr.read(); in test_read() 149 cr.read(c, 1, 10); in test_read$CII() 155 cr.read(null, 1, 0); in test_read$CII() 162 cr.read(c , -1, 1); in test_read$CII() [all …]
|
D | OldLineNumberInputStreamTest.java | 50 '0', lnis.read()); in test_read() 52 '0', lnis2.read()); in test_read() 54 '\n', lnis2.read()); in test_read() 56 '1', lnis2.read()); in test_read() 58 '\n', lnis2.read()); in test_read() 60 '2', lnis2.read()); in test_read() 64 lnis.read(); in test_read() 73 lnis.read(buf, 0, 100); in test_read$BII() 79 lnis.read(buf, 0, 100); in test_read$BII() 90 lnis.read(buf, -1, 1); in test_read$BII_Exception() [all …]
|
D | OldReaderTest.java | 37 assertEquals("Wrong return value!", 4, simple.read(buf)); in test_Reader_CharBufferChar() 40 simple.read(buf); in test_Reader_CharBufferChar() 45 simple.read(buf); in test_Reader_CharBufferChar() 55 assertEquals("Wrong return value!", 4, simple.read(buf)); in test_Read_$C() 57 simple.read(buf); in test_Read_$C() 61 simple.read(buf); in test_Read_$C() 74 int res = simple.read(); in test_read() 76 res = simple.read(); in test_read() 80 simple.read(); in test_read() 99 simple.read(buf); in test_skip() [all …]
|
D | OldAndroidBufferedInputStreamTest.java | 41 Assert.assertEquals(str, read(a)); in testBufferedInputStream() 48 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); in testBufferedInputStream() 62 assertEquals('A', d.read()); in testBufferedInputStream() 64 assertEquals('b', d.read()); in testBufferedInputStream() 65 assertEquals('C', d.read()); in testBufferedInputStream() 67 assertEquals('b', d.read()); in testBufferedInputStream() 76 assertEquals(str, read(e, 10000)); in testBufferedInputStream() 82 public static String read(InputStream a) throws IOException { in read() method in OldAndroidBufferedInputStreamTest 86 r = a.read(); in read() 98 r = a.read(); in skipRead() [all …]
|
D | OldPushbackInputStreamTest.java | 111 assertEquals("Test 1: Incorrect byte read;", 66, tobj.read()); in test_read() 114 tobj.read(); in test_read() 121 fileString.getBytes()[0], pis.read()); in test_read() 129 tobj.read(buf, 6, 5); in test_read$BII() 134 tobj.read(buf, 6, 5); in test_read$BII() 147 tobj.read(buf, -1, 1); in test_read$BII_Exception() 153 tobj.read(buf, 0, -1); in test_read$BII_Exception() 159 tobj.read(buf, 10, 1); in test_read$BII_Exception() 187 pis.read(buf, 0, buf.length); in test_skipJ() 193 pis.read(buf2, 0, buf2.length); in test_skipJ() [all …]
|
D | OldInputStreamTest.java | 42 public int read() throws IOException { in read() method in OldInputStreamTest.MockInputStream 95 is.read(b), 10); in test_read$B() 105 bytesRead = is.read(b); in test_read$B() 116 bytesRead = is.read(b); in test_read$B() 126 bytesRead = is.read(b, -1, 5); in test_read$BII_Exception() 134 bytesRead = is.read(b, 5, -1); in test_read$BII_Exception() 143 bytesRead = is.read(b, 6, 5); in test_read$BII_Exception() 151 bytesRead = is.read(b, 6, 4); in test_read$BII_Exception() 159 bytesRead = is.read(b, 6, 0); in test_read$BII_Exception() 175 is.read(b, 0, 5), 5); in test_read$BII() [all …]
|
/libcore/ojluni/src/main/java/java/sql/ |
D | DataTruncation.java | 61 boolean read, int dataSize, in DataTruncation() argument 63 super("Data truncation", read == true?"01004":"22001"); in DataTruncation() 66 this.read = read; in DataTruncation() 94 boolean read, int dataSize, in DataTruncation() argument 96 super("Data truncation", read == true?"01004":"22001",cause); in DataTruncation() 99 this.read = read; in DataTruncation() 134 return read; in getRead() 171 private boolean read; field in DataTruncation
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterInputStreamTest.java | 66 assertEquals(120, dis.read()); in testAvailable() 68 assertEquals(22, dis.read(buf, 0, 1024)); in testAvailable() 70 assertEquals(-1, dis.read()); in testAvailable() 96 dis.read(buf, 0, 1024); in testClose() 134 assertEquals(120, dis.read()); in testRead() 136 assertEquals(156, dis.read()); in testRead() 138 assertEquals(243, dis.read()); in testRead() 142 dis.read(); in testRead() 160 while ((bytesRead = dis.read(result, count, 4)) != -1) { in testRead_golden() 193 assertEquals(23, dis.read(buf1, 0, 256)); in testReadByteArrayIntInt() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | TelnetInputStream.java | 90 public int read() throws IOException { in read() method in TelnetInputStream 92 return super.read(); in read() 106 if ((c = super.read()) == '\r') { /* CR */ in read() 107 switch (c = super.read()) { in read() 128 public int read(byte bytes[]) throws IOException { in read() method in TelnetInputStream 129 return read(bytes, 0, bytes.length); in read() 136 public int read(byte bytes[], int off, int length) throws IOException { in read() method in TelnetInputStream 138 return super.read(bytes, off, length); in read() 144 c = read(); in read()
|
/libcore/ojluni/src/main/java/java/io/ |
D | StreamTokenizer.java | 498 private int read() throws IOException { in read() method in StreamTokenizer 500 return reader.read(); in read() 502 return input.read(); in read() 537 c = read(); in nextToken() 544 c = read(); in nextToken() 563 c = read(); in nextToken() 565 c = read(); in nextToken() 573 c = read(); in nextToken() 583 c = read(); in nextToken() 601 c = read(); in nextToken() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldFileChannelTest.java | 154 fis.read(readBuffer); in test_forceZ() 163 fis.read(readBuffer); in test_forceZ() 263 readOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 270 writeOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 277 readWriteFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 286 readOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 294 writeOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 302 readWriteFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument() 312 readOnlyFileChannel.read(null, 0, 1); in test_read$LByteBufferII_Null() 318 readOnlyFileChannel.read(null, 0, 3); in test_read$LByteBufferII_Null() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputStream.java | 192 if (buffer.read() != DerValue.tag_Integer) { in getInteger() 204 if (buffer.read() != DerValue.tag_Integer) { in getBigInteger() 218 if (buffer.read() != DerValue.tag_Integer) { in getPositiveBigInteger() 230 if (buffer.read() != DerValue.tag_Enumerated) { in getEnumerated() 241 if (buffer.read() != DerValue.tag_BitString) in getBitString() 252 if (buffer.read() != DerValue.tag_BitString) in getUnalignedBitString() 261 int excessBits = buffer.read(); in getUnalignedBitString() 272 if ((length != 0) && (buffer.read(repn) != length)) { in getUnalignedBitString() 283 if (buffer.read() != DerValue.tag_OctetString) in getOctetString() 288 if ((length != 0) && (buffer.read(retval) != length)) in getOctetString() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | DigestInputStream2Test.java | 68 int c = dis.read(); in test_onZ() 81 c = dis.read(); in test_onZ() 98 while ((c = dis.read()) > -1) { in test_read() 99 int d = inStream1.read(); in test_read() 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII() 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); in test_read$BII() 140 is.read(buf, -1, 0); in test_read$BII_Exception() 148 is.read(buf, -1, 0); in test_read$BII_Exception() 155 is.read(buf, 0, -1); in test_read$BII_Exception() 162 is.read(buf, -1, -1); in test_read$BII_Exception() [all …]
|