Home
last modified time | relevance | path

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

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DTestStub.java61 private void testAttempt(ITestInvocationListener listener) { in testAttempt() argument
63 listener.testRunStarted("module-run", 3); in testAttempt()
65 listener.testStarted(tid); in testAttempt()
66 listener.testEnded(tid, new HashMap<String, Metric>()); in testAttempt()
71 listener.testStarted(tid2); in testAttempt()
72 listener.testEnded(tid2, new HashMap<String, Metric>()); in testAttempt()
76 listener.testStarted(tid3); in testAttempt()
78 listener.testFailed(tid3, "ouch this is bad."); in testAttempt()
80 listener.testEnded(tid3, new HashMap<String, Metric>()); in testAttempt()
82 listener.testRunEnded(0, new HashMap<String, Metric>()); in testAttempt()
[all …]
DSimpleTestStub.java53 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
55 listener.testRunStarted("module-run", 1); in run()
57 listener.testStarted(tid); in run()
58 listener.testEnded(tid, new HashMap<String, Metric>()); in run()
59 listener.testRunEnded(0, new HashMap<String, Metric>()); in run()
DShardableTestStub.java61 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
DModuleDefTest.java122 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
DModuleRepoTest.java768 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsFuzzTestResultParser.java93 public VtsFuzzTestResultParser(String testRunName, ITestLifeCycleReceiver listener) { in VtsFuzzTestResultParser() argument
96 mTestListeners.add(listener); in VtsFuzzTestResultParser()
109 for (ITestLifeCycleReceiver listener : mTestListeners) { in processNewLines()
110 listener.testRunStarted(mTestRunName, mNumTestsExpected); in processNewLines()
136 for (ITestLifeCycleReceiver listener : mTestListeners) { in doTestEnded()
137 listener.testFailed(mTestId, mStackTrace.toString()); in doTestEnded()
143 for (ITestLifeCycleReceiver listener : mTestListeners) { in doTestEnded()
145 listener.testEnded(mTestId, emptyMap); in doTestEnded()
163 for (ITestLifeCycleReceiver listener : mTestListeners) { in handleTestRunFailed()
164 listener.testFailed(mTestId, mStackTrace.toString()); in handleTestRunFailed()
[all …]
DVtsMultiDeviceTestResultParser.java110 public VtsMultiDeviceTestResultParser(ITestLifeCycleReceiver listener, String runName) { in VtsMultiDeviceTestResultParser() argument
112 mListeners.add(listener); in VtsMultiDeviceTestResultParser()
175 for (ITestLifeCycleReceiver listener : mListeners) { in handleTestRunFailed()
176 listener.testFailed(mCurrentTestId, FAIL); in handleTestRunFailed()
177 listener.testEnded(mCurrentTestId, emptyMap); in handleTestRunFailed()
181 for (ITestLifeCycleReceiver listener : mListeners) { in handleTestRunFailed()
182 listener.testRunFailed(errorMsg); in handleTestRunFailed()
314 for (ITestLifeCycleReceiver listener : mListeners) { in completeTestRun()
316 listener.testRunStarted(mCurrentTestName, mTotalTestCount); in completeTestRun()
320 listener.testStarted(test.getKey()); in completeTestRun()
[all …]
DVtsFuzzTest.java320 IShellOutputReceiver createResultParser(String runName, ITestLifeCycleReceiver listener) { in createResultParser() argument
321 VtsFuzzTestResultParser resultParser = new VtsFuzzTestResultParser(runName, listener); in createResultParser()
329 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
340 IShellOutputReceiver resultParser = createResultParser(mTargetComponentPath, listener); in run()
DVtsMultiDeviceTest.java684 public void run(ITestInvocationListener listener) in run() argument
686 mOutputUtil = new OutputUtil(listener); in run()
728 doRunTest(listener); in run()
1300 private void doRunTest(ITestLifeCycleReceiver listener) in doRunTest() argument
1308 new VtsMultiDeviceTestResultParser(listener, deriveRunName()); in doRunTest()
1398 listener.testRunFailed(String.join(".\n", errorMsgs)); in doRunTest()
1399 listener.testRunEnded(System.currentTimeMillis() - methodStartTime, in doRunTest()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DJarHostTest.java38 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
47 listener.testRunStarted(getClass().getName(), numTests); in run()
48 HostTestListener hostListener = new HostTestListener(listener); in run()
57 listener.testRunEnded(System.currentTimeMillis() - startTime, metrics); in run()
71 public HostTestListener(ITestInvocationListener listener) { in HostTestListener() argument
72 super(listener); in HostTestListener()
DModuleDef.java253 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
260 IModuleListener moduleListener = new ModuleListener(this, listener); in run()
393 public ModuleFinisher(ITestInvocationListener listener) { in ModuleFinisher() argument
394 super(listener); in ModuleFinisher()
395 mListener = listener; in ModuleFinisher()
DFailureListener.java41 public FailureListener(ITestInvocationListener listener, ITestDevice device, in FailureListener() argument
44 super(listener); in FailureListener()
DCompatibilityTest.java358 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
383 listener = new FailureListener(listener, getDevice(), mBugReportOnFailure, in run()
472 runPreModuleCheck(module.getName(), checkers, mDevice, listener); in run() local
493 listener.testModuleStarted(moduleContext); in run()
494 module.run(listener); in run()
510 listener.testModuleEnded(); in run()
524 runPostModuleCheck(module.getName(), checkers, mDevice, listener); in run() local
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DMonitoringUtils.java54 public static void checkDeviceConnectivity(ITestDevice device, ITestInvocationListener listener, in checkDeviceConnectivity() argument
58 device.logBugreport(String.format("bugreport-connectivity-%s", tag), listener); in checkDeviceConnectivity()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DApkInstrumentationPreparer.java119 CollectingTestListener listener = new CollectingTestListener(); in instrument() local
128 instrTest.run(listener); in instrument()
129 TestRunResult result = listener.getCurrentRunResults(); in instrument()
DMediaPreparer.java420 ITestInvocationListener listener = new MediaPreparerListener(); in setMaxRes() local
444 instrTest.run(listener); in setMaxRes()
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DOutputUtil.java37 public OutputUtil(ITestLogger listener) { in OutputUtil() argument
38 mListener = listener; in OutputUtil()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DModuleListener.java46 public ModuleListener(IModuleDef module, ITestInvocationListener listener) { in ModuleListener() argument
48 mListener = listener; in ModuleListener()
DResultReporter.java1096 for (ITestInvocationListener listener : listeners) { in logReportFiles()
1097 if (listener.equals(this)) { in logReportFiles()
1101 listener.testLog(dataName, type, source); in logReportFiles()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java531 ITestInvocationListener listener = getShardListener(mMasterReporter); in run() local
535 listener.invocationStarted(mShardContext); in run()
537 mShardTest.run(listener); in run()
541 listener.invocationEnded(500); in run()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTest.java208 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run() argument
211 test.run(listener); in run()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationSuiteResultReporter.java564 for (ITestInvocationListener listener : listeners) { in logReportFiles()
565 if (listener.equals(this)) { in logReportFiles()
569 listener.testLog(dataName, type, source); in logReportFiles()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsFuzzTestTest.java53 String runName, ITestLifeCycleReceiver listener) { in setUp()
/test/framework/harnesses/cts-tradefed/
Dtradefed-cts-prebuilt.jarMETA-INF/ META-INF/MANIFEST.MF com/android/compatibility/common/ ...
/test/suite_harness/common/host-side/tradefed/tests/res/testtype/
DtestJar1.jar ... testRunner android.ui.cts.TaskSwitchingTest$LocalListener listener com.android.ddmlib.testrunner.TestRunResult result ...