Searched refs:write (Results 1 - 25 of 93) sorted by relevance

1234

/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
H A DOutput.java23 * An {@link Output} objects is an helper to write to a character stream {@link Writer}.
26 * to help them write to the underlying stream.
37 * @param writer The writer to write to. Could be a file, a string, etc.
51 public void write(String format, Object... args) { method in class:Output
53 mWriter.write(String.format(format, args));
62 * @param c The character to write.
64 public void write(char c) { method in class:Output
65 write(Character.toString(c));
71 * @param sb The {@link StringBuilder#toString()} method is used to ge the string to write.
73 public void write(StringBuilde method in class:Output
[all...]
H A DFieldSourcer.java48 mOutput.write("@%s", desc);
54 mOutput.write("%s /* non-standard attribute */ ", attr.type);
59 // Need to write type and field name after the annotations and attributes.
62 as.write(mAccess, AccessSourcer.IS_FIELD);
65 mOutput.write(" %s", Type.getType(mDesc).getClassName());
67 mOutput.write(" ");
71 mOutput.write(sigSourcer.toString());
74 mOutput.write(" %s", mName);
76 mOutput.write(";\n");
H A DClassSourcer.java55 mOutput.write("package %s;\n", pkg);
58 mAccessSourcer.write(access & ~Opcodes.ACC_SUPER, AccessSourcer.IS_CLASS);
60 // write class name
61 mOutput.write(" class %s", mClassName);
64 // write template formal definition and super type
70 mOutput.write(sigSourcer.formalsToString());
73 mOutput.write(" extends %s", sigSourcer.getSuperClass().toString());
76 // write non-generic super type
77 mOutput.write(" extends %s", superName.replace('/', '.'));
80 // write interface
[all...]
H A DAnnotationSourcer.java48 mOutput.write("%s=", name);
51 mOutput.write(name.toString());
58 mOutput.write(mOpenChar);
65 mOutput.write(mCloseChar);
67 mOutput.write("\n");
74 mOutput.write("@%s", name);
86 mOutput.write("/* annotation enum not supported: %s */\n", name);
H A DMethodSourcer.java65 as.write(mAccess, AccessSourcer.IS_METHOD);
76 mOutput.write(" %s", sigSourcer.formalsToString());
84 mOutput.write(" %s", Type.getReturnType(mDesc).getClassName());
87 mOutput.write(" %s", sigSourcer.getReturnType().toString());
92 mOutput.write(" %s(", mIsConstructor ? mClassName : mName);
100 mOutput.write(", ");
102 mOutput.write("%s arg%d", types[i].getClassName(), i);
109 mOutput.write(", ");
111 mOutput.write("%s arg%d", params.get(i).toString(), i);
114 mOutput.write(")");
[all...]
H A DAccessSourcer.java25 * {@link #IS_METHOD}), the {@link #write(int, int)} method can generate a string
96 public void write(int access, int filter) { method in class:AccessSourcer
103 mOutput.write(" ");
105 mOutput.write(f.toString());
/development/tools/axl/
H A Daxl.py35 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("HTT
[all...]
H A Dlog.py41 self._file.write("%s %s\n" % (timeStr, ln))
/development/samples/USB/AdbTest/src/com/android/adb/
H A DAdbSocket.java41 if (! message.write(mDevice)) {
73 message.write(mDevice);
/development/tools/idegen/src/
H A DFiles.java45 out.write(contents);
/development/samples/Vault/src/com/example/android/vault/
H A DUtils.java52 out.write(data);
65 bytes.write(buffer, 0, count);
H A DEncryptedDocument.java173 * @param contentOut write end of a pipe.
198 * Encrypt and write both the metadata and content sections of this
202 * swapping into place only when write is successful.
213 // contents during write, and also to recover from failed writes.
238 // Rewind and write metadata section
289 out.write(outbuf);
298 out.write(outbuf);
303 * Encrypt and write the given stream as a full section. Writes section
313 section.write(f);
332 f.write(outbu
369 public void write(RandomAccessFile f) throws IOException { method in class:EncryptedDocument.Section
[all...]
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
H A DChatManager.java68 public void write(byte[] buffer) { method in class:ChatManager
70 oStream.write(buffer);
72 Log.e(TAG, "Exception during write", e);
/development/scripts/
H A Dcompare-installed-size.py83 output.write("%s, %d\n" % (key, bin_sizes[idx][key]))
100 output.write("%s, %s, %s, %s, %d\n" %
H A Dsymbol.py194 child.stdin.write("0x%s\n" % addr)
212 child.stdin.write("\n")
322 process.stdin.write(mangled_symbol)
323 process.stdin.write("\n")
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
H A DAccessSourcerTest.java48 mSourcer.write(Opcodes.ACC_ABSTRACT | Opcodes.ACC_PUBLIC, AccessSourcer.IS_CLASS);
56 mSourcer.write(Opcodes.ACC_PRIVATE | Opcodes.ACC_FINAL | Opcodes.ACC_STATIC,
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
H A DDiskLruCache.java200 writer.write(buffer, 0, count);
432 writer.write(MAGIC);
433 writer.write("\n");
434 writer.write(VERSION_1);
435 writer.write("\n");
436 writer.write(Integer.toString(appVersion));
437 writer.write("\n");
438 writer.write(Integer.toString(valueCount));
439 writer.write("\n");
440 writer.write("\
862 @Override public void write(int oneByte) { method in class:DiskLruCache.Editor.FaultHidingOutputStream
870 @Override public void write(byte[] buffer, int offset, int length) { method in class:DiskLruCache.Editor.FaultHidingOutputStream
[all...]
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DSharingSupport.java76 fw.write("This is a file share");
95 fw.write("This is a file share");
99 fw.write("This is another file share");
/development/apps/Development/src/com/android/development/
H A DLogViewer.java88 this.socket.getOutputStream().write('\n');
89 this.socket.getOutputStream().write('\n');
96 logger.write("Reading message.\n".getBytes());
117 logger.write("Updating UI.\n".getBytes());
163 // logger.write(builder.toString().getBytes());
/development/testrunner/
H A Dlogger.py56 file_handle.write('\n' + str(msg))
H A Dcreate_test.py117 # write tests/AndroidManifest.xml
119 tests_manifest.write(output)
148 mk_file.write(TestsConsts.MK_BUILD_STRING)
167 # write tests/Android.mk to disk
169 tests_mk.write(output)
/development/cmds/monkey/src/com/android/commands/monkey/
H A DMonkeyFlipEvent.java68 f.write(mKeyboardOpen ? FLIP_0 : FLIP_1);
/development/ndk/platforms/android-3/include/linux/
H A Dsysfs.h46 ssize_t (*write)(struct kobject *, char *, loff_t, size_t); member in struct:bin_attribute
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
H A Ddashboard.py63 self.response.out.write(template.render(path, template_values))
150 self.response.out.write(template.render(path, template_values))
174 self.response.out.write(contact.avatar)
192 self.response.out.write(template.render(path, template_values))
/development/samples/ToyVpn/src/com/example/android/toyvpn/
H A DToyVpnService.java182 tunnel.write(packet);
200 out.write(packet.array(), 0, length);
228 tunnel.write(packet);
271 tunnel.write(packet);

Completed in 1453 milliseconds

1234