/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollectorTest.java | 102 @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 …]
|
D | RebootReasonCollectorTest.java | 59 @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 …]
|
D | TemperatureCollectorTest.java | 44 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 …]
|
D | ProcessMaxMemoryCollectorTest.java | 43 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()
|
D | HostStatsdMetricCollectorTest.java | 59 @Spy private HostStatsdMetricCollector mCollector; field in HostStatsdMetricCollectorTest 71 OptionSetter options = new OptionSetter(mCollector); in testMetricCollection_binaryConfig_multiDevice() 81 .when(mCollector) in testMetricCollection_binaryConfig_multiDevice() 85 mCollector.init(mContext, mListener); in testMetricCollection_binaryConfig_multiDevice() 86 mCollector.testRunStarted("collect-metrics", 1); in testMetricCollection_binaryConfig_multiDevice() 87 mCollector.testRunEnded(0L, runMetrics); in testMetricCollection_binaryConfig_multiDevice() 90 verify(mCollector).pushBinaryStatsConfig(eq(device), any(File.class)); in testMetricCollection_binaryConfig_multiDevice() 91 verify(mCollector).getReportByteStream(eq(device), anyLong()); in testMetricCollection_binaryConfig_multiDevice() 92 verify(mCollector).removeConfig(eq(device), anyLong()); in testMetricCollection_binaryConfig_multiDevice()
|
D | LogcatOnFailureCollectorTest.java | 44 private TestableLogcatOnFailureCollector mCollector; field in LogcatOnFailureCollectorTest 87 mCollector = new TestableLogcatOnFailureCollector(); in setUp() 120 mTestListener = mCollector.init(mContext, mMockListener); in testCollect() 128 assertTrue(mCollector.mOnTestStartCalled); in testCollect() 129 assertTrue(mCollector.mOnTestFailCalled); in testCollect() 136 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_noRuns() 138 assertFalse(mCollector.mOnTestStartCalled); in testCollect_noRuns() 139 assertFalse(mCollector.mOnTestFailCalled); in testCollect_noRuns() 191 mTestListener = mCollector.init(mContext, mMockListener); in testCollect_multiRun() 205 assertTrue(mCollector.mOnTestStartCalled); in testCollect_multiRun() [all …]
|
D | FilePullerLogCollectorTest.java | 46 private FilePullerLogCollector mCollector; field in FilePullerLogCollectorTest 57 mCollector = new FilePullerLogCollector(); in setUp() 58 OptionSetter setter = new OptionSetter(mCollector); in setUp() 68 ITestInvocationListener listener = mCollector.init(mContext, mMockListener); in testPullAndLog() 101 OptionSetter setter = new OptionSetter(mCollector); in testSkipTestCollection() 103 ITestInvocationListener listener = mCollector.init(mContext, mMockListener); in testSkipTestCollection()
|
D | DebugHostLogOnFailureCollectorTest.java | 44 private TestableHostLogOnFailureCollector mCollector; field in DebugHostLogOnFailureCollectorTest 78 mCollector = new TestableHostLogOnFailureCollector(); in setUp() 103 mTestListener = mCollector.init(mContext, mMockListener); in testCollect() 111 assertTrue(mCollector.mOnTestStartCalled); in testCollect() 112 assertTrue(mCollector.mOnTestFailCalled); in testCollect()
|
D | BugreportzOnFailureCollectorTest.java | 37 private BugreportzOnFailureCollector mCollector; field in BugreportzOnFailureCollectorTest 48 mCollector = new BugreportzOnFailureCollector(); in setUp() 51 mTestListener = mCollector.init(mContext, mMockListener); in setUp()
|
D | ScreenshotOnFailureCollectorTest.java | 39 private ScreenshotOnFailureCollector mCollector; field in ScreenshotOnFailureCollectorTest 50 mCollector = new ScreenshotOnFailureCollector(); in setUp() 53 mTestListener = mCollector.init(mContext, mMockListener); in setUp()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/ |
D | GameQualificationFpsCollectorTest.java | 48 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/src/com/android/tradefed/result/ |
D | BugreportCollector.java | 192 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 …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | BugreportCollectorTest.java | 40 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/tests/src/com/android/tradefed/device/ |
D | CpuStatsCollectorTest.java | 138 private CpuStatsCollector mCollector; field in CpuStatsCollectorTest 146 mCollector = new CpuStatsCollector(null, 1); in setUp() 154 mCollector.getReceiver().processNewLines(SINGLE_OUTPUT); in testCpuStatsParser_single() 156 Map<String, List<CpuStats>> cpuStats = mCollector.getCpuStats(); in testCpuStatsParser_single() 231 mCollector.getReceiver().processNewLines(SINGLE_NON_AGGREGATE_OUTPUT); in testCpuStatsParser_single_non_aggregate() 233 Map<String, List<CpuStats>> cpuStats = mCollector.getCpuStats(); in testCpuStatsParser_single_non_aggregate() 271 mCollector.getReceiver().processNewLines(MULTI_OUTPUT); in testCpuStatsParser_multi() 273 Map<String, List<CpuStats>> stats = mCollector.getCpuStats(); in testCpuStatsParser_multi() 314 mCollector.getReceiver().processNewLines(MULTI_NON_AGGREGATE_OUTPUT); in testCpuStatsParser_multi_non_aggregate() 316 Map<String, List<CpuStats>> stats = mCollector.getCpuStats(); in testCpuStatsParser_multi_non_aggregate()
|