/libcore/luni/src/test/java/libcore/java/io/ |
D | OldOutputStreamWriterTest.java | 57 OutputStreamWriter writer = null; in test_ConstructorLjava_io_OutputStream() local 60 writer = new OutputStreamWriter(null); in test_ConstructorLjava_io_OutputStream() 67 writer = new OutputStreamWriter(new Support_OutputStream()); in test_ConstructorLjava_io_OutputStream() 75 Charset.forName(writer.getEncoding())); in test_ConstructorLjava_io_OutputStream() 77 if (writer != null) writer.close(); in test_ConstructorLjava_io_OutputStream() 124 OutputStreamWriter writer; in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() local 129 writer = new OutputStreamWriter(null, cs); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() 136 writer = new OutputStreamWriter(out, (Charset) null); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() 142 writer = new OutputStreamWriter(out, cs); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() 144 cs, Charset.forName(writer.getEncoding())); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() [all …]
|
D | OldAndroidPipedStreamTest.java | 47 TestThread reader, writer; in testA() local 73 writer = new TestThread() { in testA() 86 writer.start(); in testA() 92 writer.join(1000); in testA() 100 if (writer.exception != null) { in testA() 101 throw new Exception(writer.exception); in testA() 114 TestThread reader, writer; in testB() local 152 writer = new TestThread() { in testB() 171 writer.start(); in testB() 177 writer.join(1000); in testB() [all …]
|
D | OutputStreamWriterTest.java | 35 OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8"); in testFlushCount() local 39 writer.write(chars); in testFlushCount() 42 writer.flush(); in testFlushCount() 44 writer.close(); in testFlushCount() 54 OutputStreamWriter writer = new OutputStreamWriter(baos, "UTF-32BE"); in testFlush() local 58 writer.write(cs, 0, cs.length); in testFlush() 59 writer.flush(); in testFlush() 62 writer.write(0xdf9f); in testFlush() 64 writer.close(); in testFlush()
|
D | OldCharArrayWriterTest.java | 95 CharArrayWriter writer = new CharArrayWriter(10); in test_appendLjava_langCharSequenceII() local 99 writer.append(testString, -1, 0); in test_appendLjava_langCharSequenceII() 105 writer.append(testString, 0, -1); in test_appendLjava_langCharSequenceII() 111 writer.append(testString, 1, 0); in test_appendLjava_langCharSequenceII() 117 writer.append(testString, 1, testString.length() + 1); in test_appendLjava_langCharSequenceII() 123 writer.append(testString, 1, 3); in test_appendLjava_langCharSequenceII() 124 writer.flush(); in test_appendLjava_langCharSequenceII() 126 testString.substring(1, 3), writer.toString()); in test_appendLjava_langCharSequenceII() 127 writer.close(); in test_appendLjava_langCharSequenceII()
|
D | InterruptedStreamTest.java | 78 PipedWriter writer = new PipedWriter(); in testInterruptPipedReader() local 79 PipedReader reader = new PipedReader(writer); in testInterruptPipedReader() 84 final PipedWriter writer = new PipedWriter(); in testInterruptPipedWriter() local 85 new PipedReader(writer); in testInterruptPipedWriter() 86 testInterruptWriter(writer); in testInterruptPipedWriter() 166 private void testInterruptWriter(final PipedWriter writer) throws Exception { in testInterruptWriter() argument 171 writer.write(new char[BUFFER_SIZE]); in testInterruptWriter()
|
D | OldFileWriterTest.java | 129 FileWriter writer = new FileWriter(f); in test_handleEarlyEOFChar_2() local 130 writer.write(inputStr); in test_handleEarlyEOFChar_2() 131 writer.close(); in test_handleEarlyEOFChar_2()
|
D | OldFilterWriterTest.java | 31 public MyFilterWriter(java.io.Writer writer) { in MyFilterWriter() argument 32 super(writer); in MyFilterWriter()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | EmulatedStackFrameTest.java | 33 EmulatedStackFrame.StackFrameWriter writer = new EmulatedStackFrame.StackFrameWriter(); in testReaderWriter_allParamTypes() local 34 writer.attach(stackFrame); in testReaderWriter_allParamTypes() 36 writer.putNextBoolean(true); in testReaderWriter_allParamTypes() 37 writer.putNextChar('a'); in testReaderWriter_allParamTypes() 38 writer.putNextShort((short) 42); in testReaderWriter_allParamTypes() 39 writer.putNextInt(43); in testReaderWriter_allParamTypes() 40 writer.putNextLong(56); in testReaderWriter_allParamTypes() 41 writer.putNextFloat(42.0f); in testReaderWriter_allParamTypes() 42 writer.putNextDouble(52.0); in testReaderWriter_allParamTypes() 43 writer.putNextReference("foo", String.class); in testReaderWriter_allParamTypes() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamWriterTest.java | 42 private OutputStreamWriter writer; field in OutputStreamWriterTest 64 writer = new OutputStreamWriter(out, "utf-8"); in setUp() 76 writer.close(); in tearDown() 90 writer.flush(); in testClose() 91 writer.close(); in testClose() 93 writer.flush(); in testClose() 101 writer.write(source); in testFlush() 102 writer.flush(); in testFlush() 115 writer.write((char[]) null, -1, -1); in testWritecharArrayintint() 123 writer.write((char[]) null, 1, -1); in testWritecharArrayintint() [all …]
|
D | CharArrayWriterTest.java | 203 CharArrayWriter writer = new CharArrayWriter(10); in test_appendChar() local 204 writer.append(testChar); in test_appendChar() 205 writer.flush(); in test_appendChar() 206 assertEquals(String.valueOf(testChar), writer.toString()); in test_appendChar() 207 writer.close(); in test_appendChar() 215 CharArrayWriter writer = new CharArrayWriter(10); in test_appendCharSequence() local 216 writer.append(testString); in test_appendCharSequence() 217 writer.flush(); in test_appendCharSequence() 218 assertEquals(testString, writer.toString()); in test_appendCharSequence() 219 writer.close(); in test_appendCharSequence() [all …]
|
D | WriterTest.java | 30 MockWriter writer = new MockWriter(20); in test_appendChar() local 31 writer.append(testChar); in test_appendChar() 32 assertEquals(String.valueOf(testChar), String.valueOf(writer in test_appendChar() 34 writer.close(); in test_appendChar() 42 MockWriter writer = new MockWriter(20); in test_appendCharSequence() local 43 writer.append(testString); in test_appendCharSequence() 44 assertEquals(testString, String.valueOf(writer.getContents())); in test_appendCharSequence() 45 writer.close(); in test_appendCharSequence() 54 MockWriter writer = new MockWriter(20); in test_appendCharSequenceIntInt() local 55 writer.append(testString, 1, 3); in test_appendCharSequenceIntInt() [all …]
|
D | WriterTesterTest.java | 93 private CharArrayWriter writer; field in WriterTesterTest.CharArrayWriterCharSinkTester 97 writer = new CharArrayWriter(); in create() 98 return writer; in create() 103 return writer.toCharArray(); in getChars() 141 private StringWriter writer; field in WriterTesterTest.StringWriterCharSinkTester 145 writer = new StringWriter(); in create() 146 return writer; in create() 151 return writer.toString().toCharArray(); in getChars()
|
D | ConsoleTest.java | 63 assertFalse(console.writer().checkError()); in test_flush() 102 PrintWriter writer1 = console.writer(); in test_writer() 103 PrintWriter writer2 = console.writer(); in test_writer()
|
D | PrintWriterTest.java | 147 PrintWriter writer = new PrintWriter(file); in test_ConstructorLjava_io_File() local 148 writer.close(); in test_ConstructorLjava_io_File() 160 PrintWriter writer = new PrintWriter(file, in test_ConstructorLjava_io_File_Ljava_lang_String() local 162 writer.close(); in test_ConstructorLjava_io_File_Ljava_lang_String() 174 PrintWriter writer = new PrintWriter(file.getPath()); in test_ConstructorLjava_lang_String() local 175 writer.close(); in test_ConstructorLjava_lang_String() 187 PrintWriter writer = new PrintWriter(file.getPath(), in test_ConstructorLjava_lang_String_Ljava_lang_String() local 189 writer.close(); in test_ConstructorLjava_lang_String_Ljava_lang_String()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 259 final StackFrameWriter writer = new StackFrameWriter(); in transform() local 260 writer.attach(emulatedStackFrame); in transform() 261 writer.makeReturnValueAccessor(); in transform() 262 writer.putNextReference(array[index], arrayClass.getComponentType()); in transform() 308 final StackFrameWriter writer = new StackFrameWriter(); in transform() local 309 writer.attach(emulatedStackFrame); in transform() 310 writer.makeReturnValueAccessor(); in transform() 311 writer.putNextReference(reader.nextReference(type), type); in transform() 373 final StackFrameWriter writer = new StackFrameWriter(); in transform() local 374 writer.attach(emulatedStackFrame); in transform() [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | StreamHandler.java | 78 private volatile Writer writer; field in StreamHandler 146 writer = new OutputStreamWriter(output); in setOutputStream() 149 writer = new OutputStreamWriter(output, encoding); in setOutputStream() 181 writer = new OutputStreamWriter(output); in setEncoding() 183 writer = new OutputStreamWriter(output, encoding); in setEncoding() 221 writer.write(getFormatter().getHead(this)); in publish() 224 writer.write(msg); in publish() 246 if (writer == null || record == null) { in isLoggable() 257 if (writer != null) { in flush() 259 writer.flush(); in flush() [all …]
|
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
D | StreamResult.java | 70 public StreamResult(Writer writer) { in StreamResult() argument 71 setWriter(writer); in StreamResult() 124 public void setWriter(Writer writer) { in setWriter() argument 125 this.writer = writer; in setWriter() 135 return writer; in getWriter() 193 private Writer writer; field in StreamResult
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | StandardCharsetsEncoderTest.java | 145 try (BufferedWriter writer = createAsciiWriter(new FileOutputStream(fileName))) { in dumpEncodings() argument 146 writeLine(writer, "# Reference encodings for " + encoder.charset().name() in dumpEncodings() 148 writeLine(writer, "# Encodings are used by " + StandardCharsetsEncoderTest.class); in dumpEncodings() 149 writeLine(writer, "# {codepoint}:{canEncode}:{encoding bytes}"); in dumpEncodings() 153 writeLine(writer, codePointInfo); in dumpEncodings() 158 private static void writeLine(BufferedWriter writer, String text) throws IOException { in writeLine() argument 159 writer.append(text); in writeLine() 160 writer.newLine(); in writeLine()
|
/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/test/java/libcore/java/util/prefs/ |
D | PreferencesTest.java | 83 FileWriter writer = new FileWriter(userPrefs); in testPreferencesClobbersExistingFiles() local 84 writer.write("lamb"); in testPreferencesClobbersExistingFiles() 85 writer.close(); in testPreferencesClobbersExistingFiles()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 120 StringWriter writer = new StringWriter(); in streamToStringCallable() 124 writer.write(c); in streamToStringCallable() 126 return writer.toString(); in streamToStringCallable()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | PssInstrumentation.java | 46 try (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(output), cs)) { in takeMeasurement() argument 47 writer.append(Integer.toString(totalPssKb)); in takeMeasurement()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelLockingTest.java | 57 FileWriter writer = new FileWriter(tempFiles[i]); in setUp() local 58 writer.write(CONTENT); in setUp() 59 writer.close(); in setUp()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlSerializer.java | 36 private Writer writer; field in KXmlSerializer 80 writer.write(mText, 0, mPos); in flushBuffer() 81 writer.flush(); in flushBuffer() 337 public void setOutput(Writer writer) { in setOutput() argument 338 this.writer = writer; in setOutput()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 190 StringWriter writer = new StringWriter(); in readFully() local 194 writer.write(buffer, 0, count); in readFully() 196 return writer.toString(); in readFully()
|