Home
last modified time | relevance | path

Searched refs:ZoneRules (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java68 import java.time.zone.ZoneRules;
105 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean()
107 ZoneRules rules2 = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean()
127 ZoneRules rules1 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic()
130 ZoneRules rules2 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic()
140 NavigableMap<String, ZoneRules> versions = ZoneRulesProvider.getVersions("Europe/London"); in test_getVersions_String()
142 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getVersions_String()
145 NavigableMap<String, ZoneRules> copy = new TreeMap<>(versions); in test_getVersions_String()
148 NavigableMap<String, ZoneRules> versions2 = ZoneRulesProvider.getVersions("Europe/London"); in test_getVersions_String()
185 final ZoneRules rules = ZoneOffset.of("+01:45").getRules();
[all …]
DTCKFixedZoneRules.java77 import java.time.zone.ZoneRules;
94 private ZoneRules make(ZoneOffset offset) { in make()
112 public void test_getOffset_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_Instant()
118 public void test_getOffset_LocalDateTime(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_LocalDateTime()
124 public void test_getValidOffsets_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getValidOffsets_LDT()
132 public void test_getTransition_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getTransition_LDT()
138 public void test_isValidOffset_LDT_ZO(ZoneRules test, ZoneOffset expectedOffset) { in test_isValidOffset_LDT_ZO()
149 public void test_getStandardOffset_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getStandardOffset_Instant()
155 public void test_getDaylightSavings_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getDaylightSavings_Instant()
161 public void test_isDaylightSavings_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_isDaylightSavings_Instant()
[all …]
DTCKZoneRules.java86 import java.time.zone.ZoneRules;
111 private ZoneRules europeLondon() { in europeLondon()
116 ZoneRules test = europeLondon(); in test_London()
121 ZoneRules test = europeLondon(); in test_London_preTimeZones()
133 ZoneRules test = europeLondon(); in test_London_getOffset()
149 ZoneRules test = europeLondon(); in test_London_getOffset_toDST()
164 ZoneRules test = europeLondon(); in test_London_getOffset_fromDST()
179 ZoneRules test = europeLondon(); in test_London_getOffsetInfo()
195 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_toDST()
210 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_fromDST()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKZoneRulesSerialization.java69 import java.time.zone.ZoneRules;
87 private void assertSerialization(ZoneRules test) throws Exception { in assertSerialization()
96 ZoneRules result = (ZoneRules) in.readObject(); in assertSerialization()
104 private ZoneRules europeLondon() { in europeLondon()
112 private ZoneRules europeParis() { in europeParis()
119 private ZoneRules americaNewYork() { in americaNewYork()
125 assertNotSerializable(ZoneRules.class); in test_invalid_serialform()
DTCKFixedZoneRulesSerialization.java70 import java.time.zone.ZoneRules;
84 private ZoneRules make(ZoneOffset offset) { in make()
101 public void test_serialization(ZoneRules test, ZoneOffset expectedOffset) throws Exception { in test_serialization()
110 ZoneRules result = (ZoneRules) in.readObject(); in test_serialization()
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java43 private final BasicLruCache<String, ZoneRules> cache = new ZoneRulesCache(8);
57 protected ZoneRules provideRules(String zoneId, boolean forCaching) { in provideRules()
63 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) { in provideVersions()
69 static ZoneRules generateZoneRules(String zoneId) { in generateZoneRules()
73 private static class ZoneRulesCache extends BasicLruCache<String, ZoneRules> {
80 protected ZoneRules create(String zoneId) { in create()
DZoneRulesProvider.java181 public static ZoneRules getRules(String zoneId, boolean forCaching) { in getRules()
210 public static NavigableMap<String, ZoneRules> getVersions(String zoneId) { in getVersions()
351 protected abstract ZoneRules provideRules(String zoneId, boolean forCaching); in provideRules()
376 protected abstract NavigableMap<String, ZoneRules> provideVersions(String zoneId); in provideVersions()
DZoneRules.java110 public final class ZoneRules implements Serializable { class
176 public static ZoneRules of(ZoneOffset baseStandardOffset, in of()
186 return new ZoneRules(baseStandardOffset, baseWallOffset, in of()
197 public static ZoneRules of(ZoneOffset offset) { in of()
199 return new ZoneRules(offset); in of()
211 ZoneRules(ZoneOffset baseStandardOffset, in ZoneRules() method in ZoneRules
268 private ZoneRules(long[] standardTransitions, in ZoneRules() method in ZoneRules
309 private ZoneRules(ZoneOffset offset) { in ZoneRules() method in ZoneRules
429 static ZoneRules readExternal(DataInput in) throws IOException, ClassNotFoundException { in readExternal()
456 return new ZoneRules(stdTrans, stdOffsets, savTrans, savOffsets, rules); in readExternal()
[all …]
DSer.java148 ((ZoneRules) object).writeExternal(out); in writeInternal()
194 return ZoneRules.readExternal(in); in readInternal()
/libcore/ojluni/src/main/java/java/time/
DZoneRegion.java65 import java.time.zone.ZoneRules;
103 private final transient ZoneRules rules;
117 ZoneRules rules = null; in ofId()
162 ZoneRegion(String id, ZoneRules rules) { in ZoneRegion()
174 public ZoneRules getRules() { in getRules()
DZoneId.java76 import java.time.zone.ZoneRules;
556 public abstract ZoneRules getRules();
573 ZoneRules rules = getRules();
DZoneOffset.java84 import java.time.zone.ZoneRules;
498 public ZoneRules getRules() {
499 return ZoneRules.of(this);
DZonedDateTime.java90 import java.time.zone.ZoneRules;
366 ZoneRules rules = zone.getRules(); in ofLocal()
447 ZoneRules rules = zone.getRules(); in create()
472 ZoneRules rules = zone.getRules(); in ofStrict()
DOffsetTime.java92 import java.time.zone.ZoneRules;
252 ZoneRules rules = zone.getRules(); in ofInstant()
DOffsetDateTime.java92 import java.time.zone.ZoneRules;
320 ZoneRules rules = zone.getRules(); in ofInstant()
DLocalDateTime.java96 import java.time.zone.ZoneRules;
390 ZoneRules rules = zone.getRules(); in ofInstant()
DLocalDate.java101 import java.time.zone.ZoneRules;
1811 ZoneRules rules = zone.getRules(); in atStartOfDay()
/libcore/luni/src/test/java/libcore/java/time/zone/
DZoneRulesTest.java24 import java.time.zone.ZoneRules;
40 ZoneRules zoneRules = ZoneRules.of(offset); in test_of_ZoneOffset()
68 ZoneRules.of(null); in test_of_ZoneOffset_null()
/libcore/ojluni/src/test/java/time/test/java/time/zone/
DTestFixedZoneRules.java62 import java.time.zone.ZoneRules;
81 private ZoneRules make(ZoneOffset offset) { in make()
88 ZoneRules test = make(OFFSET_PONE); in test_data_nullInput()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java82 import java.time.zone.ZoneRules;
141 ZoneRules rules = zone.getRules(); in ofBest()
171 ZoneRules rules = zone.getRules(); in ofInstant()
DChronoLocalDateTime.java86 import java.time.zone.ZoneRules;
/libcore/ojluni/annotations/hiddenapi/java/time/
DZoneId.java120 public abstract java.time.zone.ZoneRules getRules(); in getRules()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java77 import java.time.zone.ZoneRules;
666 …private ZoneOffsetTransition checkOffset(ZoneRules rules, LocalDateTime dateTime, ZoneOffset offse… in checkOffset()
/libcore/
Dopenjdk_java_files.bp841 "ojluni/src/main/java/java/time/zone/ZoneRules.java",
/libcore/api/
Dcurrent.txt11192 method public abstract java.time.zone.ZoneRules getRules();
11207 method public java.time.zone.ZoneRules getRules();
12092 public final class ZoneRules implements java.io.Serializable {
12105 …method public static java.time.zone.ZoneRules of(java.time.ZoneOffset, java.time.ZoneOffset, java.…
12106 method public static java.time.zone.ZoneRules of(java.time.ZoneOffset);