/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | OptionSetter.java | 99 Field field; field in OptionSetter.FieldDef 102 FieldDef(Object object, Field field, Object key) { in FieldDef() argument 104 this.field = field; in FieldDef() 117 Objects.equal(this.field, other.field) && in equals() 126 return Objects.hashCode(object, field, key); in hashCode() 200 private Handler getHandlerOrTimeVal(Field field, Object optionSource) in getHandlerOrTimeVal() argument 203 final Option option = field.getAnnotation(Option.class); in getHandlerOrTimeVal() 209 field.getName(), optionSource.getClass().getName())); in getHandlerOrTimeVal() 212 final Type type = field.getGenericType(); in getHandlerOrTimeVal() 230 "incompatible type %s.", field.getName(), field.getGenericType())); in getHandlerOrTimeVal() [all …]
|
D | OptionCopier.java | 75 for (Field field : destFields) { in getFieldOptionMap() 76 Option o = field.getAnnotation(Option.class); in getFieldOptionMap() 77 fieldMap.put(o.name(), field); in getFieldOptionMap() local
|
D | Configuration.java | 529 for (FieldDef field : affectedFields) { in internalInjectOptionValue() 531 if (!Collection.class.isAssignableFrom(field.field.getType()) && in internalInjectOptionValue() 532 !MultiMap.class.isAssignableFrom(field.field.getType())) { in internalInjectOptionValue() 533 mFieldSources.remove(field); in internalInjectOptionValue() 535 mFieldSources.put(field, source); in internalInjectOptionValue() 1036 private JSONObject getOptionJson(Object optionObject, Field field) throws JSONException { in getOptionJson() argument 1041 Option option = field.getAnnotation(Option.class); in getOptionJson() 1053 Type fieldType = field.getGenericType(); in getOptionJson() 1063 field.getType().getName(), Joiner.on(", ").join(paramStrings))); in getOptionJson() 1065 jsonOption.put("javaClass", field.getType().getName()); in getOptionJson() [all …]
|
D | ArgsOptionParser.java | 450 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()
|
D | ConfigurationUtil.java | 99 for (Field field : OptionSetter.getOptionFieldsForClass(obj.getClass())) { in dumpOptionsToXml() 100 Option option = field.getAnnotation(Option.class); in dumpOptionsToXml() 101 Object fieldVal = OptionSetter.getFieldValue(field, obj); in dumpOptionsToXml()
|
/tools/loganalysis/src/com/android/loganalysis/util/config/ |
D | OptionSetter.java | 157 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 …]
|
D | ArgsOptionParser.java | 336 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()
|
D | OptionUpdateRule.java | 99 public Object update(String optionName, Object optionSource, Field field, Object update) in update() argument 103 current = field.get(optionSource); in update()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | AndroidApiChecks.kt | 61 override fun visitField(field: FieldItem) { in check() 62 if (field.name().contains("ACTION")) { in check() 63 checkIntentAction(field) in check() 65 checkVariable(field, null, "Field '" + field.name() + "'", field.type()) in check() 214 private fun checkIntentAction(field: FieldItem) { in checkIntentAction() 216 if (field.containingClass().qualifiedName().startsWith("android.support.")) { in checkIntentAction() 220 … val hasBehavior = field.modifiers.findAnnotation("android.annotation.BroadcastBehavior") != null in checkIntentAction() 221 … val hasSdkConstant = field.modifiers.findAnnotation("android.annotation.SdkConstant") != null in checkIntentAction() 223 val text = field.documentation in checkIntentAction() 230 Errors.BROADCAST_BEHAVIOR, field, in checkIntentAction() [all …]
|
D | DexApiWriter.kt | 68 override fun visitField(field: FieldItem) { in visitField() 69 val cls = field.containingClass() in visitField() 73 writer.print(field.name()) in visitField() 75 writer.print(field.type().internalName()) in visitField()
|
D | ProguardWriter.kt | 101 override fun visitField(field: FieldItem) { in visitField() 104 val modifiers = field.modifiers in visitField() 121 writer.print(getCleanTypeName(field.type())) in visitField() 124 writer.print(field.name()) in visitField()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 182 for (AnnotatedField field : fields) { in parseChoice() 184 field.setValueFrom(dataValue, obj); in parseChoice() 203 for (AnnotatedField field : fields) { in parseSequence() 205 && (lastField.getAnnotation().index() == field.getAnnotation().index())) { in parseSequence() 209 + " and ." + field.getField().getName()); in parseSequence() 211 lastField = field; in parseSequence() 238 AnnotatedField field = fields.get(i); in parseSequence() local 240 if (field.isOptional()) { in parseSequence() 244 field.setValueFrom(dataValue, t); in parseSequence() 255 field.setValueFrom(dataValue, t); in parseSequence() [all …]
|
D | Asn1DerEncoder.java | 82 for (AnnotatedField field : fields) { in toChoice() 83 Object fieldValue = getMemberFieldValue(container, field.getField()); in toChoice() 89 + ", " + field.getField().getName()); in toChoice() 91 resultField = field; in toChoice() 110 for (AnnotatedField field : fields) { in toSequence() 112 && (lastField.getAnnotation().index() == field.getAnnotation().index())) { in toSequence() 116 + " and ." + field.getField().getName()); in toSequence() 118 lastField = field; in toSequence() 123 for (AnnotatedField field : fields) { in toSequence() 126 serializedField = field.toDer(); in toSequence() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiFieldItem.kt | 120 val field = PsiFieldItem( in toString() constant 131 field.modifiers.setOwner(field) in toString() 132 return field in toString() 136 val field = PsiFieldItem( in toString() constant 147 field.modifiers.setOwner(field) in toString() 148 return field in toString()
|
/tools/repohooks/rh/ |
D | hooks.py | 330 field = 'Bug' 331 regex = r'^%s: (None|[0-9]+(, [0-9]+)*)$' % (field,) 335 raise ValueError('commit msg %s check takes no options' % (field,)) 344 '%s') % (field, regex) 348 return [rh.results.HookResult('commit msg: "%s:" check' % (field,), 354 field = 'Change-Id' 355 regex = r'^%s: I[a-f0-9]+$' % (field,) 359 raise ValueError('commit msg %s check takes no options' % (field,)) 368 '%s') % (field, regex) 371 'one.') % (field,) [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | AddApisFromCodebase.kt | 74 override fun visitField(field: FieldItem) { in addApisFromCodebase() 77 if (field.isCloned()) { in addApisFromCodebase() 80 currentClass?.addField(field.internalName(), apiLevel, field.deprecated) in addApisFromCodebase()
|
D | AndroidJarReader.java | 147 for (Object field : classNode.fields) { in readJar() 148 FieldNode fieldNode = (FieldNode) field; in readJar()
|
/tools/apkzlib/src/test/resources/testData/packaging/text-files/ |
D | rfc2460.txt | 85 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/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextClassItem.kt | 193 fun addField(field: TextFieldItem) { in addField() 194 fields += field in addField() 197 fun addEnumConstant(field: TextFieldItem) { in addEnumConstant() 198 field.setEnumConstant(true) in addEnumConstant() 199 fields += field in addEnumConstant()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationTest.java | 461 JSONObject field = options.getJSONObject(j); in testGetJsonCommandUsage() local 465 assertTrue("Option field does not have a 'name' value", field.has("name")); in testGetJsonCommandUsage() 467 field.has("description")); in testGetJsonCommandUsage() 469 field.has("mandatory")); in testGetJsonCommandUsage() 471 field.has("javaClass")); in testGetJsonCommandUsage() 473 field.has("updateRule")); in testGetJsonCommandUsage() 495 JSONObject field = options.getJSONObject(i); in testGetJsonCommandUsage() local 497 if (OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage() 499 jsonOptionField = field; in testGetJsonCommandUsage() 500 } else if (ALT_OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/ |
D | ItemVisitor.kt | 61 open fun visitField(field: FieldItem) {} in visitField() 75 open fun afterVisitField(field: FieldItem) {} in afterVisitField()
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_power_test_utils.py | 93 TableColumn(field='z0', title='Total Duration (s)'), 94 TableColumn(field='y0', title='Average Current (mA)'), 95 TableColumn(field='x0', title='Average Power (4.2v) (mW)'), 96 TableColumn(field='z1', title='Average Energy (mW*s)'), 97 TableColumn(field='z2', title='Normalized Average Energy (mA*s)')
|
/tools/tradefederation/core/atest/docs/ |
D | develop_test_finders.md | 14 a data field to hold misc bits like filters and extra args for the test. The 48 field as a dict. Check out ```ExampleFinder``` to see how the data field is
|
/tools/dexter/dexter/ |
D | dissasembler.cc | 204 bool PrintCodeIrVisitor::Visit(lir::Field* field) { in Visit() argument 205 SLICER_CHECK(field->index != dex::kNoIndex); in Visit() 206 auto ir_field = field->ir_field; in Visit()
|
/tools/acloud/internal/proto/ |
D | internal_config.proto | 20 // Each field should match a field in user_config.UserConfig.
|