Searched refs:fields (Results 1 - 25 of 42) 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.java338 * and recalculate the fields incurring unnecessary cost when the time or fields will be set
371 if (fields[ERA] == AD) {
389 int month = fields[MONTH] + value;
398 set(YEAR, fields[YEAR] + value);
399 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]);
400 if (fields[DATE] > days) {
478 // Adding fields[ZONE_OFFSET] to time might make it overflow, so we add
480 millis += fields[ZONE_OFFSE
[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 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.java37 ObjectStreamField[] fields = osc.getFields();
38 assertEquals(1, fields.length);
39 assertEquals("nonTransientInt", fields[0].getName());
40 assertEquals(int.class, fields[0].getType());
59 ObjectStreamField[] fields = osc.getFields();
60 assertEquals(0, fields.length);
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.java607 ObjectOutputStream.PutField fields = stream.putFields();
608 fields.put("currencySymbol", currencySymbol);
609 fields.put("decimalSeparator", getDecimalSeparator());
610 fields.put("digit", getDigit());
611 fields.put("exponential", exponentSeparator.charAt(0));
612 fields.put("exponentialSeparator", exponentSeparator);
613 fields.put("groupingSeparator", getGroupingSeparator());
614 fields.put("infinity", infinity);
615 fields.put("intlCurrencySymbol", intlCurrencySymbol);
616 fields
[all...]
H A DDecimalFormat.java1069 // the fields list to be serialized
1096 * Writes serialized fields following serialized forms specified by Java
1106 ObjectOutputStream.PutField fields = stream.putFields();
1107 fields.put("positivePrefix", ndf.getPositivePrefix());
1108 fields.put("positiveSuffix", ndf.getPositiveSuffix());
1109 fields.put("negativePrefix", ndf.getNegativePrefix());
1110 fields.put("negativeSuffix", ndf.getNegativeSuffix());
1111 fields.put("posPrefixPattern", (String) null);
1112 fields.put("posSuffixPattern", (String) null);
1113 fields
[all...]
H A DNumberFormat.java709 ObjectOutputStream.PutField fields = stream.putFields();
710 fields.put("groupingUsed", groupingUsed);
711 fields.put("maxFractionDigits",
714 fields.put("maximumFractionDigits", maximumFractionDigits);
715 fields.put("maximumIntegerDigits", maximumIntegerDigits);
716 fields.put("maxIntegerDigits",
719 fields.put("minFractionDigits",
722 fields.put("minimumFractionDigits", minimumFractionDigits);
723 fields.put("minimumIntegerDigits", minimumIntegerDigits);
724 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.java860 ObjectOutputStream.PutField fields = stream.putFields();
862 fields.put("address", 0);
864 fields.put("address", Memory.peekInt(ipaddress, 0, ByteOrder.BIG_ENDIAN));
866 fields.put("family", family);
867 fields.put("hostName", hostName);
873 ObjectInputStream.GetField fields = stream.readFields();
874 int addr = fields.get("address", 0);
877 hostName = (String) fields.get("hostName", null);
878 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/javax/crypto/
H A DSealedObject.java64 ObjectInputStream.GetField fields = s.readFields();
67 this.encodedParams = getSafeCopy(fields, "encodedParams");
68 this.encryptedContent = getSafeCopy(fields, "encryptedContent");
69 this.paramsAlg = (String) fields.get("paramsAlg", null);
70 this.sealAlg = (String) fields.get("sealAlg", null);
73 private static byte[] getSafeCopy(ObjectInputStream.GetField fields, String fieldName) argument
75 byte[] fieldValue = (byte[]) fields.get(fieldName, 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
213 // No serialization or deserialization of transient or static fields!
294 // Copy all fields to loadFields - they should be read by default in
296 ObjectStreamField[] fields = result.getFields();
298 if (fields != null) {
299 ObjectStreamField[] loadFields = new ObjectStreamField[fields.length];
301 for (int i = 0; i < fields
407 computeSerialVersionUID(Class<?> cl, Field[] fields) argument
806 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.java115 * PutField is an inner class to provide access to the persistent fields
219 * Writes the fields to the target stream {@code out}.
334 * Computes the collection of emulated fields that users can manipulate to
346 * Default method to write objects to this stream. Serializable fields
469 * to the persistent fields that are eventually written to the output
470 * stream. It is used to transfer the values from the fields of the object
471 * that is currently being written to the persistent fields.
473 * @return the PutField object from which persistent fields can be accessed
825 ObjectStreamField[] fields = null;
828 // The fields o
[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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DFieldTest.java228 //Test no NPE on static fields
414 // short, ..., float and double fields
416 // fields and so on.
428 // primitive fields.
430 Field fields[] = { objectField, byteField, shortField, charField,
440 for (int j = i; j < fields.length; j++) {
441 Field field = fields[j];
461 Field field = fields[j];
477 for (int j = 0; j < fields.length; j++) {
478 Field listedField = fields[
[all...]
/libcore/libart/src/main/java/java/lang/
H A DClass.java148 * Instance fields. These describe the layout of the contents of an Object. Note that only the
149 * fields directly declared by this class are listed in iFields; fields declared by a
152 * All instance fields that refer to objects are guaranteed to be at the beginning of the field
153 * list. {@link Class#numReferenceInstanceFields} specifies the number of reference fields.
176 /** Static fields */
224 /** Number of instance fields that are object references. */
227 /** Number of static fields that are object references. */
898 * Returns an array containing {@code Field} objects for all fields declared
899 * in the class represented by this {@code Class}. If there are no fields o
925 getDeclaredFieldsUnchecked(boolean publicOnly, List<Field> fields) argument
968 findByName(String name, ArtField[] fields) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DReflectionTest.java264 Field[] fields = ExtendsImplementsDefinesMember.class.getFields();
265 assertTrue(names(fields).contains("field"));
269 Field[] fields = ImplementsExtendsDefinesMember.class.getFields();
270 assertTrue(names(fields).contains("field"));
299 Field[] fields = ExtendsAndImplementsDefinesMember.class.getFields();
300 assertEquals(1, count(names(fields), "field"));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DSerializationStressTest2.java72 // real fields but does not override read/writeObject
86 // fields
114 ObjectInputStream.GetField fields = in.readFields();
115 anInstanceVar = Integer.parseInt((String) fields.get(
121 ObjectOutputStream.PutField fields = out.putFields();
122 fields.put(SIMULATED_FIELD_NAME, Integer.toString(anInstanceVar));
127 // Tests the behavior for serialPersistentFields when no fields are actually
144 ObjectInputStream.GetField fields = in.readFields();
165 ObjectInputStream.GetField fields = in.readFields();
170 ObjectOutputStream.PutField fields
[all...]

Completed in 519 milliseconds

12