Searched refs:fields (Results 1 - 25 of 40) sorted by relevance

12

/libcore/luni/src/main/java/java/util/
H A DGrego.java115 public static int[] dayToFields(long day, int[] fields) { argument
116 if (fields == null || fields.length < 5) {
117 fields = new int[5];
151 fields[0] = year;
152 fields[1] = month;
153 fields[2] = dayOfMonth;
154 fields[3] = dayOfWeek;
155 fields[4] = dayOfYear;
157 return fields;
170 timeToFields(long time, int[] fields) argument
[all...]
H A DGregorianCalendar.java362 if (fields[ERA] == AD) {
380 int month = fields[MONTH] + value;
389 set(YEAR, fields[YEAR] + value);
390 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]);
391 if (fields[DATE] > days) {
481 fields[DAY_OF_YEAR] = dayOfYear;
482 if(fields[YEAR] == changeYear && gregorianCutover <= timeVal + zoneOffset){
486 boolean leapYear = isLeapYear(fields[YEAR]);
492 fields[DAY_OF_WEE
[all...]
H A DSimpleTimeZone.java477 int[] fields = Grego.timeToFields(time + rawOffset, null);
478 return getOffset(GregorianCalendar.AD, fields[0], fields[1], fields[2],
479 fields[3], fields[5]);
871 ObjectOutputStream.PutField fields = stream.putFields();
872 fields.put("dstSavings", dstSavings);
873 fields.put("endDay", sEndDay);
874 fields
[all...]
H A DLocale.java648 ObjectOutputStream.PutField fields = stream.putFields();
649 fields.put("country", countryCode);
650 fields.put("hashcode", -1);
651 fields.put("language", languageCode);
652 fields.put("variant", variantCode);
657 ObjectInputStream.GetField fields = stream.readFields();
658 countryCode = (String) fields.get("country", "");
659 languageCode = (String) fields.get("language", "");
660 variantCode = (String) fields.get("variant", "");
H A DCalendar.java31 * {@code Date} object and a set of integer fields such as
45 * returns a calendar whose locale is based on system settings and whose time fields
57 * fields, as well as their meaning. For example, the first month of the year
83 * {@code WEEK_OF_YEAR} fields, {@code Calendar} must determine
95 * When computing a {@code Date} from time fields, two special
103 * information to specify the missing fields. This may vary by calendar; for the
108 * <strong>Inconsistent information.</strong> If fields conflict, the calendar
109 * will give preference to fields set more recently. For example, when
111 * combinations of fields. The most recent combination, as determined by the
158 * {@code Calendar} fields ca
308 protected int[] fields; field in class:Calendar
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectInputStreamGetFieldTest.java100 ObjectInputStream.GetField fields = object.getField;
103 fields.defaulted("noField");
108 fields.defaulted("longValue"));
110 // Now the same with defaulted fields.
114 fields = defaultedObject.getField;
117 fields.defaulted("longValue"));
124 ObjectInputStream.GetField fields = object.getField;
128 fields.get("noValue", false);
134 fields.get("noValue", (byte) 0);
140 fields
[all...]
H A DSerializationTest.java33 ObjectStreamField[] fields = osc.getFields();
34 assertEquals(1, fields.length);
35 assertEquals("nonTransientInt", fields[0].getName());
36 assertEquals(int.class, fields[0].getType());
H A DOldObjectOutputStreamTest.java53 ObjectInputStream.GetField fields = ois.readFields();
54 aField1 = (String) fields.get("aField1", "Zap");
61 ObjectOutputStream.PutField fields = oos.putFields();
62 fields.put("aField1", aField1);
239 * two fields (Strings) and simple implementations of readObject and
/libcore/luni/src/main/java/java/text/
H A DDecimalFormatSymbols.java587 ObjectOutputStream.PutField fields = stream.putFields();
588 fields.put("currencySymbol", currencySymbol);
589 fields.put("decimalSeparator", getDecimalSeparator());
590 fields.put("digit", getDigit());
591 fields.put("exponential", exponentSeparator.charAt(0));
592 fields.put("exponentialSeparator", exponentSeparator);
593 fields.put("groupingSeparator", getGroupingSeparator());
594 fields.put("infinity", infinity);
595 fields.put("intlCurrencySymbol", intlCurrencySymbol);
596 fields
[all...]
H A DDecimalFormat.java1110 // the fields list to be serialized
1137 * Writes serialized fields following serialized forms specified by Java
1147 ObjectOutputStream.PutField fields = stream.putFields();
1148 fields.put("positivePrefix", ndf.getPositivePrefix());
1149 fields.put("positiveSuffix", ndf.getPositiveSuffix());
1150 fields.put("negativePrefix", ndf.getNegativePrefix());
1151 fields.put("negativeSuffix", ndf.getNegativeSuffix());
1152 fields.put("posPrefixPattern", (String) null);
1153 fields.put("posSuffixPattern", (String) null);
1154 fields
[all...]
H A DNumberFormat.java693 ObjectOutputStream.PutField fields = stream.putFields();
694 fields.put("groupingUsed", groupingUsed);
695 fields.put("maxFractionDigits",
698 fields.put("maximumFractionDigits", maximumFractionDigits);
699 fields.put("maximumIntegerDigits", maximumIntegerDigits);
700 fields.put("maxIntegerDigits",
703 fields.put("minFractionDigits",
706 fields.put("minimumFractionDigits", minimumFractionDigits);
707 fields.put("minimumIntegerDigits", minimumIntegerDigits);
708 fields
[all...]
H A DMessageFormat.java513 ArrayList<FieldContainer> fields = new ArrayList<FieldContainer>();
515 // format the message, and find fields
516 formatImpl((Object[]) object, buffer, new FieldPosition(0), fields);
522 for (FieldContainer fc : fields) {
554 FieldPosition position, List<FieldContainer> fields) {
566 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields);
577 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields);
586 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields);
587 handleFormat(format, arg, begin, fields);
590 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields);
553 formatImpl(Object[] objects, StringBuffer buffer, FieldPosition position, List<FieldContainer> fields) argument
606 handleArgumentField(int begin, int end, int argIndex, FieldPosition position, List<FieldContainer> fields) argument
651 handleFormat(Format format, Object arg, int begin, List<FieldContainer> fields) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DInet6Address.java254 ObjectOutputStream.PutField fields = stream.putFields();
256 fields.put("ipaddress", null);
258 fields.put("ipaddress", ipaddress);
261 fields.put("scope_id", scope_id);
262 fields.put("scope_id_set", scope_id_set);
263 fields.put("scope_ifname_set", scope_ifname_set);
264 fields.put("ifname", ifname);
269 ObjectInputStream.GetField fields = stream.readFields();
270 ipaddress = (byte[]) fields.get("ipaddress", null);
271 scope_id = fields
[all...]
H A DInetAddress.java827 ObjectOutputStream.PutField fields = stream.putFields();
829 fields.put("address", 0);
831 fields.put("address", Memory.peekInt(ipaddress, 0, ByteOrder.BIG_ENDIAN));
833 fields.put("family", family);
834 fields.put("hostName", hostName);
840 ObjectInputStream.GetField fields = stream.readFields();
841 int addr = fields.get("address", 0);
844 hostName = (String) fields.get("hostName", null);
845 family = fields.get("family", 2);
/libcore/luni/src/main/java/java/lang/
H A DStringBuffer.java733 ObjectOutputStream.PutField fields = out.putFields();
734 fields.put("count", length());
735 fields.put("shared", false);
736 fields.put("value", getValue());
742 ObjectInputStream.GetField fields = in.readFields();
743 int count = fields.get("count", 0);
744 char[] value = (char[]) fields.get("value", null);
/libcore/luni/src/main/java/java/io/
H A DEmulatedFields.java21 * An EmulatedFields is an object that represents a set of emulated fields for
23 * different than the fields they were declared to have.
72 * @param fields
73 * an array of ObjectStreamFields, which describe the fields to
77 * fields.
79 public EmulatedFields(ObjectStreamField[] fields, ObjectStreamField[] declared) { argument
81 buildSlots(fields);
86 * Build emulated slots that correspond to emulated fields. A slot is a
89 * @param fields
90 * an array of ObjectStreamField, which describe the fields t
93 buildSlots(ObjectStreamField[] fields) argument
[all...]
H A DObjectStreamClass.java74 * Constant indicating that the class has no Serializable fields.
165 // Array of ObjectStreamField (see below) describing the fields of this
167 private transient ObjectStreamField[] fields; field in class:ObjectStreamClass
169 // Array of ObjectStreamField describing the serialized fields of this class
274 // Copy all fields to loadFields - they should be read by default in
276 ObjectStreamField[] fields = result.getFields();
278 if (fields != null) {
279 ObjectStreamField[] loadFields = new ObjectStreamField[fields.length];
281 for (int i = 0; i < fields.length; ++i) {
282 loadFields[i] = new ObjectStreamField(fields[
387 computeSerialVersionUID(Class<?> cl, Field[] fields) argument
786 ObjectStreamField[] fields() { method in class:ObjectStreamClass
[all...]
H A DEmulatedFieldsForLoading.java22 * fields for an object being loaded. It is a concrete implementation for
30 // The class descriptor with the declared fields the receiver emulates
41 * fields.
45 emulatedFields = new EmulatedFields(streamClass.getLoadFields(), streamClass.fields());
289 * Return the class descriptor for which the emulated fields are defined.
292 * fields are defined.
H A DObjectOutputStream.java122 * PutField is an inner class to provide access to the persistent fields
226 * Writes the fields to the target stream {@code out}.
342 * Computes the collection of emulated fields that users can manipulate to
354 * Default method to write objects to this stream. Serializable fields
473 * private fields, except by the use of a native method like this one.
491 * to the persistent fields that are eventually written to the output
492 * stream. It is used to transfer the values from the fields of the object
493 * that is currently being written to the persistent fields.
495 * @return the PutField object from which persistent fields can be accessed
847 ObjectStreamField[] fields
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldSocketImplFactoryTest.java65 Field [] fields = Socket.class.getDeclaredFields();
67 for (Field field : fields) {
H A DOldDatagramSocketImplFactoryTest.java84 Field [] fields = DatagramSocket.class.getDeclaredFields();
86 for (Field field : fields) {
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DContentHandlerFactoryTest.java92 Field [] fields = URLConnection.class.getDeclaredFields();
94 for (Field field : fields) {
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DReflectionTest.java241 Field[] fields = ExtendsImplementsDefinesMember.class.getFields();
242 assertTrue(names(fields).contains("field"));
246 Field[] fields = ImplementsExtendsDefinesMember.class.getFields();
247 assertTrue(names(fields).contains("field"));
276 Field[] fields = ExtendsAndImplementsDefinesMember.class.getFields();
277 assertEquals(1, count(names(fields), "field"));
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DFieldTest.java241 //Test no NPE on static fields
429 // short, ..., float and double fields
431 // fields and so on.
443 // primitive fields.
445 Field fields[] = { objectField, byteField, shortField, charField,
455 for (int j = i; j < fields.length; j++) {
456 Field field = fields[j];
477 Field field = fields[j];
494 for (int j = 0; j < fields.length; j++) {
495 Field listedField = fields[
[all...]
/libcore/libart/src/main/java/java/lang/
H A DClass.java144 * Instance fields. These describe the layout of the contents of an Object. Note that only the
145 * fields directly declared by this class are listed in iFields; fields declared by a
148 * All instance fields that refer to objects are guaranteed to be at the beginning of the field
149 * list. {@link Class#numReferenceInstanceFields} specifies the number of reference fields.
172 /** Static fields */
220 /** Number of instance fields that are object references. */
223 /** Number of static fields that are object references. */
891 * Returns an array containing {@code Field} objects for all fields declared
892 * in the class represented by this {@code Class}. If there are no fields o
910 getDeclaredFields(boolean publicOnly, List<Field> fields) argument
[all...]

Completed in 423 milliseconds

12