Home
last modified time | relevance | path

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

12

/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/device/
DDeviceUtilStatsMonitorTest.java75 UtilizationDesc desc = mDeviceUtilMonitor.getUtilizationStats(); in testOnlyAvailable() local
76 assertEquals(0, desc.mTotalUtil); in testOnlyAvailable()
77 assertEquals(1, desc.mDeviceUtil.size()); in testOnlyAvailable()
78 assertEquals(0L, (long)desc.mDeviceUtil.get("serial0")); in testOnlyAvailable()
90 UtilizationDesc desc = mDeviceUtilMonitor.getUtilizationStats(); in testOnlyAllocated() local
91 assertEquals(100L, desc.mTotalUtil); in testOnlyAllocated()
92 assertEquals(1, desc.mDeviceUtil.size()); in testOnlyAllocated()
93 assertEquals(100L, (long)desc.mDeviceUtil.get("serial0")); in testOnlyAllocated()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java978 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_matchInclude() local
981 desc.setMetaData(metadata); in testMetadataFilter_matchInclude()
993 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchInclude_mismatchValue() local
996 desc.setMetaData(metadata); in testMetadataFilter_noMatchInclude_mismatchValue()
1008 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchInclude_mismatchKey() local
1011 desc.setMetaData(metadata); in testMetadataFilter_noMatchInclude_mismatchKey()
1023 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_matchExclude() local
1026 desc.setMetaData(metadata); in testMetadataFilter_matchExclude()
1038 ConfigurationDescriptor desc = config.getConfigurationDescription(); in testMetadataFilter_noMatchExclude_mismatchKey() local
1041 desc.setMetaData(metadata); in testMetadataFilter_noMatchExclude_mismatchKey()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestFilterHelper.java160 public boolean shouldTestRun(Description desc) { in shouldTestRun() argument
161 return shouldTestRun(desc.getAnnotations()); in shouldTestRun()
246 public boolean shouldRun(Description desc) { in shouldRun() argument
250 classObj = Class.forName(desc.getClassName()); in shouldRun()
257 String className = desc.getClassName(); in shouldRun()
258 String methodName = String.format("%s#%s", className, desc.getMethodName()); in shouldRun()
262 if (!shouldTestRun(desc)) { in shouldRun()
DJUnit4TestFilter.java39 for (Description desc : description.getChildren()) { in shouldRun()
40 if (shouldRun(desc)) { in shouldRun()
/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/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/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/repohooks/rh/
Dhooks.py328 def check_commit_msg_bug_field(project, commit, desc, _diff, options=None): argument
338 for line in desc.splitlines():
352 def check_commit_msg_changeid_field(project, commit, desc, _diff, options=None): argument
362 for line in desc.splitlines():
401 def check_commit_msg_prebuilt_apk_fields(project, commit, desc, diff, argument
424 if not re.search(regex, desc, re.MULTILINE):
465 def check_commit_msg_test_field(project, commit, desc, _diff, options=None): argument
475 for line in desc.splitlines():
Dhooks_unittest.py260 for desc in msgs:
261 ret = func(self.project, 'commit', desc, diff, options=self.options)
264 ret, None, msg='Should have accepted: {{{%s}}}' % (desc,))
267 ret, None, msg='Should have rejected: {{{%s}}}' % (desc,))
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java584 Description desc = (Description) obj; in runTestCases() local
585 Request req = Request.aClass(desc.getTestClass()); in runTestCases()
586 Runner checkRunner = req.filterWith(desc).getRunner(); in runTestCases()
587 runJUnit4Tests(listener, checkRunner, desc.getClassName()); in runTestCases()
686 private void fakeDescriptionExecution(Description desc, JUnit4ResultForwarder listener) { in fakeDescriptionExecution() argument
687 if (desc.getMethodName() == null || !desc.getChildren().isEmpty()) { in fakeDescriptionExecution()
688 for (Description child : desc.getChildren()) { in fakeDescriptionExecution()
693 listener.testStarted(desc); in fakeDescriptionExecution()
694 listener.testFinished(desc); in fakeDescriptionExecution()
805 Description desc = descriptions.pop(); in getTestMethods() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java998 DeviceDescriptor desc = d.getDeviceDescriptor(); in listAllDevices() local
999 if (desc != null) { in listAllDevices()
1000 serialStates.add(desc); in listAllDevices()
1067 for (DeviceDescriptor desc : sortedDeviceList) { in addDevicesInfo()
1069 if (desc.isStubDevice() && desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()
1075 desc.getSerial(), in addDevicesInfo()
1076 desc.getDeviceState().toString(), in addDevicesInfo()
1077 desc.getState().toString(), in addDevicesInfo()
1078 desc.getProduct(), in addDevicesInfo()
1079 desc.getProductVariant(), in addDevicesInfo()
[all …]
/tools/test/connectivity/acts/tests/google/fuchsia/bt/
Dfuchsia_cmd_input.py426 for desc in descriptors:
427 desc_id = desc["id"]
428 desc_uuid = desc["uuid_type"]
478 for desc in descriptors:
479 desc_id = desc["id"]
480 desc_uuid = desc["uuid_type"]
526 for desc in descriptors:
527 desc_id = desc["id"]
528 desc_uuid = desc["uuid_type"]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt147 fun unsupported(desc: String? = null): Nothing in <lambda>()
188 val types = Type.getArgumentTypes(node.desc) in <lambda>()
212 val types = Type.getArgumentTypes(node.desc) in <lambda>()
297 override fun unsupported(desc: String?): Nothing { in getPackageDocs()
298 …error(desc ?: "This operation is not available on this type of codebase (${this.javaClass.simpleNa… in getPackageDocs()
DClassItem.kt420 desc: String, in <lambda>()
424 if (desc.startsWith("<init>")) { in <lambda>()
426 .filter { it.internalDesc() == desc } in <lambda>()
431 .filter { it.name() == name && it.internalDesc() == desc } in <lambda>()
436 superClass()?.findMethodByDesc(name, desc, true, includeInterfaces)?.let { return it } in <lambda>()
442 cls.findMethodByDesc(name, desc, includeSuperClasses, true)?.let { return it } in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/result/
DTestDescription.java165 public static TestIdentifier convertToIdentifier(TestDescription desc) { in convertToIdentifier() argument
166 return new TestIdentifier(desc.getClassName(), desc.getTestName()); in convertToIdentifier()
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/repohooks/
Dpre-upload.py288 desc = rh.git.get_commit_desc(commit)
289 os.environ['PREUPLOAD_COMMIT_MESSAGE'] = desc
291 commit_summary = desc.split('\n', 1)[0]
296 hook_results = hook(project, commit, desc, diff)
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java313 private boolean shouldSkip(TestDescription desc) { in shouldSkip() argument
315 if (desc.getAnnotation(MetricOption.class) != null) { in shouldSkip()
316 String groupName = desc.getAnnotation(MetricOption.class).group(); in shouldSkip()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationDescriptorTest.java80 ConfigurationDescriptor desc = in testSerialization() local
82 assertEquals("test", desc.getModuleName()); in testSerialization()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt796 val desc = defaultEvaluator.getMethodDescription(method, false, false) in ApiLookup() constant
797 return getMethodVersion(owner, if (method.isConstructor) "<init>" else method.name, desc) in ApiLookup()
814 val desc = defaultEvaluator.getMethodDescription(method, false, false) in ApiLookup() constant
815 return getMethodDeprecatedIn(owner, method.name, desc) in ApiLookup()
/tools/tradefederation/contrib/src/com/android/monkey/
DMonkeyBrillopadForwarder.java66 MonkeyStatus(String desc) { in MonkeyStatus() argument
67 mDescription = desc; in MonkeyStatus()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DDeviceTestCaseTest.java209 for (TestDescription desc : descriptions) { in testRun_checkAnnotation()
210 assertFalse(desc.getAnnotations().isEmpty()); in testRun_checkAnnotation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapper.java325 (desc) -> mAttemptSuccess.put(desc.toString(), currentAttempt)); in run()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DTextCodebase.kt299 override fun unsupported(desc: String?): Nothing { in unsupported()
300 error(desc ?: "Not supported for a signature-file based codebase") in unsupported()

12