/libcore/luni/src/test/java/libcore/java/io/ |
OldWriterTest.java | 102 tobj.write("01234".toCharArray()); 104 tobj.write("abcde".toCharArray()); 106 tobj.write("ABCDEFGHIJ".toCharArray()); 108 tobj.write("z".toCharArray()); // Just fill the writer to its limit! 110 tobj.write("LES JEUX SONT FAITS".toCharArray()); 119 tobj.write('a'); 120 tobj.write('b'); 123 tobj.write('c'); 132 tobj.write("01234"); 134 tobj.write("abcde") [all...] |
OldBufferedWriterTest.java | 38 bw.write("Hi", 0, 2); 57 bw.write("Hi", 0, 2); 70 bw.write(testString); 75 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); 87 bw.write("This should not cause a flush"); 106 bw.write("Hello"); 108 bw.write("World"); 124 // Test for method void java.io.BufferedWriter.write(char [], int, int) 127 bw.write(testCharArray, 500, 1000); 133 bw.write(testCharArray, 0, testCharArray.length) [all...] |
OldFilterWriterTest.java | 48 public void write(char[] buffer, int offset, int count) throws IOException { method in class:OldFilterWriterTest.MockWriter 52 public void write(int oneChar) throws IOException { method in class:OldFilterWriterTest.MockWriter 56 public void write(String str, int offset, int count) throws IOException { method in class:OldFilterWriterTest.MockWriter 91 fw.write(0); 92 assertTrue("write(int) has not been called.", called); 97 fw.write(buffer, 0, 5); 98 assertTrue("write(char[], int, int) has not been called.", called); 108 fw.write(buffer, 0, -1); 115 fw.write(buffer, -1, 1); 122 fw.write(buffer, 10, 1) [all...] |
/development/tools/axl/ |
axl.py | 35 def write(self, data): member in class:BaseProtocol 36 self.log("BaseProtocol.write()", len(data), data) 37 return self.transport.write(data) 50 self.write("HTTP/1.1 200 OK\r\n") 51 self.write("Content-Length: %d\r\n\r\n" % len(response)) 53 self.write(response) 78 self.write("welcome to the jungle baby\r\n") 85 self.write("HTTP/1.1 200 OK\r\n") 86 self.write("Cache-Contr") 95 self.write("HTTP/1.1 200 OK\r\n" [all...] |
/external/protobuf/python/google/protobuf/internal/ |
encoder.py | 43 strings and invokes the writer function to write those strings. Typically the 44 writer function is the write() method of a cStringIO. 338 def EncodeVarint(write, value): 342 write(local_chr(0x80|bits)) 345 return write(local_chr(bits)) 355 def EncodeSignedVarint(write, value): 361 write(local_chr(0x80|bits)) 364 return write(local_chr(bits)) 407 def EncodePackedField(write, value): 408 write(tag_bytes [all...] |
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
Wap230WspContentTypeTest.java | 258 out.write(0x00); 267 out.write(testType.getBytes("US-ASCII")); 268 out.write(WSP_STRING_TERMINATOR); 282 out.write(testType.length() + 1); 283 out.write(testType.getBytes("US-ASCII")); 284 out.write(WSP_STRING_TERMINATOR); 298 out.write(0x01); 299 out.write(SHORT_MIME_TYPE_ROLLOVER_CERTIFICATE | WSP_SHORT_INTEGER_MASK); 314 out.write(0x01); 315 out.write(SHORT_MIME_TYPE_UNASSIGNED | WSP_SHORT_INTEGER_MASK) [all...] |
/bionic/libc/arch-arm/syscalls/ |
write.S | 5 ENTRY(write) function 14 END(write)
|
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
FieldSourcer.java | 45 mOutput.write("@%s", desc); 50 mOutput.write("%s /* non-standard attribute */ ", attr.type); 54 // Need to write type and field name after the annotations and attributes. 57 as.write(mAccess, AccessSourcer.IS_FIELD); 60 mOutput.write(" %s", Type.getType(mDesc).getClassName()); 62 mOutput.write(" "); 66 mOutput.write(sigSourcer.toString()); 69 mOutput.write(" %s", mName); 71 mOutput.write(";\n");
|
ClassSourcer.java | 53 mOutput.write("package %s;\n", pkg); 56 mAccessSourcer.write(access & ~Opcodes.ACC_SUPER, AccessSourcer.IS_CLASS); 58 // write class name 59 mOutput.write(" class %s", mClassName); 62 // write template formal definition and super type 68 mOutput.write(sigSourcer.formalsToString()); 71 mOutput.write(" extends %s", sigSourcer.getSuperClass().toString()); 74 // write non-generic super type 75 mOutput.write(" extends %s", superName.replace('/', '.')); 78 // write interfaces defined, if an [all...] |
AnnotationSourcer.java | 45 mOutput.write("%s=", name); 48 mOutput.write(name.toString()); 55 mOutput.write(mOpenChar); 61 mOutput.write(mCloseChar); 63 mOutput.write("\n"); 69 mOutput.write("@%s", name); 79 mOutput.write("/* annotation enum not supported: %s */\n", name);
|
/external/javassist/sample/evolve/ |
WebPage.java | 14 out.write(c.getTime().toString());
15 out.write("<P><A HREF=\"demo.html\">Return to the home page.</A>");
|
/external/valgrind/main/drd/tests/ |
linuxthreads_det.c | 18 write(STDOUT_FILENO, "NPTL or non-Linux POSIX threads implementation detected.\n", 57); 22 write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55);
|
/libcore/luni/src/main/java/java/nio/channels/ |
GatheringByteChannel.java | 23 * The interface for channels that can write a set of buffers in a single 32 * This method is equivalent to: {@code write(buffers, 0, buffers.length);} 38 * if the channel is closed by another thread during this write 56 public long write(ByteBuffer[] buffers) throws IOException; method in interface:GatheringByteChannel 59 * Attempts to write all <code>remaining()</code> bytes from {@code length} 63 * If a write operation is in progress, subsequent threads will block until 64 * the write is completed and then contend for the ability to write. 76 * if the channel is closed by another thread during this write 93 public long write(ByteBuffer[] buffers, int offset, int length method in interface:GatheringByteChannel [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
AbstractHttpOutputStream.java | 25 * <p>Since a single socket's output stream may be used to write multiple HTTP 31 @Override public final void write(int data) throws IOException { method in class:AbstractHttpOutputStream 32 write(new byte[] { (byte) data }); method
|
/packages/apps/Camera/tests/src/com/android/camera/stress/ |
TestUtil.java | 42 mOut.write("\n"); 48 mOut.write(reportTag); 49 mOut.write("No of loops :" + iteration + "\n"); 50 mOut.write("loop: "); 54 mOut.write(" ," + iteration);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
BufferedWriterTest.java | 42 sw.write("Hi"); 57 public void write(char[] buf, int off, int len) throws IOException { method in class:BufferedWriterTest.MockWriter 86 bw.write(testString); 91 assertTrue("Write after close", !sw.toString().equals(testString)); 96 bw.write('a'); 123 bw.write("This should not cause a flush"); 135 bw.write("Hello"); 137 bw.write("World"); 144 * @tests java.io.BufferedWriter#write(char[], int, int) 148 bw.write(testCharArray, 500, 1000) [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonWriter.java | 37 * <li>To write <strong>arrays</strong>, first call {@link #beginArray()}. 38 * Write each of the array's elements with the appropriate {@link #value} 41 * <li>To write <strong>objects</strong>, first call {@link #beginObject()}. 42 * Write each of the object's properties by alternating calls to 43 * {@link #name} with the property's value. Write property values with the 53 * "text": "How do I write JSON on Android?", 116 * <p>Each {@code JsonWriter} may be used to write a single JSON stream. 216 out.write(openBracket); 235 out.write(closeBracket); 290 out.write("null") [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
MediaPlayerStressTest.java | 65 output.write("File Name: " + filename); 66 output.write(" Complete: " + CodecTest.onCompleteSuccess); 67 output.write(" Error: " + CodecTest.mPlaybackError); 68 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); 69 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); 70 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); 71 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); 72 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); 73 output.write("\n"); 77 output.write("Total Result:\n") [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SmsHeader.java | 203 outStream.write(ELT_ID_CONCATENATED_8_BIT_REFERENCE); 204 outStream.write(3); 205 outStream.write(concatRef.refNumber); 207 outStream.write(ELT_ID_CONCATENATED_16_BIT_REFERENCE); 208 outStream.write(4); 209 outStream.write(concatRef.refNumber >>> 8); 210 outStream.write(concatRef.refNumber & 0x00FF); 212 outStream.write(concatRef.msgCount); 213 outStream.write(concatRef.seqNumber); 218 outStream.write(ELT_ID_APPLICATION_PORT_ADDRESSING_8_BIT) [all...] |
/libcore/luni/src/main/java/java/io/ |
StringWriter.java | 108 * the non-null character array to write. 110 * the index of the first character in {@code chars} to write. 112 * the maximum number of characters to write. 118 public void write(char[] chars, int offset, int count) { method in class:StringWriter 131 * the character to write to this writer's {@code StringBuffer}. 134 public void write(int oneChar) { method in class:StringWriter 143 * the non-null string containing the characters to write. 146 public void write(String str) { method in class:StringWriter 155 * the non-null string containing the characters to write. 157 * the index of the first character in {@code str} to write 165 public void write(String str, int offset, int count) { method in class:StringWriter 230 write(output, 0, output.length()); method [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
InflaterOutputStream.java | 26 * An {@code OutputStream} filter to decompress data. Callers write 111 write(); method 124 public void write(int b) throws IOException, ZipException { method in class:InflaterOutputStream 125 write(new byte[] { (byte) b }, 0, 1); method 139 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { method in class:InflaterOutputStream 143 write(); method 146 private void write() throws IOException, ZipException { method in class:InflaterOutputStream 150 out.write(buf, 0, inflated);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
IndentingWriter.java | 91 public void write(int c) throws IOException { method in class:IndentingWriter 106 out.write('\n'); 116 out.write(prefix); 121 out.write(' '); 127 out.write(c); 139 public void write(char[] cbuf, int off, int len) throws IOException { method in class:IndentingWriter 142 write(cbuf[off]); 151 public void write(String str, int off, int len) throws IOException { method in class:IndentingWriter 154 write(str.charAt(off));
|
/dalvik/dx/src/com/android/dx/util/ |
IndentingWriter.java | 91 public void write(int c) throws IOException { method in class:IndentingWriter 106 out.write('\n'); 116 out.write(prefix); 121 out.write(' '); 127 out.write(c); 139 public void write(char[] cbuf, int off, int len) throws IOException { method in class:IndentingWriter 142 write(cbuf[off]); 151 public void write(String str, int off, int len) throws IOException { method in class:IndentingWriter 154 write(str.charAt(off));
|
/hardware/msm7k/dspcrashd/ |
dspcrashd.c | 64 while((ret = write(fd, p, n))) { 83 write(fd, dashes, strlen(dashes)); 87 write(fd, buf, strlen(buf)); 90 write(fd, dashes, strlen(dashes)); 92 write(fd, dashes, strlen(dashes)); 115 write(fd, buf, r); 124 write(fd, buf, strlen(buf)); 136 write(fd, "wait-for-crash", 14); 144 write(fd, "continue-crash", 14);
|
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/ |
SmilXmlSerializer.java | 49 writer.write('<'); 50 writer.write(element.getTagName()); 56 writer.write(" " + attribute.getName()); 57 writer.write("=\"" + attribute.getValue() + "\""); 65 writer.write('>'); 72 writer.write("</"); 73 writer.write(element.getTagName()); 74 writer.write('>'); 76 writer.write("/>");
|