Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 91) sorted by relevance

1234

/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java105 Field field; field in OptionSetter.FieldDef
108 FieldDef(Object object, Field field, Object key) { in FieldDef() argument
110 this.field = field; in FieldDef()
123 Objects.equal(this.field, other.field) && in equals()
132 return Objects.hashCode(object, field, key); in hashCode()
206 private Handler getHandlerOrTimeVal(Field field, Object optionSource) in getHandlerOrTimeVal() argument
209 final Option option = field.getAnnotation(Option.class); in getHandlerOrTimeVal()
215 field.getName(), optionSource.getClass().getName())); in getHandlerOrTimeVal()
218 final Type type = field.getGenericType(); in getHandlerOrTimeVal()
236 "incompatible type %s.", field.getName(), field.getGenericType())); in getHandlerOrTimeVal()
[all …]
DDynamicRemoteFileResolver.java139 final Field field = fieldEntry.getValue(); in validateRemoteFilePath() local
140 final Option option = field.getAnnotation(Option.class); in validateRemoteFilePath()
145 field.setAccessible(true); in validateRemoteFilePath()
148 value = field.get(obj); in validateRemoteFilePath()
158 if (fieldSeen.get(field) != null && fieldSeen.get(field).equals(obj)) { in validateRemoteFilePath()
162 fieldSeen.put(field, obj); in validateRemoteFilePath()
180 field.set(obj, downloadedFile); in validateRemoteFilePath()
DArgsOptionParser.java450 for (Field field : optionFields) { in getOptionHelp()
451 final Option option = field.getAnnotation(Option.class); in getOptionHelp()
452 String defaultValue = OptionSetter.getFieldValueAsString(field, optionObject); in getOptionHelp()
453 String optionNameHelp = buildOptionNameHelp(field, option); in getOptionHelp()
473 out.append(OptionSetter.getEnumFieldValuesAsString(field)); in getOptionHelp()
513 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp() argument
523 if (OptionSetter.isBooleanField(field)) { in buildOptionNameHelp()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DOptionSetter.java157 void addField(String name, Object source, Field field) throws ConfigurationException { in addField() argument
160 Handler newFieldHandler = getHandler(field.getGenericType()); in addField()
169 if (mSourceFieldMap.put(source, field) != null) { in addField()
250 Field field = fieldEntry.getValue(); in setOptionValue() local
251 Handler handler = getHandler(field.getGenericType()); in setOptionValue()
254 final String type = field.getType().getSimpleName(); in setOptionValue()
259 setFieldValue(optionName, optionSource, field, value); in setOptionValue()
273 static void setFieldValue(String optionName, Object optionSource, Field field, Object value) in setFieldValue() argument
276 field.setAccessible(true); in setFieldValue()
277 if (Collection.class.isAssignableFrom(field.getType())) { in setFieldValue()
[all …]
DArgsOptionParser.java336 for (Field field : optionFields) { in getOptionHelp()
337 final Option option = field.getAnnotation(Option.class); in getOptionHelp()
338 String defaultValue = OptionSetter.getFieldValueAsString(field, optionObject); in getOptionHelp()
339 String optionNameHelp = buildOptionNameHelp(field, option); in getOptionHelp()
359 out.append(OptionSetter.getEnumFieldValuesAsString(field)); in getOptionHelp()
397 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp() argument
407 if (OptionSetter.isBooleanField(field)) { in buildOptionNameHelp()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt277 override fun visitField(field: FieldItem) { in <lambda>()
278 checkField(field) in <lambda>()
279 checkType(field.type(), field) in <lambda>()
280 kotlinInterop.checkField(field) in <lambda>()
344 field: FieldItem in <lambda>()
346 val modifiers = field.modifiers in <lambda>()
348 checkConstantNames(field) in <lambda>()
349 checkActions(field) in <lambda>()
350 checkIntentExtras(field) in <lambda>()
352 checkProtected(field) in <lambda>()
[all …]
DDocAnalyzer.kt316 val field = if (resolved is FieldItem) in <lambda>() constant
327 if (field == null) { in <lambda>()
342 if (filterReference.test(field)) { in <lambda>()
421 val field = value.resolve() in <lambda>() constant
422 if (field is FieldItem) in <lambda>()
423 if (filterReference.test(field)) { in <lambda>()
433 sb.append(field.containingClass().qualifiedName() + "." + field.name()) in <lambda>()
449 val field = resolved as? FieldItem in <lambda>() constant
451 if (field == null) { in <lambda>()
458 if (filterReference.test(field)) { in <lambda>()
[all …]
DAndroidApiChecks.kt60 override fun visitField(field: FieldItem) { in check()
61 if (field.name().contains("ACTION")) { in check()
62 checkIntentAction(field) in check()
64 checkVariable(field, null, "Field '" + field.name() + "'", field.type()) in check()
213 private fun checkIntentAction(field: FieldItem) { in checkIntentAction()
215 if (field.containingClass().qualifiedName().startsWith("android.support.")) { in checkIntentAction()
219 … val hasBehavior = field.modifiers.findAnnotation("android.annotation.BroadcastBehavior") != null in checkIntentAction()
220 … val hasSdkConstant = field.modifiers.findAnnotation("android.annotation.SdkConstant") != null in checkIntentAction()
222 val text = field.documentation in checkIntentAction()
229 Issues.BROADCAST_BEHAVIOR, field, in checkIntentAction()
[all …]
DApiAnalyzer.kt631 override fun visitField(field: FieldItem) { in <lambda>()
632 if (field.modifiers.hasShowAnnotation()) { in <lambda>()
633 field.hidden = false in <lambda>()
634 ensureParentVisible(field) in <lambda>()
635 } else if (field.modifiers.hasHideAnnotations()) { in <lambda>()
636 field.hidden = true in <lambda>()
638 val containingClass = field.containingClass() in <lambda>()
646 field.hidden = true in <lambda>()
649 field.hidden = true in <lambda>()
652 field.docOnly = true in <lambda>()
[all …]
DKotlinInteropChecks.kt60 override fun visitField(field: FieldItem) { in <lambda>()
61 checkField(field, isKotlin) in <lambda>()
66 fun checkField(field: FieldItem, isKotlin: Boolean = field.isKotlin()) { in <lambda>()
68 ensureCompanionFieldJvmField(field) in <lambda>()
70 ensureFieldNameNotKeyword(field) in <lambda>()
128 private fun ensureCompanionFieldJvmField(field: FieldItem) { in <lambda>()
129 val modifiers = field.modifiers in <lambda>()
134 val psi = field.psi() in <lambda>()
144 Issues.MISSING_JVMSTATIC, field, in <lambda>()
149 Issues.MISSING_JVMSTATIC, field, in <lambda>()
[all …]
DJDiffXmlWriter.kt192 override fun visitField(field: FieldItem) { in <lambda>()
193 if (field.isEnumConstant() && compatibility.xmlSkipEnumFields) { in <lambda>()
197 val modifiers = field.modifiers in <lambda>()
198 val initialValue = field.initialValue(true) in <lambda>()
208 writer.print(field.name()) in <lambda>()
210 writer.print(escapeAttributeValue(formatType(field.type()))) in <lambda>()
218 } else if (compatibility.xmlShowArrayFieldsAsNull && (field.type().isArray())) { in <lambda>()
227 writer.print(deprecation(field)) in <lambda>()
231 if (field.isEnumConstant()) { in <lambda>()
DSignatureWriter.kt77 override fun visitField(field: FieldItem) { in <lambda>()
78 if (compatibility.skipInheritedConstants && field.inheritedField) { in <lambda>()
82 val name = if (field.isEnumConstant()) "enum_constant" else "field" in <lambda>()
86 writeModifiers(field) in <lambda>()
87 writeType(field, field.type()) in <lambda>()
89 writer.print(field.name()) in <lambda>()
90field.writeValueWithSemicolon(writer, allowDefaultValue = false, requireInitialValue = false) in <lambda>()
DBaseline.kt303 if (field != null) { in <lambda>()
304 … throw DriverException("Only one baseline is allowed; found both $field and $value") in <lambda>()
306 field = value in <lambda>()
312 if (field != null) { in <lambda>()
313 … throw DriverException("Only one update-baseline is allowed; found both $field and $value") in <lambda>()
315 field = value in <lambda>()
DAnnotationStatistics.kt100 override fun visitField(field: FieldItem) { in <lambda>()
102 if (!field.requiresNullnessInfo()) { in <lambda>()
106 if (field.hasNullnessInfo()) { in <lambda>()
452 val field = instruction as FieldInsnNode in <lambda>() constant
453 if (skipJava && isSkippableOwner(field.owner)) { in <lambda>()
456 val item = api.findField(field, apiFilter) in <lambda>()
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt85 adding a "scope" field to multicast addresses. And a new type
214 Traffic Class 8-bit traffic class field. See section 7.
237 same values as the IPv4 Protocol field [RFC-1700
294 more extension headers, each identified by the Next Header field of
323 identified in the Destination Address field of the IPv6 header.
324 There, normal demultiplexing on the Next Header field of the IPv6
348 is indicated by the value zero in the Next Header field of the IPv6
356 and the ICMP Pointer field containing the offset of the unrecognized
405 that appears in the IPv6 Destination Address field
469 Data field of this option, in octets.
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java182 for (AnnotatedField field : fields) { in parseChoice()
184 field.setValueFrom(dataValue, obj); in parseChoice()
208 for (AnnotatedField field : fields) { in parseSequence()
210 && (lastField.getAnnotation().index() == field.getAnnotation().index())) { in parseSequence()
214 + " and ." + field.getField().getName()); in parseSequence()
216 lastField = field; in parseSequence()
249 AnnotatedField field = fields.get(i); in parseSequence() local
251 if (field.isOptional()) { in parseSequence()
255 field.setValueFrom(dataValue, t); in parseSequence()
266 field.setValueFrom(dataValue, t); in parseSequence()
[all …]
DAsn1DerEncoder.java85 for (AnnotatedField field : fields) { in toChoice()
86 Object fieldValue = getMemberFieldValue(container, field.getField()); in toChoice()
92 + ", " + field.getField().getName()); in toChoice()
94 resultField = field; in toChoice()
118 for (AnnotatedField field : fields) { in toSequence()
120 && (lastField.getAnnotation().index() == field.getAnnotation().index())) { in toSequence()
124 + " and ." + field.getField().getName()); in toSequence()
126 lastField = field; in toSequence()
132 for (AnnotatedField field : fields) { in toSequence()
135 serializedField = field.toDer(); in toSequence()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt271 for (field in fields()) { in <lambda>() method
272 if (field.isEnumConstant()) { in <lambda>()
273 field.accept(visitor) in <lambda>()
276 for (field in fields()) { in <lambda>() method
277 if (!field.isEnumConstant()) { in <lambda>()
278 field.accept(visitor) in <lambda>()
282 for (field in fields()) { in <lambda>() method
283 field.accept(visitor) in <lambda>()
342 for (field in fields()) { in <lambda>() method
343 field.acceptTypes(visitor) in <lambda>()
[all …]
DCodebase.kt239 val field = cls.findField(node.name) in <lambda>() constant
240 return if (field != null && apiFilter.test(field)) { in <lambda>()
241 field in <lambda>()
249 val field = cls.findField(node.name) in <lambda>() constant
250 return if (field != null && apiFilter.test(field)) { in <lambda>()
251 field in <lambda>()
/tools/repohooks/rh/
Dhooks.py364 field = 'Bug'
365 regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,)
369 raise ValueError('commit msg %s check takes no options' % (field,))
378 'following case-sensitive regex:\n\n %s') % (field, regex)
382 return [rh.results.HookResult('commit msg: "%s:" check' % (field,),
388 field = 'Change-Id'
389 regex = r'^%s: I[a-f0-9]+$' % (field,)
393 raise ValueError('commit msg %s check takes no options' % (field,))
402 'following case-sensitive regex:\n\n %s') % (field, regex)
405 'one.') % (field,)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto77 // This field contains optional information about the original source code.
78 // You may safely remove this entire field without harming runtime
92 repeated FieldDescriptorProto field = 2; field
109 // Describes a field within a message.
175 // list. This field is a member of that oneof. Extensions of a oneof should
177 // on the extension range containing the extension's field number.
240 // store the values in them. Instead it stores them in a field in the *Options
241 // message called uninterpreted_option. This field must have the same name
242 // across all *Options messages. We then use this field to populate the
248 // organization, or for experimental options, use field numbers 50000
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt106 for (field in cls.filteredFields(filterReference, true).sortedBy { it.sortingRank }) { in <lambda>() variable
107 if (field.isEnumConstant()) { in <lambda>()
113 appendDocumentation(field, writer, docStubs) in <lambda>()
118 item = field, in <lambda>()
124 list = field.modifiers, in <lambda>()
129 writer.write(field.name()) in <lambda>()
392 override fun visitField(field: FieldItem) { in <lambda>()
394 if (field.isEnumConstant()) { in <lambda>()
400 appendDocumentation(field, writer, docStubs) in <lambda>()
401 appendModifiers(field, removeAbstract = false, removeFinal = false) in <lambda>()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dnanopb.proto14 FT_DEFAULT = 0; // Automatically decide field type, generate static field if possible.
15 FT_CALLBACK = 1; // Always generate a callback field.
16 FT_POINTER = 4; // Always generate a dynamically allocated field.
17 FT_STATIC = 2; // Generate a static field or raise an exception if not possible.
18 FT_IGNORE = 3; // Ignore the field completely.
30 // a field. When it is used in message or file scope, it applies to all
43 // Force type of field (callback or static allocation)
Dapollo_qa.proto4 old message/field/enum & start using new one. If deprecated message
6 c) Prefer 3-stage migrations if possible: add new message/enum/field & start
7 sending it, make sure QA has switched to new message/enum/field, remove old
8 message/enum/field.
11 field to be optional) or removed. Make sure to never re-use field ids unless
12 the field is being resurrected.
92 // all messages should have a timestamp field and it will get auto-populated
/tools/asuite/asuite_plugin/src/test/unittests/
DCommandRunnerTest.java44 Field field = lsCommand.getClass().getDeclaredField("mCommand"); in testCommandRunnerByLs() local
45 field.setAccessible(true); in testCommandRunnerByLs()
46 GeneralCommandLine commandLine = (GeneralCommandLine) field.get(lsCommand); in testCommandRunnerByLs()
55 Field field = lsCommand.getClass().getDeclaredField("mCommand"); in testCommandRunnerByTarget() local
56 field.setAccessible(true); in testCommandRunnerByTarget()
57 GeneralCommandLine commandLine = (GeneralCommandLine) field.get(lsCommand); in testCommandRunnerByTarget()

1234