Home
last modified time | relevance | path

Searched refs:mCollector (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRuntimeRestartCollectorTest.java102 @Spy private RuntimeRestartCollector mCollector; field in RuntimeRestartCollectorTest
123 .when(mCollector) in testStatsdInteractions_singleDevice()
126 .when(mCollector) in testStatsdInteractions_singleDevice()
129 .when(mCollector) in testStatsdInteractions_singleDevice()
132 mCollector.init(mContext, mListener); in testStatsdInteractions_singleDevice()
134 mCollector.testRunStarted("test run", 1); in testStatsdInteractions_singleDevice()
135 verify(mCollector, times(1)) in testStatsdInteractions_singleDevice()
139 verify(mCollector, times(1)).getStatsdMetadata(eq(testDevice)); in testStatsdInteractions_singleDevice()
141 mCollector.testRunEnded(0, new HashMap<String, Metric>()); in testStatsdInteractions_singleDevice()
142 verify(mCollector, times(1)).getEventMetricData(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
[all …]
DHostStatsdMetricCollectorTest.java64 @Spy private TestHostStatsdMetricCollector mCollector; field in HostStatsdMetricCollectorTest
75 OptionSetter options = new OptionSetter(mCollector); in setUp()
81 .when(mCollector) in setUp()
89 OptionSetter options = new OptionSetter(mCollector); in testCollect_perTest()
92 mCollector.init(mContext, mListener); in testCollect_perTest()
93 mCollector.testRunStarted("collect-metrics", 2); in testCollect_perTest()
94 mCollector.testStarted(mTest); in testCollect_perTest()
95 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
96 mCollector.testStarted(mTest); in testCollect_perTest()
97 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
[all …]
DRebootReasonCollectorTest.java59 @Spy private RebootReasonCollector mCollector; field in RebootReasonCollectorTest
66 doNothing().when(mCollector).removeConfig(any(ITestDevice.class), anyLong()); in setUp()
75 .when(mCollector) in testStatsdInteractions_singleDevice()
78 .when(mCollector) in testStatsdInteractions_singleDevice()
81 mCollector.init(mContext, mListener); in testStatsdInteractions_singleDevice()
82 mCollector.testRunStarted("test run", 1); in testStatsdInteractions_singleDevice()
83 mCollector.testRunEnded(0, new HashMap<String, Metric>()); in testStatsdInteractions_singleDevice()
85 verify(mCollector, times(1)) in testStatsdInteractions_singleDevice()
89 verify(mCollector, times(1)).getEventMetricData(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
90 verify(mCollector, times(1)).removeConfig(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
[all …]
DLogcatTimingMetricCollectorTest.java61 @Spy private LogcatTimingMetricCollector mCollector; field in LogcatTimingMetricCollectorTest
85 .when(mCollector) in setup()
87 doReturn(createFakeTimingMetrics()).when(mCollector).parse(any(InputStreamSource.class)); in setup()
88 mCollector.init(mContext, mListener); in setup()
89 setPatterns(mCollector); in setup()
95 mCollector.testRunStarted(RUN_NAME, 1); in testCollect_oneDevice_perRun()
96 mCollector.testStarted(mTest); in testCollect_oneDevice_perRun()
97 mCollector.testEnded(mTest, metrics); in testCollect_oneDevice_perRun()
98 mCollector.testRunEnded(0, metrics); in testCollect_oneDevice_perRun()
127 doReturn(mockReceiver).when(mCollector).createLogcatReceiver(same(mockDevice), anyString()); in testCollect_multipleDevice_perRun()
[all …]
DLogcatOnFailureCollectorTest.java47 private TestableLogcatOnFailureCollector mCollector; field in LogcatOnFailureCollectorTest
92 mCollector = new TestableLogcatOnFailureCollector(); in setUp()
132 mTestListener = mCollector.init(mContext, mMockListener); in testCollect()
140 assertTrue(mCollector.mOnTestStartCalled); in testCollect()
141 assertTrue(mCollector.mOnTestFailCalled); in testCollect()
168 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_legacy()
176 assertTrue(mCollector.mOnTestStartCalled); in testCollect_legacy()
177 assertTrue(mCollector.mOnTestFailCalled); in testCollect_legacy()
184 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_noRuns()
186 assertFalse(mCollector.mOnTestStartCalled); in testCollect_noRuns()
[all …]
DTemperatureCollectorTest.java44 private TemperatureCollector mCollector; field in TemperatureCollectorTest
51 mCollector = new TemperatureCollector(); in setup()
57 mCollector.init(mContext, mListener); in setup()
58 OptionSetter setter = new OptionSetter(mCollector); in setup()
69 mCollector.onStart(data); in testCollector()
70 mCollector.collect(mDevice, data); in testCollector()
71 mCollector.collect(mDevice, data); in testCollector()
72 mCollector.onEnd(data); in testCollector()
90 mCollector.onStart(data); in testCollectorNoData()
91 mCollector.collect(mDevice, data); in testCollectorNoData()
[all …]
DProcessMaxMemoryCollectorTest.java43 private ProcessMaxMemoryCollector mCollector; field in ProcessMaxMemoryCollectorTest
64 mCollector = new ProcessMaxMemoryCollector(); in setup()
69 mCollector.init(mContext, mListener); in setup()
70 OptionSetter setter = new OptionSetter(mCollector); in setup()
80 mCollector.onStart(data); in testCollector()
81 mCollector.collect(mDevice, data); in testCollector()
82 mCollector.onEnd(data); in testCollector()
98 mCollector.onStart(data); in testCollectorNoProcess()
99 mCollector.collect(mDevice, data); in testCollectorNoProcess()
100 mCollector.onEnd(data); in testCollectorNoProcess()
DDebugHostLogOnFailureCollectorTest.java46 private TestableHostLogOnFailureCollector mCollector; field in DebugHostLogOnFailureCollectorTest
80 mCollector = new TestableHostLogOnFailureCollector(); in setUp()
105 mTestListener = mCollector.init(mContext, mMockListener); in testCollect()
113 assertTrue(mCollector.mOnTestStartCalled); in testCollect()
114 assertTrue(mCollector.mOnTestFailCalled); in testCollect()
140 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_null()
148 assertTrue(mCollector.mOnTestStartCalled); in testCollect_null()
149 assertTrue(mCollector.mOnTestFailCalled); in testCollect_null()
DFilePullerLogCollectorTest.java49 private FilePullerLogCollector mCollector; field in FilePullerLogCollectorTest
62 mCollector = new FilePullerLogCollector(); in setUp()
63 OptionSetter setter = new OptionSetter(mCollector); in setUp()
70 ITestInvocationListener listener = mCollector.init(mContext, mMockListener); in testSkipStub()
99 ITestInvocationListener listener = mCollector.init(mContext, mMockListener); in testPullAndLog()
133 OptionSetter setter = new OptionSetter(mCollector); in testSkipTestCollection()
135 ITestInvocationListener listener = mCollector.init(mContext, mMockListener); in testSkipTestCollection()
DScreenshotOnFailureCollectorTest.java41 private ScreenshotOnFailureCollector mCollector; field in ScreenshotOnFailureCollectorTest
52 mCollector = new ScreenshotOnFailureCollector(); in setUp()
78 mTestListener = mCollector.init(mContext, mMockListener); in testCollect()
98 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_skipOffline()
DBugreportzOnFailureCollectorTest.java37 private BugreportzOnFailureCollector mCollector; field in BugreportzOnFailureCollectorTest
48 mCollector = new BugreportzOnFailureCollector(); in setUp()
51 mTestListener = mCollector.init(mContext, mMockListener); in setUp()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DGameQualificationFpsCollectorTest.java48 private GameQualificationFpsCollector mCollector; field in GameQualificationFpsCollectorTest
52 mCollector = new GameQualificationFpsCollector(); in setUp()
53 mCollector.setApkInfo(APK); in setUp()
54 mCollector.enable(); in setUp()
59 mCollector.doStart(new DeviceMetricData(null)); in basic()
60 assertTrue(mCollector.hasError()); in basic()
62 mCollector.processRawData(new String[]{VSYNC, "1\t2\t3", "4\t5\t6"}); in basic()
63 List<GameQualificationMetric> metrics = mCollector.getElapsedTimes(); in basic()
64 assertFalse(mCollector.hasError()); in basic()
71 mCollector.processRawData(new String[]{VSYNC, "7\t8\t9"}); in basic()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DBugreportCollectorTest.java40 private BugreportCollector mCollector = null; field in BugreportCollectorTest
78 mCollector = new BugreportCollector(mMockListener, mMockDevice); in setUp()
170 mCollector.addPredicate(pred); in testTestFailed()
191 mCollector.addPredicate(pred); in testTestEnded()
212 mCollector.addPredicate(pred); in testWaitForDevice()
213 mCollector.setDeviceWaitTime(1); in testWaitForDevice()
235 mCollector.addPredicate(pred); in testTestEnded_firstCase()
256 mCollector.addPredicate(pred); in testTestEnded_firstRun()
275 mCollector.addPredicate(pred); in testTestRunEnded()
299 mCollector.grabBugreport(normalName); in testDescriptiveName()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DBugreportCollector.java192 private CollectingTestListener mCollector = new CollectingTestListener(); field in BugreportCollector
325 TestRunResult curResult = mCollector.getCurrentRunResults(); in check()
343 if (mCollector.getMergedTestRunResults().size() == 1) { in check()
367 if (mCollector.getMergedTestRunResults().size() == 1) { in check()
438 mCollector.testEnded(test, testMetrics); in testEnded()
447 mCollector.testFailed(test, trace); in testFailed()
456 mCollector.testAssumptionFailure(test, trace); in testAssumptionFailure()
465 mCollector.testRunEnded(elapsedTime, runMetrics); in testRunEnded()
475 mCollector.testRunFailed(errorMessage); in testRunFailed()
485 mCollector.testRunStarted(runName, testCount); in testRunStarted()
[all …]