Searched defs:field (Results 1 - 25 of 97) sorted by relevance

1234

/libcore/libart/src/main/java/java/lang/invoke/
H A DFieldVarHandle.java29 private FieldVarHandle(Field field, Class<?> declaringClass) { argument
30 super(field.getType(), Modifier.isFinal(field.getModifiers()), declaringClass);
31 artField = field.getArtField();
34 private FieldVarHandle(Field field) { argument
35 super(field.getType(), Modifier.isFinal(field.getModifiers()));
36 artField = field.getArtField();
39 static FieldVarHandle create(Field field) { argument
40 if (Modifier.isStatic(field
[all...]
/libcore/luni/src/main/native/
H A Dandroid_system_OsConstants.cpp61 jfieldID field = env->GetStaticFieldID(c, fieldName, "I"); local
62 env->SetStaticIntField(c, field, value);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DHijrahEra.java127 * Gets the range of valid values for the specified field.
129 * The range object expresses the minimum and maximum valid values for a field.
131 * If it is not possible to return the range, because the field is not supported
134 * If the field is a {@link ChronoField} then the query is implemented here.
135 * The {@code ERA} field returns the range.
138 * If the field is not a {@code ChronoField}, then the result of this method
141 * Whether the range can be obtained is determined by the field.
143 * The {@code ERA} field returns a range for the one valid Hijrah era.
145 * @param field the field t
151 range(TemporalField field) argument
[all...]
H A DEra.java126 * Checks if the specified field is supported.
128 * This checks if this era can be queried for the specified field.
132 * If the field is a {@link ChronoField} then the query is implemented here.
133 * The {@code ERA} field returns true.
136 * If the field is not a {@code ChronoField}, then the result of this method
139 * Whether the field is supported is determined by the field.
141 * @param field the field to check, null returns false
142 * @return true if the field i
145 isSupported(TemporalField field) argument
178 range(TemporalField field) argument
208 get(TemporalField field) argument
238 getLong(TemporalField field) argument
[all...]
/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAccessor.java106 * Checks if the specified field is supported.
108 * This checks if the date-time can be queried for the specified field.
114 * If the field is supported, then true must be returned, otherwise false must be returned.
116 * If the field is not a {@code ChronoField}, then the result of this method
123 * @param field the field to check, null returns false
124 * @return true if this date-time can be queried for the field, false if not
126 boolean isSupported(TemporalField field); argument
129 * Gets the range of valid values for the specified field.
134 * If the date-time cannot return the range, because the field i
169 range(TemporalField field) argument
217 get(TemporalField field) argument
255 getLong(TemporalField field) argument
[all...]
H A DTemporal.java101 * <li>the set of fields are complete, such that no other field is needed to define the
142 * If the field is not a {@code ChronoUnit}, then the result of this method
158 * A simple adjuster might simply set the one of the fields, such as the year field.
194 * Returns an object of the same type as this object with the specified field altered.
196 * This returns a new object based on this one with the value for the specified field changed.
200 * In some cases, changing a field is not fully defined. For example, if the target object is
202 * In cases like this, the field is responsible for resolving the result. Typically it will choose
207 * If the field is supported, then the adjustment must be performed.
210 * If the field is not a {@code ChronoField}, then the result of this method
218 * @param field th
225 with(TemporalField field, long newValue) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
H A DTCKChronoFieldSerialization.java141 public void test_fieldSerializable(ChronoField field) throws IOException, ClassNotFoundException { argument
142 assertSerializableSame(field);
H A DTCKJulianFieldsSerialization.java90 public void test_serializable(TemporalField field) throws IOException, ClassNotFoundException { argument
91 assertSerializable(field);
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
H A DMockFieldValue.java69 * Mock simple date-time with one field-value.
73 private final TemporalField field; field in class:MockFieldValue
76 public MockFieldValue(TemporalField field, long value) { argument
77 this.field = field;
82 public boolean isSupported(TemporalField field) { argument
83 return field != null && field.equals(this.field);
87 public ValueRange range(TemporalField field) { argument
98 getLong(TemporalField field) argument
[all...]
/libcore/support/src/test/java/libcore/java/security/
H A DCpuFeatures.java61 private static String getFieldFromCpuinfo(String field) { argument
64 Pattern p = Pattern.compile(field + "\\s*:\\s*(.*)");
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMissingClassesTest.java64 loadableClass.getDeclaredField("field");
71 Unloadable field; field in class:MissingClassesTest.Loadable
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestDateTimeTextProvider.java183 public void test_getText(TemporalField field, Number value, TextStyle style, Locale locale, String expected) { argument
184 DateTimeFormatter fmt = getFormatter(field, style).withLocale(locale);
185 assertEquals(fmt.format(ZonedDateTime.now().with(field, value.longValue())), expected);
H A DAbstractTestPrinterParser.java128 protected DateTimeFormatter getFormatter(TemporalField field) { argument
129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle);
132 protected DateTimeFormatter getFormatter(TemporalField field, TextStyle style) { argument
133 return builder.appendText(field, style).toFormatter(locale).withDecimalStyle(decimalStyle);
136 protected DateTimeFormatter getFormatter(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) { argument
137 return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalStyle(decimalStyle);
149 public boolean isSupported(TemporalField field) {
153 public long getLong(TemporalField field) {
/libcore/ojluni/src/main/java/java/security/spec/
H A DEllipticCurve.java45 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} an
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/time/format/
H A DDateTimePrintContext.java187 public boolean isSupported(TemporalField field) {
188 if (effectiveDate != null && field.isDateBased()) {
189 return effectiveDate.isSupported(field);
191 return temporal.isSupported(field);
194 public ValueRange range(TemporalField field) {
195 if (effectiveDate != null && field.isDateBased()) {
196 return effectiveDate.range(field);
198 return temporal.range(field);
201 public long getLong(TemporalField field) {
202 if (effectiveDate != null && field
296 getValue(TemporalField field) argument
[all...]
H A DDateTimeTextProvider.java96 * A provider to obtain the textual form of a date-time field.
128 * Gets the text for the specified field, locale and style
135 * @param field the field to get text for, not null
136 * @param value the field value to get text for, not null
139 * @return the text for the field value, null if no text found
141 public String getText(TemporalField field, long value, TextStyle style, Locale locale) { argument
142 Object store = findStore(field, locale);
150 * Gets the text for the specified chrono, field, locale and style
158 * @param field th
164 getText(Chronology chrono, TemporalField field, long value, TextStyle style, Locale locale) argument
219 getTextIterator(TemporalField field, TextStyle style, Locale locale) argument
244 getTextIterator(Chronology chrono, TemporalField field, TextStyle style, Locale locale) argument
309 findStore(TemporalField field, Locale locale) argument
328 createStore(TemporalField field, Locale locale) argument
468 createEntry(A text, B field) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKDateTimeTextPrinting.java139 public void test_appendText2arg_format(TemporalField field, TextStyle style, int value, String expected) throws Exception { argument
140 DateTimeFormatter f = builder.appendText(field, style).toFormatter(Locale.ENGLISH);
142 dt = dt.with(field, value);
148 public void test_appendText1arg_format(TemporalField field, TextStyle style, int value, String expected) throws Exception { argument
150 DateTimeFormatter f = builder.appendText(field).toFormatter(Locale.ENGLISH);
152 dt = dt.with(field, value);
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
H A DTCKJulianFields.java128 public void test_samples_get(TemporalField field, LocalDate date, long expected) { argument
129 assertEquals(date.getLong(field), expected);
133 public void test_samples_set(TemporalField field, LocalDate date, long value) { argument
134 assertEquals(field.adjustInto(LocalDate.MAX, value), date);
135 assertEquals(field.adjustInto(LocalDate.MIN, value), date);
136 assertEquals(field.adjustInto(JAN01_1970, value), date);
137 assertEquals(field.adjustInto(DEC31_1969, value), date);
138 assertEquals(field.adjustInto(NOV12_1945, value), date);
143 public void test_samples_parse_STRICT(TemporalField field, LocalDate date, long value) { argument
144 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field)
151 test_samples_parse_SMART(TemporalField field, LocalDate date, long value) argument
159 test_samples_parse_LENIENT(TemporalField field, LocalDate date, long value) argument
[all...]
H A DTCKChronoField.java146 public void test_getBaseUnit(ChronoField field, ChronoUnit baseUnit, ChronoUnit rangeUnit) { argument
147 assertEquals(field.getBaseUnit(), baseUnit);
148 assertEquals(field.getRangeUnit(), rangeUnit);
190 public void test_isDateBased(ChronoField field, boolean isDateBased, boolean isTimeBased) { argument
191 assertEquals(field.isDateBased(), isDateBased);
192 assertEquals(field.isTimeBased(), isTimeBased);
240 public void test_supportedAccessor(ChronoField field, TemporalAccessor accessor, boolean isSupported, long value) { argument
241 assertEquals(field.isSupportedBy(accessor), isSupported);
243 assertEquals(field.getFrom(accessor), value);
264 for (ChronoField field
[all...]
/libcore/benchmarks/src/benchmarks/
H A DMethodInvocationBenchmark.java28 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 DSupport_Format.java38 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
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DFieldTest.java38 public String field; field in class:FieldTest.Type
42 Field field = Type.class.getField("field");
43 checkAnnotatedElementPresentMethods(field, AnnotationA.class, AnnotationD.class);
89 Field field = c.getDeclaredField(fieldName);
92 assertIsAnnotationPresent(field, annotationType, expectedAnnotationString != null);
95 assertGetDeclaredAnnotation(field, annotationType, expectedAnnotationString);
125 Field field = c.getDeclaredField(fieldName);
127 field, annotationType, expectedAnnotationStrings);
157 Field field
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamField.java34 * A description of a Serializable field from a Serializable class. An array
46 /** field name */
48 /** canonical JVM signature of field type */
50 /** field type (Object.class if unknown non-primitive type) */
52 /** whether or not to (de)serialize field values as unshared */
54 /** corresponding reflective field object, if any */
55 private final Field field; field in class:ObjectStreamField
56 /** offset of field value in enclosing field group */
60 * Create a Serializable field wit
134 ObjectStreamField(Field field, boolean unshared, boolean showType) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DCalendarBuilder.java32 * {@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...]
/libcore/ojluni/src/main/java/sun/util/locale/provider/
H A DCalendarDataUtility.java40 * {@code CalendarDataUtility} is a utility class for getting calendar field name values.
74 public static String retrieveFieldValueName(String id, int field, int value, int style, argument
77 if (field == Calendar.ERA) {
78 // For era the field value does not always equal the index into the names array.
99 String[] names = getNames(id, field, style, locale);
106 public static String retrieveJavaTimeFieldValueName(String id, int field, int value, int style, argument
109 return retrieveFieldValueName(id, field, value, style, locale);
112 public static Map<String, Integer> retrieveFieldValueNames(String id, int field, int style, argument
117 names = retrieveFieldValueNamesImpl(id, field, SHORT_FORMAT, locale);
119 names.putAll(retrieveFieldValueNamesImpl(id, field, s
128 retrieveJavaTimeFieldValueNames(String id, int field, int style, Locale locale) argument
149 retrieveFieldValueNamesImpl(String id, int field, int style, Locale locale) argument
185 getNames(String id, int field, int style, Locale locale) argument
[all...]

Completed in 1049 milliseconds

1234