Home
last modified time | relevance | path

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

12

/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/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java48 public static MissingArgException fromArg(String arg) { in fromArg() argument
50 String.format("Error: missing mandatory argument '%s'", arg)); in fromArg()
81 private String expectString(String arg) throws MissingArgException { in expectString() argument
82 String val = mArguments.getString(arg); in expectString()
84 throw MissingArgException.fromArg(arg); in expectString()
98 private String getString(String arg, String defaultValue) { in getString() argument
99 String val = mArguments.getString(arg); in getString()
115 private int expectInteger(String arg) throws MissingArgException { in expectInteger() argument
116 String val = expectString(arg); in expectInteger()
121 final String msg = String.format("Couldn't parse arg '%s': %s", arg, in expectInteger()
[all …]
/tools/tradefederation/core/atest/test_runners/
Dvts_tf_test_runner.py83 for arg in extra_args:
84 if constants.SERIAL == arg:
86 args_to_append.append(extra_args[arg])
88 if constants.CUSTOM_ARGS == arg:
89 args_to_append.extend(extra_args[arg])
91 args_not_supported.append(arg)
Datest_tf_test_runner.py124 for arg in extra_args:
125 if constants.WAIT_FOR_DEBUGGER == arg:
128 if constants.DISABLE_INSTALL == arg:
131 if constants.SERIAL == arg:
133 args_to_append.append(extra_args[arg])
135 if constants.DISABLE_TEARDOWN == arg:
138 if constants.CUSTOM_ARGS == arg:
141 args_to_append.extend(extra_args[arg])
143 args_not_supported.append(arg)
Drobolectric_test_runner.py69 for arg in extra_args:
70 if constants.WAIT_FOR_DEBUGGER == arg:
/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 …]
DConfigurationFactory.java878 String arg; in reorderArgs() local
888 arg = args[i]; in reorderArgs()
889 if (arg.equals("--template:map")) { in reorderArgs()
893 reorderedArgs.add(arg); in reorderArgs()
903 nonTemplateArgs.add(arg); in reorderArgs()
/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/appbundle/bundletool/java/com/android/tools/appbundle/bundletool/utils/
DFlagParser.java66 for (String arg : args) { in parseFlags()
67 if (!arg.startsWith("--")) { in parseFlags()
69 String.format("Syntax error: flags should start with -- (%s)", arg)); in parseFlags()
71 String[] segments = arg.substring(2).split("=", 2); in parseFlags()
/tools/metalava/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/tools/repohooks/rh/
Dshell.py150 return ' '.join(shell_quote(arg) for arg in cmd)
Dhooks.py70 for arg in args:
74 if arg == var:
90 replace, arg))
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DAddCommandOp.java63 for (String arg : mCommandArgs) { in packIntoJson()
64 jsonArgs.put(arg); in packIntoJson()
/tools/dexter/slicer/
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 …]
Ddex_bytecode.cc857 dec.arg[4] = InstA(inst); in DecodeInstruction()
860 dec.arg[3] = (regList >> 12) & 0x0f; in DecodeInstruction()
863 dec.arg[2] = (regList >> 8) & 0x0f; in DecodeInstruction()
866 dec.arg[1] = (regList >> 4) & 0x0f; in DecodeInstruction()
869 dec.vC = dec.arg[0] = regList & 0x0f; in DecodeInstruction()
/tools/tradefederation/core/
DTEST_MAPPING7 "instrumentation-arg": "annotation:=android.support.test.filters.SmallTest"
/tools/acloud/public/
D__main__.py21 def main(arg=None): argument
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLivePostflightTest.py40 def on_pass(self, *arg): argument
43 def on_fail(self, *arg): argument
/tools/tradefederation/core/tests/res/testdata/
Dtest_mapping_112 "instrumentation-arg": "annotation=android.platform.test.annotations.Presubmit"
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java82 for (String arg : args) { in dumpConfigForVersion()
83 mCmdArgs.add(arg); in dumpConfigForVersion()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteModuleLoader.java379 for (String arg : args) { in parseArgs()
380 int moduleSep = arg.indexOf(":"); in parseArgs()
384 String moduleName = arg.substring(0, moduleSep); in parseArgs()
385 String remainder = arg.substring(moduleSep + 1); in parseArgs()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DSdkAvdPreparer.java234 for (String arg : mEmulatorArgs) { in launchEmulatorForAvd()
235 String[] tokens = arg.split(" "); in launchEmulatorForAvd()
241 arg), device.getDeviceDescriptor()); in launchEmulatorForAvd()
247 "The emulator arg '%s' is invalid.", arg), device.getDeviceDescriptor()); in launchEmulatorForAvd()
DTestAppInstallSetup.java148 public void addInstallArg(String arg) { in addInstallArg() argument
149 mInstallArgs.add(arg); in addInstallArg()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java297 for (Object arg : args) { in rpcCall()
298 argsFormatted.put(arg); in rpcCall()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java541 for (Map.Entry<String, String> arg : args.entrySet()) { in buildWifiUtilCmdFromMap()
543 sb.append(arg.getKey()); in buildWifiUtilCmdFromMap()
545 sb.append(quote(arg.getValue())); in buildWifiUtilCmdFromMap()

12