Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 48) sorted by relevance

12

/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java372 if (fields[ERA] == AD) { in add()
390 int month = fields[MONTH] + value; in add()
399 set(YEAR, fields[YEAR] + value); in add()
400 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in add()
401 if (fields[DATE] > days) { in add()
483 fields[DAY_OF_YEAR] = dayOfYear; in fullFieldsCalc()
484 if(fields[YEAR] == changeYear && gregorianCutover <= timeVal + zoneOffset){ in fullFieldsCalc()
488 boolean leapYear = isLeapYear(fields[YEAR]); in fullFieldsCalc()
494 fields[DAY_OF_WEEK] = mod7(days - 3) + 1; in fullFieldsCalc()
495 int dstOffset = fields[YEAR] <= 0 ? 0 : getTimeZone().getOffset(AD, in fullFieldsCalc()
[all …]
DGrego.java115 public static int[] dayToFields(long day, int[] fields) { in dayToFields() argument
116 if (fields == null || fields.length < 5) { in dayToFields()
117 fields = new int[5]; in dayToFields()
151 fields[0] = year; in dayToFields()
152 fields[1] = month; in dayToFields()
153 fields[2] = dayOfMonth; in dayToFields()
154 fields[3] = dayOfWeek; in dayToFields()
155 fields[4] = dayOfYear; in dayToFields()
157 return fields; in dayToFields()
170 public static int[] timeToFields(long time, int[] fields) { in timeToFields() argument
[all …]
DSimpleTimeZone.java523 int[] fields = Grego.timeToFields(time + rawOffset, null); in getOffset() local
524 return getOffset(GregorianCalendar.AD, fields[0], fields[1], fields[2], in getOffset()
525 fields[3], fields[5]); in getOffset()
964 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
965 fields.put("dstSavings", dstSavings); in writeObject()
966 fields.put("endDay", sEndDay); in writeObject()
967 fields.put("endDayOfWeek", sEndDayOfWeek); in writeObject()
968 fields.put("endMode", endMode); in writeObject()
969 fields.put("endMonth", endMonth); in writeObject()
970 fields.put("endTime", endTime); in writeObject()
[all …]
DPropertyPermissionCollection.java83 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
84 fields.put("permissions", permissions); in writeObject()
85 fields.put("all_allowed", false); in writeObject()
92 ObjectInputStream.GetField fields = stream.readFields(); in readObject() local
93 permissions = (Hashtable<String, Permission>) fields.get( in readObject()
DPropertyPermission.java160 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
161 fields.put("actions", getActions()); in writeObject()
167 ObjectInputStream.GetField fields = stream.readFields(); in readObject() local
168 String actions = (String) fields.get("actions", ""); in readObject()
DLocale.java629 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
630 fields.put("country", countryCode); in writeObject()
631 fields.put("hashcode", -1); in writeObject()
632 fields.put("language", languageCode); in writeObject()
633 fields.put("variant", variantCode); in writeObject()
638 ObjectInputStream.GetField fields = stream.readFields(); in readObject() local
639 countryCode = (String) fields.get("country", ""); in readObject()
640 languageCode = (String) fields.get("language", ""); in readObject()
641 variantCode = (String) fields.get("variant", ""); in readObject()
DCalendar.java308 protected int[] fields; field in Calendar
707 fields = new int[FIELD_COUNT]; in Calendar()
787 fields[i] = 0; in clear()
800 fields[field] = 0; in clear()
816 clone.fields = fields.clone(); in clone()
902 return fields[field]; in get()
1137 return fields[field]; in internalGet()
1211 fields[field] = value; in set()
1375 result.append(fields[i]); in toString()
1524 putFields.put("fields", this.fields); in writeObject()
[all …]
/libcore/luni/src/main/java/java/text/
DDecimalFormatSymbols.java587 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
588 fields.put("currencySymbol", currencySymbol); in writeObject()
589 fields.put("decimalSeparator", getDecimalSeparator()); in writeObject()
590 fields.put("digit", getDigit()); in writeObject()
591 fields.put("exponential", exponentSeparator.charAt(0)); in writeObject()
592 fields.put("exponentialSeparator", exponentSeparator); in writeObject()
593 fields.put("groupingSeparator", getGroupingSeparator()); in writeObject()
594 fields.put("infinity", infinity); in writeObject()
595 fields.put("intlCurrencySymbol", intlCurrencySymbol); in writeObject()
596 fields.put("minusSign", getMinusSign()); in writeObject()
[all …]
DDecimalFormat.java1189 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
1190 fields.put("positivePrefix", dform.getPositivePrefix()); in writeObject()
1191 fields.put("positiveSuffix", dform.getPositiveSuffix()); in writeObject()
1192 fields.put("negativePrefix", dform.getNegativePrefix()); in writeObject()
1193 fields.put("negativeSuffix", dform.getNegativeSuffix()); in writeObject()
1194 fields.put("posPrefixPattern", (String) null); in writeObject()
1195 fields.put("posSuffixPattern", (String) null); in writeObject()
1196 fields.put("negPrefixPattern", (String) null); in writeObject()
1197 fields.put("negSuffixPattern", (String) null); in writeObject()
1198 fields.put("multiplier", dform.getMultiplier()); in writeObject()
[all …]
DNumberFormat.java698 ObjectOutputStream.PutField fields = stream.putFields();
699 fields.put("groupingUsed", groupingUsed);
700 fields.put("maxFractionDigits",
703 fields.put("maximumFractionDigits", maximumFractionDigits);
704 fields.put("maximumIntegerDigits", maximumIntegerDigits);
705 fields.put("maxIntegerDigits",
708 fields.put("minFractionDigits",
711 fields.put("minimumFractionDigits", minimumFractionDigits);
712 fields.put("minimumIntegerDigits", minimumIntegerDigits);
713 fields.put("minIntegerDigits",
[all …]
DMessageFormat.java518 Vector<FieldContainer> fields = new Vector<FieldContainer>(); in formatToCharacterIterator() local
521 formatImpl((Object[]) object, buffer, new FieldPosition(0), fields); in formatToCharacterIterator()
527 for (int i = 0; i < fields.size(); i++) { in formatToCharacterIterator()
528 FieldContainer fc = fields.elementAt(i); in formatToCharacterIterator()
560 FieldPosition position, Vector<FieldContainer> fields) { in formatImpl() argument
573 position, fields); in formatImpl()
585 argumentNumbers[i], position, fields); in formatImpl()
595 position, fields); in formatImpl()
596 handleformat(format, arg, begin, fields); in formatImpl()
600 position, fields); in formatImpl()
[all …]
DSimpleDateFormat.java487 Vector<FieldPosition> fields = new Vector<FieldPosition>(); in formatToCharacterIteratorImpl() local
490 formatImpl(date, buffer, null, fields); in formatToCharacterIteratorImpl()
496 for (int i = 0; i < fields.size(); i++) { in formatToCharacterIteratorImpl()
497 FieldPosition pos = fields.elementAt(i); in formatToCharacterIteratorImpl()
532 FieldPosition field, Vector<FieldPosition> fields) { in formatImpl() argument
546 append(buffer, field, fields, (char) last, count); in formatImpl()
564 append(buffer, field, fields, (char) last, count); in formatImpl()
571 append(buffer, field, fields, (char) last, count); in formatImpl()
579 append(buffer, field, fields, (char) last, count); in formatImpl()
585 Vector<FieldPosition> fields, char format, int count) { in append() argument
[all …]
/libcore/luni/src/test/java/tests/api/java/io/
DObjectInputStreamGetFieldTest.java173 ObjectInputStream.GetField fields = object.getField; in test_defaultedLjava_lang_String() local
176 fields.defaulted("noField"); in test_defaultedLjava_lang_String()
181 fields.defaulted("longValue")); in test_defaultedLjava_lang_String()
187 fields = defaultedObject.getField; in test_defaultedLjava_lang_String()
190 fields.defaulted("longValue")); in test_defaultedLjava_lang_String()
255 ObjectInputStream.GetField fields = object.getField; in test_getException() local
259 fields.get("noValue", false); in test_getException()
265 fields.get("noValue", (byte) 0); in test_getException()
271 fields.get("noValue", (char) 0); in test_getException()
277 fields.get("noValue", 0.0); in test_getException()
[all …]
/libcore/luni/src/main/java/java/net/
DInet6Address.java427 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
429 fields.put("ipaddress", null); in writeObject()
431 fields.put("ipaddress", ipaddress); in writeObject()
434 fields.put("scope_id", scope_id); in writeObject()
435 fields.put("scope_id_set", scope_id_set); in writeObject()
436 fields.put("scope_ifname_set", scope_ifname_set); in writeObject()
437 fields.put("ifname", ifname); in writeObject()
443 ObjectInputStream.GetField fields = stream.readFields(); in readObject() local
444 ipaddress = (byte[]) fields.get("ipaddress", null); in readObject()
445 scope_id = fields.get("scope_id", 0); in readObject()
[all …]
DInetAddress.java1063 ObjectOutputStream.PutField fields = stream.putFields(); in writeObject() local
1065 fields.put("address", 0); in writeObject()
1067 fields.put("address", bytesToInt(ipaddress, 0)); in writeObject()
1069 fields.put("family", family); in writeObject()
1070 fields.put("hostName", hostName); in writeObject()
1077 ObjectInputStream.GetField fields = stream.readFields(); in readObject() local
1078 int addr = fields.get("address", 0); in readObject()
1081 hostName = (String) fields.get("hostName", null); in readObject()
1082 family = fields.get("family", 2); in readObject()
/libcore/luni/src/main/java/java/security/
DBasicPermissionCollection.java166 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
167 fields.put("all_allowed", allEnabled); in writeObject()
168 fields.put("permissions", new Hashtable<String, Permission>(items)); in writeObject()
169 fields.put("permClass", permClass); in writeObject()
179 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
183 permClass = (Class<? extends Permission>)fields.get("permClass", null); in readObject()
184 items.putAll((Hashtable<String, Permission>) fields.get( in readObject()
191 allEnabled = fields.get("all_allowed", false); in readObject()
DAllPermissionCollection.java122 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
123 fields.put("all_allowed", all != null); in writeObject()
132 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
133 if (fields.get("all_allowed", false)) { in readObject()
DPermissions.java212 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
213 Map perms = (Map)fields.get("perms", null); in readObject()
226 allEnabled = fields.get("allPermission", null) != null; in readObject()
236 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
237 fields.put("perms", new Hashtable(klasses)); in writeObject()
238 fields.put("allPermission", allEnabled ? klasses in writeObject()
DUnresolvedPermissionCollection.java160 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
161 fields.put("permissions", permissions); in writeObject()
170 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
171 Map permissions = (Map)fields.get("permissions", null); in readObject()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java186 private transient ObjectStreamField[] fields; field in ObjectStreamClass
270 ObjectStreamField[] fields = result.getFields(); in createClassDesc() local
272 if (fields != null) { in createClassDesc()
273 ObjectStreamField[] loadFields = new ObjectStreamField[fields.length]; in createClassDesc()
275 for (int i = 0; i < fields.length; ++i) { in createClassDesc()
276 loadFields[i] = new ObjectStreamField(fields[i].getName(), in createClassDesc()
277 fields[i].getType(), fields[i].isUnshared()); in createClassDesc()
378 fields = _fields; in buildFieldDescriptors()
392 private static long computeSerialVersionUID(Class<?> cl, Field[] fields) { in computeSerialVersionUID() argument
398 for (int i = 0; i < fields.length; i++) { in computeSerialVersionUID()
[all …]
DEmulatedFields.java79 public EmulatedFields(ObjectStreamField[] fields, in EmulatedFields() argument
83 buildSlots(fields); in EmulatedFields()
95 private void buildSlots(ObjectStreamField[] fields) { in buildSlots() argument
96 slotsToSerialize = new ObjectSlot[fields.length]; in buildSlots()
97 for (int i = 0; i < fields.length; i++) { in buildSlots()
100 s.field = fields[i]; in buildSlots()
DObjectStreamField.java339 static void sortFields(ObjectStreamField[] fields) { in sortFields() argument
341 if (fields.length > 1) { in sortFields()
347 Arrays.sort(fields, fieldDescComparator); in sortFields()
/libcore/luni/src/main/java/java/lang/
DStringBuffer.java734 ObjectOutputStream.PutField fields = out.putFields(); in writeObject() local
735 fields.put("count", length()); in writeObject()
736 fields.put("shared", false); in writeObject()
737 fields.put("value", getValue()); in writeObject()
743 ObjectInputStream.GetField fields = in.readFields(); in readObject() local
744 int count = fields.get("count", 0); in readObject()
745 char[] value = (char[]) fields.get("value", null); in readObject()
DClassCache.java382 ArrayList<Field> fields = new ArrayList<Field>(); in getFullListOfFields() local
385 findAllfields(clazz, fields, seen, publicOnly); in getFullListOfFields()
387 return fields.toArray(new Field[fields.size()]); in getFullListOfFields()
404 ArrayList<Field> fields, HashSet<String> seen, in findAllfields() argument
412 fields.add(field); in findAllfields()
420 findAllfields(intf, fields, seen, publicOnly); in findAllfields()
/libcore/luni/src/test/java/libcore/java/net/
DOldURLStreamHandlerFactoryTest.java80 Field [] fields = URL.class.getDeclaredFields(); in setUp() local
82 for (Field field : fields) { in setUp()

12