/build/soong/ui/build/ |
D | bazel.go | 91 cmd := Command(ctx, config, "bazel", bazelExecutable) 96 if extraStartupArgs, ok := cmd.Environment.Get("BAZEL_STARTUP_ARGS"); ok { 97 cmd.Args = append(cmd.Args, strings.Fields(extraStartupArgs)...) 102 cmd.Args = append(cmd.Args, 135 cmd.Args = append(cmd.Args, 141 …cmd.Args = append(cmd.Args, "--action_env=RBE_exec_root="+getBazelInfo(ctx, config, bazelExecutabl… 148 cmd.Environment.Set("PATH", pathEnvValue) 149 cmd.Args = append(cmd.Args, "--action_env=PATH="+pathEnvValue) 153 cmd.Args = append(cmd.Args, "--action_env=SHELL") 158 if extraBuildArgs, ok := cmd.Environment.Get("BAZEL_BUILD_ARGS"); ok { [all …]
|
D | ninja.go | 72 cmd := Command(ctx, config, "ninja", executable, args...) 75 cmd.Sandbox = ninjaSandbox 79 cmd.Environment.AppendFromKati(config.KatiEnvFile()) 84 if extra, ok := cmd.Environment.Get("NINJA_ARGS"); ok { 85 cmd.Args = append(cmd.Args, strings.Fields(extra)...) 87 if extra, ok := cmd.Environment.Get("NINJA_EXTRA_ARGS"); ok { 88 cmd.Args = append(cmd.Args, strings.Fields(extra)...) 93 if overrideText, ok := cmd.Environment.Get("NINJA_HEARTBEAT_INTERVAL"); ok { 111 if cmd.Environment.IsEnvTrue("ALLOW_NINJA_ENV") { 114 cmd.Environment.Allow(append([]string{ [all …]
|
D | dumpvars.go | 87 cmd := Command(ctx, config, "dumpvars", 94 cmd.Environment.Set("CALLED_FROM_SETUP", "true") 96 cmd.Environment.Set("WRITE_SOONG_VARIABLES", "true") 98 cmd.Environment.Set("DUMP_MANY_VARS", strings.Join(vars, " ")) 100 cmd.Environment.Set("TMPDIR", tmpDir) 102 cmd.Sandbox = dumpvarsSandbox 104 cmd.Stdout = &output 105 pipe, err := cmd.StderrPipe() 109 cmd.StartOrFatal() 112 cmd.WaitOrFatal()
|
D | kati.go | 148 cmd := Command(ctx, config, "ckati", executable, args...) 151 cmd.Sandbox = katiSandbox 154 pipe, err := cmd.StdoutPipe() 158 cmd.Stderr = cmd.Stdout 161 envFunc(cmd.Environment) 164 if _, ok := cmd.Environment.Get("BUILD_USERNAME"); !ok { 171 cmd.Environment.Set("BUILD_USERNAME", username) 174 if _, ok := cmd.Environment.Get("BUILD_HOSTNAME"); !ok { 180 cmd.Environment.Set("BUILD_HOSTNAME", hostname) 183 cmd.StartOrFatal() [all …]
|
D | goma.go | 39 cmd := Command(ctx, config, commandText, "bash", "-c", commandText) 40 output := strings.TrimRight(string(cmd.CombinedOutputOrFatal()), "\n") 74 cmd := Command(ctx, config, "goma_ctl.py ensure_start", gomaCtl, "ensure_start") 75 cmd.Environment.Set("DIST_DIR", config.DistDir()) 77 if output, err := cmd.CombinedOutput(); err != nil {
|
/build/soong/genrule/ |
D | genrule_test.go | 110 cmd: "$(location) > $(out)", 119 cmd: "$(location) > $(out)", 128 cmd: "$(location) > $(out)", 137 cmd: "$(location) > $(out)", 147 cmd: "$(location) > $(out)", 156 cmd: "$(location tool) > $(out)", 165 cmd: "$(location :tool) > $(out)", 174 cmd: "$(location tool_file1) > $(out)", 183 cmd: "$(location :1tool_file) > $(out)", 192 cmd: "$(locations :tool_files) > $(out)", [all …]
|
D | locations.go | 25 Paths(cmd *android.RuleBuilderCommand) []string 38 func (l inputLocation) Paths(cmd *android.RuleBuilderCommand) []string { 39 return cmd.PathsForInputs(l.paths) 53 func (l outputLocation) Paths(cmd *android.RuleBuilderCommand) []string { 54 return []string{cmd.PathForOutput(l.path)} 68 func (l toolLocation) Paths(cmd *android.RuleBuilderCommand) []string { 69 return cmd.PathsForTools(l.paths) 84 func (l packagedToolLocation) Paths(cmd *android.RuleBuilderCommand) []string { 85 return []string{cmd.PathForPackagedTool(l.spec)} 100 func (l errorLocation) Paths(cmd *android.RuleBuilderCommand) []string {
|
D | genrule.go | 192 cmd string member 408 cmd := rule.Command() 416 rawCommand, err := android.Expand(task.cmd, func(name string) (string, error) { 430 paths := loc.Paths(cmd) 439 return strings.Join(cmd.PathsForInputs(srcFiles), " "), nil 443 sandboxOuts = append(sandboxOuts, cmd.PathForOutput(out)) 453 return cmd.PathForOutput(task.genDir), nil 458 paths := loc.Paths(cmd) 472 paths := loc.Paths(cmd) 497 cmd.Text(rawCommand) [all …]
|
/build/soong/rust/ |
D | protobuf_test.go | 51 cmd := librust_proto_out.RuleParams.Command 52 if w := "protoc-gen-rust"; !strings.Contains(cmd, w) { 53 t.Errorf("expected %q in %q", w, cmd) 57 if w := "-Ishared_include"; !strings.Contains(cmd, w) { 58 t.Errorf("expected %q in %q", w, cmd) 60 if w := "-Istatic_include"; !strings.Contains(cmd, w) { 61 t.Errorf("expected %q in %q", w, cmd) 98 cmd := librust_grpcio_out.RuleParams.Command 99 if w := "protoc-gen-grpc"; !strings.Contains(cmd, w) { 100 t.Errorf("expected %q in %q", w, cmd) [all …]
|
/build/make/tools/releasetools/ |
D | build_super_image.py | 64 cmd = ["--partition", 67 cmd += ["--image", "{}={}".format(partition, image)] 69 return cmd 74 cmd = [info_dict["lpmake"], 86 cmd += ["--metadata-slots", "2"] 88 cmd += ["--metadata-slots", "3"] 90 cmd += ["--metadata-slots", "2"] 93 cmd.append("--auto-slot-suffixing") 95 cmd.append("--virtual-ab") 99 cmd += ["--device", "{}:{}".format(device, size)] [all …]
|
D | check_ota_package_signature.py | 40 cmd = ['openssl', 'x509', '-text', '-noout', '-in', cert] 41 cert_dump = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE) 112 cmd = ['openssl', 'asn1parse', '-inform', 'DER', '-in', sig_file] 113 sig = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE) 123 cmd = ['openssl', 'rsautl', '-verify', '-certin', '-inkey', cert, 125 common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE) 128 cmd = ['openssl', 'asn1parse', '-inform', 'DER', '-in', decrypted_file] 129 decrypted_output = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE) 159 cmd = ['delta_generator', 162 common.RunAndCheckOutput(cmd)
|
D | edify_generator.py | 40 def WordWrap(cmd, linelen=80): argument 45 indent = cmd.index("(")+1 53 m = x.search(cmd) 55 parts = cmd.split("\0", 1) 60 cmd = parts[1] 63 cmd = cmd[m.end():] 84 cmd = '' 86 cmd += '%s == "%s" || ' % (get_prop_command, value) 87 cmd += ( 94 self.script.append(cmd) [all …]
|
D | test_verity_utils.py | 62 cmd = ["img2simg", raw_image, output_file, '4096'] 63 common.RunAndCheckOutput(cmd) 221 cmd = ['mkuserimg_mke2fs', input_dir, image, 'ext4', '/system', 223 common.RunAndCheckOutput(cmd) 227 cmd = ['verity_verifier', image, '-mincrypt', verify_key] 228 common.RunAndCheckOutput(cmd) 262 cmd = ['mksquashfsimage.sh', input_dir, image, '-s'] 263 common.RunAndCheckOutput(cmd) 268 cmd = ["verity_verifier", image, '-mincrypt', 270 common.RunAndCheckOutput(cmd) [all …]
|
D | verity_utils.py | 53 cmd = ["fec", "-s", str(image_size)] 54 output = common.RunAndCheckOutput(cmd, verbose=False) 59 cmd = ["build_verity_tree", "-s", str(image_size)] 60 output = common.RunAndCheckOutput(cmd, verbose=False) 65 cmd = ["build_verity_metadata", "size", str(image_size)] 66 output = common.RunAndCheckOutput(cmd, verbose=False) 94 cmd = ["fec", "-e", "-p", str(padding_size), sparse_image_path, 96 common.RunAndCheckOutput(cmd) 100 cmd = ["build_verity_tree", "-A", FIXED_SALT, sparse_image_path, 102 output = common.RunAndCheckOutput(cmd) [all …]
|
/build/soong/cc/ |
D | proto_test.go | 34 if cmd := proto.RuleParams.Command; !strings.Contains(cmd, "--cpp_out=") { 35 t.Errorf("expected '--cpp_out' in %q", cmd) 59 cmd := proto.RuleParams.Command 60 if w := "--foobar_out="; !strings.Contains(cmd, w) { 61 t.Errorf("expected %q in %q", w, cmd) 66 if w := "--plugin=protoc-gen-foobar=" + foobarPath; !strings.Contains(cmd, w) { 67 t.Errorf("expected %q in %q", w, cmd)
|
/build/soong/response/ |
D | response_test.go | 30 in: `./cmd '"'-C`, 36 out: []string{"./cmd", `-C`}, 41 out: []string{"./cmd", `\"-C`}, 46 out: []string{"./cmd", `\\-C`}, 51 out: []string{"./cmd", `'-C`}, 56 out: []string{"./cmd", `\-C`}, 61 out: []string{"./cmd", `"-C`}, 65 in: `./cmd "'"-C`,
|
/build/soong/python/tests/ |
D | runtest.sh | 28 ( ! -f $ANDROID_HOST_OUT/bin/py2-cmd ) || 29 ( ! -f $ANDROID_HOST_OUT/bin/py3-cmd )]]; then 52 PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py 53 PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py 55 ARGTEST=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py arg1 arg2 56 ARGTEST2=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py --arg1 arg2 58 ARGTEST=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py arg1 arg2 59 ARGTEST2=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py --arg1 arg2
|
/build/soong/java/ |
D | droidstubs.go | 248 func (d *Droidstubs) stubsFlags(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, stubsDi… 254 cmd.FlagWithOutput("--api ", d.apiFile) 266 cmd.FlagWithOutput("--removed-api ", d.removedApiFile) 275 cmd.FlagWithArg("--sdk-values ", d.metadataDir.String()) 280 cmd.FlagWithArg("--doc-stubs ", stubsDir.String()) 282 cmd.FlagWithArg("--stubs ", stubsDir.String()) 284 cmd.Flag("--exclude-documentation-from-stubs") 290 func (d *Droidstubs) annotationsFlags(ctx android.ModuleContext, cmd *android.RuleBuilderCommand) { 292 cmd.Flag("--include-annotations") 294 cmd.FlagWithArg("--exclude-annotation ", "androidx.annotation.RequiresApi") [all …]
|
D | droiddoc.go | 445 func (j *Javadoc) expandArgs(ctx android.ModuleContext, cmd *android.RuleBuilderCommand) { 453 argFilesMap[label] = strings.Join(cmd.PathsForInputs(paths), " ") 493 cmd.Flag(expanded) 496 cmd.Implicits(argFiles) 522 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList, 525 cmd.FlagWithArg("-source ", javaVersion.String()). 530 j.expandArgs(ctx, cmd) 595 func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, doc… 600 cmd.FlagWithArg("-source ", "1.8"). 616 cmd.FlagWithArg("-templatedir ", t.dir.String()).Implicits(t.deps) [all …]
|
/build/blueprint/microfactory/ |
D | microfactory.go | 78 cmd := exec.Command(filepath.Join(runtime.GOROOT(), "bin", "go"), "version") 79 if version, err := cmd.Output(); err == nil { 399 cmd := exec.Command(filepath.Join(goToolDir, "compile"), 405 cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU())) 408 cmd.Args = append(cmd.Args, "-race") 412 cmd.Args = append(cmd.Args, "-trimpath", config.TrimPath) 416 cmd.Args = append(cmd.Args, "-I", dep.pkgDir) 420 cmd.Args = append(cmd.Args, filename) 474 cmd.Stdin = nil 475 cmd.Stdout = os.Stdout [all …]
|
/build/soong/cmd/run_with_timeout/ |
D | run_with_timeout.go | 92 cmd := exec.Command(command, args...) 101 cmd.Stdin, cmd.Stdout, cmd.Stderr = stdin, concurrentStdout, concurrentStderr 102 err := cmd.Start() 110 waitCh <- cmd.Wait() 130 defer cmd.Process.Signal(syscall.SIGKILL) 135 onTimeoutCmd.Env = append(os.Environ(), fmt.Sprintf("PID=%d", cmd.Process.Pid))
|
/build/make/tools/ |
D | extract_kernel.py | 130 def try_decompress_bytes(cmd, input_bytes): argument 131 sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, 138 def try_decompress(cmd, search_bytes, input_bytes): argument 145 yield try_decompress_bytes(cmd, input_bytes[idx:]) 157 for cmd, search_bytes in COMPRESSION_ALGO: 158 for decompressed in try_decompress(cmd, search_bytes, input_bytes): 164 decompressed = try_decompress_bytes(cmd, input_bytes) 240 for cmd, _ in COMPRESSION_ALGO: 241 if cmd[0] in tools: 242 cmd[0] = tools[cmd[0]]
|
/build/soong/filesystem/ |
D | vbmeta.go | 122 cmd := builder.Command().BuiltTool("avbtool").Text("make_vbmeta_image") 125 cmd.FlagWithInput("--key ", key) 128 cmd.FlagWithArg("--algorithm ", algorithm) 130 cmd.FlagWithArg("--rollback_index ", v.rollbackIndexCommand(ctx)) 136 cmd.FlagWithArg("--rollback_index_location ", strconv.Itoa(ril)) 151 cmd.FlagWithInput("--include_descriptors_from_image ", signedImage) 173 cmd.FlagWithArg("--chain_partition ", fmt.Sprintf("%s:%d:%s", name, ril, publicKey.String())) 174 cmd.Implicit(publicKey) 177 cmd.FlagWithOutput("--output ", v.output) 193 var cmd string [all …]
|
/build/blueprint/gotestrunner/ |
D | gotestrunner.go | 63 cmd := exec.Command(test, flag.Args()[1:]...) 65 cmd.Dir = *chdir 76 cmd.Stderr = os.Stderr 77 stdout, err := cmd.StdoutPipe() 83 err = cmd.Start() 91 if err = cmd.Wait(); err != nil {
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | KatiCommandImpl.java | 75 final ArrayList<String> cmd = new ArrayList(); in run() local 76 cmd.add(mOptions.getCKatiBin()); in run() 78 cmd.add(arg); in run() 81 final ProcessBuilder builder = new ProcessBuilder(cmd); in run() 90 throw new KatiException(cmd, "IOException running process: " + ex.getMessage()); in run() 108 throw new KatiException(cmd, stderr.toString()); in run()
|