Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 113) sorted by relevance

12345

/development/tools/axl/
Daxl.py35 def write(self, data): member in BaseProtocol
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")
96 self.write("Cache-Contr")
[all …]
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DOutput.java51 public void write(String format, Object... args) { in write() method in Output
53 mWriter.write(String.format(format, args)); in write()
64 public void write(char c) { in write() method in Output
65 write(Character.toString(c)); in write()
73 public void write(StringBuilder sb) { in write() method in Output
74 write(sb.toString()); in write()
DClassSourcer.java57 mOutput.write("package %s;\n", pkg); in visit()
60 mAccessSourcer.write(access & ~Opcodes.ACC_SUPER, AccessSourcer.IS_CLASS); in visit()
63 mOutput.write(" class %s", mClassName); in visit()
72 mOutput.write(sigSourcer.formalsToString()); in visit()
75 mOutput.write(" extends %s", sigSourcer.getSuperClass().toString()); in visit()
79 mOutput.write(" extends %s", superName.replace('/', '.')); in visit()
84 mOutput.write(" implements "); in visit()
88 mOutput.write(", "); in visit()
90 mOutput.write(i.replace('/', '.')); in visit()
96 mOutput.write(" {\n"); in visit()
[all …]
DMethodSourcer.java66 as.write(mAccess, AccessSourcer.IS_METHOD); in writeHeader()
77 mOutput.write(" %s", sigSourcer.formalsToString()); in writeHeader()
85 mOutput.write(" %s", Type.getReturnType(mDesc).getClassName()); in writeHeader()
88 mOutput.write(" %s", sigSourcer.getReturnType().toString()); in writeHeader()
93 mOutput.write(" %s(", mIsConstructor ? mClassName : mName); in writeHeader()
101 mOutput.write(", "); in writeHeader()
103 mOutput.write("%s arg%d", types[i].getClassName(), i); in writeHeader()
110 mOutput.write(", "); in writeHeader()
112 mOutput.write("%s arg%d", params.get(i).toString(), i); in writeHeader()
115 mOutput.write(")"); in writeHeader()
[all …]
DFieldSourcer.java49 mOutput.write("@%s", desc); in visitAnnotation()
55 mOutput.write("%s /* non-standard attribute */ ", attr.type); in visitAttribute()
63 as.write(mAccess, AccessSourcer.IS_FIELD); in visitEnd()
66 mOutput.write(" %s", Type.getType(mDesc).getClassName()); in visitEnd()
68 mOutput.write(" "); in visitEnd()
72 mOutput.write(sigSourcer.toString()); in visitEnd()
75 mOutput.write(" %s", mName); in visitEnd()
77 mOutput.write(";\n"); in visitEnd()
DAnnotationSourcer.java49 mOutput.write("%s=", name); in visit()
52 mOutput.write(name.toString()); in visit()
59 mOutput.write(mOpenChar); in startOpen()
66 mOutput.write(mCloseChar); in visitEnd()
68 mOutput.write("\n"); in visitEnd()
75 mOutput.write("@%s", name); in visitAnnotation()
87 mOutput.write("/* annotation enum not supported: %s */\n", name); in visitEnum()
DAccessSourcer.java96 public void write(int access, int filter) { in write() method in AccessSourcer
103 mOutput.write(" "); in write()
105 mOutput.write(f.toString()); in write()
/development/scripts/
Dcargo2android.py257 def write(self, s): member in Crate
259 self.outf.write(s + '\n')
321 self.write('\n// Before merge definition (1):')
323 self.write('\n// Before merge definition (2):')
348 self.write('\n// After merge definition (1):')
540 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line)
555 self.write('\n// IGNORED: ' + kind + ' ' + self.main_src)
574 self.write(self.errors)
586 self.write('//%12s = %s' % (name, value))
594 self.write(fmt % v)
[all …]
/development/tools/cargo_embargo/src/
Dbp.rs60 pub fn write(&self, w: &mut impl std::fmt::Write) -> Result<()> { in write() method
63 self.props.write(w)?; in write()
95 pub fn write(&self, w: &mut impl std::fmt::Write) -> Result<()> { in write() method
131 v.write(w)?; in write()
145 pub fn write(&self, w: &mut impl std::fmt::Write) -> Result<()> { in write() method
147 BpValue::Object(p) => p.write(w)?, in write()
148 BpValue::Bool(b) => write!(w, "{b}")?, in write()
149 BpValue::String(s) => write!(w, "\"{s}\"")?, in write()
153 v.write(w)?; in write()
/development/tools/
Dmonkey36 sys.stdout.write("\n")
37 sys.stdout.write(BOLD)
38 sys.stdout.write(UNDERLINE)
39 sys.stdout.write(s)
40 sys.stdout.write(ENDCOLOR)
41 sys.stdout.write("\n")
47 sys.stdout.write(BOLD)
51 sys.stdout.write("%s=\"%s\" " % (k, v.replace("\"", "\\\"")))
53 sys.stdout.write("%s=%s " % (k, v))
54 sys.stdout.write(" ".join(cmd))
[all …]
/development/vndk/snapshot/
Dgen_buildfiles.py152 bpfile.write(self._gen_autogen_msg('/'))
153 bpfile.write('\n')
154 bpfile.write(self._gen_license_package())
155 bpfile.write('\n')
156 bpfile.write(self._gen_license())
157 bpfile.write('\n')
158 bpfile.write('\n'.join(prebuilt_buildrules))
159 bpfile.write('\n')
169 bpfile.write(self._gen_autogen_msg('/'))
170 bpfile.write('\n')
[all …]
/development/tools/repo_diff/service/repodiff/tools/
Denv_variable_load.py18 f.write("\n")
23 f.write("export %s=\"%s\"\n" % (key, value))
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DDiskLruCache.java200 writer.write(buffer, 0, count); in readFully()
432 writer.write(MAGIC); in rebuildJournal()
433 writer.write("\n"); in rebuildJournal()
434 writer.write(VERSION_1); in rebuildJournal()
435 writer.write("\n"); in rebuildJournal()
436 writer.write(Integer.toString(appVersion)); in rebuildJournal()
437 writer.write("\n"); in rebuildJournal()
438 writer.write(Integer.toString(valueCount)); in rebuildJournal()
439 writer.write("\n"); in rebuildJournal()
440 writer.write("\n"); in rebuildJournal()
[all …]
/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java289 out.write(outbuf); in readSection()
298 out.write(outbuf); in readSection()
313 section.write(f); in writeSection()
332 f.write(outbuf); in writeSection()
339 f.write(outbuf); in writeSection()
349 section.write(f); in writeSection()
369 public void write(RandomAccessFile f) throws IOException { in write() method in EncryptedDocument.Section
371 f.write(iv); in write()
372 f.write(mac); in write()
DUtils.java52 out.write(data); in writeFully()
65 bytes.write(buffer, 0, count); in readFully()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DQuotedPrintable.java58 buffer.write((char) ((u << 4) + l)); in decodeQuotedPrintable()
63 buffer.write(b); in decodeQuotedPrintable()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbSocket.java41 if (! message.write(mDevice)) { in open()
73 message.write(mDevice); in sendReady()
/development/apps/Development/src/com/android/development/
DLogViewer.java88 this.socket.getOutputStream().write('\n'); in LogReader()
89 this.socket.getOutputStream().write('\n'); in LogReader()
96 logger.write("Reading message.\n".getBytes()); in run()
117 logger.write("Updating UI.\n".getBytes()); in run()
/development/tools/otagui/
Dweb_server.py69 self.wfile.write(
77 self.wfile.write(
87 self.wfile.write(
119 self.wfile.write(json.dumps(
152 output_file.write(chunk)
155 self.wfile.write(
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DAccessSourcerTest.java48 mSourcer.write(Opcodes.ACC_ABSTRACT | Opcodes.ACC_PUBLIC, AccessSourcer.IS_CLASS); in testAbstractPublic()
56 mSourcer.write(Opcodes.ACC_PRIVATE | Opcodes.ACC_FINAL | Opcodes.ACC_STATIC, in testPrivateFinalStatic()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() method in SimpleAudioOutput
77 return mAudioTrack.write(buffer, offset, length, in write()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() method in SimpleAudioOutput
77 return mAudioTrack.write(buffer, offset, length, in write()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DChatManager.java69 public void write(String msg) { in write() method in ChatManager
74 oStream.write(buffer); in write()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
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/tools/privapp_permissions/
Dprivapp_permissions.py91 sys.stderr.write(message % args + '\n')
651 fd.write('<?xml version="1.0" encoding="utf-8"?>\n')
652 fd.write('<!-- for the partition: /%s -->\n' % partition)
653 fd.write('<permissions>\n')
656 fd.write(' <!-- Additional permissions on top of %s -->\n' %
658 fd.write(' <privapp-permissions package="%s">\n' % package_name)
660 fd.write(' <permission name="%s"/>\n' % p)
661 fd.write(' </privapp-permissions>\n')
662 fd.write('\n')
664 fd.write('</permissions>\n')

12345