/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 | 55 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 61 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 67 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 93 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 97 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 101 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String() 156 raf.write("Test".getBytes(), 0, 4); in test_close() 182 raf.write(fileString.getBytes(), 0, 1000); in test_getFilePointer() 194 raf.write(fileString.getBytes()); in test_length() 206 fos.write(fileString.getBytes("UTF-8"), 0, fileString.length()); in test_read() [all …]
|
D | StringWriterTest.java | 53 sw.write('c'); in test_flush() 64 sw.write("This is a test string"); in test_getBuffer() 75 sw.write("This is a test string"); in test_toString() 87 sw.write(c, 0, 21); in test_write$CII() 100 obj.write(new char[0], (int) 0, (int) -1); in test_write$CII_2() 113 obj.write(new char[0], (int) -1, (int) 0); in test_write$CII_3() 126 obj.write(new char[0], (int) -1, (int) -1); in test_write$CII_4() 137 sw.write('c'); in test_writeI() 146 sw.write("This is a test string"); in test_writeLjava_lang_String() 157 sw.write("This is a test string", 2, 2); in test_writeLjava_lang_StringII()
|
D | FileOutputStreamTest.java | 78 fos.write('l'); in test_ConstructorLjava_io_FileDescriptor() 106 fos.write("HI".getBytes(), 0, 2); in test_ConstructorLjava_lang_StringZ() 109 fos.write(fileString.getBytes()); in test_ConstructorLjava_lang_StringZ() 153 fos.write(fileString.getBytes()); in test_close() 178 fos.write(fileString.getBytes()); in test_write$B() 192 fos.write(fileString.getBytes(), 0, fileString.length()); in test_write$BII() 203 out.write(null, 0, 0); in test_write$BII() 219 fos.write('t'); in test_writeI() 233 fos.write(null, 1, 1); in test_write$BII2() 239 fos.write(new byte[1], -1, 1); in test_write$BII2() [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 …]
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlSerializer.java | 70 writer.write(' '); in check() 71 writer.write("xmlns"); in check() 73 writer.write(':'); in check() 74 writer.write(nspStack[i * 2]); in check() 78 writer.write("=\""); in check() 80 writer.write('"'); in check() 92 writer.write(close ? " />" : ">"); in check() 103 writer.write(c); in writeEscaped() 105 writer.write("&#"+((int) c)+';'); in writeEscaped() 108 writer.write("&"); in writeEscaped() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldBufferedWriterTest.java | 38 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_Writer() 57 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_WriterI() 70 bw.write(testString); in test_close() 87 bw.write("This should not cause a flush"); in test_flush() 106 bw.write("Hello"); in test_newLine() 108 bw.write("World"); in test_newLine() 127 bw.write(testCharArray, 500, 1000); in test_write$CII() 133 bw.write(testCharArray, 0, testCharArray.length); in test_write$CII() 135 bw.write(testCharArray, 0, 0); in test_write$CII() 137 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 | FileOutputStreamTest.java | 36 fos2.write(1); in testFileDescriptorOwnership() 41 fos2.write(new byte[1], 0, 1); in testFileDescriptorOwnership() 46 fos1.write(1); in testFileDescriptorOwnership() 51 fos1.write(1); in testFileDescriptorOwnership() 56 fos1.write(new byte[1], 0, 1); in testFileDescriptorOwnership() 74 fos.write(bytes); in testClose() 79 fos.write(bytes, 0, 2); in testClose() 84 fos.write(42); in testClose() 90 fos.write(new byte[0], 0, 0); in testClose()
|
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 | 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 …]
|
D | OldFilterWriterTest.java | 48 public void write(char[] buffer, int offset, int count) throws IOException { in write() method in OldFilterWriterTest.MockWriter 52 public void write(int oneChar) throws IOException { in write() method in OldFilterWriterTest.MockWriter 56 public void write(String str, int offset, int count) throws IOException { in write() method in OldFilterWriterTest.MockWriter 91 fw.write(0); in test_writeI() 97 fw.write(buffer, 0, 5); in test_write$CII() 108 fw.write(buffer, 0, -1); in test_write$CII_Exception() 115 fw.write(buffer, -1, 1); in test_write$CII_Exception() 122 fw.write(buffer, 10, 1); in test_write$CII_Exception() 130 fw.write("Hello world", 0, 5); in test_writeLjava_lang_StringII()
|
D | OldBufferedOutputStreamTest.java | 42 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStream() 60 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStreamI() 69 os.write(fileString.getBytes(), 0, 500); in test_flush() 90 os.write(fileString.getBytes(), 0, 500); in test_write$BII() 98 os.write(fileString.getBytes(), 500, 513); in test_write$BII() 112 os.write(fileString.getBytes(), 0, 500); in test_write$BII() 127 bos.write(nullByteArray, 0, 1); in test_write$BII_Exception() 134 bos.write(byteArray, -1, 1); in test_write$BII_Exception() 141 bos.write(byteArray, 0, -1); in test_write$BII_Exception() 148 bos.write(byteArray, 1, 10); in test_write$BII_Exception() [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | Writer.java | 93 public void write(char[] buf) throws IOException { in write() method in Writer 94 write(buf, 0, buf.length); in write() 113 public abstract void write(char[] buf, int offset, int count) throws IOException; in write() method in Writer 124 public void write(int oneChar) throws IOException { in write() method in Writer 128 write(oneCharArray); in write() 140 public void write(String str) throws IOException { in write() method in Writer 141 write(str, 0, str.length()); in write() 160 public void write(String str, int offset, int count) throws IOException { in write() method in Writer 167 write(buf, 0, buf.length); in write() 182 write(c); in append() [all …]
|
D | DataOutputStream.java | 94 public void write(byte[] buffer, int offset, int count) throws IOException { in write() method in DataOutputStream 98 out.write(buffer, offset, count); in write() 113 public void write(int oneByte) throws IOException { in write() method in DataOutputStream 114 out.write(oneByte); in write() 128 out.write(val ? 1 : 0); in writeBoolean() 144 out.write(val); in writeByte() 156 out.write(bytes); in writeBytes() 166 out.write(bytes); in writeChars() 180 out.write(scratch, 0, SizeOf.INT); in writeInt() 186 out.write(scratch, 0, SizeOf.LONG); in writeLong() [all …]
|
D | FilterWriter.java | 90 public void write(char[] buffer, int offset, int count) throws IOException { in write() method in FilterWriter 92 out.write(buffer, offset, count); in write() 106 public void write(int oneChar) throws IOException { in write() method in FilterWriter 108 out.write(oneChar); in write() 127 public void write(String str, int offset, int count) throws IOException { in write() method in FilterWriter 129 out.write(str, offset, count); in write()
|
D | OutputStream.java | 81 public void write(byte[] buffer) throws IOException { in write() method in OutputStream 82 write(buffer, 0, buffer.length); in write() 103 public void write(byte[] buffer, int offset, int count) throws IOException { in write() method in OutputStream 106 write(buffer[i]); in write() 119 public abstract void write(int oneByte) throws IOException; in write() method in OutputStream
|
/libcore/luni/src/main/java/java/util/zip/ |
D | GZIPOutputStream.java | 83 out.write(Deflater.DEFLATED); in GZIPOutputStream() 84 out.write(0); // flags in GZIPOutputStream() 86 out.write(0); // extra flags in GZIPOutputStream() 87 out.write(0); // operating system in GZIPOutputStream() 109 public void write(byte[] buffer, int off, int nbytes) throws IOException { in write() method in GZIPOutputStream 110 super.write(buffer, off, nbytes); in write() 117 out.write(unsigned & 0xFF); in writeLong() 118 out.write((unsigned >> 8) & 0xFF); in writeLong() 119 out.write((unsigned >> 16) & 0xFF); in writeLong() 120 out.write((unsigned >> 24) & 0xFF); in writeLong() [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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterOutputStreamTest.java | 183 ios.write(compressedBytes[i]); in test_finish() 195 ios.write(compressedBytes[i]); in test_finish() 216 ios.write(compressedBytes[i]); in test_write_I() 232 ios.write(-1); in test_write_I_Illegal() 247 ios.write(compressedBytes, 0, length); in test_write_$BII() 261 ios.write(bytes, 0, 4); in test_write_$BII_Illegal() 277 ios.write(bytes, 0, 4); in test_write_$BII_Illegal() 283 ios.write(bytes, -1, 4); in test_write_$BII_Illegal() 289 ios.write(bytes, -1, -4); in test_write_$BII_Illegal() 295 ios.write(bytes, 0, 400); in test_write_$BII_Illegal() [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 …]
|