HomeSort by relevance Sort by last modified time
    Searched defs:TimeZone (Results 1 - 25 of 39) sorted by null

1 2

  /external/chromium_org/third_party/icu/source/i18n/unicode/
timezone.h 6 * File TIMEZONE.H
34 * \brief C++ API: TimeZone object
49 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
53 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
54 * which creates a <code>TimeZone</code> based on the time zone where the program
56 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
59 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
61 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
65 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles")
    [all...]
  /external/icu4c/i18n/unicode/
timezone.h 6 * File TIMEZONE.H
34 * \brief C++ API: TimeZone object
50 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
54 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
55 * which creates a <code>TimeZone</code> based on the time zone where the program
57 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
60 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
62 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
66 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles")
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
TimeZoneBenchmark.java 20 import java.util.TimeZone;
25 TimeZone.getDefault();
31 TimeZone.getTimeZone("UTC");
36 String defaultId = TimeZone.getDefault().getID();
38 TimeZone.getTimeZone(defaultId);
45 TimeZone.getTimeZone("America/Caracas");
52 TimeZone.getTimeZone("America/Santiago");
58 TimeZone.getTimeZone("GMT+10");
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
XMPDateTimeFactory.java 15 import java.util.TimeZone;
28 /** The UTC TimeZone */
29 private static final TimeZone UTC = TimeZone.getTimeZone("UTC");
114 cal.setTimeZone(TimeZone.getDefault());
148 // has automatically local timezone
  /frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
DateIntervalFormat_Delegate.java 27 import com.ibm.icu.util.TimeZone;
60 TimeZone prevDefaultTz = TimeZone.getDefault();
61 TimeZone.setDefault(TimeZone.getTimeZone(tzName));
65 TimeZone.setDefault(prevDefaultTz);
  /frameworks/base/tools/layoutlib/bridge/src/android/text/format/
Time_Delegate.java 20 import java.util.TimeZone;
50 /*package*/ static void switchTimezone(Time thisTime, String timezone) {
52 c.setTimeZone(TimeZone.getTimeZone(timezone));
136 time.timezone = c.getTimeZone().getID();
142 // gmtoff is in seconds and TimeZone.getOffset() returns milliseconds.
147 * Return a calendar instance with the correct timezone.
149 * @param time Time to obtain the timezone from.
152 // TODO: Check platform code to make sure the behavior is same for null/invalid timezone.
153 if (time == null || time.timezone == null)
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldTimeZoneTest.java 23 import java.util.TimeZone;
28 class Mock_TimeZone extends TimeZone {
60 TimeZone tz1 = TimeZone.getDefault();
61 TimeZone tz2 = (TimeZone)tz1.clone();
67 String[] str = TimeZone.getAvailableIDs();
71 assertNotNull(TimeZone.getTimeZone(str[i]));
76 String[] str = TimeZone.getAvailableIDs(0);
80 assertNotNull(TimeZone.getTimeZone(str[i]))
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/worldclock/
WorldClockAdapter.java 41 import java.util.TimeZone;
122 SettingsActivity.KEY_HOME_TZ, TimeZone.getDefault().getID());
124 return TimeZone.getTimeZone(homeTZ).getOffset(now.getTime())
125 != TimeZone.getDefault().getOffset(now.getTime());
166 int gmOffset1 = TimeZone.getTimeZone(city1.mTimeZone).getOffset(now.getTime());
167 int gmOffset2 = TimeZone.getTimeZone(city2.mTimeZone).getOffset(now.getTime());
275 now.setTimeZone(TimeZone.getDefault());
277 // Get timezone from cities DB if available
279 now.setTimeZone(TimeZone.getTimeZone(cityTZ));
CitiesActivity.java 61 import java.util.TimeZone;
192 TimeZone timezone = TimeZone.getTimeZone(city.mTimeZone);
193 int newOffset = timezone.getOffset(currentTime);
196 String offsetString = Utils.getGMTHourOffset(timezone, true);
389 private CharSequence getTimeCharSequence(String timeZone) {
390 mCalendar.setTimeZone(TimeZone.getTimeZone(timeZone));
  /external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
TimeTest.java 21 import java.util.TimeZone;
98 private void testToString(String timeZone, long[] theTimes,
100 // Set the timezone
101 TimeZone.setDefault(TimeZone.getTimeZone(timeZone));
117 TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
141 // Ensure that the timezone is set to GMT
142 TimeZone.setDefault(TimeZone.getTimeZone("GMT"))
    [all...]
DateTest.java 22 import java.util.TimeZone;
33 static Calendar aCal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
244 private void testToString(String timeZone, long[] theDates, String[] theDateStrings) {
245 // Set the timezone
246 TimeZone.setDefault(TimeZone.getTimeZone(timeZone));
278 TimeZone.setDefault(TimeZone.getTimeZone(timeZoneName));
388 // Reset defualt timezone
    [all...]
TimestampTest.java 22 import java.util.TimeZone;
200 // First set the timezone to GMT
201 TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
218 // First set the timezone to GMT
219 TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
257 TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
270 TimeZone.setDefault(TimeZone.getTimeZone("GMT"))
    [all...]
  /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 {
85 private static final TimeZone GMT = new SimpleTimeZone(0, "GMT");
86 private static final TimeZone UTC = new SimpleTimeZone(0, "UTC");
88 private static TimeZone defaultTimeZone;
92 public TimeZone() {}
133 public static synchronized TimeZone getDefault() {
142 // On the host, we can find the configured timezone here
    [all...]
Date.java 62 * Constructs a new {@code Date} initialized to midnight in the default {@code TimeZone} on
83 * default {@code TimeZone}.
107 * default {@code TimeZone}.
317 * Returns the timezone offset in minutes of the default {@code TimeZone}.
319 * @return the timezone offset in minutes of the default {@code TimeZone}.
673 TimeZone gmtZone = TimeZone.getTimeZone("GMT");
705 TimeZone tz = cal.getTimeZone()
    [all...]
GregorianCalendar.java 109 * String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
182 * @see TimeZone
228 * time with the default {@code Locale} and {@code TimeZone}.
231 this(TimeZone.getDefault(), Locale.getDefault());
236 * {@code TimeZone} and {@code Locale} on the specified date.
246 super(TimeZone.getDefault(), Locale.getDefault());
252 * time in the default {@code TimeZone} and {@code Locale}.
266 super(TimeZone.getDefault(), Locale.getDefault());
272 * time in the default {@code TimeZone} and {@code Locale}.
289 super(TimeZone.getDefault(), Locale.getDefault())
    [all...]
Calendar.java 287 * @see TimeZone
344 private TimeZone zone;
700 * Constructs a {@code Calendar} instance using the default {@code TimeZone} and {@code Locale}.
703 this(TimeZone.getDefault(), Locale.getDefault());
706 Calendar(TimeZone timezone) {
711 setTimeZone(timezone);
715 * Constructs a {@code Calendar} instance using the given {@code TimeZone} and {@code Locale}.
717 protected Calendar(TimeZone timezone, Locale locale)
    [all...]
Formatter.java     [all...]
  /packages/apps/Calendar/tests/src/com/android/calendar/widget/
CalendarAppWidgetServiceTest.java 33 import java.util.TimeZone;
77 // we want to run these tests in a predictable timezone
78 TimeZone.setDefault(TimeZone.getTimeZone(DEFAULT_TIMEZONE));
93 // this restores the previous default timezone
94 TimeZone.setDefault(null);
153 time.timezone = Time.TIMEZONE_UTC;
  /packages/apps/DeskClock/src/com/android/alarmclock/
DigitalWidgetViewsFactory.java 37 import java.util.TimeZone;
101 now.setTimeZone(TimeZone.getTimeZone(cityTZ));
  /external/chromium_org/third_party/icu/source/i18n/
timezone.cpp 7 * File TIMEZONE.CPP
118 static U_NAMESPACE_QUALIFIER TimeZone* DEFAULT_ZONE = NULL;
119 static U_NAMESPACE_QUALIFIER TimeZone* _GMT = NULL; // cf. TimeZone::GMT
237 * @param top Top timezone resource
271 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResourceBundle* oldbundle, UErrorCode& status) {
320 const TimeZone* U_EXPORT2
321 TimeZone::getGMT(void)
343 // class TimeZone
346 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone)
    [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/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
GregorianCalendarTest.java 26 import java.util.TimeZone;
53 TimeZone.getDefault()));
76 TimeZone.getDefault()));
107 TimeZone.getDefault()));
127 * @tests java.util.GregorianCalendar#GregorianCalendar(java.util.TimeZone)
130 // Test for method java.util.GregorianCalendar(java.util.TimeZone)
132 TimeZone.getDefault();
133 GregorianCalendar gc1 = new GregorianCalendar(TimeZone
136 GregorianCalendar gc2 = new GregorianCalendar(TimeZone
145 SimpleTimeZone timezone = new SimpleTimeZone(-3600 * 24 * 1000 * 2 local
    [all...]
FormatterTest.java 54 import java.util.TimeZone;
153 private TimeZone defaultTimeZone;
    [all...]
  /external/icu4c/i18n/
timezone.cpp 7 * File TIMEZONE.CPP
114 static icu::TimeZone* DEFAULT_ZONE = NULL;
115 static icu::TimeZone* _GMT = NULL;
116 static icu::TimeZone* _UNKNOWN_ZONE = NULL;
205 * @param top Top timezone resource
239 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResourceBundle* oldbundle, UErrorCode& status) {
319 const TimeZone& U_EXPORT2
320 TimeZone::getUnknown()
326 const TimeZone* U_EXPORT2
327 TimeZone::getGMT(void
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/event/
EditEventView.java 103 import java.util.TimeZone;
420 private void setTimezone(String timeZone) {
421 mTimezone = timeZone;
422 mStartTime.timezone = mTimezone;
424 mEndTime.timezone = mTimezone;
601 b.putString(RecurrencePickerDialog.BUNDLE_TIME_ZONE, mStartTime.timezone);
721 // the timezone to UTC, as required for all-day events.
726 mStartTime.timezone = mTimezone;
732 mEndTime.timezone = mTimezone;
744 mStartTime.timezone = mTimezone
    [all...]

Completed in 546 milliseconds

1 2