/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintWriterTest.java | 58 PrintWriter pw; field in PrintWriterTest 72 pw.println("Random Chars"); in test_ConstructorLjava_io_OutputStream() 73 pw.write("Hello World"); in test_ConstructorLjava_io_OutputStream() 74 pw.flush(); in test_ConstructorLjava_io_OutputStream() 94 pw = new PrintWriter(bao, true); in test_ConstructorLjava_io_OutputStreamZ() 95 pw.println("Random Chars"); in test_ConstructorLjava_io_OutputStreamZ() 96 pw.write("Hello World"); in test_ConstructorLjava_io_OutputStreamZ() 102 pw.flush(); in test_ConstructorLjava_io_OutputStreamZ() 121 pw = new PrintWriter(sw = new Support_StringWriter()); in test_ConstructorLjava_io_Writer() 122 pw.print("Hello"); in test_ConstructorLjava_io_Writer() [all …]
|
D | PipedReaderTest.java | 29 public PipedWriter pw; field in PipedReaderTest.PWriter 33 pw = new PipedWriter(reader); in PWriter() 40 pw = new PipedWriter(); in PWriter() 47 pw.write(c); in run() 143 preader.connect(pwriter.pw); in test_connectLjava_io_PipedWriter() 151 preader.connect(pwriter.pw); in test_connectLjava_io_PipedWriter() 202 PipedWriter pw = new PipedWriter(); in test_read$CII_ExceptionPriority() local 205 obj = new PipedReader(pw); in test_read$CII_ExceptionPriority() 213 PipedWriter pw = new PipedWriter(); in test_read$CII_ExceptionPriority2() local 216 obj = new PipedReader(pw); in test_read$CII_ExceptionPriority2() [all …]
|
D | PipedWriterTest.java | 31 public PReader(PipedWriter pw) { in PReader() argument 33 pr = new PipedReader(pw); in PReader() 62 PipedWriter pw; field in PipedWriterTest 80 pw = new PipedWriter(rd); in test_ConstructorLjava_io_PipedReader() 83 pw.write(buf); in test_ConstructorLjava_io_PipedReader() 84 pw.close(); in test_ConstructorLjava_io_PipedReader() 98 pw = new PipedWriter(rd); in test_close() 100 pw.close(); in test_close() 102 pw.write(buf); in test_close() 117 pw = new PipedWriter(); in test_connectLjava_io_PipedReader() [all …]
|
D | PipedInputStreamTest.java | 54 PWriter pw; field in PipedInputStreamTest 84 t = new Thread(pw = new PWriter(pos, 1000)); in test_readException() 108 t = new Thread(pw = new PWriter(pos, 1000)); in test_available() 111 synchronized (pw) { in test_available() 112 pw.wait(10000); in test_available() 159 t = new Thread(pw = new PWriter(pos, 1000)); in test_connectLjava_io_PipedOutputStream() 162 synchronized (pw) { in test_connectLjava_io_PipedOutputStream() 163 pw.wait(10000); in test_connectLjava_io_PipedOutputStream() 177 t = new Thread(pw = new PWriter(pos, 1000)); in test_read() 180 synchronized (pw) { in test_read() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldPipedWriterTest.java | 35 public PReader(PipedWriter pw) { in PReader() argument 37 pr = new PipedReader(pw); in PReader() 74 PipedWriter pw; field in OldPipedWriterTest 78 pw = new PipedWriter(); in test_Constructor() 79 assertNotNull(pw); in test_Constructor() 81 pw.close(); in test_Constructor() 91 pw = new PipedWriter(rd); in test_ConstructorLjava_io_PipedReader() 99 pw.write(testBuf); in test_ConstructorLjava_io_PipedReader() 104 pw.close(); in test_ConstructorLjava_io_PipedReader() 110 pw = new PipedWriter(rd); in test_ConstructorLjava_io_PipedReader() [all …]
|
D | OldBufferedReaderTest.java | 387 PrintWriter pw = new PrintWriter(new OutputStreamWriter(pos)); in test_8778372() 388 pw.print("hello, world\r"); in test_8778372() 389 pw.flush(); in test_8778372()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | SimpleFormatter.java | 155 PrintWriter pw = new PrintWriter(sw); in format() local 156 pw.println(); in format() 157 record.getThrown().printStackTrace(pw); in format() 158 pw.close(); in format()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | InvocationTargetExceptionTest.java | 262 PrintWriter pw; in test_printStackTraceLjava_io_PrintWriter() local 266 pw = new PrintWriter(caw); in test_printStackTraceLjava_io_PrintWriter() 269 ite.printStackTrace(pw); in test_printStackTraceLjava_io_PrintWriter() 274 pw.close(); in test_printStackTraceLjava_io_PrintWriter() 277 pw = new PrintWriter(bao); in test_printStackTraceLjava_io_PrintWriter() 280 ite.printStackTrace(pw); in test_printStackTraceLjava_io_PrintWriter() 282 pw.flush(); // Test will fail if this line removed. in test_printStackTraceLjava_io_PrintWriter()
|
/libcore/ojluni/src/main/java/java/io/ |
D | Console.java | 102 return pw; in writer() 249 pw.format(fmt, args); in readLine() 320 pw.format(fmt, args); in readPassword() 336 pw.println(); in readPassword() 361 pw.flush(); in flush() 368 private PrintWriter pw; field in Console 554 pw = new PrintWriter(out, true) { public void close() {} }; in Console()
|
D | PrintWriter.java | 360 PrintWriter pw = (PrintWriter) out; in checkError() local 361 return pw.checkError(); in checkError()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThrowableTest.java | 166 PrintWriter pw = new PrintWriter(bao); in test_printStackTraceLjava_io_PrintWriter() local 168 x.printStackTrace(pw); in test_printStackTraceLjava_io_PrintWriter() 169 pw.close(); in test_printStackTraceLjava_io_PrintWriter()
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocksSocketImpl.java | 158 PasswordAuthentication pw = in authenticate() local 166 if (pw != null) { in authenticate() 167 userName = pw.getUserName(); in authenticate() 168 password = new String(pw.getPassword()); in authenticate()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 527 PrintWriter pw = new PrintWriter(sw); in format() local 528 pw.println(); in format() 529 thrown.printStackTrace(pw); in format() 530 pw.close(); in format()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | Console.java | 107 private java.io.PrintWriter pw; field in Console
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PropertiesTest.java | 182 PrintWriter pw = new PrintWriter(baos); in test_listLjava_io_PrintWriter() local 188 myProps.list(pw); in test_listLjava_io_PrintWriter() 189 pw.flush(); in test_listLjava_io_PrintWriter() 195 pw = null; in test_listLjava_io_PrintWriter() 197 myProps.list(pw); in test_listLjava_io_PrintWriter()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | OpTestCase.java | 427 PrintWriter pw = new PrintWriter(sw); in exercise() local 429 t.getCause().printStackTrace(pw); in exercise() 430 pw.flush(); in exercise()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 426 PrintWriter pw = new PrintWriter(sw); in exercise() local 428 t.getCause().printStackTrace(pw); in exercise() 429 pw.flush(); in exercise()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 455 static jobject makeStructPasswd(JNIEnv* env, const struct passwd& pw) { in makeStructPasswd() argument 456 TO_JAVA_STRING(pw_name, pw.pw_name); in makeStructPasswd() 457 TO_JAVA_STRING(pw_dir, pw.pw_dir); in makeStructPasswd() 458 TO_JAVA_STRING(pw_shell, pw.pw_shell); in makeStructPasswd() 465 pw_name, static_cast<jint>(pw.pw_uid), static_cast<jint>(pw.pw_gid), pw_dir, pw_shell); in makeStructPasswd()
|