Searched refs:field (Results 1 - 25 of 114) sorted by relevance

12345

/dalvik/dx/tests/115-merge/testdata/
H A DBasic.java5 String field = "this is a field"; field in class:Basic
/dalvik/tests/035-enum/src/
H A DMain.java12 Field field;
14 field = Shubbery.class.getDeclaredField("CRAWLING");
19 System.out.println("found field " + field.getName());
20 System.out.println(" synthetic? " + field.isSynthetic());
21 System.out.println(" enum? " + field.isEnumConstant());
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DFieldAnnotationStruct.java26 * Association of a field and its annotations.
30 /** {@code non-null;} the field in question */
31 private final CstFieldRef field; field in class:FieldAnnotationStruct
39 * @param field {@code non-null;} the field in question
42 public FieldAnnotationStruct(CstFieldRef field, argument
44 if (field == null) {
45 throw new NullPointerException("field == null");
52 this.field = field;
[all...]
H A DEncodedField.java29 * Representation of a field of a class, of any sort.
33 /** {@code non-null;} constant for the field */
34 private final CstFieldRef field; field in class:EncodedField
39 * @param field {@code non-null;} constant for the field
42 public EncodedField(CstFieldRef field, int accessFlags) { argument
45 if (field == null) {
46 throw new NullPointerException("field == null");
54 this.field = field;
[all...]
H A DFieldIdItem.java22 * Representation of a field reference inside a Dalvik file.
28 * @param field {@code non-null;} the constant for the field
30 public FieldIdItem(CstFieldRef field) { argument
31 super(field);
50 * Gets the field constant.
H A DFieldIdsSection.java32 * {@code non-null;} map from field constants to {@link
95 * @param field {@code non-null;} the reference to intern
98 public FieldIdItem intern(CstFieldRef field) { argument
99 if (field == null) {
100 throw new NullPointerException("field == null");
105 FieldIdItem result = fieldIds.get(field);
108 result = new FieldIdItem(field);
109 fieldIds.put(field, result);
/dalvik/dx/src/com/android/dx/dex/file/
H A DFieldAnnotationStruct.java26 * Association of a field and its annotations.
30 /** {@code non-null;} the field in question */
31 private final CstFieldRef field; field in class:FieldAnnotationStruct
39 * @param field {@code non-null;} the field in question
42 public FieldAnnotationStruct(CstFieldRef field, argument
44 if (field == null) {
45 throw new NullPointerException("field == null");
52 this.field = field;
[all...]
H A DEncodedField.java29 * Representation of a field of a class, of any sort.
33 /** {@code non-null;} constant for the field */
34 private final CstFieldRef field; field in class:EncodedField
39 * @param field {@code non-null;} constant for the field
42 public EncodedField(CstFieldRef field, int accessFlags) { argument
45 if (field == null) {
46 throw new NullPointerException("field == null");
54 this.field = field;
[all...]
H A DFieldIdItem.java22 * Representation of a field reference inside a Dalvik file.
28 * @param field {@code non-null;} the constant for the field
30 public FieldIdItem(CstFieldRef field) { argument
31 super(field);
50 * Gets the field constant.
H A DFieldIdsSection.java32 * {@code non-null;} map from field constants to {@link
95 * @param field {@code non-null;} the reference to intern
98 public FieldIdItem intern(CstFieldRef field) { argument
99 if (field == null) {
100 throw new NullPointerException("field == null");
105 FieldIdItem result = fieldIds.get(field);
108 result = new FieldIdItem(field);
109 fieldIds.put(field, result);
/dalvik/dexgen/src/com/android/dexgen/rop/
H A DStdFieldList.java41 * Sets the field at the given index.
43 * @param n {@code >= 0, < size();} which field
44 * @param field {@code null-ok;} the field object
46 public void set(int n, Field field) { argument
47 set0(n, field);
H A DStdField.java43 * Constructs an instance having Java field as its pattern.
45 * @param field {@code non-null;} pattern for dex field
47 public StdField(java.lang.reflect.Field field) { argument
48 this(CstType.intern(field.getDeclaringClass()),
49 field.getModifiers(),
50 new CstNat(new CstUtf8(field.getName()),
51 CstType.intern(field.getType()).getDescriptor()),
56 * Constructs an instance taking field description as user-friendly arguments.
58 * @param declaringClass {@code non-null;} the class field belong
[all...]
/dalvik/dx/src/com/android/dx/cf/iface/
H A DStdFieldList.java41 * Sets the field at the given index.
43 * @param n {@code >= 0, < size();} which field
44 * @param field {@code null-ok;} the field object
46 public void set(int n, Field field) { argument
47 set0(n, field);
/dalvik/tests/046-reflect/src/
H A DMain.java37 void printFieldInfo(Field field) { argument
38 System.out.println("Field name is " + field.getName());
40 + field.getDeclaringClass().getName());
41 System.out.println(" Field type is " + field.getType().getName());
43 + Integer.toHexString(field.getModifiers()));
51 Field field = null;
53 field = target.getField("string1");
54 one = (String) field.get(instance);
56 field = target.getField("string2");
57 two = (String) field
[all...]
/dalvik/vm/native/
H A Djava_lang_reflect_Field.cpp25 * Validate access to a field. Returns a pointer to the Field struct.
27 * "declaringClass" is the class in which the field was declared. For an
28 * instance field, "obj" is the object that holds the field data; for a
29 * static field its value is ignored.
31 * "If the underlying field is static, the class that declared the
32 * field is initialized if it has not already been initialized."
39 * attempting to set a protected field from an unrelated class causes an
41 * the field causes an IllegalArgumentException. If code does both at the
46 * (2) Make sure the object actually has the field
61 Field* field; local
266 getFieldValue(const Field* field, Object* obj, JValue* value) argument
422 setFieldValue(Field* field, Object* obj, const JValue* value) argument
442 Field* field; local
463 Field* field; local
499 Field* field; local
533 const Field* field; local
574 Field* field; local
610 Field* field; local
631 Field* field = dvmSlotToField(clazz, slot); local
646 Field* field = dvmSlotToField(clazz, slot); local
661 Field* field; local
[all...]
/dalvik/vm/mterp/armv6t2/
H A DOP_IGET_QUICK.S6 FETCH(r1, 1) @ r1<- field byte offset
11 ldr r0, [r3, r1] @ r0<- obj.field (always 32 bits)
H A DOP_IGET_WIDE_QUICK.S5 FETCH(ip, 1) @ ip<- field byte offset
10 ldrd r0, [r3, ip] @ r0<- obj.field (64 bits, aligned)
/dalvik/tests/064-field-access/src/
H A DMain.java22 * Test field access through reflection.
41 * Get the field specified by "field" from "obj".
44 * field.getByte().
51 public Object getValue(Field field, Object obj, char type, argument
58 result = new Boolean(field.getBoolean(obj));
61 result = new Byte(field.getByte(obj));
64 result = new Short(field.getShort(obj));
67 result = new Character(field.getChar(obj));
70 result = new Integer(field
283 getValue(Field field, Object obj, char type, Class expectedException) argument
[all...]
/dalvik/vm/oo/
H A DAccessCheck.h34 * Determine whether the "accessFrom" class is allowed to get at "field".
36 bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field);
/dalvik/vm/mterp/mips/
H A DOP_SGET_WIDE.S3 %verify "field already resolved"
4 %verify "field not yet resolved"
5 %verify "field cannot be resolved"
9 # sget-wide vAA, field /* BBBB */
11 FETCH(a1, 1) # a1 <- field ref BBBB
18 * Continuation if the field has not yet been resolved.
19 * a1: BBBB field ref
26 EAS2(rBIX, rBIX, a1) # rBIX<- &dvmDex->pResFields[field]
37 * that the field is fully resolved before including this instruction.
48 vLOAD64_off(a2, a3, a0, offStaticField_value) # a2/a3 <- field valu
[all...]
H A DOP_SPUT.S3 %verify "field already resolved"
4 %verify "field not yet resolved"
5 %verify "field cannot be resolved"
11 # op vAA, field /* BBBB */
13 FETCH(a1, 1) # a1 <- field ref BBBB
18 * Continuation if the field has not yet been resolved.
19 * a1: BBBB field ref
24 EAS2(rBIX, rBIX, a1) # rBIX<- &dvmDex->pResFields[field]
34 * that the field is fully resolved before including this instruction.
42 # field pt
[all...]
H A DOP_SPUT_OBJECT.S3 %verify "field already resolved"
4 %verify "field not yet resolved"
5 %verify "field cannot be resolved"
11 /* op vAA, field@BBBB */
13 FETCH(a1, 1) # a1 <- field ref BBBB
18 /* Continuation if the field has not yet been resolved.
19 * a1: BBBB field ref
24 EAS2(rBIX, rBIX, a1) # rBIX<- &dvmDex->pResFields[field]
34 * that the field is fully resolved before including this instruction.
41 .L${opcode}_finish: # field pt
[all...]
H A DOP_IPUT_WIDE_QUICK.S11 FETCH(a3, 1) # a3 <- field byte offset
13 addu a2, a2, a3 # obj.field (64 bits, aligned) <- a0/a1
14 STORE64(a0, a1, a2) # obj.field (64 bits, aligned) <- a0/a1
/dalvik/vm/mterp/armv5te/
H A DOP_SGET.S3 %verify "field already resolved"
4 %verify "field not yet resolved"
5 %verify "field cannot be resolved"
11 /* op vAA, field@BBBB */
13 FETCH(r1, 1) @ r1<- field ref BBBB
18 .L${opcode}_finish: @ field ptr in r0
19 ldr r1, [r0, #offStaticField_value] @ r1<- field value
29 * Continuation if the field has not yet been resolved.
30 * r1: BBBB field ref
36 add r10, r10, r1, lsl #2 @ r10<- &dvmDex->pResFields[field]
[all...]
H A DOP_SPUT.S3 %verify "field already resolved"
4 %verify "field not yet resolved"
5 %verify "field cannot be resolved"
11 /* op vAA, field@BBBB */
13 FETCH(r1, 1) @ r1<- field ref BBBB
18 .L${opcode}_finish: @ field ptr in r0
24 str r1, [r0, #offStaticField_value] @ field<- vAA
30 * Continuation if the field has not yet been resolved.
31 * r1: BBBB field ref
37 add r10, r10, r1, lsl #2 @ r10<- &dvmDex->pResFields[field]
[all...]

Completed in 2758 milliseconds

12345