/dalvik/libcore/security/src/main/java/org/bouncycastle/util/ |
H A D | Strings.java | 90 bOut.write(ch); 94 bOut.write(0xc0 | (ch >> 6)); 95 bOut.write(0x80 | (ch & 0x3f)); 116 bOut.write(0xf0 | (codePoint >> 18)); 117 bOut.write(0x80 | ((codePoint >> 12) & 0x3F)); 118 bOut.write(0x80 | ((codePoint >> 6) & 0x3F)); 119 bOut.write(0x80 | (codePoint & 0x3F)); 123 bOut.write(0xe0 | (ch >> 12)); 124 bOut.write(0x80 | ((ch >> 6) & 0x3F)); 125 bOut.write( [all...] |
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 122 dos.write(byteArray); 145 dos.write(outPutBuf); 198 dos.write(byteArray); 225 dos.write(byteArray); 249 // Test to write to a closed DeflaterOutputStream 251 dos.write(5); 256 // Test to write to a FileOutputStream that should have been closed 260 fos.write(("testing").getBytes()); 285 dos.write(byteArray); 291 dos.write( [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | BufferedOutputStream.java | 58 * the {@code OutputStream} for which write operations are 85 * the output stream for which write operations are buffered. 129 * the number of bytes from {@code buffer} to write to this 136 * if an error occurs attempting to write to this stream. 143 public synchronized void write(byte[] buffer, int offset, int length) method in class:BufferedOutputStream 157 out.write(buffer, offset, length); 203 * if an error occurs attempting to write to this stream. 206 public synchronized void write(int oneByte) throws IOException { method in class:BufferedOutputStream 213 out.write(internalBuffer, 0, count); 224 out.write(bu [all...] |
H A D | CharArrayWriter.java | 101 * Resets this writer. The current write position is reset to the beginning 158 * the non-null array containing characters to write. 160 * the index of the first character in {@code buf} to write. 162 * maximum number of characters to write. 168 public void write(char[] c, int offset, int len) { method in class:CharArrayWriter 197 * the character to write. 200 public void write(int oneChar) { method in class:CharArrayWriter 212 * the non-null string containing the characters to write. 214 * the index of the first character in {@code str} to write. 216 * the number of characters to retrieve and write 225 public void write(String str, int offset, int len) { method in class:CharArrayWriter [all...] |
H A D | FileOutputStream.java | 29 * All write requests made by calling methods in this class are directly 32 * write requests are made, a FileOutputStream is often wrapped by a 65 * write request. 85 * write request. 115 * write request. 144 * write request. 164 * write request. 217 * The file channel is write-only and has an initial position within the 249 * write to this stream. 252 public void write(byt method in class:FileOutputStream 277 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:FileOutputStream 311 public void write(int oneByte) throws IOException { method in class:FileOutputStream [all...] |
H A D | DataOutputStream.java | 81 * the buffer to write to the target stream. 83 * the index of the first byte in {@code buffer} to write. 85 * the number of bytes from the {@code buffer} to write. 94 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:DataOutputStream 101 out.write(buffer, offset, count); 110 * the byte to write to the target stream. 116 public void write(int oneByte) throws IOException { method in class:DataOutputStream 117 out.write(oneByte); 125 * the boolean value to write to the target stream. 131 out.write(va [all...] |
H A D | PipedOutputStream.java | 132 * Separate threads should be used to write to a {@code PipedOutputStream} 137 * the buffer to write. 139 * the index of the first byte in {@code buffer} to write. 141 * the number of bytes from {@code buffer} to write to this 148 * waiting for space to write data. This case is not currently 156 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:PipedOutputStream 157 super.write(buffer, offset, count); 165 * Separate threads should be used to write to a {@code PipedOutputStream} 170 * the byte to write. 173 * waiting for space to write dat 181 public void write(int oneByte) throws IOException { method in class:PipedOutputStream [all...] |
H A D | PrintWriter.java | 476 * The bytes are then written to the target with {@code write(int)}. 482 * @see #write(int) 485 write(str != null ? str : String.valueOf((Object) null)); 608 * then written to the target with {@code write(int)}. Finally, this writer 615 * @see #write(int) 650 * the non-null array containing characters to write. 653 public void write(char[] buf) { method in class:PrintWriter 657 write(buf, 0, buf.length); 668 * the buffer to write to the target. 670 * the index of the first character in {@code buffer} to write 678 public void write(char[] buf, int offset, int count) { method in class:PrintWriter 696 public void write(int oneChar) { method in class:PrintWriter 724 public void write(String str) { method in class:PrintWriter 743 public void write(String str, int offset, int count) { method in class:PrintWriter [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/channels/ |
H A D | FileChannel.java | 35 * created from a {@code FileOutputStream} are write-only. FileChannels created 36 * from a {@code RandomAccessFile} created in mode "rw" are read/write. 38 * append-mode will also be in append-mode -- meaning that each write will be 51 * FileChannels have operations beyond the simple read, write, and close. They 60 * <li>read and write to the file at absolute byte offsets in a fashion that 87 * Private mapping mode (equivalent to copy on write). 97 * Read-write mapping mode. 147 * write to the operating system (if the platform is maintaining metadata 241 * if the channel is not opened in write mode but shared is 257 * read/write an 649 public abstract int write(ByteBuffer src) throws IOException; method in class:FileChannel 686 public abstract int write(ByteBuffer buffer, long position) method in class:FileChannel 717 public final long write(ByteBuffer[] buffers) throws IOException { method in class:FileChannel 757 public abstract long write(ByteBuffer[] buffers, int offset, int length) method in class:FileChannel [all...] |
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | ServerHello.java | 112 out.write(server_version); 113 out.write(random); 115 out.write(session_id); 116 out.write(cipher_suite.toBytes()); 117 out.write(compression_method);
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
H A D | OutputStreamWriterTest.java | 262 osw.write("Lorem ipsum..."); 280 writer.write(new char[] { 'a' }); 289 writer.write(new char[] { '\u3048' }); 303 writer.write(new char[] { '\u3048' }); 304 writer.write(new char[] { '\u3048' }); 331 osw.write(testString, 0, testString.length()); 355 method = "write", 389 writer.write(c); 416 method = "write", 454 writer.write(largeBuffe [all...] |
H A D | CharArrayWriterTest.java | 114 cw.write("HelloWorld", 5, 5); 116 cw.write("HelloWorld", 0, 5); 140 cw.write(hw, 5, 5); 155 cw.write("HelloWorld", 0, 10); 178 cw.write("HelloWorld", 5, 5); 185 * @tests java.io.CharArrayWriter#write(char[], int, int) 189 method = "write", 193 // Test for method void java.io.CharArrayWriter.write(char [], int, int) 194 cw.write(hw, 5, 5); 199 assertEquals("Writer failed to write correc [all...] |
H A D | PipedWriterTest.java | 138 pw.write(testBuf); 140 fail("Test 2: Could not write to the constructed writer: " 200 pw.write(testBuf); 229 pw.write(testBuf); 236 * @tests java.io.PipedWriter#write(char[], int, int) 241 method = "write", 248 pw.write(testBuf, 0, 5); 257 pw.write(testBuf, -1, 1); 264 pw.write(testBuf, 0, -1); 271 pw.write(testBu [all...] |
H A D | BufferedOutputStreamTest.java | 55 os.write(fileString.getBytes(), 0, 500); 83 os.write(fileString.getBytes(), 0, 500); 100 os.write(fileString.getBytes(), 0, 500); 119 * @tests java.io.BufferedOutputStream#write(byte[], int, int) 123 method = "write", 129 os.write(fileString.getBytes(), 0, 500); 137 os.write(fileString.getBytes(), 500, 513); 151 os.write(fileString.getBytes(), 0, 500); 161 * @tests java.io.BufferedOutputStream#write(byte[], int, int) 165 method = "write", [all...] |
H A D | ByteArrayOutputStreamTest.java | 93 // to. We don't throw an exception if attempt is made to write. 100 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0, 102 * fail("IOException closing stream"); } try { bos.write 119 bos.write(fileString.getBytes(), 0, 100); 136 bos.write(fileString.getBytes(), 0, 100); 156 bos.write(fileString.getBytes(), 0, fileString.length()); 174 bos.write(fileString.getBytes(), 0, fileString.length()); 202 bos.write(fileString.getBytes(), 0, fileString.length()); 222 bos.write(fileString.getBytes(), 0, fileString.length()); 228 * @tests java.io.ByteArrayOutputStream#write(in [all...] |
H A D | PipedOutputStreamTest.java | 124 out.write('b'); 179 out.write('B'); 212 out.write(testString.getBytes(), 0, 10); 220 * @tests java.io.PipedOutputStream#write(byte[], int, int) 225 method = "write", 232 out.write(testString.getBytes(), 0, 5); 241 out.write(testString.getBytes(), -1, 10); 248 out.write(testString.getBytes(), 0, -1); 255 out.write(testString.getBytes(), 5, testString.length()); 266 out.write(testStrin [all...] |
H A D | FileWriterTest.java | 61 fos.write("Test String".getBytes()); 64 bw.write(" After test string", 0, 18); 70 assertEquals("Failed to write correct chars", " After test string", new String(buf, 0, r) 113 fileWriter.write(first); 118 fileWriter.write(second); 131 fileWriter.write(first); 136 fileWriter.write(second); 180 fos.write("Test String".getBytes()); 188 assertTrue("Failed to write correct chars: " 208 fos.write("Tes [all...] |
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | SinkChannelTest.java | 50 method = "write", 56 method = "write", 101 * @tests java.nio.channels.Pipe.SinkChannel#write(ByteBuffer []) 106 method = "write", 119 // once to get what sink write. 124 sink.write(buf); 142 * @tests java.nio.channels.Pipe.SinkChannel#write(ByteBuffer) 147 method = "write", 159 sink.write(ByteBuffer.wrap(strbytes)); 192 * @tests java.nio.channels.Pipe.SinkChannel#write(ByteBuffe [all...] |
H A D | MockSocketChannel.java | 61 public int write(ByteBuffer arg0) throws IOException { method in class:MockSocketChannel 65 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { method in class:MockSocketChannel
|
/dalvik/vm/compiler/template/ |
H A D | gen-template.py | 172 asm_fp.write("\n .global dvmCompilerTemplateStart\n") 173 asm_fp.write(" .type dvmCompilerTemplateStart, %function\n") 174 asm_fp.write(" .text\n\n") 175 asm_fp.write("dvmCompilerTemplateStart:\n\n") 188 # asm_fp.write("\n .balign %d\n" % handler_size_bytes) 189 asm_fp.write(" .size dvmCompilerTemplateStart, .-dvmCompilerTemplateStart\n") 208 outfp.write("/* ------------------------------ */\n") 212 outfp.write(" .balign 4\n") 216 outfp.write(" .global %s\n" % template_name); 217 outfp.write(" [all...] |
/dalvik/libcore/archive/src/main/java/java/util/zip/ |
H A D | DeflaterOutputStream.java | 55 * is the {@code OutputStream} where to write the compressed data 73 * is the OutputStream where to write the compressed data to. 84 * is the {@code OutputStream} where to write the compressed data 130 * Compress the data in the input buffer and write it to the underlying 140 out.write(buf, 0, x); 180 out.write(buf, 0, x); 186 public void write(int i) throws IOException { method in class:DeflaterOutputStream 189 write(b, 0, 1); 206 public void write(byte[] buffer, int off, int nbytes) throws IOException { method in class:DeflaterOutputStream 235 out.write(bu [all...] |
H A D | ZipOutputStream.java | 31 * {@code ZipOutputStream} is used to write {@code ZipEntries} to the underlying 35 * While {@code DeflaterOutputStream} can write a compressed <i>ZIP-archive</i> 36 * entry, this extension can write uncompressed entries as well. In this case 84 * the {@code OutputStream} to write the data to. 176 cDir.write(nameBytes); 179 cDir.write(currentEntry.extra); 183 cDir.write(c.getBytes()); 223 cDir.write(comment.getBytes()); 228 out.write(cDir.toByteArray()); 235 * the entry can then be written using {@code write()} 393 public void write(byte[] buffer, int off, int nbytes) method in class:ZipOutputStream [all...] |
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
H A D | ZipExecTest.java | 69 zout.write(getResource(resources, "hyts_" + zipClass + ".ser")); 73 man.write(zout); 114 man.write(zoutFoo); 116 zoutFoo.write(getResource(resources, "hyts_Foo.ser")); 122 zoutBar.write(getResource(resources, "hyts_Bar.ser")); 137 man.write(zoutFoo); 139 zoutFoo.write(getResource(resources, "hyts_Foo.ser")); 153 man.write(zoutFoo); 155 zoutFoo.write(getResource(resources, "hyts_Foo.ser")); 188 joutFoo.write(getResourc [all...] |
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
H A D | Manifest.java | 191 * The {@code OutputStream} to write to. 195 public void write(OutputStream os) throws IOException { method in class:Manifest 196 write(this, os); 265 baos.write(buffer, 0, count); 266 baos.write(nextByte); 272 baos.write(buffer, 0, count); 340 * the manifest to write out. 342 * The {@code OutputStream} to write to. 346 static void write(Manifest manifest, OutputStream out) throws IOException { method in class:Manifest 364 out.write(LINE_SEPARATO [all...] |
/dalvik/libcore/archive/src/test/java/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 68 out.write(1); 69 out.write(2); 70 out.write(3);
|