Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java1011 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_matchInclude() local
1014 desc.setMetaData(metadata); in testMetadataFilter_matchInclude()
1026 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchInclude_mismatchValue() local
1029 desc.setMetaData(metadata); in testMetadataFilter_noMatchInclude_mismatchValue()
1041 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchInclude_mismatchKey() local
1044 desc.setMetaData(metadata); in testMetadataFilter_noMatchInclude_mismatchKey()
1056 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_matchExclude() local
1059 desc.setMetaData(metadata); in testMetadataFilter_matchExclude()
1071 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchExclude_mismatchKey() local
1074 desc.setMetaData(metadata); in testMetadataFilter_noMatchExclude_mismatchKey()
[all …]
/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/device/
DDeviceManager.java1074 DeviceDescriptor desc = d.getCachedDeviceDescriptor(); in listAllDevices() local
1075 if (desc != null) { in listAllDevices()
1076 serialStates.add(desc); in listAllDevices()
1156 for (DeviceDescriptor desc : sortedDeviceList) { in addDevicesInfo()
1158 if (desc.isStubDevice() && desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()
1163 String serial = desc.getSerial(); in addDevicesInfo()
1164 if (desc.getDisplaySerial() != null) { in addDevicesInfo()
1165 serial = desc.getDisplaySerial(); in addDevicesInfo()
1171 desc.getDeviceState().toString(), in addDevicesInfo()
1172 desc.getState().toString(), in addDevicesInfo()
[all …]
/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/test/connectivity/acts_tests/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/test_framework/com/android/tradefed/testtype/
DIsolatedHostTest.java286 TestDescription desc; in executeTests() local
289 desc = in executeTests()
292 listener.testFailed(desc, event.getMessage()); in executeTests()
293 listener.testEnded(desc, new HashMap<String, String>()); in executeTests()
296 desc = in executeTests()
299 listener.testAssumptionFailure(desc, reply.getMessage()); in executeTests()
302 desc = in executeTests()
305 listener.testStarted(desc); in executeTests()
308 desc = in executeTests()
311 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/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/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/test/connectivity/acts/framework/acts/test_utils/bt/
Dgatts_lib.py230 def _setup_descriptor(self, desc): argument
232 desc['uuid'], desc['permissions'])
233 if 'value' in desc:
235 descriptor, desc['value'])
236 if 'instance_id' in desc:
238 descriptor, desc['instance_id'])
256 for desc in char['descriptors']:
257 descriptor = self._setup_descriptor(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/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/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py755 for desc in descriptors:
756 desc_id = desc["id"]
757 desc_uuid = desc["uuid_type"]
807 for desc in descriptors:
808 desc_id = desc["id"]
809 desc_uuid = desc["uuid_type"]
855 for desc in descriptors:
856 desc_id = desc["id"]
857 desc_uuid = desc["uuid_type"]
/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/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt423 desc: String, in <lambda>()
427 if (desc.startsWith("<init>")) { in <lambda>()
429 .filter { it.internalDesc() == desc } in <lambda>()
434 .filter { it.name() == name && it.internalDesc() == desc } in <lambda>()
439 superClass()?.findMethodByDesc(name, desc, true, includeInterfaces)?.let { return it } in <lambda>()
445 cls.findMethodByDesc(name, desc, includeSuperClasses, true)?.let { return it } in <lambda>()
DCodebase.kt150 fun unsupported(desc: String? = null): Nothing in <lambda>()
191 val types = Type.getArgumentTypes(node.desc) in <lambda>()
215 val types = Type.getArgumentTypes(node.desc) in <lambda>()
328 override fun unsupported(desc: String?): Nothing { in getPackageDocs()
329 …error(desc ?: "This operation is not available on this type of codebase (${this.javaClass.simpleNa… in getPackageDocs()
/tools/test/connectivity/acts/framework/acts/test_utils/abstract_devices/
Dbluetooth_device.py1357 for desc in descriptors:
1358 desc_id = desc["id"]
1360 desc_id = desc['uuid_type']
1421 for desc in descriptors:
1422 desc_id = desc["id"]
1423 desc_uuid = desc["uuid_type"]
/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/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt843 val desc = defaultEvaluator.getMethodDescription( in ApiLookup() constant
848 return getMethodVersion(owner, if (method.isConstructor) "<init>" else method.name, desc) in ApiLookup()
865 val desc = defaultEvaluator.getMethodDescription( in ApiLookup() constant
870 return getMethodDeprecatedIn(owner, method.name, desc) in ApiLookup()
/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()
/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()

12