/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/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/util/logging/ |
D | StreamHandler.java | 65 private Writer writer; field in StreamHandler 133 writer = new OutputStreamWriter(output); in setOutputStream() 136 writer = new OutputStreamWriter(output, encoding); in setOutputStream() 167 writer = new OutputStreamWriter(output); in setEncoding() 169 writer = new OutputStreamWriter(output, encoding); in setEncoding() 206 writer.write(getFormatter().getHead(this)); in publish() 209 writer.write(msg); in publish() 230 if (writer == null || record == null) { in isLoggable() 240 if (writer != null) { in flush() 242 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/dalvik/src/test/java/dalvik/system/ |
D | CloseGuardMonitor.java | 107 StringWriter writer = new StringWriter(); in run() local 108 PrintWriter printWriter = new PrintWriter(writer); in run() 116 throw new AssertionError("Potential resource leakage detected:\n" + writer); in run()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | PreferencesTest.java | 82 FileWriter writer = new FileWriter(userPrefs); in testPreferencesClobbersExistingFiles() local 83 writer.write("lamb"); in testPreferencesClobbersExistingFiles() 84 writer.close(); in testPreferencesClobbersExistingFiles()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | EngineOutputRecord.java | 50 private EngineWriter writer; field in EngineOutputRecord 67 writer = engine.writer; in EngineOutputRecord() 166 writer.putOutboundData(netBB); in writeBuffer()
|
D | SSLEngineImpl.java | 185 EngineWriter writer; field in SSLEngineImpl 410 writer = new EngineWriter(); in init() 485 if (writer.hasOutboundData()) { in getHSStatus() 1022 if (!writer.hasOutboundData()) { in readRecord() 1182 if (writer.isOutboundDone()) { in writeAppRecord() 1265 writer.writeRecord(eor, ea, writeMAC, writeCipher); in writeRecord() 1320 writer.writeRecord(eor, writeMAC, writeCipher); in writeRecord() 1416 if (writer.isOutboundDone()) { in closeOutboundInternal() 1426 writer.closeOutbound(); in closeOutboundInternal() 1442 writer.closeOutbound(); in closeOutboundInternal() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 119 StringWriter writer = new StringWriter(); in readFully() local 123 writer.write(buffer, 0, count); in readFully() 125 return writer.toString(); in readFully()
|
/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/support/src/test/java/tests/support/ |
D | Support_Exec.java | 142 StringWriter writer = new StringWriter(); in streamToStringCallable() 146 writer.write(c); in streamToStringCallable() 148 return writer.toString(); in streamToStringCallable()
|
/libcore/xml/src/main/java/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/benchmarks/src/benchmarks/regression/ |
D | ParseBenchmark.java | 112 StringWriter writer = new StringWriter(); in resourceToString() local 115 writer.write(buffer, 0, count); in resourceToString() 118 return writer.toString(); in resourceToString()
|
/libcore/tzdata/update_test_app/src/libcore/tzdata/update_test_app/installupdatetestapp/ |
D | MainActivity.java | 156 StringWriter writer = new StringWriter(); in exceptionToString() local 157 e.printStackTrace(new PrintWriter(writer)); in exceptionToString() 158 return writer.getBuffer().toString(); in exceptionToString()
|