/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 33 import com.ibm.icu.util.TimeZone; 34 import com.ibm.icu.util.TimeZone.SystemTimeZoneType; 132 boolean isJDKTimeZone = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); in TestShortZoneIDs() 190 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs() 214 ZoneDescriptor(TimeZone zone) { in ZoneDescriptor() 269 "GMT-YOUR.AD.HERE", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse() 274 "GMT+15:99", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse() 275 "GMT+", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse() 276 "GMT-", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse() 277 "GMT+0:", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse() [all …]
|
D | TimeZoneRegression.java | 30 import com.ibm.icu.util.TimeZone; 41 String id = TimeZone.getDefault().getID(); in Test4052967() 58 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209() 59 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209() 102 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933() 143 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952() 157 TimeZone frankenZone = (TimeZone) istream.readObject(); in Test4096952() 180 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314() 197 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314() 202 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tztest.cpp | 94 TimeZone* zoneclone = zone->clone(); in TestGenericAPI() 110 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI() 113 TimeZone::adoptDefault(zone); in TestGenericAPI() 114 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI() 118 TimeZone::adoptDefault(saveDefault); in TestGenericAPI() 138 TimeZone* hostZone = TimeZone::detectHostTimeZone(); in TestGenericAPI() 146 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI() 235 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() 265 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch() 311 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset() [all …]
|
D | tzbdtest.cpp | 108 TimeZone *zone = TimeZone::createDefault(); in findDaylightBoundaryUsingTimeZone() 116 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() 189 TimeZoneBoundaryTest::verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expIn… in verifyDST() 278 TimeZone* pst = TimeZone::createTimeZone("PST"); in TestBoundaries() 291 TimeZone* utc = TimeZone::createTimeZone("UTC"); in TestBoundaries() 298 TimeZone* save = TimeZone::createDefault(); in TestBoundaries() 299 TimeZone::setDefault(*pst); in TestBoundaries() 316 TimeZone::setDefault(*save); in TestBoundaries() 325 TimeZone *z = TimeZone::createTimeZone("PST"); in TestBoundaries() 337 TimeZone *tz; in TestBoundaries() [all …]
|
D | tzregts.cpp | 79 TimeZone *z1 = TimeZone::createTimeZone("PST"); in Test4073209() 80 TimeZone *z2 = TimeZone::createTimeZone("PST"); in Test4073209() 209 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4084933() 318 TimeZone *PST = TimeZone::createTimeZone("PST"); in Test4109314() 350 TimeZoneRegressionTest::checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ) in checkCalendar314() 460 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4126678() 508 StringEnumeration* ids = TimeZone::createEnumeration(rawoffset); in Test4151406() 805 TimeZone *tz = TimeZone::createDefault(); in Test4154650() 859 TimeZone *DATA_TZ [] = { in Test4162593() 883 TimeZone *tz = (TimeZone*)DATA_TZ[j]; in Test4162593() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | timezone.h | 129 class U_I18N_API TimeZone : public UObject { 134 virtual ~TimeZone(); 148 static const TimeZone& U_EXPORT2 getUnknown(); 162 static const TimeZone* U_EXPORT2 getGMT(void); 175 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID); 290 static TimeZone* U_EXPORT2 detectHostTimeZone(); 305 static TimeZone* U_EXPORT2 createDefault(void); 320 static void U_EXPORT2 adoptDefault(TimeZone* zone); 333 static void U_EXPORT2 setDefault(const TimeZone& zone); 441 virtual UBool operator==(const TimeZone& that) const; [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | CalendarTests.java | 26 import com.ibm.icu.util.TimeZone; 42 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects() 73 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects() 89 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects() 105 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects() 121 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects() 137 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects() 153 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects() 169 TimeZone jst = TimeZone.getTimeZone("Asia/Jerusalem"); in getTestObjects() 185 TimeZone jst = TimeZone.getTimeZone("Asia/Calcutta"); in getTestObjects() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | timezone.cpp | 113 static icu::TimeZone* DEFAULT_ZONE = NULL; 116 static icu::TimeZone* _GMT = NULL; 117 static icu::TimeZone* _UNKNOWN_ZONE = NULL; 250 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule() 311 const TimeZone& U_EXPORT2 312 TimeZone::getUnknown() in getUnknown() 318 const TimeZone* U_EXPORT2 319 TimeZone::getGMT(void) in getGMT() 329 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 331 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() [all …]
|
D | ucal.cpp | 31 static TimeZone* 33 TimeZone* zone = NULL; in _createTimeZone() 41 zone = TimeZone::createTimeZone(zoneStrID); in _createTimeZone() 52 return uenum_openFromStringEnumeration(TimeZone::createTimeZoneIDEnumeration( in ucal_openTimeZoneIDEnumeration() 58 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(), ec); in ucal_openTimeZones() 63 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(country), ec); in ucal_openCountryTimeZones() 70 TimeZone* zone = TimeZone::createDefault(); in ucal_getDefaultTimeZone() 85 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_setDefaultTimeZone() 87 TimeZone::adoptDefault(zone); in ucal_setDefaultTimeZone() 94 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_getDSTSavings() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | TimeZone.java | 114 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> { class 128 public TimeZone() { in TimeZone() method in TimeZone 138 protected TimeZone(String ID) { in TimeZone() method in TimeZone 249 public static final TimeZone UNKNOWN_ZONE = new ConstantZone(0, UNKNOWN_ZONE_ID).freeze(); 256 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 …]
|
D | CECalendar.java | 57 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar() 66 protected CECalendar(TimeZone zone) { in CECalendar() 77 this(TimeZone.getDefault(), aLocale); in CECalendar() 87 this(TimeZone.getDefault(), locale); in CECalendar() 98 protected CECalendar(TimeZone zone, Locale aLocale) { in CECalendar() 111 protected CECalendar(TimeZone zone, ULocale locale) { in CECalendar() 128 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar() 139 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar() 158 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar()
|
D | PersianCalendar.java | 109 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in PersianCalendar() 122 public PersianCalendar(TimeZone zone) in PersianCalendar() 139 this(TimeZone.getDefault(), aLocale); in PersianCalendar() 154 this(TimeZone.getDefault(), locale); in PersianCalendar() 168 public PersianCalendar(TimeZone zone, Locale aLocale) in PersianCalendar() 185 public PersianCalendar(TimeZone zone, ULocale locale) in PersianCalendar() 203 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in PersianCalendar() 223 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in PersianCalendar() 252 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in PersianCalendar()
|
D | IndianCalendar.java | 163 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in IndianCalendar() 174 public IndianCalendar(TimeZone zone) { in IndianCalendar() 186 this(TimeZone.getDefault(), aLocale); in IndianCalendar() 197 this(TimeZone.getDefault(), locale); in IndianCalendar() 209 public IndianCalendar(TimeZone zone, Locale aLocale) { in IndianCalendar() 223 public IndianCalendar(TimeZone zone, ULocale locale) { in IndianCalendar() 237 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in IndianCalendar() 255 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in IndianCalendar() 284 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in IndianCalendar()
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | TimeZoneNameTest.java | 12 import java.util.TimeZone; 42 String[] tzids = TimeZone.getAvailableIDs(); in TestTimeZoneNames() 55 String icuStdLong = getIcuDisplayName(tzid, false, TimeZone.LONG, loc); in TestTimeZoneNames() 56 String icuDstLong = getIcuDisplayName(tzid, true, TimeZone.LONG, loc); in TestTimeZoneNames() 57 String icuStdShort = getIcuDisplayName(tzid, false, TimeZone.SHORT, loc); in TestTimeZoneNames() 58 String icuDstShort = getIcuDisplayName(tzid, true, TimeZone.SHORT, loc); in TestTimeZoneNames() 61 … checkDisplayNamePair(TimeZone.SHORT, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames() 62 … checkDisplayNamePair(TimeZone.LONG, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames() 95 String canonicalID = com.ibm.icu.util.TimeZone.getCanonicalID(tzid, isSystemID); in getIcuDisplayName() 100 case TimeZone.LONG: in getIcuDisplayName() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | TimeZoneAdapter.java | 15 import com.ibm.icu.util.TimeZone; 30 public class TimeZoneAdapter extends java.util.TimeZone { 39 private TimeZone zone; 45 public static java.util.TimeZone wrap(com.ibm.icu.util.TimeZone tz) { in wrap() 52 public com.ibm.icu.util.TimeZone unwrap() { in unwrap() 59 public TimeZoneAdapter(TimeZone zone) { in TimeZoneAdapter() 75 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules() 120 return new TimeZoneAdapter((TimeZone)zone.clone()); in clone()
|
D | JavaTimeZone.java | 16 import com.ibm.icu.util.TimeZone; 28 public class JavaTimeZone extends TimeZone { 34 private java.util.TimeZone javatz; 40 String[] availableIds = java.util.TimeZone.getAvailableIDs(); 46 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null); 58 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone() 67 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone() 83 java.util.TimeZone jtz = null; in createTimeZone() 86 jtz = java.util.TimeZone.getTimeZone(id); in createTimeZone() 92 String canonicalID = TimeZone.getCanonicalID(id, isSystemID); in createTimeZone() [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | TimeZoneICU.java | 13 import com.ibm.icu.util.TimeZone; 19 public class TimeZoneICU extends java.util.TimeZone { 23 private TimeZone fIcuTz; 25 private TimeZoneICU(TimeZone icuTz) { in TimeZoneICU() 29 public static java.util.TimeZone wrap(TimeZone icuTz) { in wrap() 36 public TimeZone unwrap() { in unwrap() 43 other.fIcuTz = (TimeZone)fIcuTz.clone(); in clone() 82 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
D | TimeZoneJDK.java | 15 import java.util.TimeZone; 25 public class TimeZoneJDK extends com.ibm.icu.util.TimeZone { 29 private TimeZone fJdkTz; 35 … mObservesDaylightTime = TimeZone.class.getMethod("observesDaylightTime", (Class[]) null); 43 private TimeZoneJDK(TimeZone jdkTz) { in TimeZoneJDK() 44 fJdkTz = (TimeZone)jdkTz.clone(); in TimeZoneJDK() 47 public static com.ibm.icu.util.TimeZone wrap(TimeZone jdkTz) { in wrap() 54 public TimeZone unwrap() { in unwrap() 55 return (TimeZone)fJdkTz.clone(); in unwrap() 165 public boolean hasSameRules(com.ibm.icu.util.TimeZone other) { in hasSameRules() [all …]
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TimestampTest.java | 22 import java.util.TimeZone; 200 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTimelong() 218 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetTime() 256 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetDate() 269 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetHours() 282 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetMinutes() 295 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetSeconds() 309 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString() 341 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString1() 412 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testToString() [all …]
|
D | TimeTest.java | 21 import java.util.TimeZone; 100 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString() 116 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString() 141 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTime() 304 static TimeZone defaultTimeZone = TimeZone.getDefault(); 307 TimeZone.setDefault(defaultTimeZone); in tearDown()
|
D | DateTest.java | 22 import java.util.TimeZone; 32 static Calendar aCal = Calendar.getInstance(TimeZone.getTimeZone("GMT")); 245 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString() 277 TimeZone.setDefault(TimeZone.getTimeZone(timeZoneName)); in testSetTimelong() 388 static TimeZone defaultTimeZone = TimeZone.getDefault(); 391 TimeZone.setDefault(defaultTimeZone); in tearDown()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 23 import java.util.TimeZone; 30 private TimeZone originalDefault; 34 originalDefault = TimeZone.getDefault(); in setUp() 37 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in setUp() 42 TimeZone.setDefault(originalDefault); in tearDown()
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
D | DateCache.java | 25 import java.util.TimeZone; 78 getFormat().setTimeZone(TimeZone.getDefault()); in DateCache() 88 setTimeZone(TimeZone.getDefault()); in DateCache() 97 setTimeZone(TimeZone.getDefault()); in DateCache() 105 setTimeZone(TimeZone.getDefault()); in DateCache() 112 public synchronized void setTimeZone(TimeZone tz) in setTimeZone() 137 public TimeZone getTimeZone() in getTimeZone() 149 setTimeZone(TimeZone.getTimeZone(timeZoneId)); in setTimeZoneID() 153 private synchronized void setTzFormatString(final TimeZone tz ) in setTzFormatString()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 37 import com.ibm.icu.util.TimeZone; 38 import com.ibm.icu.util.TimeZone.SystemTimeZoneType; 44 private static boolean JDKTZ = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); 84 TimeZone unknownZone = new SimpleTimeZone(-31415, "Etc/Unknown"); in TestTimeZoneRoundTrip() 97 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in TestTimeZoneRoundTrip() 125 tzids = java.util.TimeZone.getAvailableIDs(); in TestTimeZoneRoundTrip() 127 tzids = TimeZone.getAvailableIDs(); in TestTimeZoneRoundTrip() 146 TimeZone tz = TimeZone.getTimeZone(tzids[tzidx]); in TestTimeZoneRoundTrip() 167 TimeZone outtz = outcal.getTimeZone(); in TestTimeZoneRoundTrip() 174 String canonicalID = TimeZone.getCanonicalID(tzids[tzidx]); in TestTimeZoneRoundTrip() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | YMDDateFormatter.java | 13 import java.util.TimeZone; 23 private TimeZone timeZone; 35 TimeZone.getDefault()); in YMDDateFormatter() 47 TimeZone timeZone) { in YMDDateFormatter() 92 public DateFormatter withTimeZone(TimeZone tz) { in withTimeZone()
|