/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestZoneId.java | 119 assertEquals(test.getRules().isFixedOffset(), true); in test_constant_UTC() 120 assertEquals(test.getRules().getOffset(Instant.ofEpochSecond(0L)), ZoneOffset.UTC); in test_constant_UTC() 121 checkOffset(test.getRules(), createLDT(2008, 6, 30), ZoneOffset.UTC, 1); in test_constant_UTC() 160 assertEquals(test.getRules().isFixedOffset(), false); in test_London() 165 …assertEquals(test.getRules().getOffset(createInstant(2008, 1, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() 166 …assertEquals(test.getRules().getOffset(createInstant(2008, 2, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() 167 …assertEquals(test.getRules().getOffset(createInstant(2008, 3, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() 168 …assertEquals(test.getRules().getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() 169 …assertEquals(test.getRules().getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() 170 …assertEquals(test.getRules().getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRulesProvider.java | 105 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean() 107 ZoneRules rules2 = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean() 113 ZoneRulesProvider.getRules("Europe/Lon", false); in test_getRules_StringBoolean_unknownId() 118 ZoneRulesProvider.getRules(null, false); in test_getRules_StringBoolean_null() 127 ZoneRules rules1 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic() 130 ZoneRules rules2 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic() 142 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getVersions_String() 181 …assertEquals(ZoneRulesProvider.getRules("FooLocation", false), ZoneOffset.of("+01:45").getRules()); in test_registerProvider() 185 final ZoneRules rules = ZoneOffset.of("+01:45").getRules(); 206 final ZoneRules BASE = ZoneOffset.of("+01:15").getRules(); [all …]
|
D | TCKFixedZoneRules.java | 95 return offset.getRules(); in make()
|
D | TCKZoneRules.java | 112 return ZoneId.of("Europe/London").getRules(); in europeLondon() 494 return ZoneId.of("Europe/Paris").getRules(); in europeParis() 677 return ZoneId.of("America/New_York").getRules(); in americaNewYork() 877 return ZoneId.of("Asia/Kathmandu").getRules(); in asiaKathmandu() 908 return ZoneId.of("Pacific/Apia").getRules(); in pacificApia()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 236 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_noPrefix() 237 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix() 281 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixUTC() 284 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixUTC() 285 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixUTC() 292 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixGMT() 295 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixGMT() 296 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixGMT() 303 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixUT() 306 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixUT() [all …]
|
D | TCKZoneOffset.java | 487 assertEquals(offset.getRules().isFixedOffset(), true); in test_getRules() 488 assertEquals(offset.getRules().getOffset((Instant) null), offset); in test_getRules() 489 assertEquals(offset.getRules().getDaylightSavings((Instant) null), Duration.ZERO); in test_getRules() 490 assertEquals(offset.getRules().getStandardOffset((Instant) null), offset); in test_getRules() 491 assertEquals(offset.getRules().nextTransition((Instant) null), null); in test_getRules() 492 assertEquals(offset.getRules().previousTransition((Instant) null), null); in test_getRules() 494 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, offset), true); in test_getRules() 495 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, ZoneOffset.UTC), false); in test_getRules() 496 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, null), false); in test_getRules() 497 assertEquals(offset.getRules().getOffset((LocalDateTime) null), offset); in test_getRules() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneRulesSerialization.java | 105 return ZoneId.of("Europe/London").getRules(); in europeLondon() 113 return ZoneId.of("Europe/Paris").getRules(); in europeParis() 120 return ZoneId.of("America/New_York").getRules(); in americaNewYork()
|
D | TCKFixedZoneRulesSerialization.java | 85 return offset.getRules(); in make()
|
/libcore/ojluni/src/main/java/java/time/ |
D | ZoneRegion.java | 120 rules = ZoneRulesProvider.getRules(zoneId, true); in ofId() 174 public ZoneRules getRules() { in getRules() method in ZoneRegion 177 return (rules != null ? rules : ZoneRulesProvider.getRules(id, false)); in getRules()
|
D | ZoneId.java | 384 return new ZoneRegion(prefix, offset.getRules()); in ofOffset() 556 public abstract ZoneRules getRules(); 573 ZoneRules rules = getRules();
|
D | ZonedDateTime.java | 366 ZoneRules rules = zone.getRules(); in ofLocal() 430 if (zone.getRules().isValidOffset(localDateTime, offset)) { in ofInstant() 447 ZoneRules rules = zone.getRules(); in create() 472 ZoneRules rules = zone.getRules(); in ofStrict() 637 … if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { in resolveOffset() 885 ZoneOffsetTransition trans = getZone().getRules().getTransition(dateTime); in withEarlierOffsetAtOverlap() 913 ZoneOffsetTransition trans = getZone().getRules().getTransition(toLocalDateTime()); in withLaterOffsetAtOverlap()
|
D | OffsetTime.java | 195 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now() 252 ZoneRules rules = zone.getRules(); in ofInstant()
|
D | OffsetDateTime.java | 241 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now() 320 ZoneRules rules = zone.getRules(); in ofInstant()
|
D | ZoneOffset.java | 498 public ZoneRules getRules() {
|
D | LocalDateTime.java | 206 ZoneOffset offset = clock.getZone().getRules().getOffset(now); in now() 390 ZoneRules rules = zone.getRules(); in ofInstant()
|
/libcore/ojluni/src/main/java/java/text/ |
D | RuleBasedCollator.java | 316 public String getRules() in getRules() method in RuleBasedCollator 319 return collAsICU().getRules(); in getRules()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 141 ZoneRules rules = zone.getRules(); in ofBest() 171 ZoneRules rules = zone.getRules(); in ofInstant() 232 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withEarlierOffsetAtOverlap() 244 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withLaterOffsetAtOverlap()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | RuleBasedCollatorTest.java | 54 assertEquals(coll.getRules(), clone.getRules()); in testClone() 97 assertEquals(rule, coll.getRules()); in testGetRules()
|
D | CollatorTest.java | 176 new RuleBasedCollator(((RuleBasedCollator) c1).getRules()); in failing_test_getAvailableLocales()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestFixedZoneRules.java | 82 return offset.getRules(); in make()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | IcuZoneRulesProviderTest.java | 84 ZoneRules rules = ZoneRulesProvider.getRules(zoneId, false); in testTransitionsNearInstants() 130 ZoneRules rules = ZoneRulesProvider.getRules(zoneId, false); in testAllTransitions()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | ZoneId.java | 120 public abstract java.time.zone.ZoneRules getRules(); in getRules() method in ZoneId
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRulesProvider.java | 181 public static ZoneRules getRules(String zoneId, boolean forCaching) { in getRules() method in ZoneRulesProvider
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 112 deser.getRules(); in test_deserialization_lenient_characters()
|