Home
last modified time | relevance | path

Searched refs:option (Results 1 – 22 of 22) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java577 final String option = "--my_option"; in testParseBestEffort_oneArg() local
580 new String[] {option, value}); in testParseBestEffort_oneArg()
591 final String option = "--my_option"; in testParseBestEffort_oneArg_overwrite() local
595 new String[] {option, value1, option, value2}); in testParseBestEffort_oneArg_overwrite()
681 final String option = "--my_option"; in testParseBestEffort_oneArg_manualStop() local
685 new String[] {option, value1, "--", option, value2}); in testParseBestEffort_oneArg_manualStop()
688 assertEquals(option, leftovers.get(0)); in testParseBestEffort_oneArg_manualStop()
699 final String option = "--my_option"; in testParseBestEffort_oneArg_bareWord() local
704 new String[] {option, value1, bareWord, option, value2}); in testParseBestEffort_oneArg_bareWord()
708 assertEquals(option, leftovers.get(1)); in testParseBestEffort_oneArg_bareWord()
[all …]
DConfigurationTest.java571 ICommandOptions option = new CommandOptions() { in testValidateOptionsShardException() local
575 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardException()
589 ICommandOptions option = new CommandOptions() { in testValidateOptionsShardIndexException() local
595 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexException()
609 ICommandOptions option = new CommandOptions() { in testValidateOptionsShardIndexAboveShardCount() local
619 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexAboveShardCount()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java337 final Option option = field.getAnnotation(Option.class); in getOptionHelp() local
339 String optionNameHelp = buildOptionNameHelp(field, option); in getOptionHelp()
340 if (shouldOutputHelpForOption(importantOnly, option, defaultValue)) { in getOptionHelp()
357 out.append(option.description()); in getOptionHelp()
374 private static boolean shouldOutputHelpForOption(boolean importantOnly, Option option, in shouldOutputHelpForOption() argument
379 switch (option.importance()) { in shouldOutputHelpForOption()
397 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp() argument
400 if (option.shortName() != Option.NO_SHORT_NAME) { in buildOptionNameHelp()
402 optionNameBuilder.append(option.shortName()); in buildOptionNameHelp()
413 optionNameBuilder.append(option.name()); in buildOptionNameHelp()
DOptionSetter.java307 final Option option = field.getAnnotation(Option.class); in setFieldValue() local
308 if (option == null) { in setFieldValue()
316 OptionUpdateRule rule = option.updateRule(); in setFieldValue()
442 final Option option = field.getAnnotation(Option.class); in addOptionsForObject() local
443 if (option.name().indexOf(NAMESPACE_SEPARATOR) != -1) { in addOptionsForObject()
447 option.name(), optionSource.getClass().getName(), NAMESPACE_SEPARATOR)); in addOptionsForObject()
454 if ((option.updateRule() == OptionUpdateRule.GREATEST) || in addOptionsForObject()
455 (option.updateRule() == OptionUpdateRule.LEAST)) { in addOptionsForObject()
460 "non-Comparable type '%s'.", option.name(), in addOptionsForObject()
461 optionSource.getClass().getName(), option.updateRule(), in addOptionsForObject()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DArgsOptionParser.java419 final Option option = field.getAnnotation(Option.class); in getOptionHelp() local
421 String optionNameHelp = buildOptionNameHelp(field, option); in getOptionHelp()
422 if (shouldOutputHelpForOption(importantOnly, option, defaultValue)) { in getOptionHelp()
439 out.append(option.description()); in getOptionHelp()
456 private static boolean shouldOutputHelpForOption(boolean importantOnly, Option option, in shouldOutputHelpForOption() argument
461 switch (option.importance()) { in shouldOutputHelpForOption()
470 option.importance().toString())); in shouldOutputHelpForOption()
481 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp() argument
484 if (option.shortName() != Option.NO_SHORT_NAME) { in buildOptionNameHelp()
486 optionNameBuilder.append(option.shortName()); in buildOptionNameHelp()
[all …]
DOptionSetter.java203 final Option option = field.getAnnotation(Option.class); in getHandlerOrTimeVal() local
204 if (option == null) { in getHandlerOrTimeVal()
213 if (option.isTimeVal()) { in getHandlerOrTimeVal()
501 final Option option = field.getAnnotation(Option.class); in setFieldValue() local
502 if (option == null) { in setFieldValue()
510 OptionUpdateRule rule = option.updateRule(); in setFieldValue()
606 final Option option = field.getAnnotation(Option.class); in addOptionsForObject() local
607 if (option.name().indexOf(NAMESPACE_SEPARATOR) != -1) { in addOptionsForObject()
611 option.name(), optionSource.getClass().getName(), NAMESPACE_SEPARATOR)); in addOptionsForObject()
618 if ((option.updateRule() == OptionUpdateRule.GREATEST) || in addOptionsForObject()
[all …]
DOptionCopier.java44 final Option option = origField.getAnnotation(Option.class); in copyOptions() local
45 Field destField = destFieldMap.remove(option.name()); in copyOptions()
49 OptionSetter.setFieldValue(option.name(), destObject, destField, origValue); in copyOptions()
DConfigurationUtil.java86 Option option = field.getAnnotation(Option.class); in dumpOptionsToXml() local
92 dumpOptionToXml(serializer, option.name(), null, entry.toString()); in dumpOptionsToXml()
100 option.name(), in dumpOptionsToXml()
109 serializer, option.name(), keyObj.toString(), valueObj.toString()); in dumpOptionsToXml()
113 dumpOptionToXml(serializer, option.name(), null, fieldVal.toString()); in dumpOptionsToXml()
DConfiguration.java999 Option option = field.getAnnotation(Option.class); in getOptionJson() local
1000 jsonOption.put("name", option.name()); in getOptionJson()
1001 if (option.shortName() != Option.NO_SHORT_NAME) { in getOptionJson()
1002 jsonOption.put("shortName", option.shortName()); in getOptionJson()
1004 jsonOption.put("description", option.description()); in getOptionJson()
1005 jsonOption.put("importance", option.importance()); in getOptionJson()
1006 jsonOption.put("mandatory", option.mandatory()); in getOptionJson()
1007 jsonOption.put("isTimeVal", option.isTimeVal()); in getOptionJson()
1008 jsonOption.put("updateRule", option.updateRule().name()); in getOptionJson()
/tools/tradefederation/core/proto/
Dfile_metadata.proto6 option java_package = "com.android.test.metrics.proto";
7 option java_outer_classname = "FileMetadataProto";
Dcollector.proto8 option java_package = "com.android.test.metrics.proto";
9 option java_outer_classname = "LogCollectorProto";
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DVerifyTest.java39 OptionSetter option = new OptionSetter(mVerify); in VerifyTest() local
40 option.setOptionValue("quiet", "true"); in VerifyTest()
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dformatter.py78 option = options[option_name]
81 yield '%s=%s' % (option_name, self.format_value(option))
/tools/repohooks/rh/
Dconfig.py69 def get(self, section, option, *args): argument
73 return ConfigParser.RawConfigParser.get(self, section, option)
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbluetooth.proto9 option java_package = "com.google.wireless.android.play.playlog.connectivity";
10 // option (datapol.file_vetting_status) = "latest";
/tools/test/connectivity/acts/tests/google/tel/config/
DREADME.md4 … (the value is unused), will enable the 'WiFi Verbose Logging' developer option on connected Andro…
/tools/repohooks/tools/
Dpylintrc66 # either give multiple identifier separated by comma (,) or put this option
67 # multiple time. See also the "--disable" option for examples.
72 # option multiple times (only on the command line, not in the configuration
177 # --spelling-private-dict-file option instead of raising a message.
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DSdkAvdPreparer.java541 private void setCommandList(List<String> commands, String option, String value) { in setCommandList() argument
543 commands.add(option); in setCommandList()
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_sign.txt49 need to use this option when only one signer is used.
/tools/external/fat32lib/
DNOTICE59 You may charge a fee for the physical act of transferring a copy, and you may at your option offer …
79 This option is useful when you wish to copy part of the code of the Library into a program that is …
130 …f this License which applies to it and "any later version", you have the option of following the t…
/tools/repohooks/
DREADME.md22 sometimes there are valid reasons for this. You can simply use the option
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmd8475a.py2964 def auto_answer(self, option): argument
2978 enable, time = option