Home
last modified time | relevance | path

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

123456

/tools/asuite/atest/bazel/reporter/javatests/com/android/tradefed/result/
DBazelExitCodeResultReporterTest.java52 BazelExitCodeResultReporter reporter = createReporter(exitCodeFile); in writeNoTestsFoundExitCode_noTestsRun() local
54 reporter.invocationStarted(DEFAULT_CONTEXT); in writeNoTestsFoundExitCode_noTestsRun()
55 reporter.invocationEnded(1); in writeNoTestsFoundExitCode_noTestsRun()
63 BazelExitCodeResultReporter reporter = createReporter(exitCodeFile); in writeRunFailureExitCode_runFailed() local
65 reporter.invocationStarted(DEFAULT_CONTEXT); in writeRunFailureExitCode_runFailed()
66 reporter.testRunStarted("run", 1); in writeRunFailureExitCode_runFailed()
67 reporter.testStarted(TEST_ID); in writeRunFailureExitCode_runFailed()
68 reporter.testRunFailed("Error Message"); in writeRunFailureExitCode_runFailed()
69 reporter.invocationEnded(1); in writeRunFailureExitCode_runFailed()
77 BazelExitCodeResultReporter reporter = createReporter(exitCodeFile); in writeSuccessExitCode_allTestsPassed() local
[all …]
DBazelXmlResultReporterTest.java62 BazelXmlResultReporter reporter = createReporter(xmlFile); in writeResultPassed_testPassed() local
64 reporter.invocationStarted(DEFAULT_CONTEXT); in writeResultPassed_testPassed()
65 reporter.testRunStarted("run", 1); in writeResultPassed_testPassed()
66 reporter.testStarted(TEST_ID, 0L); in writeResultPassed_testPassed()
67 reporter.testEnded(TEST_ID, 10L, mEmptyMap); in writeResultPassed_testPassed()
68 reporter.testRunEnded(20L, mEmptyMap); in writeResultPassed_testPassed()
69 reporter.invocationEnded(30L); in writeResultPassed_testPassed()
77 BazelXmlResultReporter reporter = createReporter(xmlFile); in writeStackTrace_testFailed() local
79 reporter.invocationStarted(DEFAULT_CONTEXT); in writeStackTrace_testFailed()
80 reporter.testRunStarted("run", 1); in writeStackTrace_testFailed()
[all …]
/tools/metalava/metalava-model-source/src/main/java/com/android/tools/metalava/model/source/
DSourceSet.kt24 import com.android.tools.metalava.reporter.Issues
25 import com.android.tools.metalava.reporter.Reporter
59 fun extractRoots(reporter: Reporter): SourceSet { in extractRoots()
60 val sourceRoots = extractRoots(reporter, sources, sourcePath.toMutableList()) in extractRoots()
69 reporter: Reporter, in empty()
73 val sources = gatherSources(reporter, sourcePath, fileTester) in empty()
87 reporter: Reporter, in skippableDirectory()
97 reporter.report( in skippableDirectory()
107 addSourceFiles(reporter, list, child) in skippableDirectory()
118 reporter: Reporter, in gatherSources()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DJarCodebaseLoader.kt24 import com.android.tools.metalava.reporter.Reporter
41 reporter: Reporter, in loadFromJarFile()
44 return FromSourceParser(progressTracker, reporter, sourceParser) in loadFromJarFile()
51 private val reporter: Reporter, constant in com.android.tools.metalava.JarCodebaseLoader.FromSourceParser
68 val analyzer = ApiAnalyzer(sourceParser, codebase, reporter, apiAnalyzerConfig) in loadFromJarFile()
108 reporter: Reporter, in create()
121 reporter, in create()
128 reporter, in create()
DKotlinInteropChecks.kt30 import com.android.tools.metalava.reporter.Issues in <lambda>()
31 import com.android.tools.metalava.reporter.Reporter in <lambda>()
44 class KotlinInteropChecks(val reporter: Reporter) { in <lambda>() constant in com.android.tools.metalava.KotlinInteropChecks
125 reporter.report( in <lambda>()
132 reporter.report( in <lambda>()
158 reporter.report( in <lambda>()
164 reporter.report( in <lambda>()
194 reporter.report( in <lambda>()
200 reporter.report( in <lambda>()
227 reporter.report(Issues.SAM_SHOULD_BE_LAST, method, message) in <lambda>()
[all …]
DDefaultReporter.kt24 import com.android.tools.metalava.reporter.Baseline
25 import com.android.tools.metalava.reporter.FileLocation
26 import com.android.tools.metalava.reporter.IssueConfiguration
27 import com.android.tools.metalava.reporter.Issues
28 import com.android.tools.metalava.reporter.Reportable
29 import com.android.tools.metalava.reporter.Reporter
30 import com.android.tools.metalava.reporter.Severity
31 import com.android.tools.metalava.reporter.Severity.ERROR
32 import com.android.tools.metalava.reporter.Severity.HIDDEN
33 import com.android.tools.metalava.reporter.Severity.INFO
[all …]
DAndroidApiChecks.kt29 import com.android.tools.metalava.reporter.Issues
30 import com.android.tools.metalava.reporter.Reporter
34 class AndroidApiChecks(val reporter: Reporter) { constant in com.android.tools.metalava.AndroidApiChecks
186 reporter.report(Issues.TODO, item, "Documentation mentions 'TODO'") in checkTodos()
213 reporter.report( in checkRequiresPermission()
228 reporter.report( in checkRequiresPermission()
256 reporter.report( in checkIntentAction()
263 reporter.report( in checkIntentAction()
275 reporter.report( in checkIntentAction()
305 reporter.report( in checkVariable()
[all …]
DApiAnalyzer.kt49 import com.android.tools.metalava.reporter.Issues in <lambda>()
50 import com.android.tools.metalava.reporter.Reporter in <lambda>()
67 private val reporter: Reporter, in <lambda>() constant in com.android.tools.metalava.ApiAnalyzer
589 AnnotationsMerger(sourceParser, codebase, reporter) in <lambda>()
598 AnnotationsMerger(sourceParser, codebase, reporter) in <lambda>()
741 reporter.report( in <lambda>()
793 reporter.report( in <lambda>()
811 reporter.report( in <lambda>()
822 reporter.report( in <lambda>()
836 reporter.report( in <lambda>()
[all …]
DExtractAnnotations.kt42 import com.android.tools.metalava.reporter.Issues in <lambda>()
43 import com.android.tools.metalava.reporter.Reporter in <lambda>()
74 private val reporter: Reporter, in <lambda>() constant in com.android.tools.metalava.ExtractAnnotations
88 reporter = reporter, in <lambda>()
97 reporter = reporter, in <lambda>()
240 reporter.report( in <lambda>()
248 reporter.report( in <lambda>()
260 !reporter.isSuppressed(Issues.RETURNING_UNEXPECTED_CONSTANT) in <lambda>()
310 reporter.report( in <lambda>()
509 reporter.report( in <lambda>()
/tools/acloud/create/
Dremote_image_remote_instance.py115 reporter = report.Report(command="create_cf")
117 reporter.SetStatus(report.Status.SUCCESS)
122 reporter.UpdateData(dict_devices)
129 reporter.SetStatus(report.Status.FAIL)
130 reporter.SetErrorType(constants.ACLOUD_OXYGEN_LEASE_ERROR)
131 reporter.AddError(response)
133 return reporter
177 reporter = report.Report(command="create_cf")
178 reporter.SetStatus(report.Status.SUCCESS)
183 reporter.UpdateData(dict_devices)
[all …]
Dremote_image_remote_instance_test.py105 reporter = self.remote_image_remote_instance._LeaseOxygenAVD(avd_spec)
106 self.assertEqual(reporter.status, expected_status)
109 reporter = self.remote_image_remote_instance._LeaseOxygenAVD(avd_spec)
110 self.assertEqual(reporter.status, expected_status)
129 reporter = self.remote_image_remote_instance._LeaseOxygenAVD(avd_spec)
130 self.assertEqual(reporter.status, expected_status)
131 self.assertEqual(reporter.error_type, constants.ACLOUD_OXYGEN_LEASE_ERROR)
132 self.assertEqual(reporter.errors, ["rpc error: details"])
/tools/acloud/public/actions/
Dcommon_operations.py143 def UpdateReport(self, reporter): argument
149 reporter.UpdateData(self._compute_client.dict_report)
248 reporter = report.Report(command=command)
260 reporter.SetStatus(report.Status.BOOT_FAIL)
262 reporter.SetStatus(report.Status.SUCCESS)
270 device_pool.UpdateReport(reporter)
298 if autoconnect and reporter.status == report.Status.SUCCESS:
313 if connect_webrtc and reporter.status == report.Status.SUCCESS:
330 reporter.SetErrorType(constants.ACLOUD_BOOT_UP_ERROR)
332 reporter.SetErrorType(_DICT_ERROR_TYPE[device.stage])
[all …]
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiSourceParserTest.kt25 import com.android.tools.metalava.reporter.BasicReporter in <lambda>()
26 import com.android.tools.metalava.reporter.Reporter in <lambda>()
54 private lateinit var reporter: Reporter in <lambda>() variable in com.android.tools.metalava.model.psi.PsiSourceParserTest
63 reporter = BasicReporter(PrintWriter(outputWriter)) in <lambda>()
69 reporter, in <lambda>()
79 reporter: Reporter, in <lambda>()
83 reporter, in <lambda>()
141 val sourceSet = SourceSet.createFromSourcePath(reporter, src) in <lambda>()
142 val roots = sourceSet.extractRoots(reporter).sourcePath in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DIssueReportingOptions.kt22 import com.android.tools.metalava.reporter.ERROR_WHEN_NEW_SUFFIX
23 import com.android.tools.metalava.reporter.IssueConfiguration
24 import com.android.tools.metalava.reporter.Issues
25 import com.android.tools.metalava.reporter.Reporter
26 import com.android.tools.metalava.reporter.Severity
186 reporter: Reporter, in setAspectSeverityForId()
195 reporter.report( in setAspectSeverityForId()
210 reporter: Reporter, in setAspectSeverityForId()
226 reporter: Reporter, in setAspectSeverityForId()
297 fun setAspectForId(reporter: Reporter, configuration: IssueConfiguration, id: String) { in setAspectSeverityForId()
[all …]
/tools/asuite/atest/test_runners/
Devent_handler.py85 def __init__(self, reporter, name): argument
86 self.reporter = reporter
143 self.reporter.process_test_result(
161 self.reporter.process_test_result(
178 self.reporter.device_count = event_data.get('device_count', None)
183 if not self.reporter.silent:
184 self.reporter.set_current_iteration_summary(self.run_num)
185 self.reporter = result_reporter.ResultReporter(silent=False)
225 self.reporter.process_test_result(
272 self._check_events_are_balanced(event_name, self.reporter)
[all …]
Dmobly_test_runner_unittest.py130 reporter = result_reporter.ResultReporter()
132 reporter.test_result_link = ['link:I00000']
133 self.uploader.add_result_link(reporter)
134 self.assertEqual(reporter.test_result_link, ['link:I00000', 'link:I00001'])
136 reporter.test_result_link = 'link:I00000'
137 self.uploader.add_result_link(reporter)
138 self.assertEqual(reporter.test_result_link, ['link:I00000', 'link:I00001'])
140 reporter.test_result_link = None
141 self.uploader.add_result_link(reporter)
142 self.assertEqual(reporter.test_result_link, ['link:I00001'])
[all …]
Drobolectric_test_runner.py68 def run_tests(self, test_infos, extra_args, reporter): argument
81 return self.run_tests_pretty(test_infos, extra_args, reporter)
82 return self.run_tests_raw(test_infos, extra_args, reporter)
84 def run_tests_raw(self, test_infos, extra_args, reporter): argument
95 reporter.register_unsupported_runner(self.NAME)
108 def run_tests_pretty(self, test_infos, extra_args, reporter): argument
131 event_handler = EventHandler(reporter, self.NAME)
Dmobly_test_runner.py348 def add_result_link(self, reporter: result_reporter.ResultReporter):
355 if isinstance(reporter.test_result_link, list):
356 reporter.test_result_link.append(new_result_link)
357 elif isinstance(reporter.test_result_link, str):
358 reporter.test_result_link = [reporter.test_result_link, new_result_link]
360 reporter.test_result_link = [new_result_link]
377 reporter: result_reporter.ResultReporter,
400 reporter.silent = False
425 mobly_command, tinfo, rerun_options, mobly_args, reporter, uploader
431 uploader.add_result_link(reporter)
[all …]
/tools/acloud/public/
Dacloud_main.py427 reporter = None
429 reporter = report.Report(command=args.which)
430 reporter.UpdateFailure(parsing_config_error,
433 reporter = report.Report(command=args.which)
434 reporter.UpdateFailure(
438 reporter = create.Run(args)
440 reporter = create_goldfish_action.CreateDevices(
459 reporter = delete.Run(args)
465 reporter = restart.Run(args)
467 reporter = powerwash.Run(args)
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DDefaultReporterTest.kt22 import com.android.tools.metalava.reporter.IssueConfiguration in <lambda>()
23 import com.android.tools.metalava.reporter.Issues in <lambda>()
24 import com.android.tools.metalava.reporter.Reportable in <lambda>()
25 import com.android.tools.metalava.reporter.Severity in <lambda>()
270 val reporter = in <lambda>() constant
278 reporter.report( in <lambda>()
292 reporter.report( in <lambda>()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedClassResolver.kt23 import com.android.tools.metalava.reporter.Reporter
31 reporter: Reporter,
49 reporter = reporter,
DPsiSourceParser.kt34 import com.android.tools.metalava.reporter.Reporter in <lambda>()
65 private val reporter: Reporter, constant in com.android.tools.metalava.model.psi.PsiSourceParser
79 reporter, in getClassResolver()
97 sourceSet.absoluteCopy().extractRoots(reporter), in parseSources()
98 commonSourceSet.absoluteCopy().extractRoots(reporter), in parseSources()
148 reporter = reporter, in parseAbsoluteSources()
166 reporter = reporter, in loadFromJar()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/retry/
DRetryReschedulerTest.java470 CollectingTestListener reporter = new CollectingTestListener(); in populateFakeResults() local
474 reporter.invocationStarted(context); in populateFakeResults()
480 reporter.testRunStarted(runName, numTests); in populateFakeResults()
483 reporter.testStarted(test); in populateFakeResults()
484 reporter.testEnded(test, new HashMap<String, Metric>()); in populateFakeResults()
488 reporter.testStarted(test); in populateFakeResults()
489 reporter.testFailed(test, "failure" + f); in populateFakeResults()
490 reporter.testEnded(test, new HashMap<String, Metric>()); in populateFakeResults()
496 reporter.testStarted(test); in populateFakeResults()
498 reporter.testFailed(test, "parameterized" + f); in populateFakeResults()
[all …]
/tools/metalava/metalava-model-source/src/testFixtures/java/com/android/tools/metalava/model/source/
DSourceModelSuiteRunner.kt25 import com.android.tools.metalava.reporter.BasicReporter in <lambda>()
82 val reporter = BasicReporter(PrintWriter(System.err)) in <lambda>() constant
85 reporter = reporter, in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/manifest/
DManifest.kt23 import com.android.tools.metalava.reporter.Issues
24 import com.android.tools.metalava.reporter.Reporter
43 class Manifest(private val manifest: File?, private val reporter: Reporter?) { constant in com.android.tools.metalava.manifest.Manifest
86 reporter?.report( in readManifestInfo()

123456