Home
last modified time | relevance | path

Searched refs:isSet (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java602 isSet[i] = true; in computeFields()
609 if (isSet[HOUR_OF_DAY]) { in computeTime()
613 } else if (isSet[HOUR] && (fields[HOUR] < 0 || fields[HOUR] > 11)) { in computeTime()
616 if (isSet[MINUTE] && (fields[MINUTE] < 0 || fields[MINUTE] > 59)) { in computeTime()
619 if (isSet[SECOND] && (fields[SECOND] < 0 || fields[SECOND] > 59)) { in computeTime()
622 if (isSet[MILLISECOND] in computeTime()
626 if (isSet[WEEK_OF_YEAR] in computeTime()
630 if (isSet[DAY_OF_WEEK] in computeTime()
634 if (isSet[DAY_OF_WEEK_IN_MONTH] in computeTime()
638 if (isSet[WEEK_OF_MONTH] in computeTime()
[all …]
DCalendar.java319 protected boolean[] isSet; field in Calendar
719 isSet = new boolean[FIELD_COUNT]; in Calendar()
796 isSet[i] = false; in clear()
808 isSet[field] = false; in clear()
820 clone.isSet = isSet.clone(); in clone()
1092 public final boolean isSet(int field) { in isSet() method in Calendar
1093 return isSet[field]; in isSet()
1123 isSet[field] = true; in set()
1235 if (isSet[i]) { in toString()
1384 putFields.put("isSet", isSet); in writeObject()
[all …]
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java158 boolean yearSet = isSet(DatatypeConstants.YEARS); in getXMLSchemaType()
159 boolean monthSet = isSet(DatatypeConstants.MONTHS); in getXMLSchemaType()
160 boolean daySet = isSet(DatatypeConstants.DAYS); in getXMLSchemaType()
161 boolean hourSet = isSet(DatatypeConstants.HOURS); in getXMLSchemaType()
162 boolean minuteSet = isSet(DatatypeConstants.MINUTES); in getXMLSchemaType()
163 boolean secondSet = isSet(DatatypeConstants.SECONDS); in getXMLSchemaType()
435 public abstract boolean isSet(final DatatypeConstants.Field field); in isSet() method in Duration
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java225 assertTrue(cal.isSet(Calendar.DAY_OF_MONTH)); in test_clear_45877()
226 assertFalse(cal.isSet(Calendar.HOUR_OF_DAY)); in test_clear_45877()
234 assertTrue(cal.isSet(Calendar.DAY_OF_MONTH)); in test_clear_45877()
235 assertTrue(cal.isSet(Calendar.HOUR_OF_DAY)); in test_clear_45877()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java630 assertFalse(calendar.isSet(i)); in test_isSet()