Home
last modified time | relevance | path

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

12

/tools/metalava/src/main/java/com/android/tools/metalava/
DExtractAnnotations.kt350 val attributes = annotation.attributeValues in <lambda>() constant
351 if (attributes.size != 1) { in <lambda>()
358 val value = attributes[0].expression in <lambda>()
492 var attributes = uAnnotation.attributeValues in <lambda>() variable
493 if (attributes.isEmpty()) { in <lambda>()
503 if (attributes.size > 1 && sortAnnotations) { in <lambda>()
505 attributes = ArrayList(attributes) in <lambda>()
508 attributes.sortedWith(object : Comparator<UNamedExpression> { in <lambda>()
529 if (attributes.size == 1 && Extractor.REQUIRES_PERMISSION.isPrefix(qualifiedName, true)) { in <lambda>()
530 val expression = attributes[0].expression in <lambda>()
[all …]
DAnnotationsMerger.kt660 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
661 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation()
663attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation()
669 attributes in createAnnotation()
695 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
696 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation()
698attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation()
703 … if (intDef) INT_DEF_ANNOTATION.newName() else STRING_DEF_ANNOTATION.newName(), attributes in createAnnotation()
742 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant
744 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>()
DPsiParameterItem.kt68 return annotation.attributes().firstOrNull()?.value?.value()?.toString() in name()
166 return annotation.attributes().firstOrNull()?.value?.value()?.toString() in computeDefaultValue()
/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/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/treble/split/
Dmanifest_diff.py45 attributes: ChangeMap = dataclasses.field(default_factory=ChangeMap) variable in ProjectChanges
50 return bool(self.attributes) or bool(self.linkfiles) or bool(self.copyfiles)
58 if self.attributes:
60 ret_str += textwrap.indent(str(self.attributes), _INDENT)
134 attributes=xml_diff.attribute_changes(p1, p2, ignored_attrs),
Dmanifest_diff_test.py68 changes.attributes,
160 attributes=manifest_diff.ChangeMap(
Dxml_diff.py85 attributes = set(e1.keys()) | set(e2.keys())
86 for attr in attributes:
/tools/test/connectivity/acts_tests/acts_contrib/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()
/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/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py1844 attributes = [
1853 attributes, int(sig_uuid_constants['AudioSource'], 16))
1855 attributes, int(sig_uuid_constants['A/V_RemoteControl'], 16))
1856 self.pri_dut.sdp_lib.addSearch(attributes,
1859 attributes, int(sig_uuid_constants['SerialPort'], 16))
1861 attributes, int(sig_uuid_constants['DialupNetworking'], 16))
1863 attributes, int(sig_uuid_constants['OBEXObjectPush'], 16))
1865 attributes, int(sig_uuid_constants['OBEXFileTransfer'], 16))
1867 attributes, int(sig_uuid_constants['Headset'], 16))
1869 attributes, int(sig_uuid_constants['HandsfreeAudioGateway'],
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java280 byte[] attributes = encodeAsLengthPrefixedElement(signedData.additionalAttributes); in encodeSignedData()
295 int payloadSize = digests.length + certs.length + 4 + 4 + attributes.length; in encodeSignedData()
303 result.put(attributes); in encodeSignedData()
/tools/test/connectivity/acts_tests/tests/google/bt/sdp/
DSdpSetupTest.py86 attributes = [
95 result = self.dut.sdp_add_search(attributes, profile_id)
/tools/asuite/atest/tf_proto/
Dconfiguration_description.proto23 // Representation of the metadata attributes in a similar way as MultiMap in
45 // A set of metadata representing some configuration attributes
Dbuild_info.proto48 // The build attributes, as a key value
49 map<string, string> attributes = 4; field
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DPrefabPackageBuilder.kt171 attributes( in <lambda>()
179 attributes( in <lambda>()
/tools/carrier_settings/java/
DCarrierConfigConverterV2.java689 NamedNodeMap attributes = element.getAttributes(); in checkFilters() local
690 for (int i = 0; i < attributes.getLength(); i++) { in checkFilters()
691 String attribute = attributes.item(i).getNodeName(); in checkFilters()
692 String value = attributes.item(i).getNodeValue(); in checkFilters()
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DRelativeDistinguishedName.java32 public List<AttributeTypeAndValue> attributes; field in RelativeDistinguishedName

12