Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 61) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiGenerator.java44 String arg = args[i]; in main() local
46 if (arg.equals("--pattern")) { in main()
51 System.err.println("Missing argument after " + arg); in main()
54 } else if (arg.equals("--current-version")) { in main()
63 System.err.println("Missing number >= 1 after " + arg); in main()
66 } else if (arg.equals("--current-codename")) { in main()
71 System.err.println("Missing codename after " + arg); in main()
74 } else if (arg.equals("--current-jar")) { in main()
84 System.err.println("Missing argument after " + arg); in main()
87 } else if (arg.equals("--min-api")) { in main()
[all …]
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java198 final String arg = args.next(); in parseOptions() local
199 if (arg.equals(OPTION_NAME_PREFIX)) { in parseOptions()
202 } else if (arg.startsWith(OPTION_NAME_PREFIX)) { in parseOptions()
204 parseLongOption(arg, args); in parseOptions()
205 } else if (arg.startsWith(SHORT_NAME_PREFIX)) { in parseOptions()
207 parseGroupedShortOptions(arg, args); in parseOptions()
210 leftovers.add(arg); in parseOptions()
222 private void parseLongOption(String arg, ListIterator<String> args) in parseLongOption() argument
225 String name = arg.replaceFirst("^" + OPTION_NAME_PREFIX, ""); in parseLongOption()
260 private void parseGroupedShortOptions(String arg, ListIterator<String> args) in parseGroupedShortOptions() argument
[all …]
/tools/asuite/atest/test_runners/
Dsuite_plan_test_runner.py86 for arg in extra_args:
87 if constants.SERIAL == arg:
89 args_to_append.append(extra_args[arg])
91 if constants.CUSTOM_ARGS == arg:
92 args_to_append.extend(extra_args[arg])
94 if constants.DRY_RUN == arg:
96 args_not_supported.append(arg)
Datest_tf_test_runner.py362 for arg in extra_args:
363 if constants.WAIT_FOR_DEBUGGER == arg:
366 if constants.DISABLE_INSTALL == arg:
369 if constants.SERIAL == arg:
371 args_to_append.append(extra_args[arg])
373 if constants.SHARDING == arg:
375 args_to_append.append(str(extra_args[arg]))
377 if constants.DISABLE_TEARDOWN == arg:
380 if constants.HOST == arg:
385 if constants.CUSTOM_ARGS == arg:
[all …]
Dvts_tf_test_runner.py91 for arg in extra_args:
92 if constants.SERIAL == arg:
94 args_to_append.append(extra_args[arg])
96 if constants.CUSTOM_ARGS == arg:
97 args_to_append.extend(extra_args[arg])
99 if constants.DRY_RUN == arg:
101 args_not_supported.append(arg)
/tools/tradefederation/core/atest/test_runners/
Dsuite_plan_test_runner.py87 for arg in extra_args:
88 if constants.SERIAL == arg:
90 args_to_append.append(extra_args[arg])
92 if constants.CUSTOM_ARGS == arg:
93 args_to_append.extend(extra_args[arg])
95 if constants.DRY_RUN == arg:
97 args_not_supported.append(arg)
Datest_tf_test_runner.py351 for arg in extra_args:
352 if constants.WAIT_FOR_DEBUGGER == arg:
355 if constants.DISABLE_INSTALL == arg:
358 if constants.SERIAL == arg:
360 args_to_append.append(extra_args[arg])
362 if constants.SHARDING == arg:
364 args_to_append.append(str(extra_args[arg]))
366 if constants.DISABLE_TEARDOWN == arg:
369 if constants.HOST == arg:
374 if constants.CUSTOM_ARGS == arg:
[all …]
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java50 public static MissingArgException fromArg(String arg) { in fromArg() argument
52 String.format("Error: missing mandatory argument '%s'", arg)); in fromArg()
95 private String expectString(String arg) throws MissingArgException { in expectString() argument
96 String val = mArguments.getString(arg); in expectString()
98 throw MissingArgException.fromArg(arg); in expectString()
112 private String getString(String arg, String defaultValue) { in getString() argument
113 String val = mArguments.getString(arg); in getString()
129 private int expectInteger(String arg) throws MissingArgException { in expectInteger() argument
130 String val = expectString(arg); in expectInteger()
135 final String msg = String.format("Couldn't parse arg '%s': %s", arg, in expectInteger()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DArgsOptionParser.java246 final String arg = argsIter.next(); in parseBestEffort() local
249 if (!parseArg(arg, argsIter, leftovers)) { in parseBestEffort()
263 leftovers.add(arg); in parseBestEffort()
293 private boolean parseArg(String arg, ListIterator<String> args, List<String> leftovers) in parseArg() argument
295 if (arg.equals(OPTION_NAME_PREFIX)) { in parseArg()
299 } else if (arg.startsWith(OPTION_NAME_PREFIX)) { in parseArg()
301 parseLongOption(arg, args); in parseArg()
304 } else if (arg.startsWith(SHORT_NAME_PREFIX)) { in parseArg()
306 parseGroupedShortOptions(arg, args); in parseArg()
311 leftovers.add(arg); in parseArg()
[all …]
/tools/dexter/slicer/
Ddex_bytecode.cc252 dec.arg[4] = InstA(inst); in DecodeInstruction()
255 dec.arg[3] = (regList >> 12) & 0x0f; in DecodeInstruction()
258 dec.arg[2] = (regList >> 8) & 0x0f; in DecodeInstruction()
261 dec.arg[1] = (regList >> 4) & 0x0f; in DecodeInstruction()
264 dec.vC = dec.arg[0] = regList & 0x0f; in DecodeInstruction()
286 dec.arg[0] = (regList >> 4) & 0xf; // vD in DecodeInstruction()
287 dec.arg[1] = (regList >> 8) & 0xf; // vE in DecodeInstruction()
288 dec.arg[2] = (regList >> 12); // vF in DecodeInstruction()
289 dec.arg[3] = InstA(inst); // vG in DecodeInstruction()
290 dec.arg[4] = bytecode[3]; // vH proto@HHHH in DecodeInstruction()
[all …]
Dreader.cc475 dex::u1 arg = header >> dex::kEncodedValueArgShift; in ParseEncodedValue() local
481 ir_encoded_value->u.byte_value = ParseIntValue<int8_t>(pptr, arg + 1); in ParseEncodedValue()
485 ir_encoded_value->u.short_value = ParseIntValue<int16_t>(pptr, arg + 1); in ParseEncodedValue()
489 ir_encoded_value->u.char_value = ParseIntValue<uint16_t>(pptr, arg + 1); in ParseEncodedValue()
493 ir_encoded_value->u.int_value = ParseIntValue<int32_t>(pptr, arg + 1); in ParseEncodedValue()
497 ir_encoded_value->u.long_value = ParseIntValue<int64_t>(pptr, arg + 1); in ParseEncodedValue()
501 ir_encoded_value->u.float_value = ParseFloatValue<float>(pptr, arg + 1); in ParseEncodedValue()
505 ir_encoded_value->u.double_value = ParseFloatValue<double>(pptr, arg + 1); in ParseEncodedValue()
509 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
514 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dandroid_api.py59 for arg in args:
60 if isinstance(arg, AndroidDevice):
61 return arg.sdk_api_level()
/tools/ndkports/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/tools/trebuchet/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/tools/metalava/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/tools/asuite/asuite_plugin/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/tools/asuite/asuite_plugin/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/tools/ndkports/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/tools/metalava/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/tools/trebuchet/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/tools/metalava/src/main/java/com/android/tools/metalava/
DPackageFilter.kt44 for (arg in path.split(File.pathSeparatorChar)) { in addPackages() method
45 val treatAsPositiveMatch = !arg.startsWith("-") in addPackages()
46 val pkg = arg.removePrefix("-").removePrefix("+") in addPackages()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DAddCommandOp.java63 for (String arg : mCommandArgs) { in packIntoJson()
64 jsonArgs.put(arg); in packIntoJson()
DExecCommandOp.java70 for (String arg : mCommandArgs) { in packIntoJson()
71 jsonArgs.put(arg); in packIntoJson()
/tools/repohooks/rh/
Dshell.py151 return ' '.join(shell_quote(arg) for arg in cmd)
/tools/acloud/public/
D__main__.py21 def main(arg=None): argument

123