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

123456

/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/dx/src/com/android/dx/dex/file/
H A DFieldAnnotationStruct.java26 * Association of a field and its annotations.
30 /** non-null; the field in question */
31 private final CstFieldRef field; field in class:FieldAnnotationStruct
39 * @param field 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 /** non-null; constant for the field */
34 private final CstFieldRef field; field in class:EncodedField
39 * @param field 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 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 * non-null; map from field constants to {@link
95 * @param field 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);
H A DClassDataItem.java118 * Adds a static field.
120 * @param field non-null; the field to add
121 * @param value null-ok; initial value for the field, if any
123 public void addStaticField(EncodedField field, Constant value) { argument
124 if (field == null) {
125 throw new NullPointerException("field == null");
133 staticFields.add(field);
134 staticValues.put(field, value);
138 * Adds an instance field
142 addInstanceField(EncodedField field) argument
[all...]
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/text/
H A DRuleBasedNumberFormat.java142 public StringBuffer format(long value, StringBuffer buffer, FieldPosition field) { argument
150 if(field != null) {
151 fieldType = getFieldType(field.getFieldAttribute());
154 String result = formatRBNFImpl(this.addr, value, field,
163 FieldPosition field, String fieldType, StringBuffer buffer);
166 public StringBuffer format(double value, StringBuffer buffer, FieldPosition field) { argument
174 if(field != null) {
175 fieldType = getFieldType(field.getFieldAttribute());
178 String result = formatRBNFImpl(this.addr, value, field,
187 FieldPosition field, Strin
162 formatRBNFImpl(int addr, long value, FieldPosition field, String fieldType, StringBuffer buffer) argument
186 formatRBNFImpl(int addr, double value, FieldPosition field, String fieldType, StringBuffer buffer) argument
219 getFieldType(Format.Field field) argument
[all...]
/dalvik/tests/046-reflect/src/
H A DMain.java30 void printFieldInfo(Field field) { argument
31 System.out.println("Field name is " + field.getName());
33 + field.getDeclaringClass().getName());
34 System.out.println(" Field type is " + field.getType().getName());
36 + Integer.toHexString(field.getModifiers()));
44 Field field = null;
46 field = target.getField("string1");
47 one = (String) field.get(instance);
49 field = target.getField("string2");
50 two = (String) field
[all...]
/dalvik/libcore/security/src/main/java/java/security/spec/
H A DEllipticCurve.java32 // Underlying finite field
33 private final ECField field; field in class:EllipticCurve
49 * Creates a new {@code EllipticCurve} with the specified field,
52 * @param field
53 * the finite field of this elliptic curve.
61 * if the specified coefficients are not in the specified field.
64 public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) { argument
65 this.field = field;
66 if (this.field
120 EllipticCurve(ECField field, BigInteger a, BigInteger b) argument
[all...]
/dalvik/dx/src/com/android/dx/cf/iface/
H A DStdFieldList.java41 * Sets the field at the given index.
43 * @param n >= 0, < size(); which field
44 * @param field null-ok; the field object
46 public void set(int n, Field field) { argument
47 set0(n, field);
/dalvik/libcore/luni/src/main/java/java/util/
H A DCalendar.java62 * A {@code Calendar} object can produce all the time field values needed
69 * and {@code YEAR}. See individual field documentation and subclass
74 * range of field values than it produces. For example, a lenient
78 * out-of-range field settings. When calendars recompute field values for return
113 * Gregorian calendar, the default for a field is the same as that of the start
121 * most recently set single field, will be used.
173 * <strong>{@code set(f, value)}</strong> changes field {@code f}
175 * indicate that field {@code f} has been changed. Although field
828 add(int field, int value) argument
885 clear(int field) argument
993 get(int field) argument
1006 getActualMaximum(int field) argument
1032 getActualMinimum(int field) argument
1080 getGreatestMinimum(int field) argument
1148 getLeastMaximum(int field) argument
1159 getMaximum(int field) argument
1180 getMinimum(int field) argument
1247 internalGet(int field) argument
1270 isSet(int field) argument
1286 roll(int field, int value) argument
1306 roll(int field, boolean increment) argument
1317 set(int field, int value) argument
[all...]
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DMessageFormatFieldTest.java48 MyMessageFormat field = new MyMessageFormat(name);
49 assertEquals("field has wrong name", name, field.getName());
51 field = new MyMessageFormat(null);
52 assertEquals("field has wrong name", null, field.getName());
77 MyMessageFormat field;
81 field = new MyMessageFormat(null);
84 out.writeObject(field);
H A DNumberFormatFieldTest.java47 MyNumberFormat field = new MyNumberFormat(name);
48 assertEquals("field has wrong name", name, field.getName());
50 field = new MyNumberFormat(null);
51 assertEquals("field has wrong name", null, field.getName());
77 MyNumberFormat field;
81 field = new MyNumberFormat(null);
84 out.writeObject(field);
H A DDataFormatFieldTest.java49 MyField field = new MyField("day of month", Calendar.ERA);
51 assertEquals("field has wrong name", "day of month", field.getName());
52 assertEquals("field has wrong Calendar field number", Calendar.ERA,
53 field.getCalendarField());
57 assertSame("Modified calendar field with the same field number",
62 assertSame("Modified calendar field with the same field numbe
[all...]
/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/native/
H A Djava_lang_reflect_Field.c25 * Get the address of a field from an object. This can be used with "get"
28 * "declaringClass" is the class in which the field was declared. For an
29 * instance field, "obj" is the object that holds the field data; for a
30 * static field its value is ignored.
32 * "If the underlying field is static, the class that declared the
33 * field is initialized if it has not already been initialized."
40 * attempting to set a protected field from an unrelated class causes an
42 * the field causes an IllegalArgumentException. If code does both at the
47 * (2) Make sure the object actually has the field
62 Field* field; local
151 Field* field; local
372 Field* field; local
393 Field* field; local
[all...]
/dalvik/libcore/luni-kernel/src/main/java/java/lang/reflect/
H A DReflectionAccessImpl.java41 public Field clone(Field field) { argument
42 return new Field(field);
/dalvik/libcore/text/src/main/java/java/text/
H A DFieldPosition.java23 * the start and end indices of the field in the formatted string.
30 * If more than one field information is needed, the method
43 * Constructs a new {@code FieldPosition} for the specified field.
45 * @param field
46 * the field to identify.
49 public FieldPosition(int field) { argument
50 myField = field;
58 * the field attribute to identify.
68 * attribute and field id.
71 * the field attribut
76 FieldPosition(Format.Field attribute, int field) 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/libcore/security/src/test/java/tests/security/permissions/
H A DJavaLangReflectAccessibleObjectTest.java39 private int field; field in class:JavaLangReflectAccessibleObjectTest.TestClass
64 Field field = TestClass.class.getDeclaredField("field");
65 field.setAccessible(true);
94 Field field = TestClass.class.getDeclaredField("field");
95 field.setAccessible(TestClass.class.getDeclaredFields(), true);
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DGenericArrayTypeTest.java48 Field field = clazz.getDeclaredField("array");
49 Type genericType = field.getGenericType();
71 Field field = clazz.getDeclaredField("array");
72 Type genericType = field.getGenericType();
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/
H A DReflectionAccess.java39 * Gets a clone of the given field.
41 * @param field non-null; the field to clone
44 public Field clone(Field field); argument
/dalvik/vm/mterp/armv5te/
H A DOP_IPUT_QUICK.S7 FETCH(r1, 1) @ r1<- field byte offset
14 str r0, [r3, r1] @ obj.field (always 32 bits)<- r0
/dalvik/dx/src/com/android/dx/cf/direct/
H A DFieldListParser.java61 return "field";
80 StdField field =
83 fields.set(n, field);
84 return field;
/dalvik/tests/067-preemptive-unpark/src/
H A DMain.java49 Field field = Unsafe.class.getDeclaredField("THE_ONE");
50 field.setAccessible(true);
52 UNSAFE = (Unsafe) field.get(null);

Completed in 534 milliseconds

123456