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

1 2 3 4 5 6 7 8 910

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
TimeZoneTest.java 28 import java.util.TimeZone;
37 * @tests java.util.TimeZone#getDefault()
41 TimeZone.getDefault(), TimeZone.getDefault());
45 * @tests java.util.TimeZone#getDSTSavings()
48 // Test for method int java.util.TimeZone.getDSTSavings()
51 TimeZone st1 = TimeZone.getTimeZone("EST");
56 st1 = TimeZone.getTimeZone("Australia/Lord_Howe");
61 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true)
175 TimeZone timezone = TimeZone.getTimeZone("Asia\/Shanghai"); local
184 TimeZone timezone = TimeZone.getTimeZone("Asia\/Shanghai"); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldTimeZoneTest.java 23 import java.util.TimeZone;
29 class Mock_TimeZone extends TimeZone {
61 TimeZone tz1 = TimeZone.getDefault();
62 TimeZone tz2 = (TimeZone)tz1.clone();
68 String[] str = TimeZone.getAvailableIDs();
72 assertNotNull(TimeZone.getTimeZone(str[i]));
77 String[] str = TimeZone.getAvailableIDs(0);
81 assertNotNull(TimeZone.getTimeZone(str[i]))
    [all...]
TimeZoneTest.java 22 import java.util.TimeZone;
28 TimeZone asiaTaipei = TimeZone.getTimeZone("Asia/Taipei");
34 TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik");
48 TimeZone tz0001 = new SimpleTimeZone(60000, "ONE MINUTE");
49 TimeZone tz0130 = new SimpleTimeZone(5400000, "ONE HOUR, THIRTY");
50 TimeZone tzMinus0130 = new SimpleTimeZone(-5400000, "NEG ONE HOUR, THIRTY");
51 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US));
52 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US))
    [all...]
DateTest.java 22 import java.util.TimeZone;
30 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago"));
36 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"));
OldGregorianCalendarTest.java 24 import java.util.TimeZone;
30 // Test for method java.util.GregorianCalendar(java.util.TimeZone, java.util.Locale)
33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE);
35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US);
42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow"));
56 TimeZone.getTimeZone("Europe/London"),
70 TimeZone.getTimeZone("Europe/London"),
76 TimeZone.getTimeZone("Europe/Moscow"));
84 TimeZone.getTimeZone("Europe/London"),
98 TimeZone.getTimeZone("Europe/London")
    [all...]
  /external/chromium/chrome/browser/ui/webui/options/chromeos/
system_settings_provider.h 13 #include "third_party/icu/public/i18n/unicode/timezone.h"
31 virtual void TimezoneChanged(const icu::TimeZone& timezone);
40 // Gets timezone name.
41 static string16 GetTimezoneName(const icu::TimeZone& timezone);
43 // Gets timezone ID which is also used as timezone pref value.
44 static string16 GetTimezoneID(const icu::TimeZone& timezone);
    [all...]
system_settings_provider.cc 25 #include "unicode/timezone.h"
32 // we still have 400+ zones. Relaxing the criteria for the timezone
131 string16 GetExemplarCity(const icu::TimeZone& zone) {
167 // Take the last component of a timezone id (e.g. 'Baz' in 'Foo/Bar/Baz').
170 // any timezone for which that's the case.
185 timezones_.push_back(icu::TimeZone::createTimeZone(
207 const icu::TimeZone* timezone = GetTimezone(value); local
208 if (!timezone)
210 SystemAccess::GetInstance()->SetTimezone(*timezone);
237 const icu::TimeZone* timezone = *iter; local
295 const icu::TimeZone* timezone = *iter; local
    [all...]
  /external/chromium/chrome/browser/chromeos/
system_access.h 11 #include "unicode/timezone.h"
16 // timezone setting.
21 // Called when the timezone has changed. |timezone| is non-null.
22 virtual void TimezoneChanged(const icu::TimeZone& timezone) = 0;
27 // Returns the current timezone as an icu::Timezone object.
28 virtual const icu::TimeZone& GetTimezone() = 0;
30 // Sets the current timezone. |timezone| must be non-null
    [all...]
mock_system_access.h 18 MOCK_METHOD0(GetTimezone, const icu::TimeZone&());
19 MOCK_METHOD1(SetTimezone, void(const icu::TimeZone& timezone));
  /external/icu4c/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...]
  /libcore/luni/src/test/java/libcore/java/sql/
OldTimestampTest.java 21 import java.util.TimeZone;
27 TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
  /cts/tests/tests/util/src/android/util/cts/
TimeUtilsTest.java 27 import java.util.TimeZone;
52 TimeZone tz = TimeZone.getTimeZone(name);
54 TimeZone guess;
81 TimeZone tz = TimeZone.getTimeZone(name);
83 TimeZone guess;
105 TimeZone tz = TimeZone.getTimeZone(name);
107 TimeZone guess
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
TimeUtilsTest.java 24 import java.util.TimeZone;
41 TimeZone tz = TimeZone.getTimeZone(name);
43 TimeZone guess;
62 TimeZone tz = TimeZone.getTimeZone(name);
64 TimeZone guess;
78 TimeZone tz = TimeZone.getTimeZone(name);
80 TimeZone guess
    [all...]
  /external/chromium/chrome/browser/chromeos/status/
clock_menu_button_browsertest.cc 19 #include "unicode/timezone.h"
42 // Update timezone and make sure clock text changes.
43 scoped_ptr<icu::TimeZone> timezone_first(icu::TimeZone::createTimeZone(
47 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone(
  /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();
  /external/apache-http/src/org/apache/http/protocol/
HttpDateGenerator.java 38 import java.util.TimeZone;
57 public static final TimeZone GMT = TimeZone.getTimeZone("GMT");
  /external/icu4c/samples/datefmt/answers/
main_0.cpp 16 * If the ID supplied to TimeZone is not a valid system ID,
17 * TimeZone::createTimeZone() will return a GMT zone object. In order
21 TimeZone* createZone(const UnicodeString& id) {
23 TimeZone* zone = TimeZone::createTimeZone(id);
26 printf("Error: TimeZone::createTimeZone(");
48 static char* TIMEZONE[] = {
54 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]);
main_1.cpp 15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) {
22 TimeZone* zone = TimeZone::createTimeZone(id);
25 printf("Error: TimeZone::createTimeZone(");
47 static char* TIMEZONE[] = {
53 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]);
main_2.cpp 15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) {
22 TimeZone* zone = TimeZone::createTimeZone(id);
25 printf("Error: TimeZone::createTimeZone(");
38 TimeZone *zone;
51 static char* TIMEZONE[] = {
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0])
    [all...]
main_3.cpp 15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) {
22 TimeZone* zone = TimeZone::createTimeZone(id);
25 printf("Error: TimeZone::createTimeZone(");
38 TimeZone *zone;
51 static char* TIMEZONE[] = {
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0])
    [all...]
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DateUtils.java 20 import java.util.TimeZone;
39 TimeZone tz = TimeZone.getTimeZone("GMT");
  /external/icu4c/test/intltest/
itformat.cpp 72 // for all format tests, always set default Locale and TimeZone to ENGLISH and PST.
73 TimeZone* saveDefaultTimeZone = NULL;
76 saveDefaultTimeZone = TimeZone::createDefault();
77 TimeZone *tz = TimeZone::createTimeZone("PST");
78 TimeZone::setDefault(*tz);
138 // restore saved Locale and TimeZone
139 TimeZone::adoptDefault(saveDefaultTimeZone);
tztest.cpp 11 #include "unicode/timezone.h"
84 TimeZone* zoneclone = zone->clone();
100 TimeZone* saveDefault = TimeZone::createDefault();
101 logln((UnicodeString)"TimeZone::createDefault() => " + saveDefault->getID(id));
102 TimeZone* pstZone = TimeZone::createTimeZone("America/Los_Angeles");
128 TimeZone::adoptDefault(zone);
129 TimeZone* defaultzone = TimeZone::createDefault()
    [all...]
  /external/icu4c/samples/datefmt/
main.cpp 15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) {
22 TimeZone* zone = TimeZone::createTimeZone(id);
25 printf("Error: TimeZone::createTimeZone(");
38 TimeZone *zone;
51 static char* TIMEZONE[] = {
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0])
    [all...]
  /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...]

Completed in 3421 milliseconds

1 2 3 4 5 6 7 8 910