Home
last modified time | relevance | path

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

1234

/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.kt255 override fun visitField(field: FieldItem) { in <lambda>()
256 checkField(field) in <lambda>()
257 checkType(field.type(), field) in <lambda>()
258 kotlinInterop.checkField(field) in <lambda>()
321 field: FieldItem in <lambda>()
323 val modifiers = field.modifiers in <lambda>()
325 checkConstantNames(field) in <lambda>()
326 checkActions(field) in <lambda>()
327 checkIntentExtras(field) in <lambda>()
329 checkProtected(field) in <lambda>()
[all …]
DAndroidApiChecks.kt59 override fun visitField(field: FieldItem) { in check()
60 if (field.name().contains("ACTION")) { in check()
61 checkIntentAction(field) in check()
63 checkVariable(field, null, "Field '" + field.name() + "'", field.type()) in check()
216 private fun checkIntentAction(field: FieldItem) { in checkIntentAction()
218 if (field.containingClass().qualifiedName().startsWith("android.support.")) { in checkIntentAction()
222 … val hasBehavior = field.modifiers.findAnnotation("android.annotation.BroadcastBehavior") != null in checkIntentAction()
223 … val hasSdkConstant = field.modifiers.findAnnotation("android.annotation.SdkConstant") != null in checkIntentAction()
225 val text = field.documentation in checkIntentAction()
232 Issues.BROADCAST_BEHAVIOR, field, in checkIntentAction()
[all …]
DDocAnalyzer.kt300 val field = if (resolved is FieldItem) in <lambda>() constant
311 if (field == null) { in <lambda>()
326 if (filterReference.test(field)) { in <lambda>()
405 val field = value.resolve() in <lambda>() constant
406 if (field is FieldItem) in <lambda>()
407 if (filterReference.test(field)) { in <lambda>()
417 sb.append(field.containingClass().qualifiedName() + "." + field.name()) in <lambda>()
433 val field = resolved as? FieldItem in <lambda>() constant
435 if (field == null) { in <lambda>()
442 if (filterReference.test(field)) { in <lambda>()
[all …]
DKotlinInteropChecks.kt59 override fun visitField(field: FieldItem) { in <lambda>()
60 checkField(field, isKotlin) in <lambda>()
65 fun checkField(field: FieldItem, isKotlin: Boolean = field.isKotlin()) { in <lambda>()
67 ensureCompanionFieldJvmField(field) in <lambda>()
69 ensureFieldNameNotKeyword(field) in <lambda>()
129 private fun ensureCompanionFieldJvmField(field: FieldItem) { in <lambda>()
130 val modifiers = field.modifiers in <lambda>()
135 val psi = field.psi() in <lambda>()
145 Issues.MISSING_JVMSTATIC, field, in <lambda>()
150 Issues.MISSING_JVMSTATIC, field, in <lambda>()
[all …]
DApiAnalyzer.kt630 override fun visitField(field: FieldItem) { in <lambda>()
631 if (field.modifiers.hasShowAnnotation()) { in <lambda>()
632 field.hidden = false in <lambda>()
633 ensureParentVisible(field) in <lambda>()
634 } else if (field.modifiers.hasHideAnnotations()) { in <lambda>()
635 field.hidden = true in <lambda>()
637 val containingClass = field.containingClass() in <lambda>()
645 field.hidden = true in <lambda>()
648 field.hidden = true in <lambda>()
651 field.docOnly = true in <lambda>()
[all …]
DDexApiWriter.kt67 override fun visitField(field: FieldItem) { in visitField()
68 val cls = field.containingClass() in visitField()
72 writer.print(field.name()) in visitField()
74 writer.print(field.type().internalName(field)) in visitField()
DSignatureWriter.kt88 override fun visitField(field: FieldItem) { in <lambda>()
89 val name = if (field.isEnumConstant()) "enum_constant" else "field" in <lambda>()
93 writeModifiers(field) in <lambda>()
94 writeType(field, field.type()) in <lambda>()
96 write(field.name()) in <lambda>()
97field.writeValueWithSemicolon(writer, allowDefaultValue = false, requireInitialValue = false) in <lambda>()
DJDiffXmlWriter.kt162 override fun visitField(field: FieldItem) { in <lambda>()
163 val modifiers = field.modifiers in <lambda>()
164 val initialValue = field.initialValue(true) in <lambda>()
170 writer.print(field.name()) in <lambda>()
172 writer.print(XmlUtils.toXmlAttributeValue(formatType(field.type()))) in <lambda>()
187 writer.print(deprecation(field)) in <lambda>()
191 if (field.isEnumConstant()) { in <lambda>()
/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.kt284 for (field in fields()) { in <lambda>() method
285 if (field.isEnumConstant()) { in <lambda>()
286 field.accept(visitor) in <lambda>()
289 for (field in fields()) { in <lambda>() method
290 if (!field.isEnumConstant()) { in <lambda>()
291 field.accept(visitor) in <lambda>()
295 for (field in fields()) { in <lambda>() method
296 field.accept(visitor) in <lambda>()
355 for (field in fields()) { in <lambda>() method
356 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/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt104 for (field in cls.filteredFields(filterReference, true).sortedBy { it.sortingRank }) { in <lambda>() variable
105 if (field.isEnumConstant()) { in <lambda>()
111 appendDocumentation(field, writer, docStubs) in <lambda>()
116 item = field, in <lambda>()
122 list = field.modifiers, in <lambda>()
127 writer.write(field.name()) in <lambda>()
387 override fun visitField(field: FieldItem) { in <lambda>()
389 if (field.isEnumConstant()) { in <lambda>()
395 appendDocumentation(field, writer, docStubs) in <lambda>()
396 appendModifiers(field, removeAbstract = false, removeFinal = false) in <lambda>()
[all …]
/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/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/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()
/tools/security/gdb/gdb_json_printer/gdb_json_printer/
Dprinters.py190 for field in self.value.type.fields():
191 if not field.is_base_class:
193 'field': field.name,
198 self.value[field.name], self.visited_addresses_and_types)
238 for field in self.value.type.fields():
239 if field.is_base_class:
241 'base_class': field.name,
246 self.value.cast(field.type),
/tools/treble/split/
Dmanifest_diff.py45 attributes: ChangeMap = dataclasses.field(default_factory=ChangeMap)
46 linkfiles: ChangeMap = dataclasses.field(default_factory=ChangeMap)
47 copyfiles: ChangeMap = dataclasses.field(default_factory=ChangeMap)
80 projects: ChangeMap = dataclasses.field(default_factory=ChangeMap)
81 remotes: ChangeMap = dataclasses.field(default_factory=ChangeMap)
82 other: ChangeMap = dataclasses.field(default_factory=ChangeMap)
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiFieldItemTest.kt28 val field = codebase.assertClass("Foo").fields().single() in <lambda>() constant
30 assertNotNull(field.property) in <lambda>()
31 assertSame(field, field.property?.backingField) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAddApisFromCodebase.kt136 override fun visitField(field: FieldItem) { in addApisFromCodebase()
137 if (field.isPrivate || field.isPackagePrivate) { in addApisFromCodebase()
141 currentClass?.addField(field.internalName(), apiLevel, field.deprecated) in addApisFromCodebase()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/
Dplot_utils.py72 TableColumn(field='a', title='Total Duration (s)'),
73 TableColumn(field='b', title='Average Current (mA)'),
74 TableColumn(field='c', title='Average Power (4.2v) (mW)'),
75 TableColumn(field='d', title='Average Energy (mW*s)'),
76 TableColumn(field='e', title='Normalized Average Energy (mA*s)')

1234