/external/chromium_org/v8/test/intl/date-format/ |
timezone.js | 31 assertEquals(getDefaultTimeZone(), df.resolvedOptions().timeZone); 33 df = Intl.DateTimeFormat(undefined, {timeZone: 'UtC'}); 34 assertEquals('UTC', df.resolvedOptions().timeZone); 36 df = Intl.DateTimeFormat(undefined, {timeZone: 'gmt'}); 37 assertEquals('UTC', df.resolvedOptions().timeZone); 39 df = Intl.DateTimeFormat(undefined, {timeZone: 'America/Los_Angeles'}); 40 assertEquals('America/Los_Angeles', df.resolvedOptions().timeZone); 42 df = Intl.DateTimeFormat(undefined, {timeZone: 'Europe/Belgrade'}); 43 assertEquals('Europe/Belgrade', df.resolvedOptions().timeZone); 46 df = Intl.DateTimeFormat(undefined, {timeZone: 'Etc/UTC'}) [all...] |
resolved-options.js | 40 assertTrue(resolved.hasOwnProperty('timeZone')); 41 assertEquals(getDefaultTimeZone(), resolved.timeZone); 66 assertTrue(resolved.hasOwnProperty('timeZone')); 87 second: 'numeric', timeZoneName: 'short', timeZone: 'UTC'}); 93 assertTrue(resolved.hasOwnProperty('timeZone'));
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/ |
DateTime.java | 28 import java.util.TimeZone;
40 private final int timeZone;
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) {
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
50 this.timeZone = timeZone;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) {
70 Calendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT+0"));
74 if (timeZone != Integer.MIN_VALUE) {
75 int minutes = ((timeZone / 100) * 60) + timeZone % 100; [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 16 import java.util.TimeZone; 44 private TimeZone timeZone = TimeZone.getTimeZone("UTC"); 68 // extract the date and timezone from the calendar provided 70 TimeZone zone = calendar.getTimeZone(); 87 this.timeZone = intCalendar.getTimeZone(); 93 * a <code>Date</code> and a <code>TimeZone</code>. 96 * @param timeZone a TimeZone how to interpret the dat [all...] |
/frameworks/base/core/java/android/widget/ |
TextClock.java | 37 import java.util.TimeZone; 148 final String timeZone = intent.getStringExtra("time-zone"); 149 createTime(timeZone); 237 private void createTime(String timeZone) { 238 if (timeZone != null) { 239 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); 368 * @see TimeZone 369 * @see java.util.TimeZone#getAvailableIDs() 381 * @param timeZone The desired time zone's ID as specified in {@link TimeZone [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerDialog.java | 59 String timeZone = null; 63 timeZone = b.getString(BUNDLE_TIME_ZONE); 70 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this,
|
TimeZoneResultAdapter.java | 65 TextView timeZone; 71 vh.timeZone = (TextView) v.findViewById(R.id.time_zone); 189 * Saves the given timezone ID as a recent timezone under shared 193 * @param id the ID of the timezone to save 286 vh.timeZone.setText(tzi.mDisplayName);
|
TimeZonePickerView.java | 56 String timeZone, long timeMillis, OnTimeZoneSetListener l, 66 TimeZoneData tzd = new TimeZoneData(mContext, timeZone, timeMillis);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 31 import java.util.TimeZone; 66 String[] timeZones = TimeZone.getAvailableIDs(); 67 String timeZone = timeZones[0]; 70 alarmManager.setTimeZone(timeZone);
|
/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...] |
/external/jsilver/src/org/clearsilver/jni/ |
JniHdf.java | 25 import java.util.TimeZone; 213 /** Export a date to a clearsilver tree using a specified timezone */ 214 public void exportDate(String hdfname, TimeZone timeZone, Date date) { 219 Calendar cal = Calendar.getInstance(timeZone); 252 boolean tzNegative = timeZone.getRawOffset() < 0; 253 int tzAbsolute = java.lang.Math.abs(timeZone.getRawOffset()/1000); 262 /** Export a date to a clearsilver tree using a specified timezone */ 268 TimeZone timeZone = TimeZone.getTimeZone(tz) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarUtils.java | 196 * @param timeZone The time zone to set Calendar to, or 199 public void setTimeZone(Context context, String timeZone) { 200 if (TextUtils.isEmpty(timeZone)) { 208 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { 214 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) { 218 mHomeTZ = timeZone;
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
CalendarUtilities.java | 62 import java.util.TimeZone; 125 // TimeZone cache; we parse/decode as little as possible, because the process is quite slow 126 private static HashMap<String, TimeZone> sTimeZoneCache = new HashMap<String, TimeZone>(); 128 private static HashMap<TimeZone, String> sTziStringCache = new HashMap<TimeZone, String>(); 130 private static final TimeZone UTC_TIMEZONE = TimeZone.getTimeZone("UTC"); 161 static final TimeZone sGmtTimeZone = TimeZone.getTimeZone("GMT") [all...] |
/external/smack/src/org/jivesoftware/smackx/packet/ |
Time.java | 29 import java.util.TimeZone; 86 TimeZone timeZone = cal.getTimeZone(); 91 cal.getTimeInMillis() - timeZone.getOffset(cal.getTimeInMillis()))); 125 time.getTime() - TimeZone.getDefault().getOffset(time.getTime())));
|
/frameworks/base/core/java/android/app/ |
AlarmManager.java | 501 * @param timeZone in the format understood by {@link java.util.TimeZone} 503 public void setTimeZone(String timeZone) { 505 mService.setTimeZone(timeZone);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERGeneralizedTime.java | 8 import java.util.TimeZone; 184 TimeZone timeZone = TimeZone.getDefault(); 185 int offset = timeZone.getRawOffset(); 196 if (timeZone.useDaylightTime() && timeZone.inDaylightTime(this.getDate())) 264 dateF.setTimeZone(new SimpleTimeZone(0, TimeZone.getDefault().getID()));
|
/external/jsilver/src/org/clearsilver/ |
HDF.java | 22 import java.util.TimeZone; 97 * Export a date to a clearsilver tree using a specified timezone 99 void exportDate(String hdfName, TimeZone timeZone, Date date); 102 * Export a date to a clearsilver tree using a specified timezone
|
DelegatedHdf.java | 22 import java.util.TimeZone; 123 String hdfname, TimeZone timeZone, Date date) { 124 getHdf().exportDate(hdfname, timeZone, date);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
CalendarTest.java | 452 String timeZone = values.getAsString(Events.EVENT_TIMEZONE); 453 Time time = new Time(timeZone); [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetModel.java | 34 import java.util.TimeZone; 251 public CalendarAppWidgetModel(Context context, String timeZone) { 253 Time time = new Time(timeZone); 263 public void buildFromCursor(Cursor cursor, String timeZone) { 264 final Time recycle = new Time(timeZone); 271 mShowTZ = !TextUtils.equals(timeZone, Time.getCurrentTimezone()); 273 mHomeTZName = TimeZone.getTimeZone(timeZone).getDisplayName(recycle.isDst != 0, 274 TimeZone.SHORT); 296 // Adjust all-day times into local timezone [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...] |
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...] |
/frameworks/base/media/java/android/media/ |
Metadata.java | 28 import java.util.TimeZone; 487 final String timeZone = mParcel.readString(); 489 if (timeZone.length() == 0) { 492 TimeZone tz = TimeZone.getTimeZone(timeZone);
|
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 21 import java.util.TimeZone; 25 * Our concrete TimeZone implementation, backed by zoneinfo data. 27 * @hide - used to implement TimeZone 29 public final class ZoneInfo extends TimeZone { 47 private final int mDstSavings; // Implements TimeZone.getDSTSavings. 54 public static TimeZone makeTimeZone(String id, BufferIterator it) { 126 // This isn't generally useful, but it's exposed by TimeZone.getDSTSavings. 253 @Override public boolean hasSameRules(TimeZone timeZone) { 254 if (!(timeZone instanceof ZoneInfo)) [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Script.java | 204 public void setTimeZone(String timeZone) { 206 mT.thunkSetTimeZone(timeZone); 212 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8"));
|