Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DLogcatEventParserTest.java52 private LogcatEventParser mParser; field in LogcatEventParserTest
61 mParser = new LogcatEventParser(mTestDevice); in setUp()
62 mParser.registerEventTrigger( in setUp()
64 mParser.registerEventTrigger( in setUp()
70 mParser.close(); in tearDown()
79 mParser.registerEventTrigger( in testParseEventTypeExactMatch()
85 mParser.parseEvents(new String[] {mappedLogLine}); in testParseEventTypeExactMatch()
87 LogcatEventType.UPDATE_VERIFIER_COMPLETE, mParser.pollForEvent().getEventType()); in testParseEventTypeExactMatch()
96 mParser.registerEventTrigger( in testParseEventTypePartialMatch()
103 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.java50 private ListInstrumentationParser mParser; field in ListInstrumentationParserTest
54 mParser = new ListInstrumentationParser(); in setUp()
61 List<InstrumentationTarget> targets = mParser.getInstrumentationTargets(); in testEmptyParse()
75 mParser.processNewLines(pmListOutput); in testSimpleParse()
89 List<InstrumentationTarget> parsedTargets = mParser.getInstrumentationTargets(); in testSimpleParse()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNativeStressTestParserTest.java26 private NativeStressTestParser mParser; field in NativeStressTestParserTest
34 mParser = new NativeStressTestParser(RUN_NAME); in setUp()
43 mParser.processNewLines(new String[] {}); in testParse_empty()
44 mParser.done(); in testParse_empty()
54 mParser.processNewLines(new String[] {"blah blah", "more blah"}); in testParse_garbage()
55 mParser.done(); in testParse_garbage()
65 mParser.processNewLines(new String[] {"==== Completed pass: 0"}); in testParse_oneIteration()
66 mParser.done(); in testParse_oneIteration()
76 mParser.processNewLines(new String[] {"====Completedpass:0succeeded", in testParse_whitespace()
78 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
64 mParser = new PythonUnitTestResultParser(ArrayUtil.list(mMockListener), "test"); in setUp()
133 mParser.processNewLines(output); in testParseNoTests()
153 mParser.processNewLines(output); in testParseSingleTestPass()
173 mParser.processNewLines(output); in testParseSingleTestPassWithExpectedFailure()
194 mParser.processNewLines(output); in testParseMultiTestPass()
215 mParser.processNewLines(output); in testParseMultiTestPassWithOneExpectedFailure()
236 mParser.processNewLines(output); in testParseMultiTestPassWithAllExpectedFailure()
264 mParser.processNewLines(output); in testParseSingleTestFail()
293 mParser.processNewLines(output); in testParseMultiTestFailWithExpectedFailure()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
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/src/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/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java53 private ProtoResultParser mParser; field in ProtoResultParserTest
65 mParser.processNewProto(invocationStartRecord); in processStartInvocation()
74 mParser.processNewProto(finalRecord); in processFinalProto()
79 mParser.processNewProto(moduleStartRecord); in processTestModuleStarted()
84 mParser.processNewProto(moduleRecord); in processTestModuleEnd()
89 mParser.processNewProto(runStartedRecord); in processTestRunStarted()
94 mParser.processNewProto(runRecord); in processTestRunEnded()
99 mParser.processNewProto(testCaseStartedRecord); in processTestCaseStarted()
104 mParser.processNewProto(testCaseRecord); in processTestCaseEnded()
111 mParser.processFinalizedProto(finalRecord); in processFinalProto()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DStreamProtoReceiver.java44 private ProtoResultParser mParser; field in StreamProtoReceiver
101 mParser = new ProtoResultParser(mListener, mainContext, reportInvocation, logNamePrefix); in StreamProtoReceiver()
102 mParser.setQuiet(quietParsing); in StreamProtoReceiver()
196 TestLevel level = mParser.processNewProto(receivedRecord); in parse()