Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 48) sorted by relevance

12

/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DResultHandler.java187 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 …]
DReportLog.java140 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 …]
DDynamicConfig.java127 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/
Dlaunch_hal_test.py55 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 …]
Dupdate_hal_adapter_tests.py37 parser = argparse.ArgumentParser(
39 parser.add_argument(
42 args = parser.parse_args()
/test/framework/harnesses/host_controller/
Dmain.py95 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/
DCertificationResultXml.java115 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/
Dparser_test.py23 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 …]
Dgcda_parser_test.py54 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)
Dgcno_parser_test.py60 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)
Dgcda_parser.py31 from vts.utils.python.coverage import parser
34 class GCDAParser(parser.GcovStreamParserUtil):
108 except parser.FileFormatError:
116 raise parser.FileFormatError(
Dsancov_parser.py25 import parser
81 raise parser.FileFormatError('Empty file.')
90 raise parser.FileFormatError('Invalid magic.')
Dgcno_parser.py38 from vts.utils.python.coverage import parser
41 class GCNOParser(parser.GcovStreamParserUtil):
104 except parser.FileFormatError:
106 raise parser.FileFormatError("Invalid file.")
Dcoverage_report_test.py41 parser = gcda_parser.GCDAParser(file)
42 parser.Parse(gcno_summary)
Dcoverage_utils.py33 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/
De2e_test.py108 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/
Dgenerate_module.py240 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/
Dcreate-test-project.py207 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/
DBinderPerformanceTest.py124 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/
DPublicApkUtil.java125 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/
DHwBinderPerformanceTest.py131 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/
DCertificationChecksumHelperTest.java77 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/
DAppCompatibilityTest.java350 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/
DProtoUtils.java42 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/
Dar_parser.py90 with elf_parser.ElfParser(archive_path, offset) as parser:
91 symbols.extend(parser.ListGlobalSymbols())

12