Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java205 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(holder.startTime)); in writeResults()
206 serializer.attribute(NS, END_TIME_ATTR, String.valueOf(holder.endTime)); in writeResults()
207 serializer.attribute(NS, START_DISPLAY_TIME_ATTR, toReadableDateString(holder.startTime)); in writeResults()
208 serializer.attribute(NS, END_DISPLAY_TIME_ATTR, toReadableDateString(holder.endTime)); in writeResults()
209 serializer.attribute( in writeResults()
229 serializer.attribute(NS, DEVICES_ATTR, deviceList); in writeResults()
237 serializer.attribute(NS, HOST_NAME_ATTR, hostName); in writeResults()
238 serializer.attribute(NS, OS_NAME_ATTR, System.getProperty("os.name")); in writeResults()
239 serializer.attribute(NS, OS_VERSION_ATTR, System.getProperty("os.version")); in writeResults()
240 serializer.attribute(NS, OS_ARCH_ATTR, System.getProperty("os.arch")); in writeResults()
[all …]
/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.java64 public void setAttribute(String attribute, Object value) throws IllegalArgumentException { in setAttribute() argument
65 if(ATTRIBUTES.contains(attribute)) { in setAttribute()
66 if (TYPES.get(attribute).isAssignableFrom(value.getClass())) { in setAttribute()
67 super.setAttribute(attribute, value); in setAttribute()
70 "Invalid attribute type for " + attribute + in setAttribute()
72 " expected " + TYPES.get(attribute).getCanonicalName()); in setAttribute()
75 throw new IllegalArgumentException("Invalid attribute key: " + attribute); in setAttribute()
81 public Object getAttribute(String attribute) throws IllegalArgumentException { in getAttribute() argument
82 return super.getAttribute(attribute); in getAttribute()
DTopItem.java55 for (String attribute : ATTRIBUTES) { in TopItem()
56 setAttribute(attribute, 0); in TopItem()
/tools/tradefederation/core/src/com/android/tradefed/result/
DMetricsXMLResultReporter.java130 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printRunResults()
131 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printRunResults()
132 serializer.attribute(NS, ATTR_FAILURES, Integer.toString(getNumAllFailedTests())); in printRunResults()
133 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printRunResults()
134 serializer.attribute(NS, ATTR_TIMESTAMP, timestamp); in printRunResults()
151 serializer.attribute(NS, ATTR_TESTNAME, testId.getTestName()); in printTestResults()
152 serializer.attribute(NS, ATTR_CLASSNAME, testId.getClassName()); in printTestResults()
154 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printTestResults()
173 serializer.attribute(NS, ATTR_NAME, key); in printRunMetrics()
174 serializer.attribute(NS, ATTR_VALUE, metrics.get(key)); in printRunMetrics()
[all …]
DXmlResultReporter.java151 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printTestResults()
152 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printTestResults()
153 serializer.attribute( in printTestResults()
155 serializer.attribute(NS, ATTR_ERRORS, "0"); in printTestResults()
156 serializer.attribute(NS, ATTR_TIME, Long.toString(elapsedTime)); in printTestResults()
157 serializer.attribute(NS, TIMESTAMP, timestamp); in printTestResults()
158 serializer.attribute(NS, HOSTNAME, "localhost"); in printTestResults()
177 serializer.attribute(NS, ATTR_NAME, testId.getTestName()); in print()
178 serializer.attribute(NS, ATTR_CLASSNAME, testId.getClassName()); in print()
179 serializer.attribute(NS, ATTR_TIME, "0"); in print()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTextBackedAnnotationItemTest.kt76 val attribute = annotation.findAttribute("value") in testIntDef() constant
77 assertNotNull(attribute) in testIntDef()
78 assertEquals("value", attribute?.name) in testIntDef()
84 assertTrue(attribute?.value is AnnotationArrayAttributeValue) in testIntDef()
85 if (attribute is AnnotationArrayAttributeValue) { in testIntDef()
86 val list = attribute.values in testIntDef()
/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.py150 attribute: None for attribute in _DEVICE_ATTRIBUTES}
156 attribute: match.group(attribute) if match.group(attribute)
157 else None for attribute in _DEVICE_ATTRIBUTES}
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java126 serializer.attribute(null, "type", classTypeName); in dumpClassToXml()
127 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml()
132 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml()
222 serializer.attribute(null, NAME_NAME, name); in dumpOptionToXml()
224 serializer.attribute(null, KEY_NAME, key); in dumpOptionToXml()
226 serializer.attribute(null, VALUE_NAME, value); in dumpOptionToXml()
/tools/repohooks/tools/
Dpylintrc96 exception-message-attribute,
356 # Regular expression matching correct attribute names
359 # Naming hint for attribute names
368 # Regular expression matching correct class attribute names
369 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
371 # Naming hint for class attribute names
372 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt286 for (attribute in annotation.attributes()) { in <lambda>() variable
287 when (attribute.name) { in <lambda>()
289 values = attribute.leafValues() in <lambda>()
293 values = attribute.leafValues() in <lambda>()
296 conditional = attribute.value.value() == true in <lambda>()
DAnnotationFilter.kt95 for (attribute in filter.attributes) { in annotationsMatch() method
96 val existingValue = existingAnnotation.findAttribute(attribute.name)?.value?.toSource() in annotationsMatch()
97 if (existingValue != attribute.value.toSource()) { in annotationsMatch()
DApiAnalyzer.kt696 for (attribute in annotation.attributes()) { in <lambda>() variable
699 when (attribute.name) { in <lambda>()
701 values = attribute.leafValues() in <lambda>()
705 values = attribute.leafValues() in <lambda>()
DAndroidApiChecks.kt180 for (attribute in annotation.attributes()) { in checkRequiresPermission() constant
182 when (attribute.name) { in checkRequiresPermission()
184 values = attribute.leafValues() in checkRequiresPermission()
DKotlinInteropChecks.kt104 for (attribute in annotation.attributes()) { in <lambda>() constant
105 for (v in attribute.leafValues()) { in <lambda>()
/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/src/main/java/com/android/tools/metalava/apilevels/
DApiElement.java208 private static String encodeAttribute(String attribute) { in encodeAttribute() argument
210 int n = attribute.length(); in encodeAttribute()
214 char c = attribute.charAt(i); in encodeAttribute()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt165 for (attribute in attributes) { in <lambda>() variable
171 sb.append(attribute.first ?: SdkConstants.ATTR_VALUE) in <lambda>()
173 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
DPsiAnnotationItem.kt180 for (attribute in attributes) { in <lambda>() variable
186 sb.append(attribute.first ?: ATTR_VALUE) in <lambda>()
188 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java431 ByteBuffer attribute = in parseSigner() local
433 int id = attribute.getInt(); in parseSigner()
434 byte[] value = ByteBufferUtils.toByteArray(attribute); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java490 ByteBuffer attribute = in parseSigner() local
492 int id = attribute.getInt(); in parseSigner()
493 byte[] value = ByteBufferUtils.toByteArray(attribute); in parseSigner()
/tools/apksig/src/test/java/com/android/apksig/
DSigningCertificateLineageTest.java254 ByteBuffer attribute = ApkSigningBlockUtils.getLengthPrefixedSlice(v3SignerAttribute); in testLineageFromV3SignerAttribute() local
257 int id = attribute.getInt(); in testLineageFromV3SignerAttribute()
263 ByteBufferUtils.toByteArray(attribute)); in testLineageFromV3SignerAttribute()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java264 ByteBuffer attribute = getLengthPrefixedSlice(additionalAttributes); in readFromSignedData() local
265 int id = attribute.getInt(); in readFromSignedData()
267 byte[] value = ByteBufferUtils.toByteArray(attribute); in readFromSignedData()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtil2Test.java29 import java.nio.file.attribute.PosixFilePermission;
30 import java.nio.file.attribute.PosixFilePermissions;

12