Home
last modified time | relevance | path

Searched refs:mParser (Results 1 – 16 of 16) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DLogcatEventParserTest.java57 private LogcatEventParser mParser; field in LogcatEventParserTest
66 mParser = new LogcatEventParser(mTestDevice); in setUp()
67 mParser.registerEventTrigger( in setUp()
69 mParser.registerEventTrigger( in setUp()
75 mParser.close(); in tearDown()
84 mParser.registerEventTrigger( in testParseEventTypeExactMatch()
90 mParser.parseEvents(new String[] {mappedLogLine}); in testParseEventTypeExactMatch()
92 LogcatEventType.UPDATE_VERIFIER_COMPLETE, mParser.pollForEvent().getEventType()); in testParseEventTypeExactMatch()
101 mParser.registerEventTrigger( in testParseEventTypePartialMatch()
108 mParser.parseEvents(new String[] {log}); in testParseEventTypePartialMatch()
[all …]
DHprofAllocSiteParserTest.java57 private HprofAllocSiteParser mParser; field in HprofAllocSiteParserTest
61 mParser = new HprofAllocSiteParser(); in setUp()
70 Map<String, String> results = mParser.parse(f); in testParse()
85 Map<String, String> results = mParser.parse(f); in testParse_invalidContent()
95 Map<String, String> results = mParser.parse(null); in testParse_noFile()
103 Map<String, String> results = mParser.parse(new File("thisdoesnotexistsatall")); in testParse_fileDoesNotExists()
DListInstrumentationParserTest.java60 private ListInstrumentationParser mParser; field in ListInstrumentationParserTest
64 mParser = new ListInstrumentationParser(); in setUp()
70 List<InstrumentationTarget> targets = mParser.getInstrumentationTargets(); in testEmptyParse()
83 mParser.processNewLines(pmListOutput); in testSimpleParse()
97 List<InstrumentationTarget> parsedTargets = mParser.getInstrumentationTargets(); in testSimpleParse()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DNativeStressTestParserTest.java29 private NativeStressTestParser mParser; field in NativeStressTestParserTest
34 mParser = new NativeStressTestParser(RUN_NAME); in setUp()
44 mParser.processNewLines(new String[] {}); in testParse_empty()
45 mParser.done(); in testParse_empty()
56 mParser.processNewLines(new String[] {"blah blah", "more blah"}); in testParse_garbage()
57 mParser.done(); in testParse_garbage()
68 mParser.processNewLines(new String[] {"==== Completed pass: 0"}); in testParse_oneIteration()
69 mParser.done(); in testParse_oneIteration()
80 mParser.processNewLines(new String[] {"====Completedpass:0succeeded", in testParse_whitespace()
82 mParser.done(); in testParse_whitespace()
[all …]
DNativeBenchmarkTestParserTest.java29 private NativeBenchmarkTestParser mParser; field in NativeBenchmarkTestParserTest
33 mParser = new NativeBenchmarkTestParser(RUN_NAME); in setUp()
39 mParser.processNewLines(new String[] {"Time per iteration min: 5 avg: 55 max: 35"}); in testParse_allInts()
40 mParser.done(); in testParse_allInts()
51 mParser.processNewLines(new String[] { in testParse_allFloats()
53 mParser.done(); in testParse_allFloats()
64 mParser.processNewLines(new String[] { in testParse_scientific()
66 mParser.done(); in testParse_scientific()
74 Assert.assertEquals(averageTime, mParser.getAvgOperationTime(), 0.0); in verifyAvgTime()
DPythonUnitTestResultParserTest.java58 private PythonUnitTestResultParser mParser; field in PythonUnitTestResultParserTest
65 mParser = new PythonUnitTestResultParser(ArrayUtil.list(mMockListener), "test"); in setUp()
137 mParser.processNewLines(output); in testParseNoTests()
150 mParser.processNewLines(output); in testParseSingleTestPass()
171 mParser.processNewLines(output); in testParsePartialSingleLineMatchSkipped()
190 mParser.processNewLines(output); in testParseSingleTestPassWithExpectedFailure()
212 mParser.processNewLines(output); in testParseSingleWithModuleClass()
236 mParser.processNewLines(output); in testParseMultiTestPass()
263 mParser.processNewLines(output); in testParseMultiTestPassWithOneExpectedFailure()
290 mParser.processNewLines(output); in testParseMultiTestPassWithAllExpectedFailure()
[all …]
/tools/loganalysis/javatests/com/android/loganalysis/parser/
DTimingsLogParserTest.java35 private TimingsLogParser mParser; field in TimingsLogParserTest
38 mParser = new TimingsLogParser(); in TimingsLogParserTest()
44 List<GenericTimingItem> items = mParser.parseGenericTimingItems(createBufferedReader(log)); in testParseGenericTiming_noPattern()
56 items = mParser.parseGenericTimingItems(createBufferedReader(log)); in testParseGenericTiming_noPattern()
77 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
81 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
85 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
89 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
93 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
97 mParser.addDurationPatternPair( in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
[all …]
DTraceFormatParserTest.java35 private TraceFormatParser mParser; field in TraceFormatParserTest
47 mParser = new TraceFormatParser(); in setUp()
63 TraceFormatItem parsedItem = mParser.parse(formatLine); in testParseFormatLine()
82 TraceFormatItem parsedItem = mParser.parse(formatLine); in testNoParameters()
92 mParser.parse(null); in testNullInput()
103 mParser.parse(formatLine); in testEmptyInput()
114 mParser.parse(formatLine); in testMultiLineInput()
125 mParser.parse(formatLine); in testOneLineInvalidInput()
139 TraceFormatItem parsedItem = mParser.parse(formatLine); in testQuoteInParams()
155 TraceFormatItem parsedItem = mParser.parse(formatLine); in testCategorizeParameters()
[all …]
DAbstractSectionParserTest.java29 AbstractSectionParser mParser = null; field in AbstractSectionParserTest
34 mParser = new AbstractSectionParser() { in setUp()
80 mParser.addSectionParser(parser, String.format(linePattern, i)); in testSwitchParsers()
89 mParser.parse(lines); in testSwitchParsers()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/
DRustTestResultParserTest.java43 private RustTestResultParser mParser; field in RustTestResultParserTest
50 mParser = new RustTestResultParser(ArrayUtil.list(mMockListener), "test"); in setUp()
170 mParser.processNewLines(contents); in testParseRealOutput()
171 mParser.done(); in testParseRealOutput()
196 mParser.processNewLines(contents); in testParseRealOutput2()
197 mParser.done(); in testParseRealOutput2()
216 mParser.processNewLines(contents); in testParseRealOutput3()
217 mParser.done(); in testParseRealOutput3()
233 mParser.processNewLines(Arrays.copyOfRange(contents, 0, 4)); in testParsePartialOutput()
234 mParser.processNewLines(Arrays.copyOfRange(contents, 4, 7)); in testParsePartialOutput()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParserTest.java131 private MoblyYamlResultParser mParser; field in MoblyYamlResultParserTest
171 mParser = new MoblyYamlResultParser(mMockListener); in testReportToListenersPassRecord()
181 mParser.reportToListeners(mListeners, resultCache); in testReportToListenersPassRecord()
194 mParser = new MoblyYamlResultParser(mMockListener); in testReportToListenersFailRecord()
205 mParser.reportToListeners(mListeners, resultCache); in testReportToListenersFailRecord()
229 mParser = new MoblyYamlResultParser(mMockListener); in testReportToListenersUserData()
232 mParser.reportToListeners(mListeners, resultCache); in testReportToListenersUserData()
240 mParser = new MoblyYamlResultParser(mMockListener); in testReportToListenersControllerInfo()
244 mParser.reportToListeners(mListeners, resultCache); in testReportToListenersControllerInfo()
252 mParser = new MoblyYamlResultParser(mMockListener); in testParseDocumentMapRecordPass()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DStreamProtoReceiver.java46 private ProtoResultParser mParser; field in StreamProtoReceiver
150 mParser = new ProtoResultParser(mListener, mainContext, reportInvocation, logNamePrefix); in StreamProtoReceiver()
151 mParser.setReportLogs(reportLogs); in StreamProtoReceiver()
152 mParser.setQuiet(quietParsing); in StreamProtoReceiver()
153 mParser.setMergeInvocationContext(mergeInvocationMetrics); in StreamProtoReceiver()
249 mParser.completeModuleEvents(); in completeModuleEvents()
254 return mParser.hasInvocationFailed(); in hasInvocationFailed()
270 TestLevel level = mParser.processNewProto(receivedRecord); in parse()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DUiAutomatorRunner.java67 private InstrumentationResultParser mParser; field in UiAutomatorRunner
317 mParser = new InstrumentationResultParser(runName, listeners); in run()
321 cmdLine, mParser, mMaxTimeout, mMaxTimeToOutputResponse, TimeUnit.MILLISECONDS); in run()
326 mParser.handleTestRunFailed(e.toString()); in run()
331 mParser.handleTestRunFailed(String.format( in run()
339 mParser.handleTestRunFailed(e.toString()); in run()
344 mParser.handleTestRunFailed(e.toString()); in run()
354 if (mParser != null) { in cancel()
355 mParser.cancel(); in cancel()
/tools/tradefederation/core/javatests/com/android/tradefed/config/yaml/
DConfigurationYamlParserTest.java59 private ConfigurationYamlParser mParser; field in ConfigurationYamlParserTest
64 mParser = new ConfigurationYamlParser(); in setUp()
71 mParser.parse(mConfigDef, "source", res, false); in testParseConfig()
136 mParser.parse(mConfigDef, "source", res, true /* createdAsModule */); in testParseModule()
175 mParser.parse(mConfigDef, "source", res, false); in testParseConfig_notTargetPreparer()
188 mParser.parse(mConfigDef, "source", res, false); in testParseConfig_notoptions()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java88 private final TimingsLogParser mParser = new TimingsLogParser(); field in LogcatTimingMetricCollector
94 mParser.clearDurationPatterns(); in onTestRunStart()
104 mParser.addDurationPatternPair(name, start, end); in onTestRunStart()
200 List<GenericTimingItem> items = mParser.parseGenericTimingItems(br); in parse()
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/
DProtoResultParserTest.java70 private ProtoResultParser mParser; field in ProtoResultParserTest
82 mParser.processNewProto(invocationStartRecord); in processStartInvocation()
91 mParser.processNewProto(finalRecord); in processFinalProto()
96 mParser.processNewProto(moduleStartRecord); in processTestModuleStarted()
101 mParser.processNewProto(moduleRecord); in processTestModuleEnd()
106 mParser.processNewProto(runStartedRecord); in processTestRunStarted()
111 mParser.processNewProto(runRecord); in processTestRunEnded()
116 mParser.processNewProto(testCaseStartedRecord); in processTestCaseStarted()
121 mParser.processNewProto(testCaseRecord); in processTestCaseEnded()
128 mParser.processFinalizedProto(finalRecord); in processFinalProto()
[all …]