Home
last modified time | relevance | path

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

12

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DResultHandler.java193 XmlPullParser parser = factory.newPullParser(); in getResultFromDir() local
194 parser.setInput(new FileReader(resultFile)); in getResultFromDir()
196 parser.nextTag(); in getResultFromDir()
197 parser.require(XmlPullParser.START_TAG, NS, RESULT_TAG); in getResultFromDir()
199 parser.getAttributeValue(NS, START_TIME_ATTR))); in getResultFromDir()
200 invocation.setTestPlan(parser.getAttributeValue(NS, SUITE_PLAN_ATTR)); in getResultFromDir()
201 invocation.setCommandLineArgs(parser.getAttributeValue(NS, COMMAND_LINE_ARGS)); in getResultFromDir()
202 String deviceList = parser.getAttributeValue(NS, DEVICES_ATTR); in getResultFromDir()
207 parser.nextTag(); in getResultFromDir()
208 parser.require(XmlPullParser.START_TAG, NS, BUILD_TAG); in getResultFromDir()
[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 …]
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 …]
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DValidatingResourceParser.java83 KXmlParser parser = new KXmlParser(); in parse() local
85 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); in parse()
90 parser.setInput(input, SdkConstants.UTF_8); in parse()
92 return parse(parser); in parse()
104 private boolean parse(KXmlParser parser) in parse() argument
107 int event = parser.next(); in parse()
109 for (int i = 0, n = parser.getAttributeCount(); i < n; i++) { in parse()
110 String attribute = parser.getAttributeName(i); in parse()
111 String value = parser.getAttributeValue(i); in parse()
DIdResourceParser.java71 KXmlParser parser = new KXmlParser(); in parse() local
73 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); in parse()
78 parser.setInput(input, SdkConstants.UTF_8); in parse()
80 return parse(parser); in parse()
92 private boolean parse(KXmlParser parser) in parse() argument
95 int event = parser.next(); in parse()
97 for (int i = 0, n = parser.getAttributeCount(); i < n; i++) { in parse()
98 String attribute = parser.getAttributeName(i); in parse()
99 String value = parser.getAttributeValue(i); in parse()
DFrameworkResources.java85 KXmlParser parser = new KXmlParser(); in loadPublicResources() local
86 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); in loadPublicResources()
87 parser.setInput(reader); in loadPublicResources()
92 int event = parser.next(); in loadPublicResources()
95 if (!parser.getName().equals("public")) { //$NON-NLS-1$ in loadPublicResources()
101 for (int i = 0, n = parser.getAttributeCount(); i < n; i++) { in loadPublicResources()
102 String attribute = parser.getAttributeName(i); in loadPublicResources()
105 name = parser.getAttributeValue(i); in loadPublicResources()
111 typeName = parser.getAttributeValue(i); in loadPublicResources()
DSingleResourceFile.java137 ValidatingResourceParser parser = new ValidatingResourceParser(context, false); in validateAttributes() local
140 return parser.parse(file.getContents()); in validateAttributes()
DMultiResourceFile.java145 SAXParser parser = XmlUtils.createSaxParser(sParserFactory); in parseFile() local
146parser.parse(getFile().getContents(), new ValueResourceParser(this, isFramework(), null)); in parseFile()
DIdGeneratingResourceFile.java128 IdResourceParser parser = new IdResourceParser(this, isFramework()); in parseFileForIds() local
131 return parser.parse(file.getContents()); in parseFileForIds()
/platform_testing/scripts/map_tests/
Dmap_tests.py34 parser = argparse.ArgumentParser( variable
40 parser.add_argument("-i", "--module-info", action="store", help="Default is $ANDROID_PRODUCT_OUT/mo…
41 parser.add_argument("-w", "--write", action="store_true", help="Write over the TEST_MAPPING file.")
42 parser.add_argument("-d", "--dir", action="store", help="Directory where TEST_MAPPING file should e…
43 parser.add_argument("-t", "--tests-in", action="store", help="Directory to pull tests from, default…
44 parser.add_argument("-p", "--print", action="store", help="Also print the module-info.json entry fo…
45 args = parser.parse_args()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DSubjectsParserTestParseLayers.kt36 override fun doParseTrace(parser: TestSubjectsParser): FlickerTraceSubject<*>? =
37 parser.doGetLayersTraceSubject()
39 override fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? =
40 parser.doGetLayerTraceEntrySubject(tag)
DSubjectsParserTestParseWM.kt36 override fun doParseTrace(parser: TestSubjectsParser): FlickerTraceSubject<*>? =
37 parser.doGetWmTraceSubject()
39 override fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? =
40 parser.doGetWmStateSubject(tag)
DBaseSubjectsParserTestParse.kt47 protected abstract fun doParseTrace(parser: TestSubjectsParser): FlickerTraceSubject<*>? in getTime()
49 protected abstract fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? in getTime()
66 val parser = TestSubjectsParser(reader) in parseTraceSubject() constant
67 val subject = doParseTrace(parser) ?: error("$subjectName not built") in parseTraceSubject()
93 val parser = TestSubjectsParser(reader) in readTraceNullWhenDoesNotExist() constant
94 val subject = doParseTrace(parser) in readTraceNullWhenDoesNotExist()
103 val parser = TestSubjectsParser(reader) in doParseStateSubjectAndValidate() constant
104 val subject = doParseState(parser, tag) ?: error("$subjectName tag=$tag not built") in doParseStateSubjectAndValidate()
DSubjectsParserTest.kt37 val parser = SubjectsParser(ResultReader(data, TRACE_CONFIG_REQUIRE_CHANGES)) in failFileNotFound() constant
39 parser.getSubjectOfType(Tag.ALL, LayersTraceSubject::class) in failFileNotFound()
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DInstrumentationResultProtoParser.java60 private InstrumentationResultParser parser; field in InstrumentationResultProtoParser
64 parser = new InstrumentationResultParser(runName, listeners); in InstrumentationResultProtoParser()
80 parser.handleTestRunFailed(NO_TEST_RESULTS_FILE); in processProtoFile()
84 parser.handleTestRunFailed(NO_TEST_RESULTS_MSG); in processProtoFile()
110 parser.handleTestRunFailed(INVALID_TEST_RESULTS_FILE); in processProtoFile()
112 parser.done(); in processProtoFile()
140 parser.processNewLines(preProcessedLines.toArray(new String[preProcessedLines.size()])); in processTestStatus()
183 parser.processNewLines(preProcessedLines.toArray(new String[preProcessedLines.size()])); in processSessionStatus()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dmain_utils.py41 parser = argparse.ArgumentParser(description='Parse Test Args.')
42 group = parser.add_mutually_exclusive_group(required=False)
48 parsed_test_args = parser.parse_known_args(sys.argv)[0]
/platform_testing/libraries/screenshot/
Dupdate_goldens.py31 parser = argparse.ArgumentParser(
33 parser.add_argument(
37 parser.add_argument(
42 args = parser.parse_args()
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/
DLogcatPostProcessor.java21 import com.android.loganalysis.parser.TimingsLogParser;
170 TimingsLogParser parser = new TimingsLogParser(); in analyzeGranularBootInfo() local
171 List<SystemServicesTimingItem> items = parser.parseSystemServicesTimingItems(input); in analyzeGranularBootInfo()
228 TimingsLogParser parser = new TimingsLogParser(); in createCustomTimingsParser() local
229 parser.addDurationPatternPair(BOOT_PHASE_1000, KERNEL_START_PATTERN, LOGCAT_BOOT_COMPLETED); in createCustomTimingsParser()
234 parser.addDurationPatternPair( in createCustomTimingsParser()
237 return parser; in createCustomTimingsParser()
DDmesgPostProcessor.java25 import com.android.loganalysis.parser.DmesgParser;
/platform_testing/libraries/screenshot/scripts/
Ddeviceless_converter.py62 parser = argparse.ArgumentParser(
64 parser.add_argument('-m', '--module_pattern', required=True)
66 return parser.parse_args()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java157 KXmlParser parser = new KXmlParser(); in createXmlParserForFile() local
158 parser.setInput(new ByteArrayInputStream(byteOutputStream.toByteArray()), null); in createXmlParserForFile()
159 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); in createXmlParserForFile()
160 return parser; in createXmlParserForFile()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/
DPlatformRenderTestCase.java67 LayoutPullParser parser = LayoutPullParser.createFromPath("/empty.xml"); in setUpContext() local
73 .setParser(parser) in setUpContext()
/platform_testing/libraries/motion/golden_updater/
Dwatch_local_tests.py41 parser = argparse.ArgumentParser(
45 parser.add_argument(
51 parser.add_argument(
57 parser.add_argument(
64 parser.add_argument(
70 parser.add_argument(
77 parser.add_argument(
83 args = parser.parse_args()
/platform_testing/host_runners/boot/src/com/android/boot/
DBootTimeTest.java25 import com.android.loganalysis.parser.DmesgParser;
26 import com.android.loganalysis.parser.TimingsLogParser;
868 TimingsLogParser parser = new TimingsLogParser(); in analyzeGranularBootInfo() local
869 List<SystemServicesTimingItem> items = parser.parseSystemServicesTimingItems(br); in analyzeGranularBootInfo()
906 TimingsLogParser parser = new TimingsLogParser(); in analyzeCustomBootInfo() local
907 parser.addDurationPatternPair(BOOT_PHASE_1000, KERNEL_START_PATTERN, LOGCAT_BOOT_COMPLETED); in analyzeCustomBootInfo()
912 parser.addDurationPatternPair( in analyzeCustomBootInfo()
927 List<GenericTimingItem> items = parser.parseGenericTimingItems(br); in analyzeCustomBootInfo()
/platform_testing/libraries/sts-common-util/sts-sdk/package/gradle/wrapper/
Dgradle-wrapper.jar ... .File rootDir org.gradle.cli.CommandLineParser parser org.gradle.cli.SystemPropertiesCommandLineConverter converter org. ...

12