Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/lite/com/android/tradefed/lite/
DDryRunner.java37 public DryRunner(Description desc) { in DryRunner() argument
38 mDesc = desc; in DryRunner()
56 private void fakeExecution(RunNotifier notifier, RunListener list, Description desc) { in fakeExecution() argument
57 if (desc.getMethodName() == null || !desc.getChildren().isEmpty()) { in fakeExecution()
58 for (Description child : desc.getChildren()) { in fakeExecution()
62 notifier.fireTestStarted(desc); in fakeExecution()
63 notifier.fireTestFinished(desc); in fakeExecution()
65 list.testStarted(desc); in fakeExecution()
66 list.testFinished(desc); in fakeExecution()
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationFilter.java64 public boolean shouldRun(Description desc) { in shouldRun() argument
65 return this.checkFilters(desc) && this.checkAnnotations(desc); in shouldRun()
68 private boolean checkFilters(Description desc) { in checkFilters() argument
69 String packageName = getPackageName(desc); in checkFilters()
70 String className = desc.getClassName(); in checkFilters()
71 String methodName = String.format("%s#%s", className, desc.getMethodName()); in checkFilters()
76 private boolean checkAnnotations(Description desc) { in checkAnnotations() argument
77 Collection<Annotation> annotations = desc.getAnnotations(); in checkAnnotations()
124 private String getPackageName(Description desc) { in getPackageName() argument
127 classObj = Class.forName(desc.getClassName()); in getPackageName()
DIsolationResultForwarder.java49 Description desc = failure.getDescription(); in testFailure() local
56 .setMethodName(desc.getMethodName()) in testFailure()
57 .setClassName(desc.getClassName()) in testFailure()
66 Description desc = failure.getDescription(); in testAssumptionFailure() local
73 .setMethodName(desc.getMethodName()) in testAssumptionFailure()
74 .setClassName(desc.getClassName()) in testAssumptionFailure()
/tools/tradefederation/core/src/com/android/tradefed/log/
DLogReceiver.java34 public LogReceiver(ITestDevice device, String cmd, String desc) { in LogReceiver() argument
35 this(device, cmd, LOG_SIZE, DELAY, desc); in LogReceiver()
38 public LogReceiver(ITestDevice device, String cmd, String desc, in LogReceiver() argument
40 this(device, cmd, logcat_size, delay_secs, desc); in LogReceiver()
44 long maxFileSize, int logStartDelay, String desc) { in LogReceiver() argument
46 mReceiver = new LargeOutputReceiver(desc, device.getSerialNumber(), in LogReceiver()
48 mDeviceAction = new BackgroundDeviceAction(cmd, desc, device, in LogReceiver()
50 mDesc = desc; in LogReceiver()
/tools/tradefederation/core/tests/src/com/android/tradefed/lite/
DDryRunnerTest.java44 Description desc = req.getRunner().getDescription(); in testFakeExecution() local
46 DryRunner runner = new DryRunner(desc); in testFakeExecution()
49 assertEquals("Test count should be 3", 3, desc.testCount()); in testFakeExecution()
51 Mockito.verify(list, Mockito.times(desc.testCount())) in testFakeExecution()
53 Mockito.verify(list, Mockito.times(desc.testCount())) in testFakeExecution()
/tools/repohooks/rh/
Dhooks.py362 def check_commit_msg_bug_field(project, commit, desc, _diff, options=None): argument
372 for line in desc.splitlines():
386 def check_commit_msg_changeid_field(project, commit, desc, _diff, options=None): argument
396 for line in desc.splitlines():
435 def check_commit_msg_prebuilt_apk_fields(project, commit, desc, diff, argument
458 if not re.search(regex, desc, re.MULTILINE):
499 def check_commit_msg_test_field(project, commit, desc, _diff, options=None): argument
509 for line in desc.splitlines():
554 def check_commit_msg_relnote_field_format(project, commit, desc, _diff, argument
583 for line in desc.splitlines():
[all …]
Dhooks_unittest.py277 for desc in msgs:
278 ret = func(self.project, 'commit', desc, diff, options=self.options)
281 bool(ret), msg='Should have accepted: {{{%s}}}' % (desc,))
284 bool(ret), msg='Should have rejected: {{{%s}}}' % (desc,))
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestFilterHelper.java166 public boolean shouldTestRun(Description desc) { in shouldTestRun() argument
167 return shouldTestRun(desc.getAnnotations()); in shouldTestRun()
253 public boolean shouldRun(Description desc, List<File> extraJars) { in shouldRun() argument
264 classObj = cl.loadClass(desc.getClassName()); in shouldRun()
275 String className = desc.getClassName(); in shouldRun()
276 String methodName = String.format("%s#%s", className, desc.getMethodName()); in shouldRun()
280 if (!shouldTestRun(desc)) { in shouldRun()
DJUnit4TestFilter.java44 for (Description desc : description.getChildren()) { in shouldRun()
45 if (shouldRun(desc)) { in shouldRun()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJUnitToInvocationResultForwarderTest.java125 TestDescription desc = capture.getValue(); in testStartTest_annotations() local
126 assertEquals(InheritingClass.class.getName(), desc.getClassName()); in testStartTest_annotations()
127 assertEquals("testbaseWithAnnotation", desc.getTestName()); in testStartTest_annotations()
128 assertEquals(1, desc.getAnnotations().size()); in testStartTest_annotations()
130 assertTrue(desc.getAnnotations().iterator().next() instanceof MyCustomAnnotation); in testStartTest_annotations()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DIsolatedHostTest.java282 TestDescription desc; in executeTests() local
285 desc = in executeTests()
288 listener.testFailed(desc, event.getMessage()); in executeTests()
289 listener.testEnded(desc, new HashMap<String, String>()); in executeTests()
292 desc = in executeTests()
295 listener.testAssumptionFailure(desc, reply.getMessage()); in executeTests()
298 desc = in executeTests()
301 listener.testStarted(desc); in executeTests()
304 desc = in executeTests()
307 listener.testEnded(desc, new HashMap<String, String>()); in executeTests()
[all …]
DHostTest.java621 Description desc = (Description) obj; in runTestCases() local
622 Request req = Request.aClass(desc.getTestClass()); in runTestCases()
623 Runner checkRunner = req.filterWith(desc).getRunner(); in runTestCases()
625 runJUnit4Tests(listener, checkRunner, desc.getClassName()); in runTestCases()
627 listener.testRunStarted(desc.getClassName(), 0); in runTestCases()
760 private void fakeDescriptionExecution(Description desc, JUnit4ResultForwarder listener) { in fakeDescriptionExecution() argument
761 if (desc.getMethodName() == null || !desc.getChildren().isEmpty()) { in fakeDescriptionExecution()
762 for (Description child : desc.getChildren()) { in fakeDescriptionExecution()
767 listener.testStarted(desc); in fakeDescriptionExecution()
768 listener.testFinished(desc); in fakeDescriptionExecution()
[all …]
/tools/carrier_settings/python/
Dcompare.py35 for desc, values in protobuf_message.ListFields():
36 if desc.label is descriptor.FieldDescriptor.LABEL_REPEATED:
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DTestDescription.java184 public static TestIdentifier convertToIdentifier(TestDescription desc) { in convertToIdentifier() argument
185 return new TestIdentifier(desc.getClassName(), desc.getTestName()); in convertToIdentifier()
DMultiFailureDescription.java102 for (FailureDescription desc : mFailures) { in isRetriable()
103 if (desc.isRetriable()) { in isRetriable()
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveConnectivityMonitorBaseTest.py574 desc = counter.split("_")[0]
575 if desc == "VOWIFI":
578 stat_key = "recent_%s_fail_count" % desc.lower()
592 if most_failure_call_type != desc:
595 "is %s, not %s", most_failure_call_type, desc)
600 dropped = call_data_summary_after.get("%s_dropped" % desc, 0)
602 "%s_dropped_percentage" % desc, 0)
603 self.dut.log.info("%s_dropped = %s, percentage = %s", desc,
729 desc = "VOWIFI"
731 desc = "VOLTE"
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationDescriptorTest.java80 ConfigurationDescriptor desc = in testSerialization() local
82 assertEquals("test", desc.getModuleName()); in testSerialization()
/tools/repohooks/
Dpre-upload.py307 desc = rh.git.get_commit_desc(commit)
308 rh.sixish.setenv('PREUPLOAD_COMMIT_MESSAGE', desc)
310 commit_summary = desc.split('\n', 1)[0]
315 hook_results = hook(project, commit, desc, diff)
/tools/tradefederation/core/src/com/android/tradefed/result/
DBugreportCollector.java380 String desc = storedP.toString(); in check() local
391 desc = testName; in check()
396 desc = String.format("FAILED-%s", testName); in check()
405 grabBugreport(desc); in check()
/tools/test/connectivity/acts/tests/google/fuchsia/bt/
Dcmd_input.py493 for desc in descriptors:
494 desc_id = desc["id"]
495 desc_uuid = desc["uuid_type"]
545 for desc in descriptors:
546 desc_id = desc["id"]
547 desc_uuid = desc["uuid_type"]
593 for desc in descriptors:
594 desc_id = desc["id"]
595 desc_uuid = desc["uuid_type"]
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java434 private boolean shouldSkip(TestDescription desc) { in shouldSkip() argument
436 if (desc.getAnnotation(MetricOption.class) != null) { in shouldSkip()
437 String groupName = desc.getAnnotation(MetricOption.class).group(); in shouldSkip()
/tools/test/connectivity/acts/framework/acts/test_utils/abstract_devices/
Dbluetooth_device.py1275 for desc in descriptors:
1276 desc_id = desc["id"]
1337 for desc in descriptors:
1338 desc_id = desc["id"]
1339 desc_uuid = desc["uuid_type"]
/tools/tradefederation/core/res/jacoco/
Djacocoagent.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/jacoco/ org/ ...
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/jacoco/ org/ ...
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DDeviceTestCaseTest.java218 for (TestDescription desc : descriptions) { in testRun_checkAnnotation()
219 assertFalse(desc.getAnnotations().isEmpty()); in testRun_checkAnnotation()

12