/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | BufferedOutputStreamTest.java | 42 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStream() 52 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStreamI() 104 os.write(fileString.getBytes(), 0, 500); in test_flush() 119 public void write(int b) { in write() method in BufferedOutputStreamTest.MockOutputStream 133 os.write(fileString.getBytes(), 0, 500); in test_write$BII() 139 os.write(fileString.getBytes(), 500, 513); in test_write$BII() 151 bos.write("a".getBytes()); in test_write$BII() 152 bos.write("bcde".getBytes()); in test_write$BII() 157 bos.write("ab".getBytes()); in test_write$BII() 158 bos.write("cd".getBytes()); in test_write$BII() [all …]
|
D | BufferedWriterTest.java | 42 sw.write("Hi"); in test_ConstructorLjava_io_Writer() 57 public void write(char[] buf, int off, int len) throws IOException { in write() method in BufferedWriterTest.MockWriter 86 bw.write(testString); in test_close() 96 bw.write('a'); in test_close() 122 bw.write("This should not cause a flush"); in test_flush() 134 bw.write("Hello"); in test_newLine() 136 bw.write("World"); in test_newLine() 147 bw.write(testCharArray, 500, 1000); in test_write$CII() 161 bWriter.write(nullCharArray, -1, -1); in test_write_$CII_Exception() 168 bWriter.write(nullCharArray, -1, 0); in test_write_$CII_Exception() [all …]
|
D | OutputStreamWriterTest.java | 101 writer.write(source); in testFlush() 115 writer.write((char[]) null, -1, -1); in testWritecharArrayintint() 123 writer.write((char[]) null, 1, -1); in testWritecharArrayintint() 130 writer.write((char[]) null, 1, 1); in testWritecharArrayintint() 136 writer.write(new char[0], 0, 1); in testWritecharArrayintint() 142 writer.write(chars, -1, 1); in testWritecharArrayintint() 148 writer.write(chars, 0, -1); in testWritecharArrayintint() 154 writer.write(chars, 1, chars.length); in testWritecharArrayintint() 159 writer.write(chars, 1, 2); in testWritecharArrayintint() 162 writer.write(chars, 0, chars.length); in testWritecharArrayintint() [all …]
|
D | RandomAccessFileTest.java | 61 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 67 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 73 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 99 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 103 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 107 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 162 raf.write("Test".getBytes(), 0, 4); in test_close() 188 raf.write(fileString.getBytes(), 0, 1000); in test_getFilePointer() 200 raf.write(fileString.getBytes()); in test_length() 212 fos.write(fileString.getBytes("UTF-8"), 0, fileString.length()); in test_read() [all …]
|
D | PipedWriterTest.java | 83 pw.write(buf); in test_ConstructorLjava_io_PipedReader() 102 pw.write(buf); in test_close() 121 pw.write(buf); in test_connectLjava_io_PipedReader() 138 pw.write(buf); in test_flush() 183 pw.write(buf, 0, 10); in test_write$CII() 199 obj.write(new char[0], (int) 0, (int) -1); in test_write$CII_2() 213 obj.write(new char[0], (int) -1, (int) 0); in test_write$CII_3() 227 obj.write(new char[0], (int) -1, (int) -1); in test_write$CII_4() 241 obj.write((char[]) null, (int) -1, (int) 0); in test_write$CII_5() 257 obj.write((char[]) null, (int) -1, (int) -1); in test_write$CII_6() [all …]
|
D | FileOutputStreamTest.java | 84 fos.write('l'); in test_ConstructorLjava_io_FileDescriptor() 113 fos.write("HI".getBytes(), 0, 2); in test_ConstructorLjava_lang_StringZ() 116 fos.write(fileString.getBytes()); in test_ConstructorLjava_lang_StringZ() 160 fos.write(fileString.getBytes()); in test_close() 185 fos.write(fileString.getBytes()); in test_write$B() 199 fos.write(fileString.getBytes(), 0, fileString.length()); in test_write$BII() 210 out.write(null, 0, 0); in test_write$BII() 226 fos.write('t'); in test_writeI() 240 fos.write(null, 1, 1); in test_write$BII2() 246 fos.write(new byte[1], -1, 1); in test_write$BII2() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerOutputStream.java | 77 public void write(byte tag, byte[] buf) throws IOException { in write() method in DerOutputStream 78 write(tag); in write() 80 write(buf, 0, buf.length); in write() 92 public void write(byte tag, DerOutputStream out) throws IOException { in write() method in DerOutputStream 93 write(tag); in write() 95 write(out.buf, 0, out.count); in write() 117 write(tag); in writeImplicit() 118 write(value.buf, 1, value.count-1); in writeImplicit() 140 write(DerValue.tag_Boolean); in putBoolean() 143 write(0xff); in putBoolean() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldBufferedWriterTest.java | 39 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_Writer() 58 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_WriterI() 71 bw.write(testString); in test_close() 88 bw.write("This should not cause a flush"); in test_flush() 107 bw.write("Hello"); in test_newLine() 109 bw.write("World"); in test_newLine() 128 bw.write(testCharArray, 500, 1000); in test_write$CII() 134 bw.write(testCharArray, 0, testCharArray.length); in test_write$CII() 136 bw.write(testCharArray, 0, 0); in test_write$CII() 138 bw.write(testCharArray, testCharArray.length, 0); in test_write$CII() [all …]
|
D | OldWriterTest.java | 102 tobj.write("01234".toCharArray()); in test_write$C() 104 tobj.write("abcde".toCharArray()); in test_write$C() 106 tobj.write("ABCDEFGHIJ".toCharArray()); in test_write$C() 108 tobj.write("z".toCharArray()); // Just fill the writer to its limit! in test_write$C() 110 tobj.write("LES JEUX SONT FAITS".toCharArray()); in test_write$C() 119 tobj.write('a'); in test_writeI() 120 tobj.write('b'); in test_writeI() 123 tobj.write('c'); in test_writeI() 132 tobj.write("01234"); in test_writeLjava_lang_String() 134 tobj.write("abcde"); in test_writeLjava_lang_String() [all …]
|
D | OldOutputStreamWriterTest.java | 207 writer.write(new char[] { 'a' }); in test_close() 216 writer.write(new char[] { '\u3048' }); in test_close() 230 writer.write(new char[] { '\u3048' }); in test_close() 231 writer.write(new char[] { '\u3048' }); in test_close() 249 osw.write(testString, 0, testString.length()); in test_flush() 302 charsOut.write(chars); in testEncodeCharset() 347 writer.write(chars, -1, 1); in test_write$CII() 354 writer.write(chars, 0, -1); in test_write$CII() 361 writer.write(new char[0], 0, 1); in test_write$CII() 368 writer.write((char[]) null, 0, 1); in test_write$CII() [all …]
|
D | FileOutputStreamTest.java | 39 fos2.write(1); in testFileDescriptorOwnership() 44 fos2.write(new byte[1], 0, 1); in testFileDescriptorOwnership() 49 fos1.write(1); in testFileDescriptorOwnership() 54 fos1.write(1); in testFileDescriptorOwnership() 59 fos1.write(new byte[1], 0, 1); in testFileDescriptorOwnership() 80 fos.write(bytes); in testClose() 85 fos.write(bytes, 0, 2); in testClose() 90 fos.write(42); in testClose() 96 fos.write(new byte[0], 0, 0); in testClose()
|
D | OldFilterOutputStreamTest.java | 46 os.write('t'); in test_ConstructorLjava_io_OutputStream() 58 os.write(42); in test_close() 65 os.write(42); in test_close() 83 os.write(fileString.getBytes(), 0, 500); in test_flush() 101 os.write(fileString.getBytes()); in test_write$B() 114 os.write(42); in test_write$B() 124 os.write(fileString.getBytes(), 10, testLength - 10); in test_write$BII() 137 os.write(fileString.getBytes()); in test_write$BII() 150 os.write(buf, -1, 1); in test_write$BII_Exception() 157 os.write(buf, 0, -1); in test_write$BII_Exception() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | TelnetOutputStream.java | 96 public void write(int c) throws IOException { in write() method in TelnetOutputStream 98 super.write(c); in write() 104 super.write(0); in write() 105 super.write(c); in write() 110 super.write('\r'); in write() 111 super.write('\n'); in write() 118 super.write('\r'); in write() 122 super.write(c); in write() 130 public void write(byte bytes[], int off, int length) throws IOException { in write() method in TelnetOutputStream 132 super.write(bytes, off, length); in write() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | Writer.java | 107 public void write(int c) throws IOException { in write() method in Writer 113 write(writeBuffer, 0, 1); in write() 126 public void write(char cbuf[]) throws IOException { in write() method in Writer 127 write(cbuf, 0, cbuf.length); in write() 145 abstract public void write(char cbuf[], int off, int len) throws IOException; in write() method in Writer 156 public void write(String str) throws IOException { in write() method in Writer 157 write(str, 0, str.length()); in write() 180 public void write(String str, int off, int len) throws IOException { in write() method in Writer 192 write(cbuf, 0, len); in write() 225 write("null"); in append() [all …]
|
D | DataOutputStream.java | 87 public synchronized void write(int b) throws IOException { in write() method in DataOutputStream 88 out.write(b); in write() 104 public synchronized void write(byte b[], int off, int len) in write() method in DataOutputStream 107 out.write(b, off, len); in write() 139 out.write(v ? 1 : 0); in writeBoolean() 153 out.write(v); in writeByte() 167 out.write((v >>> 8) & 0xFF); in writeShort() 168 out.write((v >>> 0) & 0xFF); in writeShort() 182 out.write((v >>> 8) & 0xFF); in writeChar() 183 out.write((v >>> 0) & 0xFF); in writeChar() [all …]
|
D | PrintWriter.java | 401 public void write(int c) { in write() method in PrintWriter 405 out.write(c); in write() 422 public void write(char buf[], int off, int len) { in write() method in PrintWriter 426 out.write(buf, off, len); in write() 442 public void write(char buf[]) { in write() method in PrintWriter 443 write(buf, 0, buf.length); in write() 452 public void write(String s, int off, int len) { in write() method in PrintWriter 456 out.write(s, off, len); in write() 472 public void write(String s) { in write() method in PrintWriter 473 write(s, 0, s.length()); in write() [all …]
|
D | StringWriter.java | 76 public void write(int c) { in write() method in StringWriter 87 public void write(char cbuf[], int off, int len) { in write() method in StringWriter 100 public void write(String str) { in write() method in StringWriter 111 public void write(String str, int off, int len) { in write() method in StringWriter 141 write("null"); in append() 143 write(csq.toString()); in append() 181 write(cs.subSequence(start, end).toString()); in append() 202 write(c); in append()
|
D | FilterWriter.java | 64 public void write(int c) throws IOException { in write() method in FilterWriter 65 out.write(c); in write() 77 public void write(char cbuf[], int off, int len) throws IOException { in write() method in FilterWriter 78 out.write(cbuf, off, len); in write() 90 public void write(String str, int off, int len) throws IOException { in write() method in FilterWriter 91 out.write(str, off, len); in write()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | BASE64Encoder.java | 90 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom() 91 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom() 92 outStream.write('='); in encodeAtom() 93 outStream.write('='); in encodeAtom() 98 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom() 99 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom() 100 outStream.write(pem_array[((b << 2) & 0x3c) + ((c >>> 6) & 0x3)]); in encodeAtom() 101 outStream.write('='); in encodeAtom() 106 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom() 107 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SinkChannelTest.java | 85 sink.write(buf); in test_write_LByteBuffer() 114 sink.write(ByteBuffer.wrap(strbytes)); in test_write_LByteBuffer_mutliThread() 153 sink.write(nullBuf); in test_write_LByteBuffer_Exception() 163 int written = sink.write(buffer); in test_write_LByteBuffer_SourceClosed() 172 sink.write(buffer); in test_write_LByteBuffer_SinkClosed() 190 sink.write(bufArray); in test_write_$LByteBuffer() 218 sink.write(nullBufArrayRef); in test_write_$LByteBuffer_Exception() 228 sink.write(nullBufArray); in test_write_$LByteBuffer_Exception() 239 long written = sink.write(bufArray); in test_write_$LByteBuffer_SourceClosed() 252 sink.write(bufArray); in test_write_$LByteBuffer_SinkClosed() [all …]
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
D | SinkTester.java | 107 out.write(a, 1000, 0); in sinkTestWriteZeroBytes() 108 out.write(a, 0, 0); in sinkTestWriteZeroBytes() 109 out.write(new byte[] { }); in sinkTestWriteZeroBytes() 120 out.write(b); in sinkTestWriteByteByByte() 137 out.write(a); in sinkTestWriteArray() 140 out.write(b); in sinkTestWriteArray() 143 out.write(c); in sinkTestWriteArray() 161 out.write(a, 1000, 2); in sinkTestWriteOffset() 168 out.write(b, 1020, 4); in sinkTestWriteOffset() 174 out.write(c, 0, 3); in sinkTestWriteOffset() [all …]
|
D | CharSinkTester.java | 106 out.write(a, 1000, 0); in sinkTestWriteZeroChars() 107 out.write(a, 0, 0); in sinkTestWriteZeroChars() 108 out.write(new char[] { }); in sinkTestWriteZeroChars() 119 out.write(c); in sinkTestWriteCharByChar() 131 out.write("EF".toCharArray()); in sinkTestWriteArray() 132 out.write("GCDE".toCharArray()); in sinkTestWriteArray() 133 out.write("CBA".toCharArray()); in sinkTestWriteArray() 146 out.write(a, 1000, 2); in sinkTestWriteOffset() 153 out.write(b, 1020, 4); in sinkTestWriteOffset() 159 out.write(c, 0, 3); in sinkTestWriteOffset() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocksSocketImpl.java | 175 out.write(1); in authenticate() 176 out.write(userName.length()); in authenticate() 178 out.write(userName.getBytes("ISO-8859-1")); in authenticate() 183 out.write(password.length()); in authenticate() 185 out.write(password.getBytes("ISO-8859-1")); in authenticate() 190 out.write(0); in authenticate() 267 out.write(PROTO_VERS4); in connectV4() 268 out.write(CONNECT); in connectV4() 269 out.write((endpoint.getPort() >> 8) & 0xff); in connectV4() 270 out.write((endpoint.getPort() >> 0) & 0xff); in connectV4() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldFileChannelTest.java | 149 writeOnlyFileChannel.write(writeBuffer); in test_forceZ() 157 writeOnlyFileChannel.write(writeBuffer); in test_forceZ() 180 fos.write(CONTENT_AS_BYTES); in writeDataToFile() 201 fos.write(buf); in writeLargeDataToFile() 646 out.write(1); in test_isOpen() 657 readOnlyFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 665 writeOnlyFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 673 readWriteFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 688 readOnlyFileChannel.write((ByteBuffer) null); in test_writeLByteBuffer_Closed() 696 writeOnlyFileChannel.write((ByteBuffer) null); in test_writeLByteBuffer_Closed() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterOutputStreamTest.java | 204 ios.write(compressedBytes[i]); in test_finish() 216 ios.write(compressedBytes[i]); in test_finish() 237 ios.write(compressedBytes[i]); in test_write_I() 254 ios.write(-1); in test_write_I_Illegal() 269 ios.write(compressedBytes, 0, length); in test_write_$BII() 288 ios.write(bytes, 0, 4); in test_write_$BII_Illegal() 304 ios.write(bytes, 0, 4); in test_write_$BII_Illegal() 310 ios.write(bytes, -1, 4); in test_write_$BII_Illegal() 316 ios.write(bytes, -1, -4); in test_write_$BII_Illegal() 322 ios.write(bytes, 0, 400); in test_write_$BII_Illegal() [all …]
|