Home
last modified time | relevance | path

Searched refs:isValidOffset (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneOffsetTransition.java155 assertEquals(test.isValidOffset(OFFSET_0100), false); in test_isValidOffset_gap()
156 assertEquals(test.isValidOffset(OFFSET_0200), false); in test_isValidOffset_gap()
157 assertEquals(test.isValidOffset(OFFSET_0230), false); in test_isValidOffset_gap()
158 assertEquals(test.isValidOffset(OFFSET_0300), false); in test_isValidOffset_gap()
159 assertEquals(test.isValidOffset(OFFSET_0400), false); in test_isValidOffset_gap()
166 assertEquals(test.isValidOffset(OFFSET_0100), false); in test_isValidOffset_overlap()
167 assertEquals(test.isValidOffset(OFFSET_0200), true); in test_isValidOffset_overlap()
168 assertEquals(test.isValidOffset(OFFSET_0230), false); in test_isValidOffset_overlap()
169 assertEquals(test.isValidOffset(OFFSET_0300), true); in test_isValidOffset_overlap()
170 assertEquals(test.isValidOffset(OFFSET_0400), false); in test_isValidOffset_overlap()
DTCKFixedZoneRules.java139 assertEquals(test.isValidOffset(LDT, expectedOffset), true); in test_isValidOffset_LDT_ZO()
140 assertEquals(test.isValidOffset(LDT, ZoneOffset.UTC), false); in test_isValidOffset_LDT_ZO()
141 assertEquals(test.isValidOffset(LDT, null), false); in test_isValidOffset_LDT_ZO()
143 assertEquals(test.isValidOffset(null, expectedOffset), true); in test_isValidOffset_LDT_ZO()
144 assertEquals(test.isValidOffset(null, ZoneOffset.UTC), false); in test_isValidOffset_LDT_ZO()
145 assertEquals(test.isValidOffset(null, null), false); in test_isValidOffset_LDT_ZO()
DTCKZoneRules.java235 assertEquals(trans.isValidOffset(OFFSET_ZERO), false); in test_London_getOffsetInfo_gap()
236 assertEquals(trans.isValidOffset(OFFSET_PONE), false); in test_London_getOffsetInfo_gap()
237 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_gap()
260 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(-1)), false); in test_London_getOffsetInfo_overlap()
261 assertEquals(trans.isValidOffset(OFFSET_ZERO), true); in test_London_getOffsetInfo_overlap()
262 assertEquals(trans.isValidOffset(OFFSET_PONE), true); in test_London_getOffsetInfo_overlap()
263 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_overlap()
615 assertEquals(trans.isValidOffset(OFFSET_ZERO), false); in test_Paris_getOffsetInfo_gap()
616 assertEquals(trans.isValidOffset(OFFSET_PONE), false); in test_Paris_getOffsetInfo_gap()
617 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_Paris_getOffsetInfo_gap()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java268 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(-1)), false); in test_London_getOffsetInfo_gap()
269 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(0)), false); in test_London_getOffsetInfo_gap()
270 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(1)), false); in test_London_getOffsetInfo_gap()
271 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(2)), false); in test_London_getOffsetInfo_gap()
294 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(-1)), false); in test_London_getOffsetInfo_overlap()
295 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(0)), true); in test_London_getOffsetInfo_overlap()
296 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(1)), true); in test_London_getOffsetInfo_overlap()
297 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(2)), false); in test_London_getOffsetInfo_overlap()
421 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(0)), false); in test_Paris_getOffsetInfo_gap()
422 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(1)), false); in test_Paris_getOffsetInfo_gap()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java370 public boolean isValidOffset(ZoneOffset offset) { in isValidOffset() method in ZoneOffsetTransition
DZoneRules.java821 public boolean isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) { in isValidOffset() method in ZoneRules
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneOffset.java494 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()
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java430 if (zone.getRules().isValidOffset(localDateTime, offset)) { in ofInstant()
473 if (rules.isValidOffset(localDateTime, offset) == false) { in ofStrict()
637 … if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { in resolveOffset()