Home
last modified time | relevance | path

Searched refs:Field (Results 1 – 25 of 36) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionCopier.java21 import java.lang.reflect.Field;
41 Collection<Field> origFields = OptionSetter.getOptionFieldsForClass(origObject.getClass()); in copyOptions()
42 Map<String, Field> destFieldMap = getFieldOptionMap(destObject); in copyOptions()
43 for (Field origField : origFields) { in copyOptions()
45 Field destField = destFieldMap.remove(option.name()); in copyOptions()
65 Collection<Field> origFields = OptionSetter.getOptionFieldsForClass(origObject.getClass()); in copyOptions()
66 Map<String, Field> destFieldMap = getFieldOptionMap(destObject); in copyOptions()
67 for (Field origField : origFields) { in copyOptions()
70 Field destField = destFieldMap.remove(option.name()); in copyOptions()
109 private static Map<String, Field> getFieldOptionMap(Object destObject) { in getFieldOptionMap()
[all …]
DOptionSetter.java31 import java.lang.reflect.Field;
107 Field field;
110 FieldDef(Object object, Field field, Object key) { in FieldDef()
208 private Handler getHandlerOrTimeVal(Field field, Object optionSource) in getHandlerOrTimeVal()
257 protected class OptionFieldsForName implements Iterable<Map.Entry<Object, Field>> {
259 private Map<Object, Field> mSourceFieldMap = new LinkedHashMap<Object, Field>();
261 void addField(String name, Object source, Field field) throws ConfigurationException { in addField()
285 public Field getFirstField() throws ConfigurationException { in getFirstField()
302 public Iterator<Map.Entry<Object, Field>> iterator() { in iterator()
390 for (Map.Entry<Object, Field> fieldEntry : optionFields) { in setOptionValue()
[all …]
DArgsOptionParser.java24 import java.lang.reflect.Field;
496 Collection<Field> optionFields = OptionSetter.getOptionFieldsForClass( in getOptionHelp()
499 for (Field field : optionFields) { in getOptionHelp()
561 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp()
DDynamicRemoteFileResolver.java46 import java.lang.reflect.Field;
161 Map<Field, Object> fieldSeen = new HashMap<>(); in validateRemoteFilePath()
164 for (Map.Entry<Object, Field> fieldEntry : optionFields) { in validateRemoteFilePath()
170 final Field field = fieldEntry.getValue(); in validateRemoteFilePath()
DConfigurationUtil.java28 import java.lang.reflect.Field;
171 for (Field field : OptionSetter.getOptionFieldsForClass(obj.getClass())) { in dumpOptionsToXml()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java43 public enum Field { enum in GameCoreConfigurationXmlParser
65 Field(String tag, String defaultValue) { in Field() method in GameCoreConfigurationXmlParser.Field
132 getElement(element, Field.NAME), in createCertificationRequirements()
133 Float.parseFloat(getElement(element, Field.TARGET_FRAME_TIME)), in createCertificationRequirements()
134 Float.parseFloat(getElement(element, Field.MAX_JANK_RATE)), in createCertificationRequirements()
135 Integer.parseInt(getElement(element, Field.MAX_LOAD_TIME))); in createCertificationRequirements()
146 List<ApkInfo.Argument> args = parseList(element, Field.ARGS.getTag(), this::createArgument); in createApkInfo()
152 getElement(element, Field.NAME), in createApkInfo()
153 getElement(element, Field.FILE_NAME), in createApkInfo()
154 getElement(element, Field.PACKAGE_NAME), in createApkInfo()
[all …]
DApkInfo.java19 import com.android.game.qualification.GameCoreConfigurationXmlParser.Field;
84 checkNotNull(name, Field.NAME.getTag()); in ApkInfo()
85 checkNotNull(fileName, Field.FILE_NAME.getTag()); in ApkInfo()
86 checkNotNull(packageName, Field.PACKAGE_NAME.getTag()); in ApkInfo()
87 checkNotNull(layerName, Field.LAYER_NAME.getTag()); in ApkInfo()
DCertificationRequirements.java18 import com.android.game.qualification.GameCoreConfigurationXmlParser.Field;
31 checkNotNull(name, Field.NAME.getTag()); in CertificationRequirements()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DOptionSetter.java23 import java.lang.reflect.Field;
153 private class OptionFieldsForName implements Iterable<Map.Entry<Object, Field>> {
155 private Map<Object, Field> mSourceFieldMap = new HashMap<Object, Field>();
157 void addField(String name, Object source, Field field) throws ConfigurationException { in addField()
180 public Field getFirstField() throws ConfigurationException { in getFirstField()
197 public Iterator<Map.Entry<Object, Field>> iterator() { in iterator()
247 for (Map.Entry<Object, Field> fieldEntry : optionFields) { in setOptionValue()
250 Field field = fieldEntry.getValue(); in setOptionValue()
273 static void setFieldValue(String optionName, Object optionSource, Field field, Object value) in setFieldValue()
340 for (Map.Entry<Object, Field> fieldEntry : optionFields) { in setOptionMapValue()
[all …]
DArgsOptionParser.java20 import java.lang.reflect.Field;
333 Collection<Field> optionFields = OptionSetter.getOptionFieldsForClass( in getOptionHelp()
336 for (Field field : optionFields) { in getOptionHelp()
397 private static String buildOptionNameHelp(Field field, final Option option) { in buildOptionNameHelp()
DOptionUpdateRule.java19 import java.lang.reflect.Field;
99 public Object update(String optionName, Object optionSource, Field field, Object update) in update()
/tools/metalava/metalava-model/src/testFixtures/java/com/android/tools/metalava/model/junit4/
DCustomizableParameterizedRunner.kt20 import java.lang.reflect.Field
257 operator fun <T, V> Field.getValue(thisRef: T, property: KProperty<*>): V { in getValue()
262 operator fun <T, V> Field.setValue(thisRef: T, property: KProperty<*>, value: V) { in setValue()
333 private fun getSettableField(name: String): Field { in fakeArguments()
344 private fun getModifiersField(): Field { in fakeArguments()
349 val fields = getDeclaredFields0.invoke(Field::class.java, false) as Array<Field> in fakeArguments()
/tools/asuite/asuite_plugin/src/test/unittests/
DCommandRunnerTest.java28 import java.lang.reflect.Field;
44 Field field = lsCommand.getClass().getDeclaredField("mCommand"); in testCommandRunnerByLs()
55 Field field = lsCommand.getClass().getDeclaredField("mCommand"); in testCommandRunnerByTarget()
/tools/platform-compat/java/com/android/class2nonsdklist/
DMemberDumpingVisitor.java9 import org.apache.bcel.classfile.Field;
42 public void visitField(Field field) { in visitField()
/tools/tradefederation/core/src/com/android/tradefed/config/filter/
DCommandOptionsGetter.java32 import java.lang.reflect.Field;
104 Collection<Field> allFields = OptionSetter.getOptionFieldsForClass( in findOptionsForObject()
107 for (Field field : allFields) { in findOptionsForObject()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java26 import java.lang.reflect.Field;
333 private static Class<?> getElementType(Field field) in getElementType()
351 private final Field mField;
360 public AnnotatedField(Field field, Asn1Field annotation) throws Asn1DecodingException { in AnnotatedField()
396 public Field getField() { in getField()
530 Field[] declaredFields = containerClass.getDeclaredFields(); in getAnnotatedFields()
532 for (Field field : declaredFields) { in getAnnotatedFields()
561 Object obj, Field field, Asn1Type type, BerDataValue dataValue) in setFieldValue()
DAsn1DerEncoder.java22 import java.lang.reflect.Field;
216 Field[] declaredFields = containerClass.getDeclaredFields(); in getAnnotatedFields()
218 for (Field field : declaredFields) { in getAnnotatedFields()
336 private static Object getMemberFieldValue(Object obj, Field field) in getMemberFieldValue()
347 private final Field mField;
358 public AnnotatedField(Object obj, Field field, Asn1Field annotation) in AnnotatedField()
397 public Field getField() { in getField()
/tools/platform-compat/java/com/android/annotationvisitor/
DAnnotationVisitor.java22 import org.apache.bcel.classfile.Field;
71 public void visitField(Field field) { in visitField()
/tools/tradefederation/core/common_util/com/android/tradefed/config/
DOptionUpdateRule.java21 import java.lang.reflect.Field;
88 public boolean shouldUpdate(String optionName, Object optionSource, Field field, Object update) in shouldUpdate()
/tools/dexter/slicer/export/slicer/
Dcode_ir.h67 struct Field;
105 virtual bool Visit(Field* field) { return false; } in Visit()
208 struct Field : public IndexedOperand { struct
211 Field(ir::FieldDecl* ir_field, dex::u4 index) : IndexedOperand(index), ir_field(ir_field) {} in Field() function
306 bool Visit(Field* val) override {
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/compatibility/
DNullnessCompatibilityTest.kt201 fun `Field nullness changes are not allowed`() { in Field nullness changes are not allowed()
/tools/tradefederation/core/proto/feature/
Dtradefed_service.proto51 // Field containing potential errors from the request.
/tools/dexter/dexter/
Ddisassembler.h47 virtual bool Visit(lir::Field* field) override;
/tools/loganalysis/javatests/com/android/loganalysis/util/config/
DOptionSetterTest.java23 import java.lang.reflect.Field;
788 Field field = AllTypesOptionSource.class.getDeclaredField("mEnum"); in testEnumDocs()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DItem.kt399 … "${if (capitalize) "Field" else "field"} ${item.containingClass().qualifiedName()}.${item.name()}" in fullyQualifiedDocumentation()

12