/external/icu/icu4c/source/test/intltest/ |
tztest.h | 18 * Various tests for TimeZone 28 * Test the offset of the PRT timezone. 51 void findTransition(const TimeZone& tz, 57 void testUsingBinarySearch(const TimeZone& tz,
|
tztest.cpp | 11 #include "unicode/timezone.h" 94 TimeZone* zoneclone = zone->clone(); 110 TimeZone* saveDefault = TimeZone::createDefault(); 111 logln((UnicodeString)"TimeZone::createDefault() => " + saveDefault->getID(id)); 113 TimeZone::adoptDefault(zone); 114 TimeZone* defaultzone = TimeZone::createDefault(); 118 TimeZone::adoptDefault(saveDefault); 138 TimeZone* hostZone = TimeZone::detectHostTimeZone() [all...] |
tzbdtest.h | 14 #include "unicode/timezone.h" 42 virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz); 51 * Given a date, a TimeZone, and expected values for inDaylightTime, 54 virtual void verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expInDaylightTime, UDate expZoneOffset, UDate expDSTOffset); 75 virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedChanges);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
DurationFormatterFactory.java | 10 import java.util.TimeZone; 68 * @param timeZone The time zone to set. 71 public DurationFormatterFactory setTimeZone(TimeZone timeZone);
|
PeriodBuilderFactory.java | 10 import java.util.TimeZone; 88 * Sets the time zone for the factory. This can affect the timezone 90 * @param timeZone the timeZone 93 PeriodBuilderFactory setTimeZone(TimeZone timeZone);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
SetTimeZonePermissionsTest.java | 24 import java.util.TimeZone; 36 mZones = TimeZone.getAvailableIDs(); 37 mCurrentZone = TimeZone.getDefault().getID(); 64 String newZone = TimeZone.getDefault().getID();
|
/libcore/support/src/test/java/tests/support/ |
Support_TimeZone.java | 22 import java.util.TimeZone; 25 * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long) 28 public class Support_TimeZone extends TimeZone { 46 * let's assume this timezone has daylight savings from the 4th month till
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
CityGmtOffsetComparator.java | 19 import java.util.TimeZone; 28 int offset = TimeZone.getTimeZone(c1.mTimeZone).getOffset(currentTime); 29 int offset2 = TimeZone.getTimeZone(c2.mTimeZone).getOffset(currentTime);
|
/libcore/luni/src/test/java/libcore/java/util/ |
CalendarTest.java | 23 import java.util.TimeZone; 28 private static final TimeZone AMERICA_SAO_PAULO = TimeZone.getTimeZone("America/Sao_Paulo"); 31 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe"); 35 * TimeZone.useDaylightTime() as an optimization will probably be broken 38 private static final TimeZone ASIA_KUALA_LUMPUR = TimeZone.getTimeZone("Asia/Kuala_Lumpur"); 40 private static final TimeZone ASIA_SEOUL = TimeZone.getTimeZone("Asia/Seoul") [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
TimeZone.java | 2 * @(#)TimeZone.java 1.51 00/01/19 31 * {@icuenhanced java.util.TimeZone}.{@icu _usage_} 33 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight 36 * <p>Typically, you get a <code>TimeZone</code> using {@link #getDefault()} 37 * which creates a <code>TimeZone</code> based on the time zone where the program 39 * creates a <code>TimeZone</code> object based on Japanese Standard Time. 41 * <p>You can also get a <code>TimeZone</code> using {@link #getTimeZone(String)} 44 * U.S. Pacific Time <code>TimeZone</code> object with: 48 * TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTime.java | 30 public void __constructor__(String timezone) { 31 if (timezone == null) { 32 throw new NullPointerException("timezone is null!"); 34 time.timezone = timezone; 46 time.timezone = other.timezone; 142 public void clear(String timezone) { 143 if (timezone == null) { 144 throw new NullPointerException("timezone is null!") [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TimeTest.java | 21 import java.util.TimeZone; 97 private void testToString(String timeZone, long[] theTimes, 99 // Set the timezone 100 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); 116 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 140 // Ensure that the timezone is set to GMT 141 TimeZone.setDefault(TimeZone.getTimeZone("GMT")) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
ZoneGetter.java | 41 import java.util.TimeZone; 47 private static final String XMLTAG_TIMEZONE = "timezone"; 56 public static String getTimeZoneOffsetAndName(TimeZone tz, Date now) { 79 // China that mostly use a single timezone (olson id: "Asia/Shanghai") may not live near 102 TimeZone tz = TimeZone.getTimeZone(olsonId); 115 final TimeZone tz = TimeZone.getTimeZone(olsonId); 132 TimeZone tz, String gmtOffsetString, String displayName, int offsetMillis) { 143 * long display name for the timezone will be used, otherwise the exemplar location will b [all...] |
/external/icu/icu4c/source/tools/tzcode/ |
icuzdump.cpp | 16 * This tool write out timezone transitions for ICU timezone. This tool 17 * is used as a part of tzdata update process to check if ICU timezone 29 #include "unicode/timezone.h" 115 void setTimeZone(TimeZone* tz) { 116 timezone = tz; 136 timezone->getOffset(t, FALSE, rawOffset, dstOffset, status); 141 timezone->getOffset(newt, FALSE, newRawOffset, newDstOffset, status); 157 timezone->getOffset(medt, FALSE, medRawOffset, medDstOffset, status); 191 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEnglish(), status) 199 TimeZone* timezone; member in class:ICUZDump [all...] |
/external/icu/icu4c/source/i18n/ |
ucal.cpp | 17 #include "unicode/timezone.h" 31 static TimeZone* 33 TimeZone* zone = NULL; 41 zone = TimeZone::createTimeZone(zoneStrID); 52 return uenum_openFromStringEnumeration(TimeZone::createTimeZoneIDEnumeration( 58 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(), ec); 63 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(country), ec); 70 TimeZone* zone = TimeZone::createDefault(); 85 TimeZone* zone = _createTimeZone(zoneID, -1, ec) [all...] |
wintzimpl.cpp | 19 #include "unicode/timezone.h" 36 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardDate, int32_t &bias, int32_t &daylightBias, int32_t &standardBias) { 119 TimeZone *tz = TimeZone::createTimeZone(id); 144 * Given the timezone icuid, fill in zoneInfo by calling auxillary functions that creates a timezone and extract the
|
udateintervalformat.cpp | 16 #include "unicode/timezone.h" 47 TimeZone *zone = TimeZone::createTimeZone(UnicodeString((UBool)(tzIDLength == -1), tzID, tzIDLength));
|
/libcore/luni/src/main/java/java/util/ |
TimeZone.java | 32 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or 35 * <p>Most applications will use {@link #getDefault} which returns a {@code TimeZone} based on 38 * <p>You can also get a specific {@code TimeZone} {@link #getTimeZone by Olson ID}. 68 public abstract class TimeZone implements Serializable, Cloneable { 72 * Helper class to parse a custom timezone. This is in a separate class as regular expressions 73 * cannot be compile-time initialized, so that static field is separated out from TimeZone 85 private static TimeZone getCustomTimeZone(String id) { 129 private static final TimeZone GMT = new SimpleTimeZone(0, "GMT"); 130 private static final TimeZone UTC = new SimpleTimeZone(0, "UTC"); 132 private static TimeZone defaultTimeZone [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
TimeUtilsTest.java | 22 import java.util.TimeZone; 39 TimeZone tz = TimeZone.getTimeZone(name); 41 TimeZone guess; 60 TimeZone tz = TimeZone.getTimeZone(name); 62 TimeZone guess; 76 TimeZone tz = TimeZone.getTimeZone(name); 78 TimeZone guess [all...] |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/apache/maven/doxia/doxia/1.0-alpha-7/ |
doxia-1.0-alpha-7.pom | 48 <timezone>-5</timezone>
56 <timezone>+10</timezone>
64 <timezone>1</timezone>
|
/prebuilts/tools/common/m2/repository/com/google/truth/truth-parent/0.24/ |
truth-parent-0.24.pom | 84 <timezone>-5</timezone> 93 <timezone>-5</timezone> 102 <timezone>+2</timezone>
|
/prebuilts/tools/common/m2/repository/org/apache/maven/doxia/doxia/1.0-alpha-7/ |
doxia-1.0-alpha-7.pom | 48 <timezone>-5</timezone>
56 <timezone>+10</timezone>
64 <timezone>1</timezone>
|
/libcore/luni/src/test/java/libcore/java/text/ |
SimpleDateFormatTest.java | 26 import java.util.TimeZone; 30 private static final TimeZone AMERICA_LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles"); 31 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe"); 54 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 94 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 105 TimeZone.setDefault(TimeZone.getTimeZone("GMT")) [all...] |
/external/iptables/extensions/ |
libxt_time.man | 38 Use the kernel timezone instead of UTC to determine whether a packet meets the 43 time source has no timezone information, such as the x86 CMOS RTC, UTC will be 45 correct system time and timezone to the kernel once it has the information. 47 Local time is a feature on top of the (timezone independent) system time. Each 49 variable. The kernel also has its own timezone offset variable. The TZ 54 kernel's timezone offset variable is used when it has to convert between 58 The caveat with the kernel timezone is that Linux distributions may ignore to 59 set the kernel timezone, and instead only set the system time. Even if a 60 particular distribution does set the timezone at boot, it is usually does not 61 keep the kernel timezone offset - which is what changes on DST - up to date [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
DateUtils.java | 20 import java.util.TimeZone; 39 TimeZone tz = TimeZone.getTimeZone("GMT");
|