/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | EmulatedStackFrameTest.java | 45 EmulatedStackFrame.StackFrameReader reader = new EmulatedStackFrame.StackFrameReader(); in testReaderWriter_allParamTypes() local 46 reader.attach(stackFrame); in testReaderWriter_allParamTypes() 48 assertTrue(reader.nextBoolean()); in testReaderWriter_allParamTypes() 49 assertEquals('a', reader.nextChar()); in testReaderWriter_allParamTypes() 50 assertEquals((short) 42, reader.nextShort()); in testReaderWriter_allParamTypes() 51 assertEquals(43, reader.nextInt()); in testReaderWriter_allParamTypes() 52 assertEquals(56, reader.nextLong()); in testReaderWriter_allParamTypes() 53 assertEquals(42.0f, reader.nextFloat()); in testReaderWriter_allParamTypes() 54 assertEquals(52.0, reader.nextDouble()); in testReaderWriter_allParamTypes() 55 assertEquals("foo", reader.nextReference(String.class)); in testReaderWriter_allParamTypes() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | InputStreamReaderTest.java | 97 private InputStreamReader reader; field in InputStreamReaderTest 109 reader = new InputStreamReader(in, "UTF-8"); in setUp() 149 reader.close(); in test_close() 151 reader.ready(); in test_close() 158 reader.close(); in test_close() 167 reader = new InputStreamReader(in, "utf-8"); in test_close() 170 int count = reader.read(new char[1]); in test_close() 176 reader.read(); in test_close() 182 assertFalse(reader.ready()); in test_close() 184 assertEquals(cs, Charset.forName(reader.getEncoding())); in test_close() [all …]
|
D | PipedOutputStreamTest.java | 30 PipedInputStream reader; field in PipedOutputStreamTest.PReader 33 return reader; in getReader() 38 reader = new PipedInputStream(out); in PReader() 46 return reader.available(); in available() 65 reader.read(buf, 0, nbytes); in read() 76 PReader reader; field in PipedOutputStreamTest 100 rt = new Thread(reader = new PReader(out)); in test_close() 126 rt = new Thread(reader = new PReader(out)); in test_connectLjava_io_PipedInputStream() 140 rt = new Thread(reader = new PReader(out)); in test_flush() 143 assertTrue("Bytes written before flush", reader.available() != 0); in test_flush() [all …]
|
D | PipedWriterTest.java | 60 PReader reader; field in PipedWriterTest 81 rdrThread = new Thread(reader = new PReader(rd), "Constructor(Reader)"); in test_ConstructorLjava_io_PipedReader() 87 reader.buf)); in test_ConstructorLjava_io_PipedReader() 99 reader = new PReader(rd); in test_close() 119 rdrThread = new Thread(reader = new PReader(rd), "connect"); in test_connectLjava_io_PipedReader() 125 reader.buf)); in test_connectLjava_io_PipedReader() 136 rdrThread = new Thread(reader = new PReader(pw), "flush"); in test_flush() 142 reader.buf)); in test_flush() 181 rdrThread = new Thread(reader = new PReader(pw), "writeCII"); in test_write$CII() 187 reader.buf)); in test_write$CII() [all …]
|
D | StreamTokenizerTest.java | 302 Reader reader = new CharArrayReader("t // t t t".toCharArray()); in test_slashSlashComments_withSSOpen() local 304 StreamTokenizer st = new StreamTokenizer(reader); in test_slashSlashComments_withSSOpen() 315 Reader reader = new CharArrayReader("// t".toCharArray()); in test_slashSlashComments_withSSOpen_NoComment() local 317 StreamTokenizer st = new StreamTokenizer(reader); in test_slashSlashComments_withSSOpen_NoComment() 328 Reader reader = new CharArrayReader("// t".toCharArray()); in test_slashSlashComments_withSSClosed() local 330 StreamTokenizer st = new StreamTokenizer(reader); in test_slashSlashComments_withSSClosed() 354 Reader reader = new CharArrayReader("t /* t */ t".toCharArray()); in test_slashStarComments_withSTOpen() local 356 StreamTokenizer st = new StreamTokenizer(reader); in test_slashStarComments_withSTOpen() 368 Reader reader = new CharArrayReader("t /* t */ t".toCharArray()); in test_slashStarComments_withSTClosed() local 370 StreamTokenizer st = new StreamTokenizer(reader); in test_slashStarComments_withSTClosed()
|
D | LineNumberReaderTest.java | 122 LineNumberReader reader = new LineNumberReader(new InputStreamReader( in test_readLine() local 124 assertEquals('\n', reader.read()); in test_readLine() 125 assertEquals(-1, reader.read()); in test_readLine() 126 reader = new LineNumberReader(new InputStreamReader( in test_readLine() 128 assertNotNull(reader.readLine()); in test_readLine() 129 assertNull(reader.readLine()); in test_readLine()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 251 final StackFrameReader reader = new StackFrameReader(); in transform() local 252 reader.attach(emulatedStackFrame); in transform() 255 final Object[] array = (Object[]) reader.nextReference(arrayClass); in transform() 256 final int index = reader.nextInt(); in transform() 280 final StackFrameReader reader = new StackFrameReader(); in transform() local 281 reader.attach(emulatedStackFrame); in transform() 284 final Object[] array = (Object[]) reader.nextReference(arrayClass); in transform() 285 final int index = reader.nextInt(); in transform() 286 final Object value = reader.nextReference(arrayClass.getComponentType()); in transform() 305 final StackFrameReader reader = new StackFrameReader(); in transform() local [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldInputStreamReaderTest.java | 37 private InputStreamReader reader; field in OldInputStreamReaderTest 49 reader = new InputStreamReader(in, "UTF-8"); in setUp() 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() [all …]
|
D | OldAndroidPipedStreamTest.java | 47 TestThread reader, writer; in testA() local 49 reader = new TestThread() { in testA() 71 reader.start(); in testA() 91 reader.join(60 * 1000); in testA() 98 assertEquals(2000, reader.countRead); in testA() 103 if (reader.exception != null) { in testA() 104 throw new Exception(reader.exception); in testA() 114 TestThread reader, writer; in testB() local 116 reader = new TestThread() { in testB() 150 reader.start(); in testB() [all …]
|
D | OldPipedWriterTest.java | 73 PReader reader; field in OldPipedWriterTest 96 readerThread = new Thread(reader = new PReader(rd), "Constructor(Reader)"); in test_ConstructorLjava_io_PipedReader() 106 reader.read(testLength)); in test_ConstructorLjava_io_PipedReader() 120 reader = new PReader(rd); in test_close() 139 readerThread = new Thread(reader = new PReader(rd), "connect"); in test_connectLjava_io_PipedReader() 148 reader.read(testLength)); in test_connectLjava_io_PipedReader() 161 readerThread = new Thread(reader = new PReader(pw), "flush"); in test_flush() 166 reader.read(testLength)); in test_flush() 205 readerThread = new Thread(reader = new PReader(pw), "writeCII"); in test_write$CII() 209 reader.read(testLength); in test_write$CII() [all …]
|
D | OldPipedOutputStreamTest.java | 27 PipedInputStream reader; field in OldPipedOutputStreamTest.PReader 30 return reader; in getReader() 35 reader = new PipedInputStream(out); in PReader() 44 return reader.available(); in available() 63 reader.read(buf, 0, nbytes); in read() 81 PReader reader; field in OldPipedOutputStreamTest 117 rt = new Thread(reader = new PReader(out)); in test_close() 159 rt = new Thread(reader = new PReader(out)); in test_flush() 162 assertTrue("Test 1: Bytes have been written before flush.", reader.available() != 0); in test_flush() 165 testString.substring(0, 10), reader.read(10)); in test_flush() [all …]
|
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
D | StreamSource.java | 103 public StreamSource(Reader reader) { in StreamSource() argument 104 setReader(reader); in StreamSource() 118 public StreamSource(Reader reader, String systemId) { in StreamSource() argument 119 setReader(reader); in StreamSource() 177 public void setReader(Reader reader) { in setReader() argument 178 this.reader = reader; in setReader() 188 return reader; in getReader() 271 private Reader reader; field in StreamSource
|
/libcore/luni/src/main/java/javax/xml/transform/sax/ |
D | SAXSource.java | 72 public SAXSource(XMLReader reader, InputSource inputSource) { in SAXSource() argument 73 this.reader = reader; in SAXSource() 98 public void setXMLReader(XMLReader reader) { in setXMLReader() argument 99 this.reader = reader; in setXMLReader() 108 return reader; in getXMLReader() 170 private XMLReader reader; field in SAXSource
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | SAXParserImpl.java | 37 private XMLReader reader; field in SAXParserImpl 50 reader = new ExpatReader(); in resetInternal() 52 reader.setFeature(entry.getKey(), entry.getValue()); in resetInternal() 73 parser = new XMLReaderAdapter(reader); in getParser() 82 return reader.getProperty(name); in getProperty() 87 return reader; in getXMLReader() 93 return reader.getFeature("http://xml.org/sax/features/namespaces"); in isNamespaceAware() 107 reader.setProperty(name, value); in setProperty()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | ExpatSaxParserTest.java | 362 ExpatReader reader = new ExpatReader(); in runDtdTest() local 364 reader.setContentHandler(handler); in runDtdTest() 365 reader.setDTDHandler(handler); in runDtdTest() 366 reader.setLexicalHandler(handler); in runDtdTest() 367 reader.parse(new InputSource(in)); in runDtdTest() 463 ExpatReader reader = new ExpatReader(); in testCdata() local 465 reader.setContentHandler(handler); in testCdata() 466 reader.setLexicalHandler(handler); in testCdata() 468 reader.parse(new InputSource(in)); in testCdata() 500 ExpatReader reader = new ExpatReader(); in testProcessingInstructions() local [all …]
|
D | NamespacedAttributesLookupTest.java | 102 XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); in getStartElements() local 103 reader.setFeature(SAX_PROPERTY_NS, namespace); in getStartElements() 104 reader.setFeature(SAX_PROPERTY_NS_PREFIXES, namespacePrefixes); in getStartElements() 105 reader.setContentHandler(new DefaultHandler() { in getStartElements() 136 reader.parse(new InputSource(new StringReader(xml))); in getStartElements()
|
D | SaxTest.java | 188 XMLReader reader = parser.getXMLReader(); in testDisableExternalEntities() local 189 reader.setFeature(feature, false); in testDisableExternalEntities() 190 assertFalse(reader.getFeature(feature)); in testDisableExternalEntities() 191 reader.setContentHandler(new ThrowingHandler() { in testDisableExternalEntities() 200 reader.parse(new InputSource(new StringReader(xml))); in testDisableExternalEntities() 206 XMLReader reader = parser.getXMLReader(); in parse() local 207 reader.setFeature("http://xml.org/sax/features/namespace-prefixes", prefixes); in parse() 208 reader.setFeature("http://xml.org/sax/features/namespaces", namespaces); in parse() 209 reader.setContentHandler(handler); in parse() 210 reader.parse(new InputSource(new StringReader(xml))); in parse()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Util.java | 57 public static Lines readLines(Reader reader) throws IOException { in readLines() argument 59 BufferedReader br = (reader instanceof BufferedReader) in readLines() 60 ? (BufferedReader) reader : new BufferedReader(reader); in readLines() 69 try (Reader reader = new FileReader(path.toFile())) { in readLines() argument 70 return readLines(reader); in readLines()
|
/libcore/ojluni/src/main/java/javax/sql/ |
D | RowSet.java | 983 Reader reader, in setCharacterStream() argument 1010 java.io.Reader reader, in setCharacterStream() argument 1139 java.io.Reader reader) throws SQLException; in setCharacterStream() argument 1166 java.io.Reader reader) throws SQLException; in setCharacterStream() argument 1575 void setClob(int parameterIndex, Reader reader, long length) in setClob() argument 1599 void setClob(int parameterIndex, Reader reader) in setClob() argument 1623 void setClob(String parameterName, Reader reader, long length) in setClob() argument 1661 void setClob(String parameterName, Reader reader) in setClob() argument 2080 void setNClob(String parameterName, Reader reader, long length) in setNClob() argument 2104 void setNClob(String parameterName, Reader reader) in setNClob() argument [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | MetaIndex.java | 165 BufferedReader reader = new BufferedReader(new FileReader(indexFile)); in registerDirectory() local 177 line = reader.readLine(); in registerDirectory() 180 reader.close(); in registerDirectory() 183 while ((line = reader.readLine()) != null) { in registerDirectory() 219 reader.close(); in registerDirectory()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | XMLReaderAdapterTest.java | 52 private XMLReader reader = new MockReader(logger); field in XMLReaderAdapterTest 54 private XMLReaderAdapter adapter = new XMLReaderAdapter(reader); 89 XMLReaderAdapter adapter = new XMLReaderAdapter(reader); in testXMLReaderAdapterXMLReader() 115 assertEquals(resolver, reader.getEntityResolver()); in testSetEntityResolver() 119 assertEquals(null, reader.getEntityResolver()); in testSetEntityResolver() 124 assertEquals(handler, reader.getDTDHandler()); in testSetDTDHandler() 128 assertEquals(null, reader.getDTDHandler()); in testSetDTDHandler() 149 assertEquals(handler, reader.getErrorHandler()); in testSetErrorHandler() 153 assertEquals(null, reader.getErrorHandler()); in testSetErrorHandler()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | PreparedStatement.java | 525 java.io.Reader reader, in setCharacterStream() argument 845 void setClob(int parameterIndex, Reader reader, long length) in setClob() argument 896 void setNClob(int parameterIndex, Reader reader, long length) in setNClob() argument 1044 java.io.Reader reader, in setCharacterStream() argument 1122 java.io.Reader reader) throws SQLException; in setCharacterStream() argument 1170 void setClob(int parameterIndex, Reader reader) in setClob() argument 1223 void setNClob(int parameterIndex, Reader reader) in setNClob() argument
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 390 public static void copyNext(StackFrameReader reader, StackFrameWriter writer, in copyNext() argument 393 writer.putNextReference(reader.nextReference(type), type); in copyNext() 395 writer.putNextBoolean(reader.nextBoolean()); in copyNext() 397 writer.putNextByte(reader.nextByte()); in copyNext() 399 writer.putNextChar(reader.nextChar()); in copyNext() 401 writer.putNextShort(reader.nextShort()); in copyNext() 403 writer.putNextInt(reader.nextInt()); in copyNext() 405 writer.putNextLong(reader.nextLong()); in copyNext() 407 writer.putNextFloat(reader.nextFloat()); in copyNext() 409 writer.putNextDouble(reader.nextDouble()); in copyNext()
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | SAXParser.java | 383 XMLReader reader = this.getXMLReader(); in parse() local 385 reader.setContentHandler(dh); in parse() 386 reader.setEntityResolver(dh); in parse() 387 reader.setErrorHandler(dh); in parse() 388 reader.setDTDHandler(dh); in parse() 390 reader.parse(is); in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ProcessManagerTest.java | 135 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); in readLine() local 136 return reader.readLine(); in readLine() 143 BufferedReader reader in logErrors() 147 while ((line = reader.readLine()) != null) { in logErrors() 210 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); in countLines() local 212 while (reader.readLine() != null) { in countLines()
|