Home
last modified time | relevance | path

Searched refs:mListener (Results 1 – 20 of 20) sorted by relevance

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseCollectionListenerTest.java52 private BaseCollectionListener<String> mListener; field in BaseCollectionListenerTest
78 mListener = initListener(b); in testPerRunFlow()
80 mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION); in testPerRunFlow()
82 mListener.onTestStart(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION); in testPerRunFlow()
84 mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION); in testPerRunFlow()
86 mListener.onTestRunEnd(mListener.createDataRecord(), new Result()); in testPerRunFlow()
98 mListener = initListener(b); in testPerTestFlow()
100 mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION); in testPerTestFlow()
103 mListener.onTestStart(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION); in testPerTestFlow()
105 mListener.onTestEnd(mListener.createDataRecord(), FAKE_TEST_DESCRIPTION); in testPerTestFlow()
[all …]
DBatteryStatsListenerTest.java57 private BatteryStatsListener mListener; field in BatteryStatsListenerTest
96 mListener = initListener(b); in testTestRunCollector()
99 mListener.testRunStarted(mRunDesc); in testTestRunCollector()
100 verify(mListener).createAndEmptyDirectory(BatteryStatsListener.DEFAULT_DIR); in testTestRunCollector()
101 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
104 mListener.testStarted(mTestDesc); in testTestRunCollector()
105 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
108 mListener.testFinished(mTestDesc); in testTestRunCollector()
109 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
110 verify(mListener, times(0)).dumpBatteryStats(anyString()); in testTestRunCollector()
[all …]
DPerfettoListenerTest.java71 private PerfettoListener mListener; field in PerfettoListenerTest
123 mListener = initListener(b); in testPerfettoPerTestSuccessFlow()
127 mListener.testRunStarted(mRunDesc); in testPerfettoPerTestSuccessFlow()
130 mListener.testStarted(mTest1Desc); in testPerfettoPerTestSuccessFlow()
132 mListener.onTestEnd(mDataRecord, mTest1Desc); in testPerfettoPerTestSuccessFlow()
147 mListener = initListener(b); in testPerfettoPerTestFailureFlowDefault()
152 mListener.testRunStarted(mRunDesc); in testPerfettoPerTestFailureFlowDefault()
155 mListener.testStarted(mTest1Desc); in testPerfettoPerTestFailureFlowDefault()
161 mListener.onTestFail(mDataRecord, mTest1Desc, failureDesc); in testPerfettoPerTestFailureFlowDefault()
162 mListener.onTestEnd(mDataRecord, mTest1Desc); in testPerfettoPerTestFailureFlowDefault()
[all …]
DSimpleperfListenerTest.java58 private SimpleperfListener mListener; field in SimpleperfListenerTest
90 mListener = initListener(b); in testSimpleperfPerTestSuccessFlow()
94 mListener.testRunStarted(mRunDesc); in testSimpleperfPerTestSuccessFlow()
97 mListener.testStarted(mTest1Desc); in testSimpleperfPerTestSuccessFlow()
99 mListener.onTestEnd(mDataRecord, mTest1Desc); in testSimpleperfPerTestSuccessFlow()
111 mListener = initListener(b); in testSimpleperfPerTestFailureFlowDefault()
116 mListener.testRunStarted(mRunDesc); in testSimpleperfPerTestFailureFlowDefault()
119 mListener.testStarted(mTest1Desc); in testSimpleperfPerTestFailureFlowDefault()
124 mListener.onTestFail(mDataRecord, mTest1Desc, failureDesc); in testSimpleperfPerTestFailureFlowDefault()
125 mListener.onTestEnd(mDataRecord, mTest1Desc); in testSimpleperfPerTestFailureFlowDefault()
[all …]
DIncidentReportListenerTest.java62 private IncidentReportListener mListener; field in IncidentReportListenerTest
70 mListener = spy(new IncidentReportListener()); in setUp()
71 mListener.setInstrumentation(mInstrumentation); in setUp()
83 doReturn(NONEMPTY_BYTE_ARRAY).when(mListener) in testCreateDirectoryAtStart()
87 mListener.testRunStarted(FAKE_DESCRIPTION); in testCreateDirectoryAtStart()
95 .when(mListener) in testCollectFullReportAtEnd()
97 doReturn(NONEMPTY_BYTE_ARRAY).when(mListener) in testCollectFullReportAtEnd()
99 mListener.testRunStarted(FAKE_DESCRIPTION); in testCollectFullReportAtEnd()
101 mListener.testRunFinished(new Result()); in testCollectFullReportAtEnd()
111 .when(mListener) in testFailCollectIfNoDestinationDirectory()
[all …]
DScreenshotOnFailureCollectorTest.java69 private ScreenshotOnFailureCollector mListener; field in ScreenshotOnFailureCollectorTest
110 mListener = initListener(b); in testSavePngAsFile()
113 mListener.testRunStarted(mRunDesc); in testSavePngAsFile()
114 verify(mListener).createAndEmptyDirectory(ScreenshotOnFailureCollector.DEFAULT_DIR); in testSavePngAsFile()
117 mListener.testStarted(mTestDesc); in testSavePngAsFile()
119 mListener.testFailure(new Failure(mTestDesc, new RuntimeException("I failed"))); in testSavePngAsFile()
122 mListener.testFinished(mTestDesc); in testSavePngAsFile()
123 verify(mListener, times(i)).takeScreenshot(any()); in testSavePngAsFile()
127 mListener.testRunFinished(new Result()); in testSavePngAsFile()
130 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSavePngAsFile()
[all …]
DBaseMetricListenerInstrumentedTest.java56 private BaseMetricListener mListener; field in BaseMetricListenerInstrumentedTest
62 mListener = createWithArgs(null); in setUp()
63 mListener.setInstrumentation(mMockInstrumentation); in setUp()
123 mListener.testRunStarted(runDescription); in testReportMetrics()
125 mListener.testStarted(testDescription); in testReportMetrics()
126 mListener.testFinished(testDescription); in testReportMetrics()
127 mListener.testRunFinished(new Result()); in testReportMetrics()
130 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testReportMetrics()
158 mListener = createWithArgs(args); in testReportMetrics_withIncludeFilters()
159 mListener.setInstrumentation(mMockInstrumentation); in testReportMetrics_withIncludeFilters()
[all …]
DScreenRecordCollectorTest.java67 private ScreenRecordCollector mListener; field in ScreenRecordCollectorTest
105 mListener = initListener(); in testScreenRecord()
108 mListener.testRunStarted(mRunDesc); in testScreenRecord()
109 verify(mListener).createAndEmptyDirectory(ScreenRecordCollector.OUTPUT_DIR); in testScreenRecord()
113 mListener.testStarted(mTestDesc); in testScreenRecord()
126 mListener.testFailure(new Failure(mTestDesc, new RuntimeException("I failed"))); in testScreenRecord()
130 mListener.testFinished(mTestDesc); in testScreenRecord()
136 mListener.testRunFinished(new Result()); in testScreenRecord()
139 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testScreenRecord()
161 mListener = initListener(); in testScreenRecord_multipleTests()
[all …]
DScheduledRunMetricListenerTest.java41 private ScheduledRunMetricListener mListener; field in ScheduledRunMetricListenerTest
48 mListener = new ScheduledRunMetricListener(b) { in setUp()
56 mListener.setInstrumentation(mockInstrumentation); in setUp()
62 mListener.testRunStarted(runDescription); in testPeriodicRun()
64 mListener.testRunFinished(new Result()); in testPeriodicRun()
67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun()
DShowmapSnapshotListenerTest.java48 private ShowmapSnapshotListener mListener; field in ShowmapSnapshotListenerTest
72 mListener = initListener(b); in testHelperReceivesProcessNames()
74 mListener.testRunStarted(mRunDesc); in testHelperReceivesProcessNames()
86 mListener = initListener(b); in testAdditionalOptions()
88 mListener.testRunStarted(mRunDesc); in testAdditionalOptions()
DTotalPssMetricListenerTest.java56 private TotalPssMetricListener mListener; field in TotalPssMetricListenerTest
75 mListener = initListener(b); in testHelperReceivesProcessNames()
77 mListener.testRunStarted(mRunDesc); in testHelperReceivesProcessNames()
90 mListener = initListener(b); in testAdditionalPssOptions()
92 mListener.testRunStarted(mRunDesc); in testAdditionalPssOptions()
DPinnerSnapshotListenerTest.java45 private PinnerSnapshotListener mListener; field in PinnerSnapshotListenerTest
65 mListener = initListener(b); in testHelperReceivesCustomDirectory()
66 mListener.testRunStarted(RUN_DESC); in testHelperReceivesCustomDirectory()
DProcessShowmapListenerTest.java52 private ProcessShowmapListener mListener; field in ProcessShowmapListenerTest
71 mListener = initListener(b); in testHelperReceivesProcessNames()
73 mListener.testRunStarted(mRunDesc); in testHelperReceivesProcessNames()
DScheduledRunCollectionListenerTest.java75 private ScheduledRunCollectionListener mListener; field in ScheduledRunCollectionListenerTest
110 mListener = initListener(); in setUp()
121 mListener.executeCommandBlocking("rm -rf " + outputFilePath.toString()); in tearDown()
137 mListener.testRunStarted(runDescription); in testInstrumentationResult()
140 mListener.testRunFinished(new Result()); in testInstrumentationResult()
143 mListener.instrumentationRunFinished(System.out, result, new Result()); in testInstrumentationResult()
169 mListener.testRunStarted(runDescription); in testRun()
177 mListener.testRunFinished(new Result()); in testRun()
221 mListener.testRunFinished(new Result()); in testRun()
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java63 private StatsdListener mListener; field in StatsdListenerTest
113 mListener = spy(new StatsdListener()); in setUp()
115 doNothing().when(mListener).addStatsConfig(anyLong(), any()); in setUp()
116 doReturn(serialize(REPORT_1)).when(mListener).getStatsReports(eq(CONFIG_ID_1)); in setUp()
117 doReturn(serialize(REPORT_2)).when(mListener).getStatsReports(eq(CONFIG_ID_2)); in setUp()
118 doNothing().when(mListener).removeStatsConfig(anyLong()); in setUp()
120 doNothing().when(mListener).adoptShellPermissionIdentity(); in setUp()
121 doNothing().when(mListener).dropShellPermissionIdentity(); in setUp()
123 doReturn(true).when(mListener).logStart(anyInt()); in setUp()
124 doReturn(true).when(mListener).logStop(anyInt()); in setUp()
[all …]
/platform_testing/libraries/health/runners/longevity/host/tests/src/android/host/test/longevity/listener/
DErrorTerminatorTest.java36 private ErrorTerminator mListener; field in ErrorTerminatorTest
42 mListener = new ErrorTerminator(mNotifier); in setupListener()
50 mListener.testFailure(new Failure(Description.EMPTY, new Throwable())); in testErrorTerminator_errors()
59 mListener.testStarted(Description.EMPTY); in testErrorTerminator_none()
60 mListener.testFinished(Description.EMPTY); in testErrorTerminator_none()
61 mListener.testFinished(Description.EMPTY); in testErrorTerminator_none()
62 mListener.testIgnored(Description.EMPTY); in testErrorTerminator_none()
DTimeoutTerminatorTest.java38 private TimeoutTerminator mListener; field in TimeoutTerminatorTest
46 mListener = new TimeoutTerminator(mNotifier, args); in setupListener()
53 mListener.testStarted(Description.EMPTY); in testTimeoutTerminator_pass()
55 mListener.testFinished(Description.EMPTY); in testTimeoutTerminator_pass()
64 mListener.testStarted(Description.EMPTY); in testTimeoutTerminator_timeout()
66 mListener.testFinished(Description.EMPTY); in testTimeoutTerminator_timeout()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/listener/
DTimeoutTerminatorTest.java41 private TimeoutTerminator mListener; field in TimeoutTerminatorTest
49 mListener = new TimeoutTerminator(mNotifier, args); in setupListener()
56 mListener.testStarted(Description.EMPTY); in testTimeoutTerminator_pass()
66 mListener.testStarted(Description.EMPTY); in testTimeoutTerminator_timeout()
68 mListener.testFinished(Description.EMPTY); in testTimeoutTerminator_timeout()
DBatteryTerminatorTest.java45 private BatteryTerminator mListener; field in BatteryTerminatorTest
57 mListener = new BatteryTerminator(mNotifier, args, mContext); in setupListener()
67 mListener.testFinished(Description.EMPTY); in testBatteryTerminator_low()
78 mListener.testFinished(Description.EMPTY); in testBatteryTerminator_high()
/platform_testing/libraries/telephony-utility/src/android/telephony/utility/
DSimCardUtil.java60 private final OnConnectedListener mListener = new OnConnectedListener() { field in SimCardUtil
72 …ervice = new SEService(InstrumentationRegistry.getContext(), new SynchronousExecutor(), mListener); in setUp()