/build/soong/genrule/ |
D | genrule_test.go | 142 cmd: "$(location) > $(out)", 151 cmd: "$(location) > $(out)", 160 cmd: "$(location) > $(out)", 169 cmd: "$(location) > $(out)", 179 cmd: "$(location) > $(out)", 188 cmd: "$(location tool) > $(out)", 197 cmd: "$(location :tool) > $(out)", 206 cmd: "$(location tool_file1) > $(out)", 215 cmd: "$(location :1tool_file) > $(out)", 224 cmd: "$(locations :tool_files) > $(out)", [all …]
|
/build/soong/ui/build/ |
D | ninja.go | 66 cmd := Command(ctx, config, "ninja", executable, args...) 67 cmd.Sandbox = ninjaSandbox 69 cmd.Environment.AppendFromKati(config.KatiEnvFile()) 74 if extra, ok := cmd.Environment.Get("NINJA_ARGS"); ok { 75 cmd.Args = append(cmd.Args, strings.Fields(extra)...) 77 if extra, ok := cmd.Environment.Get("NINJA_EXTRA_ARGS"); ok { 78 cmd.Args = append(cmd.Args, strings.Fields(extra)...) 83 if overrideText, ok := cmd.Environment.Get("NINJA_HEARTBEAT_INTERVAL"); ok { 99 if cmd.Environment.IsEnvTrue("ALLOW_NINJA_ENV") { 102 cmd.Environment.Allow(append([]string{ [all …]
|
D | soong.go | 41 cmd := Command(ctx, config, "blueprint bootstrap", "build/blueprint/bootstrap.bash", "-t", "-n") 42 cmd.Environment.Set("BLUEPRINTDIR", "./build/blueprint") 43 cmd.Environment.Set("BOOTSTRAP", "./build/blueprint/bootstrap.bash") 44 cmd.Environment.Set("BUILDDIR", config.SoongOutDir()) 45 cmd.Environment.Set("GOROOT", "./"+filepath.Join("prebuilts/go", config.HostPrebuiltTag())) 46 cmd.Environment.Set("BLUEPRINT_LIST_FILE", filepath.Join(config.FileListDir(), "Android.bp.list")) 47 cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir()) 48 cmd.Environment.Set("SRCDIR", ".") 49 cmd.Environment.Set("TOPNAME", "Android.bp") 50 cmd.Sandbox = soongSandbox [all …]
|
D | kati.go | 97 cmd := Command(ctx, config, "ckati", executable, args...) 98 cmd.Sandbox = katiSandbox 99 pipe, err := cmd.StdoutPipe() 103 cmd.Stderr = cmd.Stdout 105 envFunc(cmd.Environment) 107 if _, ok := cmd.Environment.Get("BUILD_USERNAME"); !ok { 114 cmd.Environment.Set("BUILD_USERNAME", username) 117 if _, ok := cmd.Environment.Get("BUILD_HOSTNAME"); !ok { 123 cmd.Environment.Set("BUILD_HOSTNAME", hostname) 126 cmd.StartOrFatal() [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 | 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 {
|
D | environment.go | 152 cmd := strings.SplitN(text, " ", 2) 153 if len(cmd) != 2 { 157 if cmd[0] == "unset" { 158 str, ok := singleUnquote(cmd[1]) 163 } else if cmd[0] == "export" { 164 key, value, ok := decodeKeyValue(cmd[1]) 166 return fmt.Errorf("Failed to parse export: %v", cmd)
|
/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 | verity_utils.py | 43 cmd = ["fec", "-s", str(image_size)] 44 output = common.RunAndCheckOutput(cmd, verbose=False) 49 cmd = ["build_verity_tree", "-s", str(image_size)] 50 output = common.RunAndCheckOutput(cmd, verbose=False) 55 cmd = ["build_verity_metadata", "size", str(image_size)] 56 output = common.RunAndCheckOutput(cmd, verbose=False) 84 cmd = ["fec", "-e", "-p", str(padding_size), sparse_image_path, 86 common.RunAndCheckOutput(cmd) 90 cmd = ["build_verity_tree", "-A", FIXED_SALT, sparse_image_path, 92 output = common.RunAndCheckOutput(cmd) [all …]
|
D | test_verity_utils.py | 61 cmd = ["img2simg", raw_image, output_file, '4096'] 62 common.RunAndCheckOutput(cmd) 220 cmd = ['mkuserimg_mke2fs', input_dir, image, 'ext4', '/system', 222 common.RunAndCheckOutput(cmd) 226 cmd = ['verity_verifier', image, '-mincrypt', verify_key] 227 common.RunAndCheckOutput(cmd) 261 cmd = ['mksquashfsimage.sh', input_dir, image, '-s'] 262 common.RunAndCheckOutput(cmd) 267 cmd = ["verity_verifier", image, '-mincrypt', 269 common.RunAndCheckOutput(cmd) [all …]
|
D | common.py | 1033 def AppendAVBSigningArgs(cmd, partition): argument 1043 cmd.extend(["--key", key_path, "--algorithm", algorithm]) 1047 cmd.extend(["--salt", avb_salt]) 1172 cmd = [avbtool, "make_vbmeta_image", "--output", image_path] 1173 AppendAVBSigningArgs(cmd, name) 1187 cmd.extend(GetAvbPartitionArg(partition, path)) 1211 cmd.extend(split_args) 1213 RunAndCheckOutput(cmd) 1224 cmd = ["mkbootfs", "-f", fs_config_file, 1227 cmd = ["mkbootfs", os.path.join(sourcedir, "RAMDISK")] [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/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/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"), 404 cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU())) 407 cmd.Args = append(cmd.Args, "-race") 411 cmd.Args = append(cmd.Args, "-trimpath", config.TrimPath) 415 cmd.Args = append(cmd.Args, "-I", dep.pkgDir) 419 cmd.Args = append(cmd.Args, filename) 473 cmd.Stdin = nil 474 cmd.Stdout = os.Stdout [all …]
|
/build/soong/java/ |
D | droiddoc.go | 719 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList, 722 cmd.FlagWithArg("-source ", javaVersion.String()). 799 func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, doc… 804 cmd.FlagWithArg("-source ", "1.8"). 820 cmd.FlagWithArg("-templatedir ", t.dir.String()).Implicits(t.deps) 828 cmd.FlagWithArg("-htmldir ", htmlDir.String()). 834 cmd.FlagWithArg("-htmldir2 ", htmlDir2.String()). 843 cmd.FlagForEachInput("-knowntags ", knownTags) 845 cmd.FlagForEachArg("-hdf ", d.properties.Hdf) 849 cmd.FlagWithOutput("-proofread ", proofreadFile) [all …]
|
D | lint.go | 194 cmd := rule.Command(). 201 cmd.Flag("--library") 204 cmd.Flag("--test") 208 cmd.FlagWithArg("--manifest ", l.manifest.String()) 212 cmd.FlagWithArg("--merged_manifest ", l.mergedManifest.String()) 217 cmd.FlagWithRspFileInputList("--srcs ", l.srcs) 220 cmd.FlagWithInput("--generated_srcs ", srcJarList) 224 cmd.FlagWithInput("--resources ", resourcesList) 229 cmd.FlagWithArg("--classes ", l.classes.String()) 232 cmd.FlagForEachArg("--classpath ", l.classpath.Strings()) [all …]
|
/build/make/tools/ |
D | extract_kernel.py | 122 def try_decompress_bytes(cmd, input_bytes): argument 123 sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, 130 def try_decompress(cmd, search_bytes, input_bytes): argument 137 yield try_decompress_bytes(cmd, input_bytes[idx:]) 149 for cmd, search_bytes in COMPRESSION_ALGO: 150 for decompressed in try_decompress(cmd, search_bytes, input_bytes): 156 decompressed = try_decompress_bytes(cmd, input_bytes) 220 for cmd, _ in COMPRESSION_ALGO: 221 if cmd[0] in tools: 222 cmd[0] = tools[cmd[0]]
|
/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/soong/ui/logger/ |
D | logger_test.go | 121 cmd := exec.Command(os.Args[0], "-test.run=TestPanic") 122 cmd.Env = append(os.Environ(), "ACTUALLY_PANIC=1") 123 err := cmd.Run() 143 cmd := exec.Command(os.Args[0], "-test.run=TestFatal") 144 cmd.Env = append(os.Environ(), "ACTUALLY_FATAL=1") 145 err := cmd.Run() 160 cmd := exec.Command(os.Args[0], "-test.run=TestNonFatal") 161 cmd.Env = append(os.Environ(), "ACTUAL_TEST=1") 162 err := cmd.Run()
|
/build/soong/dexpreopt/ |
D | dexpreopt.go | 135 cmd := rule.Command(). 142 cmd.FlagWithInput("--create-profile-from=", module.ProfileClassListing.Path()) 146 cmd. 151 cmd. 157 cmd.Text(fmt.Sprintf(`|| echo "Profile out of date for %s"`, module.DexPath)) 174 cmd := rule.Command(). 180 cmd.FlagWithInput("--create-profile-from=", module.ProfileBootListing.Path()) 182 cmd. 189 cmd.Text(fmt.Sprintf(`|| echo "Profile out of date for %s"`, module.DexPath)) 344 cmd := rule.Command(). [all …]
|
/build/make/tools/fs_config/ |
D | Android.bp | 45 …cmd: "$(location fs_config_generator.py) oemaid --aid-header=$(location :android_filesystem_config… 66 …cmd: "$(location fs_config_generator.py) passwd --partition=system --aid-header=$(location :androi… 83 …cmd: "$(location fs_config_generator.py) passwd --partition=vendor --aid-header=$(location :androi… 101 …cmd: "$(location fs_config_generator.py) passwd --partition=odm --aid-header=$(location :android_f… 119 …cmd: "$(location fs_config_generator.py) passwd --partition=product --aid-header=$(location :andro… 137 …cmd: "$(location fs_config_generator.py) passwd --partition=system_ext --aid-header=$(location :an… 158 …cmd: "$(location fs_config_generator.py) group --partition=system --aid-header=$(location :android… 175 …cmd: "$(location fs_config_generator.py) group --partition=vendor --aid-header=$(location :android… 193 …cmd: "$(location fs_config_generator.py) group --partition=odm --aid-header=$(location :android_fi… 211 …cmd: "$(location fs_config_generator.py) group --partition=product --aid-header=$(location :androi… [all …]
|
/build/soong/cmd/extract_apks/ |
D | Android.bp | 7 "soong-cmd-extract_apks-proto", 13 name: "soong-cmd-extract_apks-proto", 14 pkgPath: "android/soong/cmd/extract_apks/bundle_proto",
|
/build/make/core/tasks/ |
D | find-shareduid-violation.py | 31 def execute(cmd): argument 32 p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 41 for cmd in make_aapt_cmds(file): 42 success, manifest, error_msg = execute(cmd)
|