Home
last modified time | relevance | path

Searched refs:isValidOffset (Results 1 – 9 of 9) 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.java244 assertEquals(trans.isValidOffset(OFFSET_ZERO), false); in test_London_getOffsetInfo_gap()
245 assertEquals(trans.isValidOffset(OFFSET_PONE), false); in test_London_getOffsetInfo_gap()
246 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_gap()
270 assertEquals(trans.isValidOffset(ZoneOffset.ofHours(-1)), false); in test_London_getOffsetInfo_overlap()
271 assertEquals(trans.isValidOffset(OFFSET_ZERO), true); in test_London_getOffsetInfo_overlap()
272 assertEquals(trans.isValidOffset(OFFSET_PONE), true); in test_London_getOffsetInfo_overlap()
273 assertEquals(trans.isValidOffset(OFFSET_PTWO), false); in test_London_getOffsetInfo_overlap()
642 assertEquals(trans.isValidOffset(OFFSET_ZERO), false); in test_Paris_getOffsetInfo_gap()
643 assertEquals(trans.isValidOffset(OFFSET_PONE), false); in test_Paris_getOffsetInfo_gap()
644 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.java377 public boolean isValidOffset(ZoneOffset offset) { in isValidOffset() method in ZoneOffsetTransition
DZoneRules.java846 public boolean isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) { in isValidOffset() method in ZoneRules
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java431 if (zone.getRules().isValidOffset(localDateTime, offset)) { in ofInstant()
475 if (rules.isValidOffset(localDateTime, offset) == false) { in ofStrict()
639 … if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { in resolveOffset()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneOffset.java514 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, offset), true); in test_getRules()
515 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, ZoneOffset.UTC), false); in test_getRules()
516 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, null), false); in test_getRules()
/libcore/api/
Dcurrent.txt12983 method public boolean isValidOffset(java.time.ZoneOffset);
13020 method public boolean isValidOffset(java.time.LocalDateTime, java.time.ZoneOffset);