/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | ResultForwarder.java | 31 public class ResultForwarder implements ITestInvocationListener { 33 private List<ITestInvocationListener> mListeners; 48 public ResultForwarder(List<ITestInvocationListener> listeners) { in ResultForwarder() 57 public ResultForwarder(ITestInvocationListener... listeners) { in ResultForwarder() 66 protected void setListeners(List<ITestInvocationListener> listeners) { in setListeners() 75 protected void setListeners(ITestInvocationListener... listeners) { in setListeners() 84 protected List<ITestInvocationListener> getListeners() { in getListeners() 93 for (ITestInvocationListener listener : mListeners) { in invocationStarted() 110 for (ITestInvocationListener listener : mListeners) { in invocationFailed() 125 for (ITestInvocationListener listener : mListeners) { in invocationFailed() [all …]
|
D | JUnitToInvocationResultForwarder.java | 43 private final List<ITestInvocationListener> mInvocationListeners; 46 public JUnitToInvocationResultForwarder(ITestInvocationListener invocationListener) { in JUnitToInvocationResultForwarder() 47 mInvocationListeners = new ArrayList<ITestInvocationListener>(1); in JUnitToInvocationResultForwarder() 51 public JUnitToInvocationResultForwarder(List<ITestInvocationListener> invocationListeners) { in JUnitToInvocationResultForwarder() 52 mInvocationListeners = new ArrayList<ITestInvocationListener>(invocationListeners.size()); in JUnitToInvocationResultForwarder() 61 for (ITestInvocationListener listener : mInvocationListeners) { in addError() 71 for (ITestInvocationListener listener : mInvocationListeners) { in addFailure() 93 for (ITestInvocationListener listener : mInvocationListeners) { in endTest() 115 for (ITestInvocationListener listener : mInvocationListeners) { in testLog() 125 for (ITestInvocationListener listener : mInvocationListeners) { in startTest()
|
D | ResultAndLogForwarder.java | 27 public ResultAndLogForwarder(List<ITestInvocationListener> listeners) { in ResultAndLogForwarder() 31 public ResultAndLogForwarder(ITestInvocationListener... listeners) { in ResultAndLogForwarder() 49 for (ITestInvocationListener listener : getListeners()) { in testLogSaved() 63 for (ITestInvocationListener listener : getListeners()) { in logAssociation() 78 for (ITestInvocationListener listener : getListeners()) { in setLogSaver()
|
D | LogSaverResultForwarder.java | 40 List<ITestInvocationListener> listeners) { in LogSaverResultForwarder() 43 for (ITestInvocationListener listener : listeners) { in LogSaverResultForwarder() 83 List<ITestInvocationListener> listeners, in logFile() 91 for (ITestInvocationListener listener : listeners) { in logFile() 109 List<ITestInvocationListener> listeners, ILogSaver saver, String name) { in reportEndHostLog() 171 for (ITestInvocationListener listener : getListeners()) { in testLog() 200 for (ITestInvocationListener listener : getListeners()) { in testLogSaved() 215 for (ITestInvocationListener listener : getListeners()) { in logAssociation()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | GTestResultParserTest.java | 26 import com.android.tradefed.result.ITestInvocationListener; 45 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile() 65 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFileNoTimes() 87 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseNoTests() 101 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseLargerFile() 123 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithFailures() 150 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithErrors() 172 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseNonAlignedTag() 196 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_AltFormat() 218 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_LinkError() [all …]
|
D | DeviceTestCaseTest.java | 27 import com.android.tradefed.result.ITestInvocationListener; 112 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_suite() 138 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_includeFilter() 161 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_excludeFilter() 182 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_includeAnnotationFiltering() 199 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_checkAnnotation() 226 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_excludeAnnotationFiltering() 245 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_singleTest() 265 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_deviceNotAvail() 290 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_testcaseCollectMode() [all …]
|
D | GoogleBenchmarkResultParserTest.java | 27 import com.android.tradefed.result.ITestInvocationListener; 94 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile() 150 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile_twoTests() 178 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_contextError() 193 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_noBenchmarkResults() 208 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_benchmarkError() 231 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testJsonParse() 248 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile_withWarning() 275 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_ignore() 307 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_aborted() [all …]
|
D | GTestXmlResultParserTest.java | 25 import com.android.tradefed.result.ITestInvocationListener; 88 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile() 117 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseLargerFile() 147 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithFailures() 179 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithEmptyFile() 201 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseUnexpectedNumberTest() 234 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_badXmltag() 273 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithEmptyFile_AdditionalOutput() 295 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_skipped()
|
D | GTestListTestParserTest.java | 27 import com.android.tradefed.result.ITestInvocationListener; 47 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleList() 68 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseMultiClassList() 88 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseMalformedList() 103 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleList_withSpecialChar() 139 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseParameterized()
|
D | MockInstrumentationTest.java | 21 import com.android.tradefed.result.ITestInvocationListener; 28 private ITestInvocationListener mListener = null; 33 public void run(TestInformation testInfo, final ITestInvocationListener listener) in run() 41 public ITestInvocationListener getListener() { in getListener()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/helper/ |
D | TelephonyHelperTest.java | 28 import com.android.tradefed.result.ITestInvocationListener; 60 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo() 63 ITestInvocationListener collector = in testGetSimInfo() 64 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo() 99 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo_instrumentationFailed() 102 ITestInvocationListener collector = in testGetSimInfo_instrumentationFailed() 103 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo_instrumentationFailed() 119 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo_simTest_not_run() 122 ITestInvocationListener collector = in testGetSimInfo_simTest_not_run() 123 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo_simTest_not_run() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustBenchmarkResultParser.java | 21 import com.android.tradefed.result.ITestInvocationListener; 70 private Collection<ITestInvocationListener> mListeners = new ArrayList<>(); 92 public RustBenchmarkResultParser(ITestInvocationListener listener, String runName) { in RustBenchmarkResultParser() 104 Collection<ITestInvocationListener> listeners, String runName) { in RustBenchmarkResultParser() 122 for (ITestInvocationListener listener : mListeners) { in processNewLines() 130 for (ITestInvocationListener listener : mListeners) { in processNewLines() 138 for (ITestInvocationListener listener : mListeners) { in processNewLines() 160 for (ITestInvocationListener listener : mListeners) { in done() 169 for (ITestInvocationListener listener : mListeners) { in done()
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | BazelTestListener.java | 19 import com.android.tradefed.result.ITestInvocationListener; 36 private final ITestInvocationListener mDelegate; 37 private final ImmutableList<Consumer<ITestInvocationListener>> mExtraModuleLogCalls; 42 ITestInvocationListener delegate, in BazelTestListener() 43 List<Consumer<ITestInvocationListener>> extraModuleLogCalls, in BazelTestListener() 52 protected ITestInvocationListener delegate() { in delegate() 99 for (Consumer<ITestInvocationListener> c : mExtraModuleLogCalls) { in replayExtraModuleLogCalls()
|
D | InvocationLogCollector.java | 21 import com.android.tradefed.result.ITestInvocationListener; 32 private final List<Consumer<ITestInvocationListener>> mLogCalls; 39 public List<Consumer<ITestInvocationListener>> getLogCalls() { in getLogCalls() 49 (ITestInvocationListener l) -> { in testLog() 72 (ITestInvocationListener l) -> { in testLogSaved() 83 (ITestInvocationListener l) -> { in logAssociation()
|
D | SparseTestListener.java | 19 import com.android.tradefed.result.ITestInvocationListener; 24 private final ITestInvocationListener mDelegate; 26 public SparseTestListener(ITestInvocationListener delegate) { in SparseTestListener() 30 private ITestInvocationListener delegate() { in delegate()
|
D | TestListeners.java | 20 import com.android.tradefed.result.ITestInvocationListener; 33 ITestInvocationListener listener, in testLogSaved() 46 static void logAssociation(ITestInvocationListener listener, String dataName, LogFile logFile) { in logAssociation() 54 static void setLogSaver(ITestInvocationListener listener, ILogSaver logSaver) { in setLogSaver() 62 static boolean supportGranularResults(ITestInvocationListener listener) { in supportGranularResults()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GTestXmlResultParser.java | 21 import com.android.tradefed.result.ITestInvocationListener; 59 private final Collection<ITestInvocationListener> mTestListeners; 74 public GTestXmlResultParser(String testRunName, Collection<ITestInvocationListener> listeners) { in GTestXmlResultParser() 86 public GTestXmlResultParser(String testRunName, ITestInvocationListener listener) { in GTestXmlResultParser() 110 for (ITestInvocationListener listener : mTestListeners) { in parseResult() 143 for (ITestInvocationListener listener : mTestListeners) { in parseResult() 149 for (ITestInvocationListener listener : mTestListeners) { in parseResult() 164 for (ITestInvocationListener listener : mTestListeners) { in reportTestRunStarted() 196 for (ITestInvocationListener listener : mTestListeners) { in processTestResult() 201 for (ITestInvocationListener listener : mTestListeners) { in processTestResult() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | SubprocessTestResultsParserTest.java | 34 import com.android.tradefed.result.ITestInvocationListener; 92 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_randomEvents() 131 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_invalidEventOrder() 167 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_testNotStarted() 205 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_noTimeStamp() 247 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_invocationFailed() 279 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParser_receiveFromSocket() 324 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParser_failToJoin() 339 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testParser_noConnection() 355 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_testTag() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 43 import com.android.tradefed.result.ITestInvocationListener; 154 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withPythonBinariesOption() 166 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withPythonBinariesOption_binaryNotFound() 195 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withParFileNameOption() 209 ITestInvocationListener mockListener = Mockito.mock(ITestInvocationListener.class); in testRun_withParFileNameOption_binaryNotFound() 244 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withStdLogOption() 265 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_testResultIsMissing() 307 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() 337 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_shouldNotActivateVenv_whenVenvIsNotSet() 362 ITestInvocationListener mockListener = Mockito.mock(ITestInvocationListener.class); in testRun_exitSuccess_withTestResultFileComplete() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/service/management/ |
D | ScheduledInvocationForwarder.java | 23 import com.android.tradefed.result.ITestInvocationListener; 32 ScheduledInvocationForwarder(ITestInvocationListener... listeners) { in ScheduledInvocationForwarder() 38 for (ITestInvocationListener listener : getListeners()) { in invocationInitiated() 55 for (ITestInvocationListener listener : getListeners()) { in invocationComplete() 71 public List<ITestInvocationListener> getListeners() { in getListeners()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | InvocationSummaryHelper.java | 33 List<ITestInvocationListener> listeners, IInvocationContext context) { in reportInvocationStarted() 35 for (ITestInvocationListener listener : listeners) { in reportInvocationStarted() 58 public static void reportInvocationEnded(List<ITestInvocationListener> listeners, in reportInvocationEnded() 61 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded() 89 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded()
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/ |
D | UnexecutedTestReporterThreadTest.java | 21 import com.android.tradefed.result.ITestInvocationListener; 40 private ITestInvocationListener mMockListener; 46 mMockListener = Mockito.mock(ITestInvocationListener.class); in setUp() 82 public void run(TestInformation testInfo, ITestInvocationListener listener) in run() 86 public void reportNotExecuted(ITestInvocationListener listener) { in reportNotExecuted()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | IReportNotExecuted.java | 18 import com.android.tradefed.result.ITestInvocationListener; 34 public default void reportNotExecuted(ITestInvocationListener listener) {} in reportNotExecuted() 43 public default void reportNotExecuted(ITestInvocationListener listener, String message) { in reportNotExecuted()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | GranularRetriableTestWrapper.java | 38 import com.android.tradefed.result.ITestInvocationListener; 96 private List<ITestInvocationListener> mModuleLevelListeners; 97 private ITestInvocationListener mRemoteTestTimeOutEnforcer; 110 ITestInvocationListener mainListener, in GranularRetriableTestWrapper() 111 List<ITestInvocationListener> moduleLevelListeners, in GranularRetriableTestWrapper() 119 ITestInvocationListener mainListener, in GranularRetriableTestWrapper() 120 List<ITestInvocationListener> moduleLevelListeners, in GranularRetriableTestWrapper() 204 ITestInvocationListener listener, IInvocationContext moduleContext) { in initializeGranularRunListener() 233 private ITestInvocationListener initializeListeners() throws DeviceNotAvailableException { in initializeListeners() 234 List<ITestInvocationListener> currentTestListener = new ArrayList<>(); in initializeListeners() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | IPostProcessor.java | 20 import com.android.tradefed.result.ITestInvocationListener; 36 public interface IPostProcessor extends ITestInvocationListener, ILogSaverListener, IDisableable { 42 public ITestInvocationListener init(ITestInvocationListener listener); in init()
|