/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 35 assertEquals(false, Instant.EPOCH.isSupported((TemporalUnit) null)); in test_isSupported_TemporalUnit() 36 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.NANOS)); in test_isSupported_TemporalUnit() 37 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MICROS)); in test_isSupported_TemporalUnit() 38 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MILLIS)); in test_isSupported_TemporalUnit() 39 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.SECONDS)); in test_isSupported_TemporalUnit() 40 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MINUTES)); in test_isSupported_TemporalUnit() 41 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HOURS)); in test_isSupported_TemporalUnit() 42 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HALF_DAYS)); in test_isSupported_TemporalUnit() 43 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.DAYS)); in test_isSupported_TemporalUnit() 44 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.WEEKS)); in test_isSupported_TemporalUnit() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 85 assertEquals(false, date.isSupported(ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH)); in test_JapaneseDate_isSupported_TemporalField() 86 assertEquals(false, date.isSupported(ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR)); in test_JapaneseDate_isSupported_TemporalField() 87 assertEquals(false, date.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_JapaneseDate_isSupported_TemporalField() 88 assertEquals(false, date.isSupported(ChronoField.ALIGNED_WEEK_OF_YEAR)); in test_JapaneseDate_isSupported_TemporalField() 89 assertEquals(false, date.isSupported(ChronoField.AMPM_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField() 90 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField() 91 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField() 92 assertEquals(true, date.isSupported(ChronoField.DAY_OF_MONTH)); in test_JapaneseDate_isSupported_TemporalField() 93 assertEquals(true, date.isSupported(ChronoField.DAY_OF_WEEK)); in test_JapaneseDate_isSupported_TemporalField() 94 assertEquals(true, date.isSupported(ChronoField.DAY_OF_YEAR)); in test_JapaneseDate_isSupported_TemporalField() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 167 assertEquals(DayOfWeek.THURSDAY.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 168 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 169 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 170 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 171 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 172 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 173 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() 174 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField() 175 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField() 176 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField() [all …]
|
D | TCKMonth.java | 159 assertEquals(Month.AUGUST.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 160 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 161 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 162 assertEquals(Month.AUGUST.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 163 assertEquals(Month.AUGUST.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 164 assertEquals(Month.AUGUST.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 165 assertEquals(Month.AUGUST.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() 166 assertEquals(Month.AUGUST.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField() 167 assertEquals(Month.AUGUST.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField() 168 assertEquals(Month.AUGUST.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField() [all …]
|
D | TCKMonthDay.java | 381 assertEquals(TEST_07_15.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 382 assertEquals(TEST_07_15.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 383 assertEquals(TEST_07_15.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 384 assertEquals(TEST_07_15.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 385 assertEquals(TEST_07_15.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 386 assertEquals(TEST_07_15.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 387 assertEquals(TEST_07_15.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() 388 assertEquals(TEST_07_15.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField() 389 assertEquals(TEST_07_15.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField() 390 assertEquals(TEST_07_15.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField() [all …]
|
D | TCKYear.java | 335 assertEquals(TEST_2008.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 336 assertEquals(TEST_2008.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 337 assertEquals(TEST_2008.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 338 assertEquals(TEST_2008.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 339 assertEquals(TEST_2008.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 340 assertEquals(TEST_2008.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 341 assertEquals(TEST_2008.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() 342 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField() 343 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField() 344 assertEquals(TEST_2008.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField() [all …]
|
D | TCKOffsetTime.java | 521 assertEquals(TEST_11_30_59_500_PONE.isSupported((TemporalField) null), false); 522 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.NANO_OF_SECOND), true); 523 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.NANO_OF_DAY), true); 524 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MICRO_OF_SECOND), true); 525 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MICRO_OF_DAY), true); 526 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MILLI_OF_SECOND), true); 527 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MILLI_OF_DAY), true); 528 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.SECOND_OF_MINUTE), true); 529 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.SECOND_OF_DAY), true); 530 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MINUTE_OF_HOUR), true); [all …]
|
D | TCKYearMonth.java | 400 assertEquals(TEST_2008_06.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 401 assertEquals(TEST_2008_06.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 402 assertEquals(TEST_2008_06.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 403 assertEquals(TEST_2008_06.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 404 assertEquals(TEST_2008_06.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 405 assertEquals(TEST_2008_06.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 406 assertEquals(TEST_2008_06.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() 407 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField() 408 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField() 409 assertEquals(TEST_2008_06.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField() [all …]
|
D | TCKOffsetDateTime.java | 538 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported((TemporalField) null), false); 539 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.NANO_OF_SECOND), true); 540 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.NANO_OF_DAY), true); 541 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MICRO_OF_SECOND), true); 542 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MICRO_OF_DAY), true); 543 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MILLI_OF_SECOND), true); 544 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MILLI_OF_DAY), true); 545 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.SECOND_OF_MINUTE), true); 546 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.SECOND_OF_DAY), true); 547 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MINUTE_OF_HOUR), true); [all …]
|
D | TCKLocalDate.java | 609 assertEquals(TEST_2007_07_15.isSupported((TemporalField) null), false); 610 assertEquals(TEST_2007_07_15.isSupported(ChronoField.NANO_OF_SECOND), false); 611 assertEquals(TEST_2007_07_15.isSupported(ChronoField.NANO_OF_DAY), false); 612 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MICRO_OF_SECOND), false); 613 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MICRO_OF_DAY), false); 614 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MILLI_OF_SECOND), false); 615 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MILLI_OF_DAY), false); 616 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_MINUTE), false); 617 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_DAY), false); 618 assertEquals(TEST_2007_07_15.isSupported(ChronoField.MINUTE_OF_HOUR), false); [all …]
|
D | TCKLocalTime.java | 563 assertEquals(TEST_12_30_40_987654321.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 564 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.NANO_OF_SECOND), true); in test_isSupported_TemporalField() 565 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.NANO_OF_DAY), true); in test_isSupported_TemporalField() 566 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MICRO_OF_SECOND), true); in test_isSupported_TemporalField() 567 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MICRO_OF_DAY), true); in test_isSupported_TemporalField() 568 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MILLI_OF_SECOND), true); in test_isSupported_TemporalField() 569 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MILLI_OF_DAY), true); in test_isSupported_TemporalField() 570 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true); in test_isSupported_TemporalField() 571 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_DAY), true); in test_isSupported_TemporalField() 572 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); in test_isSupported_TemporalField() [all …]
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | IsSupported.java | 63 state = rootNode.isSupported("XXX", "1.0"); in testIsSupported1() 72 state = rootNode.isSupported("XML", "9.0"); in testIsSupported2() 81 state = rootNode.isSupported("xml", "1.0"); in testIsSupported4() 90 state = rootNode.isSupported("core", "2.0"); in testIsSupported5() 99 state = rootNode.isSupported("xml", "2.0"); in testIsSupported6() 108 state = rootNode.isSupported("XML", ""); in testIsSupported7() 117 state = rootNode.isSupported("XML", "1.0"); in testIsSupported9() 126 state = rootNode.isSupported("CORE", "2.0"); in testIsSupported10() 135 state = rootNode.isSupported("XML", "2.0"); in testIsSupported11() 163 state = rootNode.isSupported("Core", "2.0"); in testIsSupported12() [all …]
|
D | NodeIsSupported.java | 103 success = element.isSupported(featureXML, version); in testIsSupported1() 105 success = element.isSupported(featureXML, version1); in testIsSupported1() 110 success = element.isSupported(featureCore, version); in testIsSupported1() 112 success = element.isSupported(featureCore, version1); in testIsSupported1() 113 success = element.isSupported(featureCore, version2); in testIsSupported1() 138 success = attribute.isSupported(featureXML, version); in testIsSupported2() 140 success = attribute.isSupported(featureXML, version1); in testIsSupported2() 145 success = attribute.isSupported(featureCore, version); in testIsSupported2() 147 success = attribute.isSupported(featureCore, version1); in testIsSupported2() 148 success = attribute.isSupported(featureCore, version2); in testIsSupported2() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 157 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantZones_supported() 158 assertEquals(actual.isSupported(EPOCH_DAY), true); in test_parse_instantZones_supported() 159 assertEquals(actual.isSupported(SECOND_OF_DAY), true); in test_parse_instantZones_supported() 160 assertEquals(actual.isSupported(NANO_OF_SECOND), true); in test_parse_instantZones_supported() 161 assertEquals(actual.isSupported(MICRO_OF_SECOND), true); in test_parse_instantZones_supported() 162 assertEquals(actual.isSupported(MILLI_OF_SECOND), true); in test_parse_instantZones_supported() 196 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantNoZone_supported() 197 assertEquals(actual.isSupported(EPOCH_DAY), false); in test_parse_instantNoZone_supported() 198 assertEquals(actual.isSupported(SECOND_OF_DAY), false); in test_parse_instantNoZone_supported() 199 assertEquals(actual.isSupported(NANO_OF_SECOND), true); in test_parse_instantNoZone_supported() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | nodeissupported01.java | 87 success = element.isSupported(featureXML, version); in runTest() 89 success = element.isSupported(featureXML, version1); in runTest() 94 success = element.isSupported(featureCore, version); in runTest() 96 success = element.isSupported(featureCore, version1); in runTest() 97 success = element.isSupported(featureCore, version2); in runTest()
|
D | nodeissupported02.java | 87 success = attribute.isSupported(featureXML, version); in runTest() 89 success = attribute.isSupported(featureXML, version1); in runTest() 94 success = attribute.isSupported(featureCore, version); in runTest() 96 success = attribute.isSupported(featureCore, version1); in runTest() 97 success = attribute.isSupported(featureCore, version2); in runTest()
|
D | isSupported12.java | 96 state = rootNode.isSupported("Core", "2.0"); in runTest() 100 state = rootNode.isSupported(featureElement, "1.0"); in runTest() 104 state = rootNode.isSupported(featureElement, "2.0"); in runTest()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 148 if (temporal.isSupported(INSTANT_SECONDS)) { in adjust() 153 … if (overrideZone.normalized() instanceof ZoneOffset && temporal.isSupported(OFFSET_SECONDS) && in adjust() 163 if (temporal.isSupported(EPOCH_DAY)) { in adjust() 169 if (f.isDateBased() && temporal.isSupported(f)) { in adjust() 187 public boolean isSupported(TemporalField field) { in adjust() 189 return effectiveDate.isSupported(field); in adjust() 191 return temporal.isSupported(field); in adjust()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedFieldParser.java | 158 assertEquals(parsed.isSupported(YEAR_OF_ERA), true); in test_parse_textLocalDate() 159 assertEquals(parsed.isSupported(WeekFields.of(locale).dayOfWeek()), true); in test_parse_textLocalDate() 160 assertEquals(parsed.isSupported(WeekFields.of(locale).weekOfMonth()) || in test_parse_textLocalDate() 161 parsed.isSupported(WeekFields.of(locale).weekOfYear()), true); in test_parse_textLocalDate() 196 assertEquals(parsed.isSupported(weekDef.dayOfWeek()), pattern.indexOf('e') >= 0); in test_parse_WeekBasedYear() 197 … assertEquals(parsed.isSupported(weekDef.weekOfWeekBasedYear()), pattern.indexOf('w') >= 0); in test_parse_WeekBasedYear() 198 assertEquals(parsed.isSupported(weekDef.weekBasedYear()), pattern.indexOf('Y') >= 0); in test_parse_WeekBasedYear()
|
D | TCKDateTimeParseResolver.java | 159 assertEquals(accessor.isSupported(field1), true); in test_resolveOneNoChange() 198 assertEquals(accessor.isSupported(field1), true); in test_resolveTwoNoChange() 199 assertEquals(accessor.isSupported(field2), true); in test_resolveTwoNoChange() 230 assertEquals(accessor.isSupported(field1), true); in test_resolveThreeNoChange() 231 assertEquals(accessor.isSupported(field2), true); in test_resolveThreeNoChange() 232 assertEquals(accessor.isSupported(field3), true); in test_resolveThreeNoChange() 265 assertEquals(accessor.isSupported(expectedField1), true); in test_resolveOneToField() 269 assertEquals(accessor.isSupported(expectedField2), true); in test_resolveOneToField() 347 assertEquals(accessor.isSupported(expectedField1), true); in test_resolveTwoToField() 351 assertEquals(accessor.isSupported(expectedField2), true); in test_resolveTwoToField() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 277 assertTrue(Charset.isSupported("US-ASCII")); in testRequiredCharsetSupported() 278 assertTrue(Charset.isSupported("ASCII")); in testRequiredCharsetSupported() 279 assertTrue(Charset.isSupported("ISO-8859-1")); in testRequiredCharsetSupported() 280 assertTrue(Charset.isSupported("ISO8859_1")); in testRequiredCharsetSupported() 281 assertTrue(Charset.isSupported("UTF-8")); in testRequiredCharsetSupported() 282 assertTrue(Charset.isSupported("UTF8")); in testRequiredCharsetSupported() 283 assertTrue(Charset.isSupported("UTF-16")); in testRequiredCharsetSupported() 284 assertTrue(Charset.isSupported("UTF-16BE")); in testRequiredCharsetSupported() 285 assertTrue(Charset.isSupported("UTF-16LE")); in testRequiredCharsetSupported() 311 Charset.isSupported(null); in testIsSupported_Null() [all …]
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 176 if (!isSupported(Socket.class, name)) { in setOption() 204 if (!isSupported(Socket.class, name)) { in getOption() 234 if (!isSupported(ServerSocket.class, name)) { in setOption() 262 if (!isSupported(ServerSocket.class, name)) { in getOption() 293 if (!isSupported(s.getClass(), name)) { in setOption() 322 if (!isSupported(s.getClass(), name)) { in getOption() 346 private static boolean isSupported(Class<?> type, SocketOption<?> option) { in isSupported() method in Sockets
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 364 if (temporal.isSupported(OFFSET_SECONDS)) { 382 if (temporal.isSupported(EPOCH_DAY)) { 392 if (temporal.isSupported(NANO_OF_DAY)) {
|
D | TemporalAccessor.java | 126 boolean isSupported(TemporalField field); in isSupported() method 171 if (isSupported(field)) { in range()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | MockFieldValue.java | 82 public boolean isSupported(TemporalField field) { in isSupported() method in MockFieldValue 89 if (isSupported(field)) { in range()
|