Home
last modified time | relevance | path

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

12

/tools/loganalysis/tests/src/com/android/loganalysis/item/
DGenericItemTest.java77 Map<String, Object> attributes; in testMergeAttributes() local
79 attributes = mEmptyItem1.mergeAttributes(mEmptyItem1, ATTRIBUTES); in testMergeAttributes()
80 assertNull(attributes.get("string")); in testMergeAttributes()
81 assertNull(attributes.get("integer")); in testMergeAttributes()
83 attributes = mEmptyItem1.mergeAttributes(mEmptyItem2, ATTRIBUTES); in testMergeAttributes()
84 assertNull(attributes.get("string")); in testMergeAttributes()
85 assertNull(attributes.get("integer")); in testMergeAttributes()
87 attributes = mEmptyItem2.mergeAttributes(mEmptyItem1, ATTRIBUTES); in testMergeAttributes()
88 assertNull(attributes.get("string")); in testMergeAttributes()
89 assertNull(attributes.get("integer")); in testMergeAttributes()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java107 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument
110 final String objectTypeName = attributes.getValue("type"); in startElement()
120 addObject(objectTypeName, attributes); in startElement()
127 String deviceName = attributes.getValue("name"); in startElement()
144 addObject(localName, attributes); in startElement()
178 addObject(localName, attributes); in startElement()
189 addObject(localName, attributes); in startElement()
191 String optionName = attributes.getValue("name"); in startElement()
196 String optionKey = attributes.getValue("key"); in startElement()
200 String optionValue = attributes.getValue("value"); in startElement()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DExtractAnnotations.kt351 val attributes = annotation.attributeValues in <lambda>() constant
352 if (attributes.size != 1) { in <lambda>()
359 val value = attributes[0].expression in <lambda>()
493 var attributes = uAnnotation.attributeValues in <lambda>() variable
494 if (attributes.isEmpty()) { in <lambda>()
504 if (attributes.size > 1 && sortAnnotations) { in <lambda>()
506 attributes = ArrayList(attributes) in <lambda>()
509 attributes.sortedWith(object : Comparator<UNamedExpression> { in <lambda>()
530 if (attributes.size == 1 && Extractor.REQUIRES_PERMISSION.isPrefix(qualifiedName, true)) { in <lambda>()
531 val expression = attributes[0].expression in <lambda>()
[all …]
DAnnotationsMerger.kt655 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
656 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation()
658attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation()
664 attributes in createAnnotation()
690 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
691 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation()
693attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation()
698 … if (intDef) INT_DEF_ANNOTATION.newName() else STRING_DEF_ANNOTATION.newName(), attributes in createAnnotation()
737 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
739 attributes.add( in createAnnotation()
[all …]
DAnnotationFilter.kt92 if (filter.attributes.count() > existingAnnotation.attributes.count()) { in annotationsMatch()
95 for (attribute in filter.attributes) { in annotationsMatch()
110 val attributes: List<AnnotationAttribute> constant in com.android.tools.metalava.AnnotationFilterEntry
114 return attributes.firstOrNull { it.name == actualName } in findAttribute()
128 val attributes: List<AnnotationAttribute> = if (index == -1) { in fromSource() constant
135 return AnnotationFilterEntry(qualifiedName, attributes) in fromSource()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiAnnotationItem.kt55 private var attributes: List<AnnotationAttribute>? = null in <lambda>() variable in com.android.tools.metalava.model.psi.PsiAnnotationItem
83 override fun attributes(): List<AnnotationAttribute> { in <lambda>() method in com.android.tools.metalava.model.psi.PsiAnnotationItem
84 if (attributes == null) { in <lambda>()
85 val psiAttributes = psiAnnotation.parameterList.attributes in <lambda>()
86 attributes = if (psiAttributes.isEmpty()) { in <lambda>()
102 return attributes!! in <lambda>()
149 for (attr in annotation.parameterList.attributes) { in <lambda>()
166 val attributes = getAttributes(psiAnnotation, showDefaultAttrs) in <lambda>() constant
167 if (attributes.isEmpty()) { in <lambda>()
175 … if (attributes.size == 1 && (attributes[0].first == null || attributes[0].first == ATTR_VALUE)) { in <lambda>()
[all …]
DUAnnotationItem.kt54 private var attributes: List<AnnotationAttribute>? = null in <lambda>() variable in com.android.tools.metalava.model.psi.UAnnotationItem
82 override fun attributes(): List<AnnotationAttribute> { in <lambda>() method in com.android.tools.metalava.model.psi.UAnnotationItem
83 if (attributes == null) { in <lambda>()
85 attributes = if (uAttributes.isEmpty()) { in <lambda>()
101 return attributes!! in <lambda>()
151 val attributes = getAttributes(uAnnotation, showDefaultAttrs) in <lambda>() constant
152 if (attributes.isEmpty()) { in <lambda>()
160 …if (attributes.size == 1 && (attributes[0].first == null || attributes[0].first == SdkConstants.AT… in <lambda>()
162 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
165 for (attribute in attributes) { in <lambda>()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java80 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument
84 String testCount = getMandatoryAttribute(name, "tests", attributes); in startElement()
86 mMetrics.addRunMetric(TIME_TAG, getMandatoryAttribute(name, TIME_TAG, attributes)); in startElement()
90 String testClassName = getMandatoryAttribute(name, "classname", attributes); in startElement()
91 String methodName = getMandatoryAttribute(name, "testname", attributes); in startElement()
95 String metricName = getMandatoryAttribute(name, "name", attributes); in startElement()
96 String metricValue = getMandatoryAttribute(name, "value", attributes); in startElement()
102 String metricName = getMandatoryAttribute(name, "name", attributes); in startElement()
103 String metricValue = getMandatoryAttribute(name, "value", attributes); in startElement()
110 private String getMandatoryAttribute(String tagName, String attrName, Attributes attributes) in getMandatoryAttribute() argument
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DJUnitXmlParser.java79 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument
85 String testSuiteName = getMandatoryAttribute(name, "name", attributes); in startElement()
86 String testCountString = getMandatoryAttribute(name, "tests", attributes); in startElement()
87 mRunTimeMillis = getTimeMillis(name, attributes); in startElement()
95 String testClassName = Strings.nullToEmpty(attributes.getValue("classname")); in startElement()
99 String methodName = getMandatoryAttribute(name, "name", attributes); in startElement()
111 String value = attributes.getValue("message"); in startElement()
159 String getMandatoryAttribute(String tagName, String attrName, Attributes attributes) in getMandatoryAttribute() argument
161 String value = attributes.getValue(attrName); in getMandatoryAttribute()
172 long getTimeMillis(String tagName, Attributes attributes) throws SAXException { in getTimeMillis() argument
[all …]
DSubprocessTestResultsParser.java605 Map<String, String> attributes = eventEnd.mBuildAttributes; in handleEvent() local
607 if (!attributes.containsKey(key.toString())) { in handleEvent()
610 String val = attributes.remove(key.toString()); in handleEvent()
623 if (attributes.containsKey(TfObjectTracker.TF_OBJECTS_TRACKING_KEY)) { in handleEvent()
624 String val = attributes.get(TfObjectTracker.TF_OBJECTS_TRACKING_KEY); in handleEvent()
637 attributes.remove(TfObjectTracker.TF_OBJECTS_TRACKING_KEY); in handleEvent()
639 infos.get(0).addBuildAttributes(attributes); in handleEvent()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java40 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection() argument
45 String manifestVersion = attributes.getValue(Attributes.Name.MANIFEST_VERSION); in writeMainSection()
52 if (attributes.size() > 1) { in writeMainSection()
53 SortedMap<String, String> namedAttributes = getAttributesSortedByName(attributes); in writeMainSection()
60 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection() argument
64 if (!attributes.isEmpty()) { in writeIndividualSection()
65 writeAttributes(out, getAttributesSortedByName(attributes)); in writeIndividualSection()
108 static SortedMap<String, String> getAttributesSortedByName(Attributes attributes) { in getAttributesSortedByName() argument
109 Set<Map.Entry<Object, Object>> attributesEntries = attributes.entrySet(); in getAttributesSortedByName()
DSignatureFileWriter.java32 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection() argument
37 String signatureVersion = attributes.getValue(Attributes.Name.SIGNATURE_VERSION); in writeMainSection()
44 if (attributes.size() > 1) { in writeMainSection()
46 ManifestWriter.getAttributesSortedByName(attributes); in writeMainSection()
53 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection() argument
55 ManifestWriter.writeIndividualSection(out, name, attributes); in writeIndividualSection()
/tools/loganalysis/src/com/android/loganalysis/item/
DCompactMemInfoItem.java118 Map<String, Object> attributes = new HashMap<String, Object>(); in addPid() local
119 attributes.put(NAME_ATTR_KEY, name); in addPid()
120 attributes.put(TYPE_ATTR_KEY, type); in addPid()
121 attributes.put(PSS_ATTR_KEY, pss); in addPid()
122 attributes.put(SWAP_ATTR_KEY, swap); in addPid()
123 attributes.put(ACTIVITIES_ATTR_KEY, activities); in addPid()
124 mPids.put(pid, attributes); in addPid()
DGenericTimingItem.java38 protected GenericTimingItem(Set<String> attributes) { in GenericTimingItem() argument
39 super(getAllAttributes(attributes)); in GenericTimingItem()
74 private static Set<String> getAllAttributes(Set<String> attributes) { in getAllAttributes() argument
76 allAttributes.addAll(attributes); in getAllAttributes()
DMiscKernelLogItem.java52 protected MiscKernelLogItem(Set<String> attributes) { in MiscKernelLogItem() argument
53 super(getAllAttributes(attributes)); in MiscKernelLogItem()
115 private static Set<String> getAllAttributes(Set<String> attributes) { in getAllAttributes() argument
117 allAttributes.addAll(attributes); in getAllAttributes()
DMiscLogcatItem.java61 protected MiscLogcatItem(Set<String> attributes) { in MiscLogcatItem() argument
62 super(getAllAttributes(attributes)); in MiscLogcatItem()
166 private static Set<String> getAllAttributes(Set<String> attributes) { in getAllAttributes() argument
168 allAttributes.addAll(attributes); in getAllAttributes()
DGenericItem.java38 protected GenericItem(Set<String> allowedAttributes, Map<String, Object> attributes) { in GenericItem() argument
41 for (Map.Entry<String, Object> entry : attributes.entrySet()) { in GenericItem()
71 protected Map<String, Object> mergeAttributes(IItem other, Set<String> attributes) in mergeAttributes() argument
82 for (String attribute : attributes) { in mergeAttributes()
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py1854 attributes = [
1863 attributes, int(sig_uuid_constants['AudioSource'], 16))
1865 attributes, int(sig_uuid_constants['A/V_RemoteControl'], 16))
1866 self.pri_dut.sdp_lib.addSearch(attributes,
1869 attributes, int(sig_uuid_constants['SerialPort'], 16))
1871 attributes, int(sig_uuid_constants['DialupNetworking'], 16))
1873 attributes, int(sig_uuid_constants['OBEXObjectPush'], 16))
1875 attributes, int(sig_uuid_constants['OBEXFileTransfer'], 16))
1877 attributes, int(sig_uuid_constants['Headset'], 16))
1879 attributes, int(sig_uuid_constants['HandsfreeAudioGateway'],
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java598 MultiMap<String, String> attributes = endInvocationContext.getAttributes(); in mergeInvocationContext() local
600 if (!attributes.containsKey(key.toString())) { in mergeInvocationContext()
603 List<String> values = attributes.get(key.toString()); in mergeInvocationContext()
604 attributes.remove(key.toString()); in mergeInvocationContext()
619 if (attributes.containsKey(TfObjectTracker.TF_OBJECTS_TRACKING_KEY)) { in mergeInvocationContext()
620 List<String> values = attributes.get(TfObjectTracker.TF_OBJECTS_TRACKING_KEY); in mergeInvocationContext()
635 attributes.remove(TfObjectTracker.TF_OBJECTS_TRACKING_KEY); in mergeInvocationContext()
637 receiverContext.addInvocationAttributes(attributes); in mergeInvocationContext()
/tools/repohooks/tools/
Dpylintrc163 too-many-instance-attributes,
223 # List of module names for which member attributes should not be checked
225 # and thus existing member attributes cannot be deduced by static analysis. It
229 # List of classes names for which member attributes should not be checked
230 # (useful for classes with attributes dynamically set). This supports can work
437 # Maximum number of attributes for a class (see R0902).
438 max-attributes=7
452 # List of method names used to declare (i.e. assign) instance attributes.
/tools/asuite/aidegen/lib/
Ddom_util.py26 def find_special_node(parent, element_name, attributes=None): argument
54 def compare_element_with_attributes(element, attributes=None): argument
115 def update_element_with_condition(element, attributes, target_name, argument
138 def insert_element_data(element, attributes, target_name, target_value): argument
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextBackedAnnotationItem.kt34 private val attributes: List<AnnotationAttribute> constant
50 attributes = if (index == -1) {
61 override fun attributes(): List<AnnotationAttribute> = attributes method
DTextModifiers.kt64 val attributes = in <lambda>() constant
72 override fun attributes(): List<AnnotationAttribute> = attributes in <lambda>() method
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dui_utils.py100 match_list.append(v in node.attributes[key].value)
102 match_list.append(node.attributes[key].value == v)
221 return node.attributes
238 x, y = _find_point_in_bounds(button_node.attributes['bounds'].value)
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTextBackedAnnotationItemTest.kt46 assertTrue(annotation.attributes().isEmpty()) in supportsDocumentation()
57 assertEquals(2, annotation.attributes().size) in testIntRange()
75 assertEquals(1, annotation.attributes().size) in testIntDef()

12