Home
last modified time | relevance | path

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

12345678910>>...23

/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/angle/third_party/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/openscreen/third_party/abseil/src/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java40 import com.ibm.icu.util.TimeZone;
41 import com.ibm.icu.util.TimeZone.SystemTimeZoneType;
137 boolean isJDKTimeZone = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); in TestShortZoneIDs()
197 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
221 ZoneDescriptor(TimeZone zone) { in ZoneDescriptor()
279 "GMT-YOUR.AD.HERE", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
284 "GMT+15:99", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
285 "GMT+", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
286 "GMT-", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
287 "GMT+0:", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
[all …]
DTimeZoneRegressionTest.java36 import com.ibm.icu.util.TimeZone;
44 String id = TimeZone.getDefault().getID(); in Test4052967()
62 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
63 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
108 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
150 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
164 TimeZone frankenZone = (TimeZone) istream.readObject(); in Test4096952()
188 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
205 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
210 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneTest.java41 import android.icu.util.TimeZone;
42 import android.icu.util.TimeZone.SystemTimeZoneType;
140 boolean isJDKTimeZone = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); in TestShortZoneIDs()
200 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
224 ZoneDescriptor(TimeZone zone) { in ZoneDescriptor()
282 "GMT-YOUR.AD.HERE", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
287 "GMT+15:99", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
288 "GMT+", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
289 "GMT-", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
290 "GMT+0:", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
[all …]
DTimeZoneRegressionTest.java37 import android.icu.util.TimeZone;
47 String id = TimeZone.getDefault().getID(); in Test4052967()
65 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
66 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
111 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
153 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
167 TimeZone frankenZone = (TimeZone) istream.readObject(); in Test4096952()
191 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
208 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
213 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
[all …]
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/
DExtendedTimeZoneTest.java24 import android.icu.util.TimeZone;
38 private TimeZone originalDefaultTimeZone;
42 originalDefaultTimeZone = TimeZone.getDefault(); in setUp()
47 TimeZone.setDefault(originalDefaultTimeZone); in tearDown()
56 TimeZone.setDefault(TimeZone.GMT_ZONE); in testClearDefaultTimeZone_synchronizeTimeZone_equals()
60 TimeZone newYorkTz = TimeZone.getTimeZone("America/New_York"); in testClearDefaultTimeZone_synchronizeTimeZone_equals()
61 TimeZone.setICUDefault(newYorkTz); in testClearDefaultTimeZone_synchronizeTimeZone_equals()
64 assertEquals(newYorkTz, TimeZone.getDefault()); in testClearDefaultTimeZone_synchronizeTimeZone_equals()
68 assertEquals(TimeZone.GMT_ZONE.getID(), TimeZone.getDefault().getID()); in testClearDefaultTimeZone_synchronizeTimeZone_equals()
72 java.util.TimeZone defaultTz = java.util.TimeZone.getDefault(); in assertLibcoreDefaultTimeZoneUtc()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtimezone.h133 class U_I18N_API TimeZone : public UObject {
138 virtual ~TimeZone();
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(void);
179 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
303 static TimeZone* U_EXPORT2 detectHostTimeZone();
318 static TimeZone* U_EXPORT2 createDefault(void);
330 static TimeZone* U_EXPORT2 forLocaleOrDefault(const Locale& locale);
342 static void U_EXPORT2 adoptDefault(TimeZone* zone);
353 static void U_EXPORT2 setDefault(const TimeZone& zone);
[all …]
/external/icu/libicu/cts_headers/unicode/
Dtimezone.h133 class U_I18N_API TimeZone : public UObject {
138 virtual ~TimeZone();
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(void);
179 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
303 static TimeZone* U_EXPORT2 detectHostTimeZone();
318 static TimeZone* U_EXPORT2 createDefault(void);
330 static TimeZone* U_EXPORT2 forLocaleOrDefault(const Locale& locale);
342 static void U_EXPORT2 adoptDefault(TimeZone* zone);
353 static void U_EXPORT2 setDefault(const TimeZone& zone);
[all …]
/external/icu/icu4c/source/test/intltest/
Dtztest.cpp97 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
113 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
116 TimeZone::adoptDefault(zone); in TestGenericAPI()
117 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
121 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
141 TimeZone* hostZone = TimeZone::detectHostTimeZone(); in TestGenericAPI()
152 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
241 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
271 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
317 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCalendarHandler.java28 import com.ibm.icu.util.TimeZone;
44 TimeZone tz_a = cal_a.getTimeZone(); in hasSameBehavior()
45 TimeZone tz_b = cal_b.getTimeZone(); in hasSameBehavior()
73 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
90 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
107 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
124 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
141 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
158 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
175 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCalendarHandler.java29 import android.icu.util.TimeZone;
45 TimeZone tz_a = cal_a.getTimeZone(); in hasSameBehavior()
46 TimeZone tz_b = cal_b.getTimeZone(); in hasSameBehavior()
74 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
91 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
108 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
125 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
142 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
159 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
176 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
[all …]
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/
DTimeZoneIntegrationTest.java67 java.util.TimeZone origTz = java.util.TimeZone.getDefault(); in testJavaSetDefaultAppliesToIcuTimezone()
69 android.icu.util.TimeZone origIcuTz = android.icu.util.TimeZone.getDefault(); in testJavaSetDefaultAppliesToIcuTimezone()
72 java.util.TimeZone tz = java.util.TimeZone.getTimeZone("GMT-05:00"); in testJavaSetDefaultAppliesToIcuTimezone()
73 java.util.TimeZone.setDefault(tz); in testJavaSetDefaultAppliesToIcuTimezone()
74 android.icu.util.TimeZone icuTz = android.icu.util.TimeZone.getDefault(); in testJavaSetDefaultAppliesToIcuTimezone()
77 java.util.TimeZone.setDefault(origTz); in testJavaSetDefaultAppliesToIcuTimezone()
91 java.util.TimeZone otherTimeZone = java.util.TimeZone.getTimeZone("Europe/London"); in testSetDefaultDeadlock()
97 java.util.TimeZone.setDefault(otherTimeZone); in testSetDefaultDeadlock()
98 java.util.TimeZone.setDefault(null); in testSetDefaultDeadlock()
108 android.icu.util.TimeZone.getDefault(); in testSetDefaultDeadlock()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeZone.java90 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> { class
103 public TimeZone() { in TimeZone() method in TimeZone
114 protected TimeZone(String ID) { in TimeZone() method in TimeZone
209 public static final TimeZone UNKNOWN_ZONE = new ConstantZone(0, UNKNOWN_ZONE_ID).freeze();
214 public static final TimeZone GMT_ZONE = new ConstantZone(0, GMT_ZONE_ID).freeze();
633 public static TimeZone getTimeZone(String ID) { in getTimeZone()
651 public static TimeZone getFrozenTimeZone(String ID) { in getFrozenTimeZone()
666 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone()
678 private static TimeZone getTimeZone(String id, int type, boolean frozen) { in getTimeZone()
679 TimeZone result; in getTimeZone()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZone.java117 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> { class
131 public TimeZone() { in TimeZone() method in TimeZone
141 protected TimeZone(String ID) { in TimeZone() method in TimeZone
252 public static final TimeZone UNKNOWN_ZONE = new ConstantZone(0, UNKNOWN_ZONE_ID).freeze();
259 public static final TimeZone GMT_ZONE = new ConstantZone(0, GMT_ZONE_ID).freeze();
702 public static TimeZone getTimeZone(String ID) { in getTimeZone()
721 public static TimeZone getFrozenTimeZone(String ID) { in getFrozenTimeZone()
737 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone()
749 private static TimeZone getTimeZone(String id, int type, boolean frozen) { in getTimeZone()
750 TimeZone result; in getTimeZone()
[all …]
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/
DCountryTimeZones.java19 import android.icu.util.TimeZone;
53 private TimeZone timeZone;
87 public TimeZone getTimeZone() { in getTimeZone()
90 TimeZone tz = TimeZone.getFrozenTimeZone(timeZoneId); in getTimeZone()
92 if (TimeZone.UNKNOWN_ZONE_ID.equals(timeZone.getID())) { in getTimeZone()
100 return TimeZone.UNKNOWN_ZONE_ID.equals(timeZone.getID()) ? null : timeZone; in getTimeZone()
175 private final TimeZone timeZone;
180 public OffsetResult(TimeZone timeZone, boolean isOnlyMatch) { in OffsetResult()
186 public TimeZone getTimeZone() { in getTimeZone()
218 private TimeZone defaultTimeZone;
[all …]
/external/icu/icu4c/source/i18n/
Dtimezone.cpp115 static icu::TimeZone* DEFAULT_ZONE = NULL;
258 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
323 const TimeZone& U_EXPORT2
324 TimeZone::getUnknown() in getUnknown()
330 const TimeZone* U_EXPORT2
331 TimeZone::getGMT(void) in getGMT()
341 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
343 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
350 TimeZone::TimeZone(const UnicodeString &id) in TimeZone() function in TimeZone
357 TimeZone::~TimeZone() in ~TimeZone()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneAdapter.java18 import android.icu.util.TimeZone;
34 public class TimeZoneAdapter extends java.util.TimeZone {
43 private TimeZone zone;
50 public static java.util.TimeZone wrap(android.icu.util.TimeZone tz) { in wrap()
57 public android.icu.util.TimeZone unwrap() { in unwrap()
64 public TimeZoneAdapter(TimeZone zone) { in TimeZoneAdapter()
82 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()
133 return new TimeZoneAdapter((TimeZone)zone.clone()); in clone()
153 TimeZone anotherZone = ((TimeZoneAdapter) obj).zone; in equals()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneAdapter.java17 import com.ibm.icu.util.TimeZone;
32 public class TimeZoneAdapter extends java.util.TimeZone {
41 private TimeZone zone;
47 public static java.util.TimeZone wrap(com.ibm.icu.util.TimeZone tz) { in wrap()
54 public com.ibm.icu.util.TimeZone unwrap() { in unwrap()
61 public TimeZoneAdapter(TimeZone zone) { in TimeZoneAdapter()
79 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()
130 return new TimeZoneAdapter((TimeZone)zone.clone()); in clone()
150 TimeZone anotherZone = ((TimeZoneAdapter) obj).zone; in equals()
DJavaTimeZone.java18 import com.ibm.icu.util.TimeZone;
30 public class JavaTimeZone extends TimeZone {
36 private java.util.TimeZone javatz;
42 String[] availableIds = java.util.TimeZone.getAvailableIDs();
48 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null);
60 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone()
69 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone()
85 java.util.TimeZone jtz = null; in createTimeZone()
88 jtz = java.util.TimeZone.getTimeZone(id); in createTimeZone()
94 String canonicalID = TimeZone.getCanonicalID(id, isSystemID); in createTimeZone()
[all …]
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/util/
DTimeZone.java.patch1 --- android_icu4j/src/main/java/android/icu/util/TimeZone.java 2021-01-19 16:26:23.434641944 +0000
2 +++ android_icu4j/src/main/java/android/icu/util/TimeZone.java 2021-01-19 16:26:51.434840706 +0000
8 - * JDK <code>TimeZone</code> as the time zone implementation. The TimeZone factory
9 - * method <code>getTimeZone</code> creates an instance of ICU's own <code>TimeZone</code>
18 - * # The default TimeZone implementation type used by the ICU TimeZone
21 - * android.icu.util.TimeZone.DefaultTimeZoneType = ICU
26 - * <code>TimeZone</code> class is loaded, the initialization code checks if the property
27 - * <code>android.icu.util.TimeZone.DefaultTimeZoneType=xxx</code> is defined by the system
38 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> {
42 * <strong>[icu]</strong> A time zone implementation type indicating ICU's own TimeZone used by
[all …]

12345678910>>...23