Home
last modified time | relevance | path

Searched refs:listeners (Results 1 – 25 of 33) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/result/
DInvocationSummaryHelper.java33 List<ITestInvocationListener> listeners, IInvocationContext context) { in reportInvocationStarted() argument
34 List<TestSummary> summaries = new ArrayList<TestSummary>(listeners.size()); in reportInvocationStarted()
35 for (ITestInvocationListener listener : listeners) { in reportInvocationStarted()
58 public static void reportInvocationEnded(List<ITestInvocationListener> listeners, in reportInvocationEnded() argument
60 List<TestSummary> summaries = new ArrayList<TestSummary>(listeners.size()); in reportInvocationEnded()
61 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded()
89 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded()
DResultForwarder.java47 public ResultForwarder(List<ITestInvocationListener> listeners) { in ResultForwarder() argument
48 mListeners = listeners; in ResultForwarder()
56 public ResultForwarder(ITestInvocationListener... listeners) { in ResultForwarder() argument
57 mListeners = Arrays.asList(listeners); in ResultForwarder()
65 protected void setListeners(List<ITestInvocationListener> listeners) { in setListeners() argument
66 mListeners = listeners; in setListeners()
74 protected void setListeners(ITestInvocationListener... listeners) { in setListeners() argument
75 mListeners = Arrays.asList(listeners); in setListeners()
DLogSaverResultForwarder.java31 List<ITestInvocationListener> listeners) { in LogSaverResultForwarder() argument
32 super(listeners); in LogSaverResultForwarder()
34 for (ITestInvocationListener listener : listeners) { in LogSaverResultForwarder()
DRetryResultForwarder.java23 public RetryResultForwarder(int attemptNumber, ITestInvocationListener... listeners) { in RetryResultForwarder() argument
24 super(listeners); in RetryResultForwarder()
DResultAndLogForwarder.java27 public ResultAndLogForwarder(List<ITestInvocationListener> listeners) { in ResultAndLogForwarder() argument
28 super(listeners); in ResultAndLogForwarder()
DFilteredResultForwarder.java33 Collection<TestDescription> allowedTests, ITestInvocationListener... listeners) { in FilteredResultForwarder() argument
34 super(listeners); in FilteredResultForwarder()
DLogcatCrashResultForwarder.java49 public LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners) { in LogcatCrashResultForwarder() argument
50 super(listeners); in LogcatCrashResultForwarder()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java137 List<ITestInvocationListener> listeners = new ArrayList<>(); in testNotRunningAsSuite_multi_resultReporter() local
138 listeners.add(new TextResultReporter()); in testNotRunningAsSuite_multi_resultReporter()
139 listeners.add(new CollectingTestListener()); in testNotRunningAsSuite_multi_resultReporter()
140 config.setTestInvocationListeners(listeners); in testNotRunningAsSuite_multi_resultReporter()
DAtestRunnerTest.java212 List<ITestInvocationListener> listeners = mSpyRunner.createModuleListeners(); in testCreateModuleListener() local
213 assertEquals(1, listeners.size()); in testCreateModuleListener()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUiAutomatorRunner.java303 public void run(ITestRunListener... listeners) throws TimeoutException, in run() argument
305 run(Arrays.asList(listeners)); in run()
312 public void run(Collection<ITestRunListener> listeners) throws TimeoutException, in run() argument
317 mParser = new InstrumentationResultParser(runName, listeners); in run()
DJavaCodeCoverageListener.java54 ITestDevice device, boolean mergeMeasurements, ITestInvocationListener... listeners) { in JavaCodeCoverageListener() argument
55 super(listeners); in JavaCodeCoverageListener()
DNativeCodeCoverageListener.java55 public NativeCodeCoverageListener(ITestDevice device, ITestInvocationListener... listeners) { in NativeCodeCoverageListener() argument
56 super(listeners); in NativeCodeCoverageListener()
DGTestXmlResultParser.java66 public GTestXmlResultParser(String testRunName, Collection<ITestInvocationListener> listeners) { in GTestXmlResultParser() argument
68 mTestListeners = new ArrayList<>(listeners); in GTestXmlResultParser()
DPythonUnitTestResultParser.java179 Collection<ITestInvocationListener> listeners, String runName) { in PythonUnitTestResultParser() argument
180 mListeners.addAll(listeners); in PythonUnitTestResultParser()
/tools/tradefederation/core/src/com/android/tradefed/device/
DINativeDevice.java486 IRemoteAndroidTestRunner runner, Collection<ITestLifeCycleReceiver> listeners) in runInstrumentationTests() argument
501 IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners) in runInstrumentationTests() argument
511 Collection<ITestLifeCycleReceiver> listeners) in runInstrumentationTestsAsUser() argument
519 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DRemoteInvocationExecutionTest.java99 List<ITestInvocationListener> listeners = reparse.getTestInvocationListeners(); in testCreateRemoteConfig() local
100 assertEquals(1, listeners.size()); in testCreateRemoteConfig()
101 assertTrue(listeners.get(0) instanceof ProtoResultReporter); in testCreateRemoteConfig()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DAtestRunner.java174 List<ITestInvocationListener> listeners = super.createModuleListeners(); in createModuleListeners() local
178 listeners.add(subprocessResult); in createModuleListeners()
180 return listeners; in createModuleListeners()
DGranularRetriableTestWrapper.java524 ILogSaver logSaver, List<ITestInvocationListener> listeners) { in RetryLogSaverResultForwarder() argument
525 super(logSaver, listeners); in RetryLogSaverResultForwarder()
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DDefaultRemoteAndroidTestRunner.java39 String runName, Collection<ITestRunListener> listeners) { in createParser() argument
40 InstrumentationResultParser parser = super.createParser(runName, listeners); in createParser()
DTestRunToTestInvocationForwarder.java49 public TestRunToTestInvocationForwarder(Collection<ITestLifeCycleReceiver> listeners) { in TestRunToTestInvocationForwarder() argument
50 mListeners = listeners; in TestRunToTestInvocationForwarder()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DRenderState.kt28 val listeners = mutableListOf<() -> Unit>() in <lambda>() constant
36 listeners.forEach { it() } in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java375 List<ITestInvocationListener> listeners = originalConfig.getTestInvocationListeners(); in handleExtraResultReporter() local
376 listeners.addAll(retryConfig.getTestInvocationListeners()); in handleExtraResultReporter()
377 originalConfig.setTestInvocationListeners(listeners); in handleExtraResultReporter()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java59 public ShardMasterResultForwarder(List<ITestInvocationListener> listeners, int expectedShards) { in ShardMasterResultForwarder() argument
60 super(listeners); in ShardMasterResultForwarder()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java473 IScheduledInvocationListener... listeners) { in FreeDeviceHandler() argument
474 super(listeners); in FreeDeviceHandler()
541 ExecutableCommand command, IScheduledInvocationListener... listeners) { in InvocationThread() argument
544 mListeners = listeners; in InvocationThread()
1533 IScheduledInvocationListener... listeners) { in startInvocation() argument
1545 listeners); in startInvocation()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java863 Collection<ITestLifeCycleReceiver> listeners = new ArrayList<>(0); in testRunInstrumentationTests() local
869 mTestDevice.runInstrumentationTests(mockRunner, listeners); in testRunInstrumentationTests()
878 Collection<ITestLifeCycleReceiver> listeners = new ArrayList<>(1); in testRunInstrumentationTests_recoveryFails() local
880 listeners.add(listener); in testRunInstrumentationTests_recoveryFails()
891 mRecoveryTestDevice.runInstrumentationTests(mockRunner, listeners); in testRunInstrumentationTests_recoveryFails()
904 Collection<ITestLifeCycleReceiver> listeners = new ArrayList<>(1); in testRunInstrumentationTests_recoverySucceeds() local
906 listeners.add(listener); in testRunInstrumentationTests_recoverySucceeds()
915 mTestDevice.runInstrumentationTests(mockRunner, listeners); in testRunInstrumentationTests_recoverySucceeds()
2673 Collection<ITestLifeCycleReceiver> listeners = new ArrayList<>(); in testrunInstrumentationTestsAsUser_failed() local
2676 mTestDevice.runInstrumentationTestsAsUser(mockRunner, 12, listeners); in testrunInstrumentationTestsAsUser_failed()

12