/libcore/luni/src/main/native/ |
H A D | android_system_OsConstants.cpp | 55 jfieldID field = env->GetStaticFieldID(c, fieldName, "I"); local 56 env->SetStaticIntField(c, field, value);
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | CpuFeatures.java | 60 private static String getFieldFromCpuinfo(String field) { argument 63 Pattern p = Pattern.compile(field + "\\s*:\\s*(.*)");
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | MissingClassesTest.java | 64 loadableClass.getDeclaredField("field"); 71 Unloadable field; field in class:MissingClassesTest.Loadable
|
H A D | ClassLoaderReflectionTest.java | 71 assertEquals(aClass, aListClass.getDeclaredField("field").getType()); 144 Field f1 = B.class.getDeclaredField("field"); 145 Field f2 = bClass.getDeclaredField("field"); 151 T field; field in class:ClassLoaderReflectionTest.B 169 A field; field in class:ClassLoaderReflectionTest.AList
|
H A D | ReflectionTest.java | 215 Field field = D.class.getField("fieldOne"); 216 assertEquals(C.class, field.getDeclaringClass()); 254 Field field = ExtendsImplementsDefinesMember.class.getField("field"); 255 assertEquals(DefinesMember.class, field.getDeclaringClass()); 259 Field field = ImplementsExtendsDefinesMember.class.getField("field"); 260 assertEquals(DefinesMember.class, field.getDeclaringClass()); 265 assertTrue(names(fields).contains("field")); 270 assertTrue(names(fields).contains("field")); 395 String field = "s"; field in interface:ReflectionTest.DefinesMember [all...] |
H A D | AnnotationsTest.java | 58 Field field = Type.class.getField("field"); 59 assertAnnotatedElement(field, AnnotationA.class, AnnotationD.class); 361 @AnnotationA @AnnotationD public String field; field in class:AnnotationsTest.Type
|
/libcore/ojluni/src/main/java/java/security/spec/ |
H A D | EllipticCurve.java | 45 private final ECField field; field in class:EllipticCurve 50 // Check coefficient c is a valid element in ECField field. 51 private static void checkValidity(ECField field, BigInteger c, argument 53 // can only perform check if field is ECFieldFp or ECFieldF2m. 54 if (field instanceof ECFieldFp) { 55 BigInteger p = ((ECFieldFp)field).getP(); 61 } else if (field instanceof ECFieldF2m) { 62 int m = ((ECFieldF2m)field).getM(); 70 * Creates an elliptic curve with the specified elliptic field 71 * <code>field</cod 81 EllipticCurve(ECField field, BigInteger a, BigInteger b) argument 101 EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) argument [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | MethodInvocationBenchmark.java | 28 private int field; field in class:MethodInvocationBenchmark.C 31 return field; 45 result = field;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_Format.java | 38 String text, Format.Field field, int begin, int end) { 40 FieldPosition pos = new FieldPosition(field); 53 assertEquals(field + " " + begin + ".." + end, 37 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
|
H A D | SimpleDateFormatTest.java | 395 String expected, int field) { 397 FieldPosition position = new FieldPosition(field); 404 "field: " + field, 1, position.getBeginIndex()); 405 assertTrue("Wrong end position: " + pattern + " expected: " + expected + " field: " + field, 730 // Calendar implementation resolves field order. 394 assertFormat(SimpleDateFormat format, String pattern, Calendar cal, String expected, int field) argument
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectStreamField.java | 35 * A description of a Serializable field from a Serializable class. An array 47 /** field name */ 49 /** canonical JVM signature of field type */ 51 /** field type (Object.class if unknown non-primitive type) */ 53 /** whether or not to (de)serialize field values as unshared */ 55 /** corresponding reflective field object, if any */ 56 private final Field field; field in class:ObjectStreamField 57 /** offset of field value in enclosing field group */ 61 * Create a Serializable field wit 135 ObjectStreamField(Field field, boolean unshared, boolean showType) argument [all...] |
H A D | ObjectStreamClass.java | 89 /** cache mapping field group/local desc pairs -> field reflectors */ 96 /** queue for WeakReferences to field reflectors keys */ 166 /** reflector for setting/getting serializable field values */ 270 * @return an array containing an element for each persistent field of 280 * Get the field of this class by name. 282 * @param name the name of the data field to look for 283 * @return The ObjectStreamField object of the named field or null if 284 * there is no such named field. 378 * Placeholder used in class descriptor and field reflecto 1831 MemberSignature(Field field) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | CalendarBuilder.java | 32 * {@code CalendarBuilder} keeps field-value pairs for setting 34 * {@link Calendar#FIELD_COUNT FIELD_COUNT}-th field for the week year 55 public static final int ISO_DAY_OF_WEEK = 1000; // pseudo field index 57 // stamp[] (lower half) and field[] (upper half) combined 58 private final int[] field; field in class:CalendarBuilder 63 field = new int[MAX_FIELD * 2]; 73 field[index] = nextStamp++; 74 field[MAX_FIELD + index] = value; 82 field[MAX_FIELD + YEAR] += value; 83 field[MAX_FIEL [all...] |
H A D | FieldPosition.java | 54 * field within the formatted output with two indices: the index 55 * of the first character of the field and the index of the last 56 * character of the field. 63 * formatted output (such as the position of a field). 76 * Input: Desired field to determine start and end offsets for. 79 int field = 0; field in class:FieldPosition 82 * Output: End offset of field in text. 83 * If the field does not occur in the text, 0 is returned. 88 * Output: Start offset of field in text. 89 * If the field doe 108 FieldPosition(int field) argument 264 matchesField(Format.Field attribute, int field) argument [all...] |
H A D | SimpleDateFormat.java | 415 // - 1 for version from JDK 1.1.4, which includes a new field 937 * @param pos the formatting position. On input: an alignment field, 938 * if desired. On output: the offsets of the alignment field. 952 // Convert input date to time field list 1022 // Map index into pattern character string to Calendar field number 1041 // Map index into pattern character string to DateFormat field number 1086 int field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex]; 1088 if (field == CalendarBuilder.WEEK_YEAR) { 1094 field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex]; 1095 value = calendar.get(field); 1558 matchString(String text, int start, int field, String[] data, CalendarBuilder calb) argument 1604 matchString(String text, int start, int field, Map<String,Integer> data, CalendarBuilder calb) argument 2169 parseMonth(String text, int count, int value, int start, int field, ParsePosition pos, boolean useDateFormatSymbols, boolean standalone, CalendarBuilder out) argument 2212 parseWeekday(String text, int start, int field, boolean useDateFormatSymbols, boolean standalone, CalendarBuilder out) argument [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 37 String text, Format.Field field, int begin, int end) { 39 FieldPosition pos = new FieldPosition(field); 53 assertEquals("Test " + count + ": incorrect begin index for field " 54 + field, begin, pos.getBeginIndex()); 55 assertEquals("Test " + count + ": incorrect end index for field" 56 + field, end, pos.getEndIndex()); 36 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | Duration.java | 35 * minutes, and seconds) plus a sign (+/-) field.</p> 38 * (which represents that the field is not set), 39 * and the seconds field has a non-negative decimal or null. 98 * i.e. {@link #isSet(DatatypeConstants.Field field)} == <code>true</code>.</p> 221 * {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)}.</p> 225 * Use {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)} to avoid possible loss of precision.</p> 227 * @return If the years field is present, return its value as an <code>int</code>, else return <code>0</code>. 234 * Obtains the value of the MONTHS field as an integer value, 238 * that this method works on the MONTHS field. 247 * Obtains the value of the DAYS field a 400 getField(final DatatypeConstants.Field field) argument 412 getFieldValueAsInt(final DatatypeConstants.Field field) argument 435 isSet(final DatatypeConstants.Field field) argument [all...] |
/libcore/luni/src/test/java/tests/java/sql/ |
H A D | MultiThreadAccessTest.java | 203 String field = "field3"; 212 // assertEquals("Wrong value of field " + field, BigDecimal.valueOf(id), 213 // result.getBigDecimal(field)); 217 threadPool.runTask(createTask7(id, field)); 226 // assertEquals("Wrong value of field " + field, expectedVal, result 227 // .getBigDecimal(field).doubleValue()); 414 * field of one record with identifier id in the first table 418 private static Runnable createTask7(final int id, final String field) { argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | AnnotatedElementBenchmark.java | 28 private Field field; field in class:AnnotatedElementBenchmark 34 field = Type.class.getField("field"); 49 field.getAnnotations(); 73 field.getAnnotation(Marker.class); 91 field.isAnnotationPresent(Marker.class); 214 @Marker public String field; field in class:AnnotatedElementBenchmark.Type
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CalendarTest.java | 40 // Test for correct result defined by the last set field 361 // Ensure last date field set is reset after computing 742 public int internal_get(int field) { argument 743 return super.internalGet(field); 754 public void add(int field, int value) { argument 766 public int getGreatestMinimum(int field) { argument 771 public int getLeastMaximum(int field) { argument 776 public int getMaximum(int field) { argument 781 public int getMinimum(int field) { argument 786 public void roll(int field, boolea argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | CalendarTest.java | 66 * date field from being incremented. 360 public void add(int field, int value) { argument 375 public int getGreatestMinimum(int field) { argument 380 public int getLeastMaximum(int field) { argument 385 public int getMaximum(int field) { argument 390 public int getMinimum(int field) { argument 395 public void roll(int field, boolean increment) { argument
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 71 * the memory used to store the indicated instance field. 73 * @param field non-null; the field in question, which must be an 74 * instance field 75 * @return the offset to the field 77 public long objectFieldOffset(Field field) { argument 78 if (Modifier.isStatic(field.getModifiers())) { 81 return field.getOffset(); 118 * field within the given object. 120 * @param obj non-null; object containing the field [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | FieldTest.java | 81 S field; field in class:FieldTest.GenericField 153 int field; field in class:FieldTest.TestEnum 190 assertTrue("Returned incorrect double field value", 192 // Test getting a static field; 196 assertEquals("Returned incorrect double field value", 1.0, val.doubleValue()); 198 // Try a get on a private field in nested member 327 fail("unexpected exception " + e + " for field " 332 + " for field " + f.getName() + ", value " + value, 399 fail("missing field " + fieldName + " in test support class " 404 // of the field [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | GregorianCalendar.java | 95 * WEEK_OF_YEAR} field range from 1 to 53. The first week of a 136 * <p>Values calculated for the <code>WEEK_OF_MONTH</code> field range from 0 156 * <p>The <code>clear</code> method sets calendar field(s) 158 * default value for each calendar field if its value is undefined. 161 * summary="GregorianCalendar default field values" 360 * Value of the <code>ERA</code> field indicating 370 * Value of the {@link #ERA} field indicating 378 * Value of the <code>ERA</code> field indicating 388 * Value of the {@link #ERA} field indicating 629 * @param year the value used to set the <code>YEAR</code> calendar field i 885 add(int field, int amount) argument 1083 roll(int field, boolean up) argument 1131 roll(int field, int amount) argument 1487 getMinimum(int field) argument 1510 getMaximum(int field) argument 1558 getGreatestMinimum(int field) argument 1587 getLeastMaximum(int field) argument 1636 getActualMinimum(int field) argument 1679 getActualMaximum(int field) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | SerializationStressTest2.java | 609 int field = 1; field in class:SerializationStressTest2.NonPublicClassTest 612 field = 10; 617 return field == ((NonPublicClassTest) o).field; 622 field *= 10; 800 Class[] c = { String.class }; // *** synthetic field
|