/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ArgsOptionParserTest.java | 222 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_greater() local 226 parser.parse(new String[] {"--default", big, "--first", big, "--last", big, in testOptionUpdateRule_greater() 241 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_lesser() local 245 parser.parse(new String[] {"--default", small, "--first", small, "--last", small, in testOptionUpdateRule_lesser() 260 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_immutable() local 264 parser.parse(new String[] {"--immutable", update}); in testOptionUpdateRule_immutable() 271 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 275 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 287 ArgsOptionParser parser = new ArgsOptionParser(source); in testNonGlobalOptionSource_alias() local 290 parser.parse(new String[] {"--ngos:option"}); in testNonGlobalOptionSource_alias() [all …]
|
D | OptionSetterTest.java | 336 OptionSetter parser = new OptionSetter(object1, object2); in testOptionSetter_sharedEnumMap() local 337 parser.setOptionValue("enumMap", key, value); in testOptionSetter_sharedEnumMap() 363 OptionSetter parser = new OptionSetter(object1, object2); in testOptionSetter_sharedEnumCollection() local 364 parser.setOptionValue("enumCollection", value); in testOptionSetter_sharedEnumCollection() 489 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_unknown() local 491 parser.isBooleanOption("unknown"); in testIsBooleanOption_unknown() 502 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_true() local 503 assertTrue(parser.isBooleanOption("boolean")); in testIsBooleanOption_true() 511 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_objTrue() local 512 assertTrue(parser.isBooleanOption("booleanObj")); in testIsBooleanOption_objTrue() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 153 public void parseSuiteAttributes(XmlPullParser parser, IInvocationContext context) in parseSuiteAttributes() argument 176 public void parseBuildInfoAttributes(XmlPullParser parser, IInvocationContext context) in parseBuildInfoAttributes() argument 471 XmlPullParser parser = factory.newPullParser(); in parseResults() local 472 parser.setInput(new FileReader(resultFile)); in parseResults() 474 parser.nextTag(); in parseResults() 475 parser.require(XmlPullParser.START_TAG, NS, RESULT_TAG); in parseResults() 476 invocation.startTime = Long.valueOf(parser.getAttributeValue(NS, START_TIME_ATTR)); in parseResults() 477 invocation.endTime = Long.valueOf(parser.getAttributeValue(NS, END_TIME_ATTR)); in parseResults() 478 invocation.hostName = parser.getAttributeValue(NS, HOST_NAME_ATTR); in parseResults() 480 COMMAND_LINE_ARGS, parser.getAttributeValue(NS, COMMAND_LINE_ARGS)); in parseResults() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/ |
D | ArgsOptionParserTest.java | 204 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_greater() local 208 parser.parse(new String[] {"--default", big, "--first", big, "--last", big, in testOptionUpdateRule_greater() 223 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_lesser() local 227 parser.parse(new String[] {"--default", small, "--first", small, "--last", small, in testOptionUpdateRule_lesser() 242 ArgsOptionParser parser = new ArgsOptionParser(object); in testOptionUpdateRule_immutable() local 246 parser.parse(new String[] {"--immutable", update}); in testOptionUpdateRule_immutable() 253 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 257 parser.parse(new String[] {"--null-immutable", update}); in testOptionUpdateRule_immutable() 269 ArgsOptionParser parser = new ArgsOptionParser(source); in testNonGlobalOptionSource_alias() local 272 parser.parse(new String[] {"--ngos:option"}); in testNonGlobalOptionSource_alias() [all …]
|
D | OptionSetterTest.java | 261 OptionSetter parser = new OptionSetter(object1, object2); in testOptionSetter_sharedEnumMap() local 262 parser.setOptionMapValue("enumMap", key, value); in testOptionSetter_sharedEnumMap() 288 OptionSetter parser = new OptionSetter(object1, object2); in testOptionSetter_sharedEnumCollection() local 289 parser.setOptionValue("enumCollection", value); in testOptionSetter_sharedEnumCollection() 391 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_unknown() local 393 parser.isBooleanOption("unknown"); in testIsBooleanOption_unknown() 404 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_true() local 405 assertTrue(parser.isBooleanOption("boolean")); in testIsBooleanOption_true() 413 OptionSetter parser = new OptionSetter(new AllTypesOptionSource()); in testIsBooleanOption_objTrue() local 414 assertTrue(parser.isBooleanOption("booleanObj")); in testIsBooleanOption_objTrue() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/ |
D | UnitTests.java | 33 import com.android.loganalysis.parser.AbstractSectionParserTest; 34 import com.android.loganalysis.parser.ActivityServiceParserTest; 35 import com.android.loganalysis.parser.AnrParserTest; 36 import com.android.loganalysis.parser.BatteryDischargeStatsInfoParserTest; 37 import com.android.loganalysis.parser.BatteryStatsDetailedInfoParserTest; 38 import com.android.loganalysis.parser.BatteryStatsSummaryInfoParserTest; 39 import com.android.loganalysis.parser.BatteryUsageParserTest; 40 import com.android.loganalysis.parser.TimingsLogParserTest; 41 import com.android.loganalysis.parser.BugreportParserTest; 42 import com.android.loganalysis.parser.CompactMemInfoParserTest; [all …]
|
/tools/acloud/create/ |
D | create_args.py | 33 def AddCommonCreateArgs(parser): argument 39 parser.add_argument( 46 parser.add_argument( 53 parser.add_argument( 69 parser.add_argument( 76 parser.set_defaults(autoconnect=constants.INS_KEY_VNC) 77 parser.add_argument( 84 parser.add_argument( 92 parser.add_argument( 98 parser.add_argument( [all …]
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 345 AndroidBinXmlParser parser = new AndroidBinXmlParser(androidManifestContents); in getMinSdkVersionFromBinaryAndroidManifest() local 346 int eventType = parser.getEventType(); in getMinSdkVersionFromBinaryAndroidManifest() 349 && (parser.getDepth() == 2) in getMinSdkVersionFromBinaryAndroidManifest() 350 && ("uses-sdk".equals(parser.getName())) in getMinSdkVersionFromBinaryAndroidManifest() 351 && (parser.getNamespace().isEmpty())) { in getMinSdkVersionFromBinaryAndroidManifest() 354 for (int i = 0; i < parser.getAttributeCount(); i++) { in getMinSdkVersionFromBinaryAndroidManifest() 355 if (parser.getAttributeNameResourceId(i) == MIN_SDK_VERSION_ATTR_ID) { in getMinSdkVersionFromBinaryAndroidManifest() 356 int valueType = parser.getAttributeValueType(i); in getMinSdkVersionFromBinaryAndroidManifest() 359 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest() 364 parser.getAttributeStringValue(i)); in getMinSdkVersionFromBinaryAndroidManifest() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 157 CtsResultParserBase parser; in parseResult() local 165 parser = new CtsXmlResultParser(); in parseResult() 167 parser = new CtsDelimitedResultParser(); in parseResult() 177 Map<String, String> testKpis = parser.parse(testResult, testMethod); in parseResult() 184 parser.clear(); in parseResult() 442 XmlPullParser parser = factory.newPullParser(); in parse() local 443 parser.setInput(new ByteArrayInputStream(result.getBytes(ENCODING)), ENCODING); in parse() 444 parser.nextTag(); in parse() 445 parse(parser); in parse() 459 private void parse(XmlPullParser parser) throws XmlPullParserException, IOException { in parse() argument [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestListTestParserTest.java | 57 GTestListTestParser parser = new GTestListTestParser(TEST_MODULE_NAME, mockRunListener); in testParseSimpleList() local 58 parser.processNewLines(contents); in testParseSimpleList() 59 parser.flush(); in testParseSimpleList() 61 verifyTestDescriptions(parser.mTests, 1); in testParseSimpleList() 82 GTestListTestParser parser = new GTestListTestParser(TEST_MODULE_NAME, mockRunListener); in testParseMultiClassList() local 83 parser.processNewLines(contents); in testParseMultiClassList() 84 parser.flush(); in testParseMultiClassList() 86 verifyTestDescriptions(parser.mTests, 29); in testParseMultiClassList() 95 GTestListTestParser parser = new GTestListTestParser(TEST_MODULE_NAME, mockRunListener); in testParseMalformedList() local 97 parser.processNewLines(contents); in testParseMalformedList() [all …]
|
/tools/treble/build/sandbox/ |
D | nsjail.py | 354 parser = argparse.ArgumentParser( 356 parser.add_argument( 360 parser.add_argument( 365 parser.add_argument( 368 parser.add_argument( 372 parser.add_argument( 376 parser.add_argument( 380 parser.add_argument( 386 parser.add_argument( 391 parser.add_argument( [all …]
|
D | build_android_sandboxed.py | 109 parser = argparse.ArgumentParser( 111 parser.add_argument( 114 parser.add_argument( 116 parser.add_argument( 120 parser.add_argument( 126 parser.add_argument( 130 parser.add_argument( 135 parser.add_argument( 139 parser.add_argument( 146 parser.add_argument( [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParserTest.java | 109 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_boardAndProduct() local 110 Collection<String> reqBoards = parser.getRequiredBoards(); in testParseAndroidInfo_boardAndProduct() 124 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_onlyBoard() local 125 Collection<String> reqBoards = parser.getRequiredBoards(); in testParseAndroidInfo_onlyBoard() 142 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_onlyProduct() local 143 Collection<String> reqBoards = parser.getRequiredBoards(); in testParseAndroidInfo_onlyProduct() 202 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testRequireForProduct_api() local 203 assertEquals("1234", parser.getRequiredImageVersion("version-bootloader")); in testRequireForProduct_api() 204 assertEquals("1234", parser.getRequiredImageVersion("version-bootloader", null)); in testRequireForProduct_api() 205 assertEquals("1234", parser.getRequiredImageVersion("version-bootloader", "alpha")); in testRequireForProduct_api() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | LogcatParserTest.java | 16 package com.android.loganalysis.parser; 733 LogcatParser parser = new LogcatParser("2012"); in testAddPattern_byTagOnly() local 734 assertNotNull(parser); in testAddPattern_byTagOnly() 735 parser.addPattern(null, null, "HelloTag", "HelloCategory"); in testAddPattern_byTagOnly() 736 parser.addPattern(null, null, "Watchdog", "WatchdogCategory"); in testAddPattern_byTagOnly() 737 LogcatItem logcat = parser.parse(lines); in testAddPattern_byTagOnly() 760 LogcatParser parser = new LogcatParser("2012"); in testAddPattern_byLevelAndTagOnly() local 761 assertNotNull(parser); in testAddPattern_byLevelAndTagOnly() 762 parser.addPattern(null, "I", "Watchdog", "WatchdogCategory"); in testAddPattern_byLevelAndTagOnly() 763 LogcatItem logcat = parser.parse(lines); in testAddPattern_byLevelAndTagOnly() [all …]
|
/tools/test/connectivity/acts/framework/acts/bin/ |
D | monsoon.py | 59 parser = argparse.ArgumentParser( variable 62 parser.add_argument( 64 parser.add_argument( 70 parser.add_argument( 72 parser.add_argument( 74 parser.add_argument( 79 parser.add_argument( 84 parser.add_argument( 89 parser.add_argument( 91 parser.add_argument('-d', '--device', help='Use this /dev/ttyACM... file.') [all …]
|
D | act.py | 125 parser = argparse.ArgumentParser( 128 parser.add_argument('-c', 134 parser.add_argument( 143 parser.add_argument('-tb', 149 parser.add_argument('-lp', 154 parser.add_argument( 162 group = parser.add_mutually_exclusive_group(required=True) 177 parser.add_argument('-ti', 184 args = parser.parse_args(sys.argv[1:])
|
/tools/asuite/aidegen/ |
D | aidegen_main.py | 106 parser = argparse.ArgumentParser( 111 parser.required = False 112 parser.add_argument( 119 parser.add_argument( 126 parser.add_argument( 131 parser.add_argument( 137 parser.add_argument( 142 parser.add_argument( 144 parser.add_argument( 150 parser.add_argument( [all …]
|
/tools/acloud/public/ |
D | acloud_common.py | 22 def AddCommonArguments(parser): argument 28 parser.add_argument("--email", 32 parser.add_argument("--config-file", 38 parser.add_argument("--service-account-json-private-key-path", 43 parser.add_argument("--report-file", 49 parser.add_argument("--log-file", 54 parser.add_argument('--verbose', '-v', 59 parser.add_argument("--no-metrics", 69 parser.add_argument("--config_file", 74 parser.add_argument("--service_account_json_private_key_path", [all …]
|
/tools/repohooks/tools/ |
D | clang-format.py | 44 parser = argparse.ArgumentParser(description=__doc__) 45 parser.add_argument('--clang-format', default='clang-format', 47 parser.add_argument('--git-clang-format', default='git-clang-format', 49 parser.add_argument('--style', metavar='STYLE', type=str, 51 parser.add_argument('--extensions', metavar='EXTENSIONS', type=str, 54 parser.add_argument('--fix', action='store_true', 57 scope = parser.add_mutually_exclusive_group(required=True) 64 parser.add_argument('files', type=str, nargs='*', 67 return parser 72 parser = get_parser() [all …]
|
D | google-java-format.py | 40 parser = argparse.ArgumentParser(description=__doc__) 41 parser.add_argument('--google-java-format', default='google-java-format', 43 parser.add_argument('--google-java-format-diff', 46 parser.add_argument('--fix', action='store_true', 48 parser.add_argument('--commit', type=str, default='HEAD', 53 parser.add_argument('--sort-imports', action='store_true', 55 parser.add_argument('files', nargs='*', 58 return parser 63 parser = get_parser() 64 opts = parser.parse_args(argv)
|
D | pylint.py | 70 parser = argparse.ArgumentParser(description=__doc__) 71 parser.add_argument('--init-hook', help='Init hook commands to run.') 72 parser.add_argument('--py3', action='store_true', 74 parser.add_argument('--executable-path', 76 parser.add_argument('--no-rcfile', 80 parser.add_argument('files', nargs='+') 81 return parser 86 parser = get_parser() 87 opts, unknown = parser.parse_known_args(argv)
|
/tools/repohooks/rh/ |
D | config_test.py | 76 parser = argparse.ArgumentParser(description=__doc__) 77 parser.add_argument('--check-env', action='store_true', 79 parser.add_argument('--commit-id', 81 parser.add_argument('--commit-msg', 83 parser.add_argument('--repo-root', 85 parser.add_argument('files', nargs='+', 87 return parser 92 parser = get_parser() 93 opts = parser.parse_args(argv)
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | sendra.py | 32 parser = argparse.ArgumentParser() variable 33 parser.add_argument('-m', '--mac-address', action='store', default=None, 35 parser.add_argument('-i', '--t-interval', action='store', default=None, 37 parser.add_argument('-c', '--pkt-count', action='store', default=None, 39 parser.add_argument('-l', '--life-time', action='store', default=None, 41 parser.add_argument('-in', '--wifi-interface', action='store', default=None, 43 parser.add_argument('-rtt', '--retrans-timer', action='store', default=None, 45 args = parser.parse_args()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | AbstractSectionParser.java | 16 package com.android.loganalysis.parser; 47 protected void addSectionParser(IParser parser, String pattern) { in addSectionParser() argument 48 if (parser == null) { in addSectionParser() 54 mSectionTrie.put(parser, pattern); in addSectionParser() 92 protected IItem getSection(IParser parser) { in getSection() argument 93 return mSections.get(parser); in getSection() 101 protected void setParser(IParser parser) { in setParser() argument 102 mCurrentParser = parser; in setParser()
|
/tools/repohooks/ |
D | pre-upload.py | 436 parser = argparse.ArgumentParser(description=__doc__) 437 parser.add_argument('--dir', default=None, 440 parser.add_argument('--project', default=None, 445 parser.add_argument('commits', nargs='*', 447 opts = parser.parse_args(argv) 455 parser.error('The current directory is not part of a git project.') 458 parser.error('Invalid dir: %s' % opts.dir) 460 parser.error('Not a git repository: %s' % opts.dir) 467 parser.error("Repo couldn't identify the project of %s" % opts.dir)
|