/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | ResultHandler.java | 187 XmlPullParser parser = factory.newPullParser(); in getResultFromDir() local 188 parser.setInput(new FileReader(resultFile)); in getResultFromDir() 190 parser.nextTag(); in getResultFromDir() 191 parser.require(XmlPullParser.START_TAG, NS, RESULT_TAG); in getResultFromDir() 193 parser.getAttributeValue(NS, START_TIME_ATTR))); in getResultFromDir() 194 invocation.setTestPlan(parser.getAttributeValue(NS, SUITE_PLAN_ATTR)); in getResultFromDir() 195 invocation.setCommandLineArgs(parser.getAttributeValue(NS, COMMAND_LINE_ARGS)); in getResultFromDir() 196 String deviceList = parser.getAttributeValue(NS, DEVICES_ATTR); in getResultFromDir() 201 parser.nextTag(); in getResultFromDir() 202 parser.require(XmlPullParser.START_TAG, NS, BUILD_TAG); in getResultFromDir() [all …]
|
D | ReportLog.java | 140 static Metric parse(XmlPullParser parser) in parse() argument 142 parser.require(XmlPullParser.START_TAG, null, METRIC_TAG); in parse() 143 String source = parser.getAttributeValue(null, SOURCE_ATTR); in parse() 144 String message = parser.getAttributeValue(null, MESSAGE_ATTR); in parse() 146 parser.getAttributeValue(null, SCORETYPE_ATTR)); in parse() 148 parser.getAttributeValue(null, SCOREUNIT_ATTR)); in parse() 150 while (parser.nextTag() == XmlPullParser.START_TAG) { in parse() 151 parser.require(XmlPullParser.START_TAG, null, VALUE_TAG); in parse() 152 valuesList.add(parser.nextText()); in parse() 153 parser.require(XmlPullParser.END_TAG, null, VALUE_TAG); in parse() [all …]
|
D | DynamicConfig.java | 127 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in createConfigMap() local 128 parser.setInput(new InputStreamReader(fileStream)); in createConfigMap() 129 parser.nextTag(); in createConfigMap() 130 parser.require(XmlPullParser.START_TAG, NS, CONFIG_TAG); in createConfigMap() 132 while (parser.nextTag() == XmlPullParser.START_TAG) { in createConfigMap() 133 parser.require(XmlPullParser.START_TAG, NS, ENTRY_TAG); in createConfigMap() 134 String key = parser.getAttributeValue(NS, KEY_ATTR); in createConfigMap() 136 while (parser.nextTag() == XmlPullParser.START_TAG) { in createConfigMap() 137 parser.require(XmlPullParser.START_TAG, NS, VALUE_TAG); in createConfigMap() 138 valueList.add(parser.nextText()); in createConfigMap() [all …]
|
/test/vts-testcase/hal/script/ |
D | launch_hal_test.py | 55 parser = argparse.ArgumentParser(description='Initiate a test case.') 56 parser.add_argument( 62 parser.add_argument( 68 parser.add_argument( 74 parser.add_argument( 80 parser.add_argument( 86 parser.add_argument( 93 parser.add_argument( 98 parser.add_argument( 103 parser.add_argument( [all …]
|
D | update_hal_adapter_tests.py | 37 parser = argparse.ArgumentParser( 39 parser.add_argument( 42 args = parser.parse_args()
|
/test/framework/harnesses/host_controller/ |
D | main.py | 95 parser = argparse.ArgumentParser() 96 parser.add_argument("--config-file", 100 parser.add_argument("--poll", action="store_true", 103 parser.add_argument("--use-tfc", action="store_true", 105 parser.add_argument("--vti", 108 parser.add_argument("--script", 111 parser.add_argument("--serial", 116 parser.add_argument("--loop", 125 parser.add_argument("--console", action="store_true", 128 parser.add_argument("--password", [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/ |
D | CertificationResultXml.java | 115 public void parseSuiteAttributes(XmlPullParser parser, IInvocationContext context) in parseSuiteAttributes() argument 117 mSuiteName = parser.getAttributeValue(NS, SUITE_NAME_ATTR); in parseSuiteAttributes() 120 mSuiteVersion = parser.getAttributeValue(NS, SUITE_VERSION_ATTR); in parseSuiteAttributes() 123 mSuitePlan = parser.getAttributeValue(NS, SUITE_PLAN_ATTR); in parseSuiteAttributes() 126 mSuiteBuild = parser.getAttributeValue(NS, SUITE_BUILD_ATTR); in parseSuiteAttributes() 129 mReferenceUrl = parser.getAttributeValue(NS, REFERENCE_URL_ATTR); in parseSuiteAttributes() 133 mLogUrl = parser.getAttributeValue(NS, LOG_URL_ATTR); in parseSuiteAttributes() 159 public void parseBuildInfoAttributes(XmlPullParser parser, IInvocationContext context) in parseBuildInfoAttributes() argument 161 for (int index = 0; index < parser.getAttributeCount(); index++) { in parseBuildInfoAttributes() 162 String key = parser.getAttributeName(index); in parseBuildInfoAttributes() [all …]
|
/test/vts/utils/python/coverage/ |
D | parser_test.py | 23 from vts.utils.python.coverage import parser 147 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 156 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 166 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 172 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 173 self.assertRaises(parser.FileFormatError, p.ReadInt) 180 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 185 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 195 p = parser.GcovStreamParserUtil(self.stream, MAGIC) 211 p = parser.GcovStreamParserUtil(self.stream, MAGIC) [all …]
|
D | gcda_parser_test.py | 54 parser = gcda_parser.GCDAParser(self.stream) 55 parser.file_summary = fs 56 func = parser.ReadFunction(5) 75 parser = gcda_parser.GCDAParser(self.stream) 76 parser.file_summary = fs 77 parser.ReadCounts(func) 111 parser = gcda_parser.GCDAParser(self.stream) 112 parser.file_summary = fs 113 parser.ReadCounts(func)
|
D | gcno_parser_test.py | 60 parser = gcno_parser.GCNOParser(self.stream) 61 summary = parser.ReadFunction() 76 parser = gcno_parser.GCNOParser(self.stream) 77 parser.ReadBlocks(n_blocks, func) 101 parser = gcno_parser.GCNOParser(self.stream) 103 parser.ReadArcs(n_arcs * 2 + 1, func) 141 parser = gcno_parser.GCNOParser(self.stream) 142 parser.ReadArcs(4 * 2 + 1, func) 180 parser = gcno_parser.GCNOParser(self.stream) 181 parser.ReadLines(n_arcs + name_length + 3, func)
|
D | gcda_parser.py | 31 from vts.utils.python.coverage import parser 34 class GCDAParser(parser.GcovStreamParserUtil): 108 except parser.FileFormatError: 116 raise parser.FileFormatError(
|
D | sancov_parser.py | 25 import parser 81 raise parser.FileFormatError('Empty file.') 90 raise parser.FileFormatError('Invalid magic.')
|
D | gcno_parser.py | 38 from vts.utils.python.coverage import parser 41 class GCNOParser(parser.GcovStreamParserUtil): 104 except parser.FileFormatError: 106 raise parser.FileFormatError("Invalid file.")
|
D | coverage_report_test.py | 41 parser = gcda_parser.GCDAParser(file) 42 parser.Parse(gcno_summary)
|
D | coverage_utils.py | 33 from vts.utils.python.coverage.parser import FileFormatError 721 parser = argparse.ArgumentParser(description="Coverage process tool.") variable 722 parser.add_argument( 727 parser.add_argument( 732 parser.add_argument( 734 parser.add_argument( 739 parser.add_argument( 744 args = parser.parse_args()
|
/test/vti/test_serving/gae/testing/ |
D | e2e_test.py | 108 parser = argparse.ArgumentParser( variable 111 parser.add_argument( 115 parser.add_argument( 119 parser.add_argument( 124 args = parser.parse_args()
|
/test/app_compat/csuite/tools/script/ |
D | generate_module.py | 240 parser = argparse.ArgumentParser() 241 parser.add_argument('--package_list', 245 parser.add_argument('--root_dir', 250 return parser.parse_args(args) 254 parser = parse_args(sys.argv[1:]) 255 generate_all_modules_from_config(parser.package_list, parser.root_dir)
|
/test/vts/script/ |
D | create-test-project.py | 207 parser = argparse.ArgumentParser(description='Initiate a test case.') 208 parser.add_argument( 213 parser.add_argument( 218 parser.add_argument( 223 parser.add_argument( 229 args = parser.parse_args()
|
/test/vts-testcase/performance/binder_benchmark/ |
D | BinderPerformanceTest.py | 124 parser = benchmark_parser.GoogleBenchmarkJsonParser( 126 label_result = parser.GetArguments() 127 value_result = parser.GetRealTime() 129 self.addTableToResult(table_name, parser.ToTable())
|
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/util/ |
D | PublicApkUtil.java | 125 AaptParser parser = AaptParser.parse(apk); in getApkListFromDirectory() local 126 if (parser == null) { in getApkListFromDirectory() 133 parser.getPackageName(), in getApkListFromDirectory() 134 parser.getVersionName(), in getApkListFromDirectory() 135 parser.getVersionCode(), in getApkListFromDirectory()
|
/test/vts-testcase/performance/hwbinder_benchmark/ |
D | HwBinderPerformanceTest.py | 131 parser = benchmark_parser.GoogleBenchmarkJsonParser( 133 label_result = parser.GetArguments() 134 value_result = parser.GetRealTime() 136 self.addTableToResult(table_name, parser.ToTable())
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/ |
D | CertificationChecksumHelperTest.java | 77 CertificationChecksumHelper parser = new CertificationChecksumHelper( in testCreateChecksum() local 80 assertTrue(parser.containsFile(mFakeLogFile, mWorkingDir.getName())); in testCreateChecksum() 83 assertTrue(parser.containsTestResult(entry, run1, FINGERPRINT)); in testCreateChecksum() 87 assertTrue(parser.containsTestResult(entry, run2, FINGERPRINT)); in testCreateChecksum()
|
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/ |
D | AppCompatibilityTest.java | 350 AaptParser parser = AaptParser.parse(apkFile); 351 if (parser == null) { 360 result.name = parser.getLabel(); 362 if (!equalsOrNull(result.packageName, parser.getPackageName()) 363 || !equalsOrNull(result.versionString, parser.getVersionName()) 364 || !equalsOrNull(result.versionCode, parser.getVersionCode())) { 370 parser.getPackageName(), 371 parser.getVersionCode(), 372 parser.getVersionName());
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | ProtoUtils.java | 42 ITestDevice device, Parser<T> parser, String command) throws Exception { in getProto() argument 45 return parser.parseFrom(receiver.getOutput()); in getProto()
|
/test/vts/utils/python/library/ |
D | ar_parser.py | 90 with elf_parser.ElfParser(archive_path, offset) as parser: 91 symbols.extend(parser.ListGlobalSymbols())
|