Home
last modified time | relevance | path

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

12345

/build/make/tools/
Dgenerate-notice-files.py97 output_file.write(b"<html><head>\n")
98 output_file.write(HTML_OUTPUT_CSS)
99 …output_file.write(b'</head><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">\n')
102 output_file.write(b'<div class="toc">\n')
103 output_file.write(b"<ul>\n")
111 …output_file.write(('<li><a href="#id%d">%s</a></li>\n' % (id_table.get(filename), stripped_filenam…
113 output_file.write(b"</ul>\n")
114 output_file.write(b"</div><!-- table of contents -->\n")
116 output_file.write(b'<table cellpadding="0" cellspacing="0" border="0">\n')
118 output_file.write(b'<tr id="id%d"><td class="same-license">\n' % id_table.get(value[0]))
[all …]
Djava-layers.py8 sys.stderr.write("usage: java-layers.py DEPENDENCY_FILE SOURCE_DIRECTORIES...\n")
9 sys.stderr.write("\n")
10 sys.stderr.write("Enforces layering between java packages. Scans\n")
11 sys.stderr.write("DIRECTORY and prints errors when the packages violate\n")
12 sys.stderr.write("the rules defined in the DEPENDENCY_FILE.\n")
13 sys.stderr.write("\n")
14 sys.stderr.write("Prints a warning when an unknown package is encountered\n")
15 sys.stderr.write("on the assumption that it should fit somewhere into the\n")
16 sys.stderr.write("layering.\n")
17 sys.stderr.write("\n")
[all …]
Djava-event-log-tags.py99 buffer.write("/* This file is auto-generated. DO NOT MODIFY.\n"
103 buffer.write("package %s;\n\n" % (tagfile.options["java_package"][0],))
108 buffer.write("/**\n"
111 buffer.write("public class %s {\n" % (basename,))
112 buffer.write(" private %s() { } // don't instantiate\n" % (basename,))
116 buffer.write("\n /** %d %s %s */\n" % (t.tagnum, t.tagname, t.description))
118 buffer.write("\n /** %d %s */\n" % (t.tagnum, t.tagname))
120 buffer.write(" public static final int %s = %d;\n" %
148 buffer.write("\n public static void %s(%s) {" % (methodName, argTypesNames))
149 buffer.write("\n android.util.EventLog.writeEvent(%s%s);" % (t.tagname.upper(), argNames))
[all …]
Dpost_process_props.py57 sys.stderr.write("error: non-GRF device must not define "
65 sys.stderr.write("error: ro.board.first_api_level(%d) must be less than "
73 sys.stderr.write("error: ro.board.api_level(%d) must be neither less "
96 sys.stderr.write("error: %s cannot exceed %d bytes: " %
98 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value)))
102 sys.stderr.write("error: found unresolved optional prop assignment:\n")
103 sys.stderr.write(str(p) + "\n")
138 sys.stderr.write("error: found duplicate sysprop assignments:\n")
140 sys.stderr.write("%s\n" % str(p))
241 def write(self, filename): member in PropList
[all …]
Dcompare_builds.py209 sys.stderr.write("Can't pass --detect-embedded-paths and --incremental together.\n")
212 sys.stderr.write("Can't pass --detect-embedded-paths and --no-check-out-dir together.\n")
215 sys.stderr.write("The --incremental flag is required if the --touch flag is passed.")
319 sys.stderr.write("FAILED: Please run from the root of the tree.\n")
327 sys.stderr.write("error: Can't determine %s. Please run lunch first.\n" % name)
359 sys.stderr.write("error: Can't determine %s. Please run lunch first.\n" % name)
382 sys.stderr.buffer.write(output)
383 sys.stderr.write("FAILED: Build failed. Stopping.\n")
647 sys.stdout.write("\n")
648 sys.stdout.write("%s:\n" % title)
[all …]
Dauto_gen_test_config_test.py132 f.write(MANIFEST_INVALID)
147 f.write(MANIFEST_JUNIT_TEST)
161 f.write(MANIFEST_INSTRUMENTATION_TEST)
/build/soong/scripts/
Dlint_project_xml.py104 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
105 f.write("<project>\n")
107 f.write(" <root dir='%s' />\n" % args.root_dir)
108 …f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
110 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
112 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
115 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
118 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
121 f.write(" <resource file='%s' %s/>\n" % (res, test_attr))
123 f.write(" <classes jar='%s' />\n" % classes)
[all …]
Dgen-kotlin-build-file.py64 f.write('<modules>\n')
65 …f.write(' <module name="%s" type="java-production" outputDir="%s">\n' % (args.name, args.out_dir …
71 f.write(' <classpath path="%s"/>\n' % path)
78 f.write(' <javaSourceRoots path="%s"/>\n' % path)
80 f.write(' <sources path="%s"/>\n' % path)
87 f.write(' <sources path="%s"/>\n' % path)
88 f.write(' <commonSources path="%s"/>\n' % path)
90 f.write(' </module>\n')
91 f.write('</modules>\n')
Dconv_linker_config.py38 f.write(pb.SerializeToString())
66 f.write(pb.SerializeToString())
82 f.write(pb.SerializeToString())
92 f.write(pb.SerializeToString())
/build/soong/ui/terminal/
Dutil.go64 write := input
67 advance := func(write, read []byte, count int) ([]byte, []byte) {
68 copy(write, read[:count])
69 return write[count:], read[count:]
77 copy(write, read)
83 write, read = advance(write, read, i+1)
88 write, read = advance(write, read, i)
/build/soong/mk2rbc/
Dexpr.go100 gctx.write("True")
102 gctx.write("False")
126 gctx.write("g")
195 gctx.write(`" ".join(`)
197 gctx.write(`)`)
207 gctx.write(sep)
211 gctx.write(")")
256 gctx.write("[:]") // this will copy the list
278 ctx.write(`" ".join(`)
280 ctx.write(")")
[all …]
Dnode.go38 gctx.write(chunks[0]) // It has '#' at the beginning already.
41 gctx.write("#", chunk)
115 gctx.write("}.get(")
117 gctx.write(")")
251 gctx.write(ifElif)
253 gctx.write(":")
260 gctx.write("else:")
310 gctx.write(":")
/build/make/tools/signapk/src/com/android/signapk/
DCountingOutputStream.java39 public void write(byte[] b) throws IOException { in write() method in CountingOutputStream
40 mBase.write(b); in write()
45 public void write(byte[] b, int off, int len) throws IOException { in write() method in CountingOutputStream
46 mBase.write(b, off, len); in write()
51 public void write(int b) throws IOException { in write() method in CountingOutputStream
52 mBase.write(b); in write()
DSignApk.java335 outputJar.write(b, 0, read); in addOtacert()
388 out.write(entryData); in addV1Signature()
513 out.write(buffer, 0, num); in copyFiles()
573 out.write(buffer, 0, num); in copyFiles()
634 outputJar.write(Hints.encodeByteRangeList(pinByteRanges)); in addPinByteRanges()
716 write(data, 0, data.length - 2); in finish()
724 public void write(byte[] b) throws IOException { in write() method in SignApk.WholeFileSignerOutputStream
725 write(b, 0, b.length); in write()
729 public void write(byte[] b, int off, int len) throws IOException { in write() method in SignApk.WholeFileSignerOutputStream
732 footer.write(b, off, len); in write()
[all …]
/build/make/orchestrator/core/
Dlunch.py186 sys.stderr.write("exception %s" % ex.__dict__)
217 sys.stderr.write("ERROR: lunch.py must be run from the root of a multi-tree workspace\n")
224 sys.stderr.write("Can't find lunch combo file for: %s\n" % " ".join(args))
227 sys.stderr.write("Can't find variant for: %s\n" % " ".join(args))
234 sys.stderr.write(str(ex))
239 sys.stderr.write("%s: Lunch config file (or inherited files) does not have the 'lunchable'"
241 sys.stderr.write(" flag set, which means it is probably not a complete lunch spec.\n")
244 sys.stdout.write("%s\n" % config_file)
245 sys.stdout.write("%s\n" % variant)
263 sys.stderr.write("%s" % ex)
[all …]
/build/soong/cc/ndkstubgen/
D__init__.py42 def write(self, versions: Iterable[Version]) -> None: member in Generator
44 self.symbol_list.write('[abi_symbol_list]\n')
69 self.version_script.write(version.name + ' {\n')
70 self.version_script.write(' global:\n')
75 self.version_script.write(' ' + symbol.name + ';\n')
82 self.src_file.write(f'{weak}int {symbol.name} = 0;\n')
84 self.src_file.write(f'{weak}void {symbol.name}() {{}}\n')
86 self.symbol_list.write(f'{symbol.name}\n')
90 self.version_script.write('}' + base + ';\n')
168 generator.write(versions)
/build/make/tools/fs_config/
Dtest_fs_config_generator.py68 temp_file.write(
95 temp_file.write(
122 temp_file.write(
135 temp_file.write(
149 temp_file.write(
162 temp_file.write(
175 temp_file.write(
189 temp_file.write(
210 temp_file.write(
245 temp_file.write(
[all …]
/build/make/tools/releasetools/
Dfsverity_metadata_generator.py158 out.write(pack('<I', 1))
162 out.write(f.read())
169 out.write(pack('<I', SIG_TYPE_RAW))
171 out.write(pack('<I', len(sig)))
172 out.write(sig)
175 out.write(pack('<I', SIG_TYPE_PKCS7))
177 out.write(pack('<I', len(sig)))
178 out.write(sig)
180 out.write(pack('<I', SIG_TYPE_NONE))
181 out.write(pack('<I', 0))
[all …]
Dtest_validate_target_files.py39 kernel_fp.write(os.urandom(10))
102 boot_fp.write(last_byte)
244 f.write('aaa')
245 f.write('\0' * 4096 * 3)
247 f.write('bbb')
248 f.write('\0' * 4096 * 3)
269 f.write(line)
277 input_zip.write(os.path.join(input_tmp, name), arcname=name)
295 f.write('a' * 4096 + 'b' * 4096 + 'c' * 4096)
313 f.write('c' * 4096 + 'b' * 4096 + 'a' * 4096)
[all …]
Dtest_build_image.py117 fs_config_fp.write('fs-config-{}\n'.format(partition))
123 init_fp.write('init')
127 in_fp.write('system-file')
152 init_fp.write('init')
156 in_fp.write('system-file')
/build/make/tools/product_config/
Dinherit_tree.py12 sys.stdout.write("%s%s" % (prefix, node))
15 sys.stdout.write(" {\n")
18 sys.stdout.write("%s}\n" % prefix);
20 sys.stdout.write("\n")
/build/soong/ui/build/sandbox/darwin/
Dglobal.sb13 (allow file-write*
17 ; Java attempts to write usage data to ~/.oracle_jre_usage, just ignore
18 (deny file-write* (with no-log)
22 (allow file-write*
26 (allow file-write-data
/build/make/core/
Ddistdir.mk53 define dist-write-file
55 $(KATI_obsolete_var dist-for-goals,Cannot be used after dist-write-file) \
69 .KATI_READONLY := dist-for-goals dist-write-file
/build/soong/bpfix/cmd_lib/
Dbpfix.go39 write = flag.Bool("w", false, "write result to (source) file instead of stdout") var
94 if *write {
109 if !*list && !*write && !*doDiff {
137 if *write {
/build/soong/cc/ndk_api_coverage_parser/
D__init__.py105 output_file.write(parsed_data)
107 def write(self, versions): member in XmlGenerator
149 generator.write(versions)

12345