Home
last modified time | relevance | path

Searched refs:stdout (Results 1 – 25 of 88) sorted by relevance

1234

/build/make/tools/compliance/cmd/htmlnotice/
Dhtmlnotice.go42 stdout io.Writer member
222 fmt.Fprintln(ctx.stdout, "<!DOCTYPE html>")
223 fmt.Fprintln(ctx.stdout, "<html><head>")
224 fmt.Fprintln(ctx.stdout, "<style type=\"text/css\">")
225 fmt.Fprintln(ctx.stdout, "body { padding: 2px; margin: 0; }")
226 fmt.Fprintln(ctx.stdout, "ul { list-style-type: none; margin: 0; padding: 0; }")
227 fmt.Fprintln(ctx.stdout, "li { padding-left: 1em; }")
228 fmt.Fprintln(ctx.stdout, ".file-list { margin-left: 1em; }")
229 fmt.Fprintln(ctx.stdout, "</style>")
231 fmt.Fprintf(ctx.stdout, "<title>%s</title>\n", html.EscapeString(ctx.title))
[all …]
/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/terminal/
Dstdio.go43 stdout io.Writer member
47 func NewCustomStdio(stdin io.Reader, stdout, stderr io.Writer) StdioInterface { argument
48 return customStdio{stdin, stdout, stderr}
52 func (c customStdio) Stdout() io.Writer { return c.stdout }
/build/make/tools/
Dwhichgit11 check=True, capture_output=True, text=True).stdout.strip()
16 check=True, capture_output=True, text=True).stdout.strip()
18 return result.stdout.strip().split("\n")
36 … stderr=subprocess.STDOUT, stdout=subprocess.PIPE, check=False, text=True)
38 sys.stderr.write(result.stdout)
40 sources.update(set([f for f in result.stdout.split("\n") if not f.startswith("out/")]))
47 check=False, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, text=True)
49 sys.stderr.write(result.stdout)
54 text = subprocess.run(["repo","list"], check=True, capture_output=True, text=True).stdout
Dextract_kernel.py119 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
131 sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
209 const=to_bytes_io(sys.stdout))
216 const=to_bytes_io(sys.stdout))
223 const=to_bytes_io(sys.stdout))
230 const=to_bytes_io(sys.stdout))
/build/make/tools/compliance/cmd/xmlnotice/
Dxmlnotice.go42 stdout io.Writer member
220 fmt.Fprintln(ctx.stdout, "<?xml version=\"1.0\" encoding=\"utf-8\"?>")
221 fmt.Fprintln(ctx.stdout, "<licenses>")
227 fmt.Fprintf(ctx.stdout, "<file-name contentId=\"%s\" lib=\"", h.String())
228 xml.EscapeText(ctx.stdout, []byte(lib))
229 fmt.Fprintf(ctx.stdout, "\">")
230 xml.EscapeText(ctx.stdout, []byte(p))
231 fmt.Fprintln(ctx.stdout, "</file-name>")
236 fmt.Fprintf(ctx.stdout, "<file-content contentId=\"%s\"><![CDATA[", h)
237 xml.EscapeText(ctx.stdout, ni.HashText(h))
[all …]
/build/soong/scripts/check_boot_jars/
Dcheck_boot_jars.py44 stdout=subprocess.PIPE,
46 stdout, _ = p.communicate()
53 root = xml.etree.ElementTree.fromstring(stdout)
56 print(stdout, file=sys.stderr)
/build/make/tools/releasetools/
Dtarget_files_diff.py142 proc = subprocess.Popen(['diff', f1, f2], stdout=subprocess.PIPE,
144 (stdout, _) = proc.communicate()
147 stdout = stdout.strip()
148 if stdout == 'Binary files %s and %s differ' % (f1, f2):
151 for line in stdout.strip().split(b'\n'):
225 out_file = sys.stdout
Dcheck_ota_package_signature.py41 cert_dump = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
113 sig = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
125 common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
129 decrypted_output = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
/build/blueprint/gotestrunner/
Dgotestrunner.go38 func handleStdout(stdout io.Reader) {
39 reader := bufio.NewReader(stdout)
77 stdout, err := cmd.StdoutPipe()
89 handleStdout(stdout)
/build/make/tools/compliance/cmd/textnotice/
Dtextnotice.go41 stdout io.Writer member
219 fmt.Fprintf(ctx.stdout, "%s\n\n", ctx.title)
222 …fmt.Fprintln(ctx.stdout, "========================================================================…
224 fmt.Fprintf(ctx.stdout, "%s used by:\n", libName)
226 fmt.Fprintf(ctx.stdout, " %s\n", ctx.strip(installPath))
228 fmt.Fprintln(ctx.stdout)
230 ctx.stdout.Write(ni.HashText(h))
231 fmt.Fprintln(ctx.stdout)
/build/soong/cmd/run_with_timeout/
Drun_with_timeout_test.go82 stdout := &bytes.Buffer{}
84 …t.args.command, tt.args.args, tt.args.timeout, tt.args.onTimeoutCmd, tt.args.stdin, stdout, stderr)
89 if gotStdout := stdout.String(); gotStdout != tt.wantStdout {
/build/make/tools/compliance/cmd/checkmetadata/
Dcheckmetadata_test.go163 stdout := &bytes.Buffer{}
170 err := checkProjectMetadata(stdout, stderr, compliance.GetFS(""), projects...)
176 for _, s := range strings.Split(stdout.String(), "\n") {
/build/make/tools/compliance/cmd/dumpgraph/
Ddumpgraph.go173 func dumpGraph(ctx *context, stdout, stderr io.Writer, rootFS fs.FS, files ...string) error { argument
214 fmt.Fprintf(stdout, "\t%s [label=\"%s\"];\n", nodeName, targetOut(target, "\\n"))
225 fmt.Fprintf(stdout, "strict digraph {\n\trankdir=RL;\n")
244 …fmt.Fprintf(stdout, "\t%s -> %s [label=\"%s\"];\n", dNode, tNode, strings.Join(annotations, "\\n"))
247 …fmt.Fprintf(stdout, "%s %s %s\n", targetOut(e.Target(), ":"), targetOut(e.Dependency(), ":"), stri…
253 fmt.Fprintf(stdout, "\t{rank=same;")
260 fmt.Fprintf(stdout, " %s", fNode)
263 fmt.Fprintf(stdout, "}\n}\n")
/build/soong/tests/
Dgenrule_sandbox_test.py78 stdout=asyncio.subprocess.PIPE,
82 stdout, stderr = await process.communicate()
84 print(stdout)
115 different_modules[module].append(e.stdout)
188 diffs[module][out] = e.stdout
/build/make/tools/compliance/cmd/shippedlibs/
Dshippedlibs_test.go199 stdout := &bytes.Buffer{}
207 ctx := context{stdout, stderr, compliance.GetFS(tt.outDir)}
218 t.Logf("got stdout: %s", stdout.String())
222 out := bufio.NewScanner(stdout)
/build/make/tools/compliance/cmd/dumpresolutions/
Ddumpresolutions.go186 func dumpResolutions(ctx *context, stdout, stderr io.Writer, rootFS fs.FS, files ...string) (*compl… argument
233 fmt.Fprintf(stdout, "\t%s [label=\"%s\"];\n", nodeName, targetOut(target, "\\n"))
247 fmt.Fprintf(stdout, "\t%s -> %s [label=\"%s\"];\n", tNode, aNode, strings.Join(cnames, "\\n"))
250 fmt.Fprintf(stdout, "%s %s %s\n", tname, aname, strings.Join(cnames, ":"))
260 fmt.Fprintf(stdout, "strict digraph {\n\trankdir=LR;\n")
299 fmt.Fprintf(stdout, "\t{rank=same;")
306 fmt.Fprintf(stdout, " %s", fNode)
309 fmt.Fprintf(stdout, "}\n}\n")
/build/make/tools/product_config/src/com/android/build/config/
DKatiCommandImpl.java93 final StringBuilder stdout = new StringBuilder(); in run() local
94 final Thread stdoutThread = new Thread(new OutputReader(process.getInputStream(), stdout), in run()
111 return stdout.toString(); in run()
/build/make/tools/compliance/cmd/bom/
Dbom_test.go280 stdout := &bytes.Buffer{}
288 ctx := context{stdout, stderr, compliance.GetFS(tt.outDir), []string{tt.stripPrefix}}
299 t.Logf("got stdout: %s", stdout.String())
303 out := bufio.NewScanner(stdout)
/build/soong/bazel/
Dbazel_proxy.go138 func ExecBazel(bazelPath string, workspaceDir string, request CmdRequest) (stdout []byte, stderr []…
150 stdout = output
168 stdout, stderr, cmdErr := ExecBazel("./build/bazel/bin/bazel", b.workspaceDir, req)
174 resp := CmdResponse{string(stdout), string(stderr), errorString}
/build/make/tools/envsetup/
Drun_envsetup_tests63 if expected_stdout and expected_stdout not in result.stdout:
78 if f"{k}=\"{v}\"" not in result.stdout:
87 print(result.stdout)
215 sys.stdout.write(f"\33[2K\r{index} of {total_count}: {name} in {shell}")
/build/make/tools/compliance/cmd/rtrace/
Drtrace_test.go285 stdout := &bytes.Buffer{}
295 _, err := traceRestricted(&tt.ctx, stdout, stderr, compliance.GetFS(tt.outDir), rootFiles...)
297 t.Logf("rtrace: stdout = %v", stdout)
305 out := stdout.String()
/build/bazel/rules/partitions/diff/
Dpartition_inspector.py30 … p = subprocess.run(command, check=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
36 return p.stdout
/build/make/tools/compliance/cmd/checkshare/
Dcheckshare.go81 outputs "PASS" to stdout and exits with status 0.
84 outputs "FAIL" to stdout and exits with status 1.
149 func checkShare(stdout, stderr io.Writer, rootFS fs.FS, files ...string) error { argument
173 fmt.Fprintln(stdout, "FAIL")
176 fmt.Fprintln(stdout, "PASS")
/build/make/ci/
Dbuild_test_suites.py179 def run_command(args: list[str], stdout=None): argument
180 subprocess.run(args=args, check=True, stdout=stdout)

1234