Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 60) sorted by relevance

123

/tools/loganalysis/src/com/android/loganalysis/item/
DGenericItem.java82 for (String attribute : attributes) { in mergeAttributes()
83 mergedAttributes.put(attribute, in mergeAttributes()
84 mergeObjects(getAttribute(attribute), item.getAttribute(attribute))); in mergeAttributes()
100 for (String attribute : mAllowedAttributes) { in isConsistent()
101 if (!areConsistent(getAttribute(attribute), item.getAttribute(attribute))) { in isConsistent()
121 for (String attribute : mAllowedAttributes) { in equals()
122 if (!areEqual(getAttribute(attribute), item.getAttribute(attribute))) { in equals()
133 for (String attribute : mAllowedAttributes) { in hashCode()
134 Object val = getAttribute(attribute); in hashCode()
154 final Object attribute = entry.getValue(); in toJson() local
[all …]
DDvmLockSampleItem.java62 public void setAttribute(String attribute, Object value) throws IllegalArgumentException { in setAttribute() argument
63 if(ATTRIBUTES.contains(attribute)) { in setAttribute()
64 if (TYPES.get(attribute).isAssignableFrom(value.getClass())) { in setAttribute()
65 super.setAttribute(attribute, value); in setAttribute()
68 "Invalid attribute type for " + attribute + in setAttribute()
70 " expected " + TYPES.get(attribute).getCanonicalName()); in setAttribute()
73 throw new IllegalArgumentException("Invalid attribute key: " + attribute); in setAttribute()
79 public Object getAttribute(String attribute) throws IllegalArgumentException { in getAttribute() argument
80 return super.getAttribute(attribute); in getAttribute()
DTopItem.java55 for (String attribute : ATTRIBUTES) { in TopItem()
56 setAttribute(attribute, 0); in TopItem()
/tools/metalava/integration/
Dbuild.gradle.kts54 attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage.JAVA_RUNTIME)) in <lambda>()
55 attribute(Category.CATEGORY_ATTRIBUTE, project.objects.named(Category.DOCUMENTATION)) in <lambda>()
56 attribute(DocsType.DOCS_TYPE_ATTRIBUTE, project.objects.named(DocsType.SOURCES)) in <lambda>()
57 attribute( in <lambda>()
67 attribute(Usage.USAGE_ATTRIBUTE, project.objects.named<Usage>(usage)) in Configuration()
68 attribute(Category.CATEGORY_ATTRIBUTE, project.objects.named<Category>(Category.LIBRARY)) in Configuration()
69 attribute(BuildTypeAttr.ATTRIBUTE, project.objects.named<BuildTypeAttr>("release")) in Configuration()
93 attribute(Attribute.of("artifactType", String::class.java), "android-classes") in <lambda>()
97 attribute(Attribute.of("artifactType", String::class.java), "android-classes") in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java217 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(holder.startTime)); in writeResults()
218 serializer.attribute(NS, END_TIME_ATTR, String.valueOf(holder.endTime)); in writeResults()
219 serializer.attribute(NS, START_DISPLAY_TIME_ATTR, toReadableDateString(holder.startTime)); in writeResults()
220 serializer.attribute(NS, END_DISPLAY_TIME_ATTR, toReadableDateString(holder.endTime)); in writeResults()
221 serializer.attribute( in writeResults()
241 serializer.attribute(NS, DEVICES_ATTR, deviceList); in writeResults()
249 serializer.attribute(NS, HOST_NAME_ATTR, hostName); in writeResults()
250 serializer.attribute(NS, OS_NAME_ATTR, System.getProperty("os.name")); in writeResults()
251 serializer.attribute(NS, OS_VERSION_ATTR, System.getProperty("os.version")); in writeResults()
252 serializer.attribute(NS, OS_ARCH_ATTR, System.getProperty("os.arch")); in writeResults()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DMetricsXMLResultReporter.java120 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printRunResults()
121 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printRunResults()
122 serializer.attribute(NS, ATTR_FAILURES, Integer.toString(getNumAllFailedTests())); in printRunResults()
123 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printRunResults()
124 serializer.attribute(NS, ATTR_TIMESTAMP, timestamp); in printRunResults()
141 serializer.attribute(NS, ATTR_TESTNAME, testId.getTestName()); in printTestResults()
142 serializer.attribute(NS, ATTR_CLASSNAME, testId.getClassName()); in printTestResults()
144 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printTestResults()
163 serializer.attribute(NS, ATTR_NAME, key); in printRunMetrics()
164 serializer.attribute(NS, ATTR_VALUE, metrics.get(key)); in printRunMetrics()
[all …]
DXmlResultReporter.java148 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printTestResults()
149 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printTestResults()
150 serializer.attribute( in printTestResults()
152 serializer.attribute(NS, ATTR_ERRORS, "0"); in printTestResults()
153 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printTestResults()
154 serializer.attribute(NS, TIMESTAMP, timestamp); in printTestResults()
155 serializer.attribute(NS, HOSTNAME, "localhost"); in printTestResults()
174 serializer.attribute(NS, ATTR_NAME, testId.getTestName()); in print()
175 serializer.attribute(NS, ATTR_CLASSNAME, testId.getClassName()); in print()
176 serializer.attribute(NS, ATTR_TIME, "0"); in print()
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/
DDefaultAnnotationItemTest.kt87 val attribute = annotation.findAttribute("value") in testIntDef() constant
88 assertNotNull(attribute) in testIntDef()
89 assertEquals("value", attribute?.name) in testIntDef()
95 assertTrue(attribute?.value is AnnotationArrayAttributeValue) in testIntDef()
96 if (attribute is AnnotationArrayAttributeValue) { in testIntDef()
97 val list = attribute.values in testIntDef()
/tools/carrier_settings/python/
Dupdate_apn.py242 def is_mccmnc_only_attribute(attribute): argument
252 for descriptor in attribute.DESCRIPTOR.fields:
254 if len(getattr(attribute, descriptor.name)):
302 for attribute in aosp_carrier_id.carrier_attribute:
303 mcc_mnc_only = is_mccmnc_only_attribute(attribute)
304 for mcc_mnc in attribute.mccmnc_tuple:
308 gid1_list = attribute.gid1 if len(attribute.gid1) else [""]
312 spn_list = attribute.spn if len(attribute.spn) else [""]
316 imsi_list = attribute.imsi_prefix_xpattern if\
317 len(attribute.imsi_prefix_xpattern) else [""]
/tools/tradefederation/core/proto/monitoring/server/
Dlab_resource.proto75 // A name-value message to represent the metadata attribute.
78 // attribute {
83 // attribute {
87 // attribute {
112 // attribute: {... check the attribute example above ...}
121 // attribute: {... check the attribute example above ...}
127 // The attribute messages that describe the device metadata.
128 repeated Attribute attribute = 2; field
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java111 for (Map.Entry<Object, Object> attribute : attributesEntries) { in getAttributesSortedByName()
112 String attrName = attribute.getKey().toString(); in getAttributesSortedByName()
113 String attrValue = attribute.getValue().toString(); in getAttributesSortedByName()
121 for (Map.Entry<String, String> attribute : attributesSortedByName.entrySet()) { in writeAttributes()
122 String attrName = attribute.getKey(); in writeAttributes()
123 String attrValue = attribute.getValue(); in writeAttributes()
/tools/acloud/internal/lib/
Dadb_tools.py162 attribute: None for attribute in _DEVICE_ATTRIBUTES}
168 attribute: match.group(attribute) if match.group(attribute)
169 else None for attribute in _DEVICE_ATTRIBUTES}
/tools/netsim/pdl/
Dmac80211_hwsim.pdl58 * %HWSIM_ATTR_ADDR_RECEIVER attribute) to a device identified by
80 * @HWSIM_ATTR_UNSPEC: unspecified attribute to catch errors
95 * @HWSIM_ATTR_CHANNELS: u32 attribute used with the %HWSIM_CMD_CREATE_RADIO
97 * @HWSIM_ATTR_RADIO_ID: u32 attribute used with %HWSIM_CMD_DESTROY_RADIO
101 * @HWSIM_ATTR_REG_CUSTOM_REG: custom regulatory domain index (u32 attribute)
102 * @HWSIM_ATTR_REG_STRICT_REG: request REGULATORY_STRICT_REG (flag attribute)
115 * @HWSIM_ATTR_IFTYPE_SUPPORT: u32 attribute of supported interface types bits
147 // Hwsim attribute base packet.
149 // This is a variant of NlAttrHdr with hwsim attribute types.
152 _size_(_payload_): 16, // nla_len, the attribute length
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAnnotationFilter.kt162 for (attribute in filter.attributes) { in annotationsMatch() method
163 val existingValue = existingAnnotation.findAttribute(attribute.name)?.value in annotationsMatch()
165 val attributeValueSource = attribute.value.toSource() in annotationsMatch()
166 if (attribute.name == "value") { in annotationsMatch()
170 attribute.value is AnnotationSingleAttributeValue && in annotationsMatch()
174 attribute.value is AnnotationArrayAttributeValue && in annotationsMatch()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java129 serializer.attribute(null, "type", classTypeName); in dumpClassToXml()
130 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml()
136 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml()
230 serializer.attribute(null, NAME_NAME, name); in dumpOptionToXml()
232 serializer.attribute(null, KEY_NAME, key); in dumpOptionToXml()
234 serializer.attribute(null, VALUE_NAME, value); in dumpOptionToXml()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt90 .map { attribute -> in getAnnotationAttributes() method
92 attribute.name ?: ANNOTATION_ATTR_VALUE, in getAnnotationAttributes()
93 createValue(codebase, attribute.expression) in getAnnotationAttributes()
155 for (attribute in attributes) { in appendAnnotation() variable
161 sb.append(attribute.first ?: ANNOTATION_ATTR_VALUE) in appendAnnotation()
163 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in appendAnnotation()
DPsiAnnotationItem.kt88 .mapNotNull { attribute -> in getAnnotationAttributes() method
89 attribute.value?.let { value -> in getAnnotationAttributes()
91 attribute.name ?: ANNOTATION_ATTR_VALUE, in getAnnotationAttributes()
163 for (attribute in attributes) { in appendAnnotation() variable
169 sb.append(attribute.first ?: ANNOTATION_ATTR_VALUE) in appendAnnotation()
174 attribute.second, in appendAnnotation()
/tools/netsim/ui/ts/
Dcube-sprite.ts35 @property({type: css, attribute: 'color'}) color = css`red`;
40 @property({type: css, attribute: 'size'}) size = css`30px`;
Dpyramid-sprite.ts35 @property({type: css, attribute: 'color'}) color = css`red`;
40 @property({type: css, attribute: 'size'}) size = css`30px`;
Ddevice-dropzone.ts9 @property({type: String, attribute: 'serial'}) serial: string = '';
11 @property({type: String, attribute: 'type'}) type: string = '';
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationExtension.java220 private void setMainAttribute(@Nonnull String attribute, @Nonnull String value) { in setMainAttribute() argument
222 String current = mainAttributes.getValue(attribute); in setMainAttribute()
224 mainAttributes.putValue(attribute, value); in setMainAttribute()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiElement.kt250 private fun encodeAttribute(attribute: String): String { in encodeAttribute()
252 val n = attribute.length in encodeAttribute()
259 when (val c = attribute[i]) { in encodeAttribute()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java394 int attributesSize = attributes.stream().mapToInt(attribute -> attribute.length).sum(); in generateAdditionalAttributes()
400 for (byte[] attribute : attributes) { in generateAdditionalAttributes()
401 System.arraycopy(attribute, 0, attributesBuffer, index, attribute.length); in generateAdditionalAttributes()
402 index += attribute.length; in generateAdditionalAttributes()
/tools/netsim/ui/dist/js/
Dpyramid-sprite.js92 …,d.prototype,"posZ",void 0),t([r({type:e,attribute:"color"})],d.prototype,"color",void 0),t([r({ty… property
Dcube-sprite.js106 …,a.prototype,"posZ",void 0),t([r({type:e,attribute:"color"})],a.prototype,"color",void 0),t([r({ty… property

123