/tools/loganalysis/tests/src/com/android/loganalysis/item/ |
D | GenericItemTest.java | 77 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/ |
D | ConfigurationXmlParser.java | 107 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/model/psi/ |
D | PsiAnnotationItem.kt | 54 private var attributes: List<AnnotationAttribute>? = null variable in com.android.tools.metalava.model.psi.PsiAnnotationItem 82 override fun attributes(): List<AnnotationAttribute> { in qualifiedName() method in com.android.tools.metalava.model.psi.PsiAnnotationItem 83 if (attributes == null) { in qualifiedName() 84 val psiAttributes = psiAnnotation.parameterList.attributes in qualifiedName() 85 attributes = if (psiAttributes.isEmpty()) { in qualifiedName() 101 return attributes!! in qualifiedName() 136 val attributes = psiAnnotation.parameterList.attributes in appendAnnotation() constant 137 if (attributes.isEmpty()) { in appendAnnotation() 145 … if (attributes.size == 1 && (attributes[0].name == null || attributes[0].name == ATTR_VALUE)) { in appendAnnotation() 147 appendValue(codebase, sb, attributes[0].value, target) in appendAnnotation() [all …]
|
D | UAnnotationItem.kt | 53 private var attributes: List<AnnotationAttribute>? = null variable in com.android.tools.metalava.model.psi.UAnnotationItem 81 override fun attributes(): List<AnnotationAttribute> { in qualifiedName() method in com.android.tools.metalava.model.psi.UAnnotationItem 82 if (attributes == null) { in qualifiedName() 84 attributes = if (uAttributes.isEmpty()) { in qualifiedName() 100 return attributes!! in qualifiedName() 121 val attributes = uAnnotation.attributeValues in appendAnnotation() constant 122 if (attributes.isEmpty()) { in appendAnnotation() 130 …if (attributes.size == 1 && (attributes[0].name == null || attributes[0].name == SdkConstants.ATTR… in appendAnnotation() 132 appendValue(codebase, sb, attributes[0].expression, target) in appendAnnotation() 135 for (attribute in attributes) { in appendAnnotation()
|
D | PsiParameterItem.kt | 61 return annotation.attributes().firstOrNull()?.value?.value()?.toString() in name() 154 return annotation.attributes().firstOrNull()?.value?.value()?.toString() in computeDefaultValue()
|
/tools/tradefederation/contrib/src/com/android/regression/tests/ |
D | MetricsXmlParser.java | 80 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/metalava/src/main/java/com/android/tools/metalava/ |
D | ExtractAnnotations.kt | 351 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 …]
|
D | AnnotationsMerger.kt | 654 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant 655 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation() 657 … attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation() 663 attributes in createAnnotation() 689 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant 690 attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_VALUE_ATTRIBUTE, value)) in createAnnotation() 692 … attributes.add(XmlBackedAnnotationAttribute(TYPE_DEF_FLAG_ATTRIBUTE, VALUE_TRUE)) in createAnnotation() 697 … if (intDef) INT_DEF_ANNOTATION.newName() else STRING_DEF_ANNOTATION.newName(), attributes in createAnnotation() 736 val attributes = mutableListOf<XmlBackedAnnotationAttribute>() in createAnnotation() constant 738 attributes.add( in createAnnotation() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | JUnitXmlParser.java | 78 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 83 String testSuiteName = getMandatoryAttribute(name, "name", attributes); in startElement() 84 String testCountString = getMandatoryAttribute(name, "tests", attributes); in startElement() 85 mRunTimeMillis = getTimeMillis(name, attributes); in startElement() 93 String testClassName = Strings.nullToEmpty(attributes.getValue("classname")); in startElement() 97 String methodName = getMandatoryAttribute(name, "name", attributes); in startElement() 146 String getMandatoryAttribute(String tagName, String attrName, Attributes attributes) in getMandatoryAttribute() argument 148 String value = attributes.getValue(attrName); in getMandatoryAttribute() 159 long getTimeMillis(String tagName, Attributes attributes) throws SAXException { in getTimeMillis() argument 160 String value = attributes.getValue("time"); in getTimeMillis()
|
/tools/apksig/src/main/java/com/android/apksig/internal/jar/ |
D | ManifestWriter.java | 40 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()
|
D | SignatureFileWriter.java | 32 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/tradefederation/core/src/com/android/tradefed/testtype/testdefs/ |
D | XmlDefsParser.java | 45 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 48 final String defName = attributes.getValue("name"); in startElement() 50 attributes.getValue("package")); in startElement() 51 def.setClassName(attributes.getValue("class")); in startElement() 52 def.setRunner(attributes.getValue("runner")); in startElement() 53 def.setContinuous("true".equals(attributes.getValue("continuous"))); in startElement() 54 def.setCoverageTarget(attributes.getValue("coverage_target")); in startElement()
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
D | CompactMemInfoItem.java | 118 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()
|
D | MiscKernelLogItem.java | 52 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()
|
D | MiscLogcatItem.java | 61 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()
|
D | GenericItem.java | 38 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/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 96 Map<String, String> attributes = new HashMap<>(); in testGetTestsDir_noVar() local 97 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_noVar() 98 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar() 151 Map<String, String> attributes = new HashMap<>(); in testGetTestsDir_notDir() local 152 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_notDir() 153 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_notDir()
|
/tools/test/connectivity/acts/framework/tests/config/config_sources/ |
D | cli_config_source_test.py | 32 attributes = {} 34 attributes[attr] = Mock() 36 constructor_kwargs = dict(attributes) 45 for key, value in attributes.items():
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextBackedAnnotationItem.kt | 34 private val attributes: List<AnnotationAttribute> constant 50 attributes = if (index == -1) { 61 override fun attributes(): List<AnnotationAttribute> = attributes method
|
D | TextModifiers.kt | 64 val attributes = in <lambda>() constant 72 override fun attributes(): List<AnnotationAttribute> = attributes in <lambda>() method
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/ |
D | TextBackedAnnotationItemTest.kt | 46 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/ |
D | pylintrc | 92 too-many-instance-attributes, 148 # List of module names for which member attributes should not be checked 150 # and thus existing member attributes cannot be deduced by static analysis. It 154 # List of classes names for which member attributes should not be checked 155 # (useful for classes with attributes dynamically set). This supports can work 362 # Maximum number of attributes for a class (see R0902). 363 max-attributes=7 377 # List of method names used to declare (i.e. assign) instance attributes.
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 265 byte[] attributes = encodeAsLengthPrefixedElement(signedData.additionalAttributes); in encodeSignedData() 285 + attributes.length; in encodeSignedData() 293 result.put(attributes); in encodeSignedData()
|
/tools/tradefederation/core/proto/ |
D | configuration_description.proto | 23 // Representation of the metadata attributes in a similar way as MultiMap in 45 // A set of metadata representing some configuration attributes
|
D | build_info.proto | 48 // The build attributes, as a key value 49 map<string, string> attributes = 4; field
|