Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 63) sorted by relevance

123

/build/kati/
Dfunc.cc97 void PatsubstFunc(const vector<Value*>& args, Evaluator* ev, string* s) { in PatsubstFunc() argument
98 const string&& pat_str = args[0]->Eval(ev); in PatsubstFunc()
99 const string&& repl = args[1]->Eval(ev); in PatsubstFunc()
100 const string&& str = args[2]->Eval(ev); in PatsubstFunc()
109 void StripFunc(const vector<Value*>& args, Evaluator* ev, string* s) { in StripFunc() argument
110 const string&& str = args[0]->Eval(ev); in StripFunc()
117 void SubstFunc(const vector<Value*>& args, Evaluator* ev, string* s) { in SubstFunc() argument
118 const string&& pat = args[0]->Eval(ev); in SubstFunc()
119 const string&& repl = args[1]->Eval(ev); in SubstFunc()
120 const string&& str = args[2]->Eval(ev); in SubstFunc()
[all …]
Dfunc.go127 args []Value member
131 c.args = append(c.args, v)
135 if len(c.args) == 0 {
138 arg0 := c.args[0].String()
146 var args []string
147 for _, arg := range c.args[1:] {
148 args = append(args, arg.String())
150 return fmt.Sprintf("$%s %s%c", arg0, strings.Join(args, ","), cp)
155 for _, a := range c.args {
163 for _, a := range c.args {
[all …]
Dexpr_test.go70 args: []Value{
94 args: []Value{
118 args: []Value{
129 args: []Value{
141 args: []Value{
154 args: []Value{
166 args: []Value{
179 args: []Value{
190 args: []Value{
209 args: []Value{
[all …]
Dlog.h35 #define LOG(args...) argument
37 #define LOG(args...) do { \ argument
38 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \
42 #define LOG_STAT(args...) do { \ argument
44 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \
Dstringprintf.cc26 va_list args; in StringPrintf() local
27 va_start(args, format); in StringPrintf()
28 int ret = vsnprintf(&str[0], str.size(), format, args); in StringPrintf()
29 va_end(args); in StringPrintf()
Dfunc_test.go22 args: []Value{
41 args: []Value{
60 args: []Value{
Deval.go132 func (p srcpos) errorf(f string, args ...interface{}) error {
136 Err: fmt.Errorf(f, args...),
183 func (ev *Evaluator) args(buf *evalBuffer, args ...Value) ([][]byte, error) { func
184 pos := make([]int, 0, len(args))
185 for _, arg := range args {
194 buf.args = buf.args[:0]
197 buf.args = append(buf.args, v[s:p])
200 return buf.args, nil
571 params, err := ev.args(buf, lexpr, rexpr)
Devalcmd.go153 args: []Value{
159 args: []Value{
180 args: []Value{
275 args := []string{r.shell, "-c", s}
277 Path: args[0],
278 Args: args,
/build/tools/makeparallel/
Dmakeparallel.cpp61 std::vector<std::string> args; in ReadMakeflags() local
65 return args; in ReadMakeflags()
81 args.push_back(makeflags.substr(base, found - base)); in ReadMakeflags()
86 while (args.size() > 0 && args[0].size() == 0) { in ReadMakeflags()
87 args.erase(args.begin()); in ReadMakeflags()
92 if (args.size() > 0 && args[0][0] != '-') { in ReadMakeflags()
93 if (args[0].find('=') == makeflags.npos) { in ReadMakeflags()
94 args[0] = '-' + args[0]; in ReadMakeflags()
98 return args; in ReadMakeflags()
101 static bool ParseMakeflags(std::vector<std::string>& args, in ParseMakeflags() argument
[all …]
/build/tools/
Djava-event-log-tags.py38 opts, args = getopt.getopt(sys.argv[1:], "ho:") variable
54 if len(args) != 2:
55 print "need exactly two input files, not %d" % (len(args),)
59 fn = args[0]
65 merged_fn = args[1]
136 args = [arg.strip("() ").split("|") for arg in t.description.split(",")] variable
138 args = [] variable
139 argTypesNames = ", ".join([javaTypes[int(arg[1])] + " " + javaName(arg[0]) for arg in args])
140 argNames = "".join([", " + javaName(arg[0]) for arg in args])
Dgenerate-notice-files.py42 opts, args = getopt.getopt(sys.argv[1:], "h") variable
55 if len(args) != 4:
57 and the directory containing notices, not %d""" % (len(args),)
166 def main(args): argument
167 txt_output_file = args[0]
168 html_output_file = args[1]
169 file_title = args[2]
172 input_dir = os.path.normpath(args[3])
189 main(args)
/build/tools/signtos/
DSignTos.java264 public static void main(String[] args) throws Exception { in main() argument
265 if (args.length < 3) { in main()
273 while (argstart < args.length && args[argstart].startsWith("-")) { in main()
274 if ("-providerClass".equals(args[argstart])) { in main()
275 if (argstart + 1 >= args.length) { in main()
278 providerClass = args[++argstart]; in main()
288 if (argstart != args.length - 3) { in main()
297 String keyFilename = args[args.length - 3]; in main()
298 String inputFilename = args[args.length - 2]; in main()
299 String outputFilename = args[args.length - 1]; in main()
/build/kati/cmd/kati/
Dmain.go197 args := flag.Args()
203 if len(args) > 1 {
206 if len(args) > 0 {
207 err := os.Setenv("ONE_SHOT_MAKEFILE", filepath.Join(args[0], "Android.mk"))
214 args = args[:0]
219 err := katiMain(args)
227 func katiMain(args []string) error {
268 req := kati.FromCommandLine(args)
287 var args []string
289 args = os.Args
[all …]
/build/soong/androidmk/parser/
Dscope.go8 Call(name string, args []string) string
34 func (s *scope) Call(name string, args []string) string {
36 return f(args)
66 args := f[1].Split(",")
67 argVals := make([]string, len(args))
68 for i, a := range args {
/build/tools/fs_get_stats/
Dfs_get_stats.c10 #define ERROR(fmt,args...) \ argument
13 __FILE__, __LINE__, ##args); \
17 #define DEBUG(fmt,args...) \ argument
18 do { fprintf(stderr, "DEBUG: " fmt, ##args); } while(0)
/build/blueprint/
Dmodule_ctx.go116 Errorf(pos scanner.Position, fmt string, args ...interface{})
117 ModuleErrorf(fmt string, args ...interface{})
118 PropertyErrorf(property, fmt string, args ...interface{})
131 OtherModuleErrorf(m Module, fmt string, args ...interface{})
191 format string, args ...interface{}) {
194 Err: fmt.Errorf(format, args...),
200 args ...interface{}) {
203 Err: fmt.Errorf(format, args...),
209 args ...interface{}) {
220 Err: fmt.Errorf(format, args...),
[all …]
Dsingleton_ctx.go33 ModuleErrorf(module Module, format string, args ...interface{})
34 Errorf(format string, args ...interface{})
101 args ...interface{}) {
103 s.error(s.context.ModuleErrorf(logicModule, format, args...))
106 func (s *singletonContext) Errorf(format string, args ...interface{}) {
108 s.error(fmt.Errorf(format, args...))
/build/tools/atree/
Dfs.cpp180 const char** args = (const char**) malloc(sizeof(const char*) * (num_args + 2)); in strip_file() local
182 const char** curr = args; in strip_file()
197 args[num_args] = path.c_str(); in strip_file()
198 args[num_args + 1] = NULL; in strip_file()
200 int ret = execvp(args[0], (char* const*)args); in strip_file()
201 free(args); in strip_file()
/build/kati/testcase/
Dparse_benchcmp.go29 func run(prog string, args ...string) {
30 cmd := exec.Command(prog, args...)
39 func output(prog string, args ...string) string {
40 cmd := exec.Command(prog, args...)
/build/tools/releasetools/
Dtarget_files_diff.py225 args = parser.parse_args()
227 if args.output:
228 out_file = open(args.output, 'w')
232 recursiveDiff('', args.dir1, args.dir2, out_file)
234 if args.output:
Dimg_from_target_files61 args = common.ParseOptions(argv, __doc__,
68 if len(args) != 2:
72 OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0])
73 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED)
Dimg_from_target_files.py61 args = common.ParseOptions(argv, __doc__,
68 if len(args) != 2:
72 OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0])
73 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED)
Dmake_recovery_patch.py32 args = common.ParseOptions(argv, __doc__)
33 input_dir, output_dir = args
Dmake_recovery_patch32 args = common.ParseOptions(argv, __doc__)
33 input_dir, output_dir = args
/build/tools/signapk/src/com/android/signapk/
DSignApk.java1016 public static void main(String[] args) { in main() argument
1017 if (args.length < 4) usage(); in main()
1034 while (argstart < args.length && args[argstart].startsWith("-")) { in main()
1035 if ("-w".equals(args[argstart])) { in main()
1038 } else if ("-providerClass".equals(args[argstart])) { in main()
1039 if (argstart + 1 >= args.length) { in main()
1042 providerClass = args[++argstart]; in main()
1044 } else if ("-a".equals(args[argstart])) { in main()
1045 alignment = Integer.parseInt(args[++argstart]); in main()
1047 } else if ("--min-sdk-version".equals(args[argstart])) { in main()
[all …]

123