/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/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 | 417 // - 1 for version from JDK 1.1.4, which includes a new field 920 * @param pos the formatting position. On input: an alignment field, 921 * if desired. On output: the offsets of the alignment field. 935 // Convert input date to time field list 1005 // Map index into pattern character string to Calendar field number 1024 // Map index into pattern character string to DateFormat field number 1069 int field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex]; 1071 if (field == CalendarBuilder.WEEK_YEAR) { 1077 field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex]; 1078 value = calendar.get(field); 1547 matchString(String text, int start, int field, String[] data, CalendarBuilder calb) argument 1593 matchString(String text, int start, int field, Map<String,Integer> data, CalendarBuilder calb) argument 2158 parseMonth(String text, int count, int value, int start, int field, ParsePosition pos, boolean useDateFormatSymbols, boolean standalone, CalendarBuilder out) argument 2201 parseWeekday(String text, int start, int field, boolean useDateFormatSymbols, boolean standalone, CalendarBuilder out) argument [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldNumberFormatFieldTest.java | 32 MyNumberFormat field = new MyNumberFormat(name); 33 assertEquals("field has wrong name", name, field.getName()); 35 field = new MyNumberFormat(null); 36 assertEquals("field has wrong name", null, field.getName()); 48 MyNumberFormat field; 52 field = new MyNumberFormat(null); 55 out.writeObject(field);
|
H A D | OldMessageFormatFieldTest.java | 33 MyMessageFormat field = new MyMessageFormat(name); 34 assertEquals("field has wrong name", name, field.getName()); 36 field = new MyMessageFormat(null); 37 assertEquals("field has wrong name", null, field.getName()); 53 MyMessageFormat field; 57 field = new MyMessageFormat(null); 60 out.writeObject(field);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | DataFormatFieldTest.java | 37 MyField field = new MyField("day of month", Calendar.ERA); 39 assertEquals("field has wrong name", "day of month", field.getName()); 40 assertEquals("field has wrong Calendar field number", Calendar.ERA, 41 field.getCalendarField()); 45 assertSame("Modified calendar field with the same field number", 50 assertSame("Modified calendar field with the same field numbe [all...] |
H A D | ChoiceFormatTest.java | 252 FieldPosition field = new FieldPosition(0); 254 String r = f1.format(-1, buf, field).toString(); 257 r = f1.format(0, buf, field).toString(); 260 r = f1.format(1, buf, field).toString(); 263 r = f1.format(2, buf, field).toString(); 266 r = f1.format(3, buf, field).toString(); 272 assertEquals("Less than one", f1.format(Double.NaN, new StringBuffer(), field).toString()); 283 FieldPosition field = new FieldPosition(0); 285 String r = f1.format(0.5, buf, field).toString(); 288 r = f1.format(1.5, buf, field) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | GenericArrayTypeTest.java | 36 Field field = clazz.getDeclaredField("array"); 37 Type genericType = field.getGenericType(); 53 Field field = clazz.getDeclaredField("array"); 54 Type genericType = field.getGenericType();
|
H A D | ParameterizedTypeTest.java | 67 Field field = clazz.getDeclaredField("e"); 68 assertInstanceOf(ParameterizedType.class, field.getGenericType()); 69 ParameterizedType parameterizedType = (ParameterizedType) field.getGenericType();
|
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 | Calendar.java | 85 * <p>A <code>Calendar</code> object can produce all the calendar field values 92 * concrete subclass, such as <code>ERA</code>. See individual field 97 * <p>The calendar field values can be set by calling the <code>set</code> 98 * methods. Any field values set in a <code>Calendar</code> will not be 109 * calendar field values than it produces. When a <code>Calendar</code> 110 * recomputes calendar field values for return by <code>get()</code>, all of 120 * calculating its time or calendar field values if any out-of-range field 150 * calendar field values to determine the date and time in the 153 * <p>If there is any conflict in calendar field value 1142 get(int field) argument 1156 internalGet(int field) argument 1173 internalSet(int field, int value) argument 1192 set(int field, int value) argument 1330 clear(int field) argument 1348 isSet(int field) argument 1394 getDisplayName(int field, int style, Locale locale) argument 1454 getDisplayNames(int field, int style, Locale locale) argument 1481 getDisplayNamesImpl(int field, int style, Locale locale) argument 1497 checkDisplayNameParams(int field, int style, int minStyle, int maxStyle, Locale locale, int fieldMask) argument 1509 getFieldStrings(int field, int style, DateFormatSymbols symbols) argument 1561 isExternallySet(int field) argument 1675 isFieldSet(int fieldMask, int field) argument 1996 add(int field, int amount) argument 2018 roll(int field, boolean up) argument 2039 roll(int field, int amount) argument 2305 getMinimum(int field) argument 2322 getMaximum(int field) argument 2340 getGreatestMinimum(int field) argument 2362 getLeastMaximum(int field) argument 2384 getActualMinimum(int field) argument 2438 getActualMaximum(int field) argument 2517 getFieldName(int field) argument [all...] |
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/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...] |
/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/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/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/main/java/java/util/concurrent/atomic/ |
H A D | AtomicLongFieldUpdater.java | 29 * Because this class cannot ensure that all uses of the field 36 * @param <T> The type of the object holding the updatable field 40 * Creates and returns an updater for objects with the given field. 44 * @param tclass the class of the objects holding the field 45 * @param fieldName the name of the field to be updated 48 * @throws IllegalArgumentException if the field is not a 51 * exception if the class does not hold field or is the wrong type, 52 * or the field is inaccessible to the caller according to Java language 72 * Atomically sets the field of the given object managed by this updater 76 * necessarily with respect to other changes in the field [all...] |
H A D | AtomicIntegerFieldUpdater.java | 29 * Because this class cannot ensure that all uses of the field 36 * @param <T> The type of the object holding the updatable field 40 * Creates and returns an updater for objects with the given field. 44 * @param tclass the class of the objects holding the field 45 * @param fieldName the name of the field to be updated 48 * @throws IllegalArgumentException if the field is not a 51 * exception if the class does not hold field or is the wrong type, 52 * or the field is inaccessible to the caller according to Java language 69 * Atomically sets the field of the given object managed by this updater 73 * necessarily with respect to other changes in the field [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldSocketImplFactoryTest.java | 67 for (Field field : fields) { 68 if (SocketImplFactory.class.equals(field.getType())) { 70 factoryField = field;
|
H A D | URLStreamHandlerFactoryTest.java | 33 for (Field field : URL.class.getDeclaredFields()) { 34 if (URLStreamHandlerFactory.class.equals(field.getType())) { 36 factoryField = field; 43 fail("URL does not declare a URLStreamHandlerFactory field");
|
/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 | FieldTest.java | 29 Field field = getClass().getDeclaredField("MY_LONG"); 30 assertEquals(5073258162644648461L, field.getLong(null));
|
/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/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
|