Home
last modified time | relevance | path

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

1234

/build/make/tools/
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.py62 sys.stderr.write("error: %s cannot exceed %d bytes: " %
64 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value)))
68 sys.stderr.write("error: found unresolved optional prop assignment:\n")
69 sys.stderr.write(str(p) + "\n")
104 sys.stderr.write("error: found duplicate sysprop assignments:\n")
106 sys.stderr.write("%s\n" % str(p))
207 def write(self, filename): member in PropList
210 f.write(str(p) + "\n")
221 sys.stderr.write("bad command line: " + str(argv) + "\n")
236 props.write(args.filename)
Dauto_gen_test_config_test.py132 f.write(MANIFEST_INVALID)
147 f.write(MANIFEST_JUNIT_TEST)
161 f.write(MANIFEST_INSTRUMENTATION_TEST)
Dauto_gen_test_config.py46 sys.stderr.write(
91 config_file.write(config)
Dgenerate-self-extracting-archive.py92 dst.write(b)
159 output.write(_HEADER_TEMPLATE.format(
Dfat16copy.py126 def write(self, data): member in fat_file
235 data_file.write(data.read())
403 f.write("\0" * self.fs.bytes_per_cluster)
415 f.write(entry)
438 def write(self, data): member in root_dentry_file
445 f.write(data)
627 f.write(struct.pack("<H", entry))
629 f.write(struct.pack("<H", entry))
735 f.write(data[data_begin:data_end])
/build/soong/scripts/
Dlint-project-xml.py99 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
100 f.write("<project>\n")
102 f.write(" <root dir='%s' />\n" % args.root_dir)
103 …f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
105 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
107 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
110 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
113 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
116 f.write(" <resource file='%s' %s/>\n" % (res, test_attr))
118 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')
Dmanifest.py124 f.write('<?xml version="1.0" encoding="utf-8"?>\n')
126 f.write(node.toxml(encoding='utf-8') + '\n')
/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/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.java306 outputJar.write(b, 0, read); in addOtacert()
359 out.write(entryData); in addV1Signature()
484 out.write(buffer, 0, num); in copyFiles()
544 out.write(buffer, 0, num); in copyFiles()
605 outputJar.write(Hints.encodeByteRangeList(pinByteRanges)); in addPinByteRanges()
687 write(data, 0, data.length - 2); in finish()
695 public void write(byte[] b) throws IOException { in write() method in SignApk.WholeFileSignerOutputStream
696 write(b, 0, b.length); in write()
700 public void write(byte[] b, int off, int len) throws IOException { in write() method in SignApk.WholeFileSignerOutputStream
703 footer.write(b, off, len); in write()
[all …]
/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/soong/cc/ndkstubgen/
D__init__.py37 def write(self, versions): member in Generator
63 self.version_script.write(version.name + ' {\n')
64 self.version_script.write(' global:\n')
69 self.version_script.write(' ' + symbol.name + ';\n')
76 self.src_file.write('{}int {} = 0;\n'.format(
79 self.src_file.write('{}void {}() {{}}\n'.format(
84 self.version_script.write('}' + base + ';\n')
145 generator.write(versions)
Dtest_ndkstubgen.py116 generator.write(versions)
189 generator.write(versions)
241 generator.write(versions)
339 generator.write(versions)
/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/tools/releasetools/
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')
Dtest_utils.py124 fp.write(struct.pack(
140 fp.write(struct.pack(
143 fp.write(os.urandom(data_size))
Dcheck_ota_package_signature.py109 f.write(signature)
119 f.write(bytearray.fromhex(digest_string))
153 pubkey_fp.write(common.ExtractPublicKey(cert))
Dtarget_files_diff.py85 new.write(line)
94 new.write(re.sub(r'[0-9a-f]{40}', '0'*40, line))
104 new.write(line)
/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__.py95 output_file.write(parsed_data)
97 def write(self, versions): member in XmlGenerator
131 generator.write(versions)

1234