/packages/apps/Email/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/webkit/Source/JavaScriptCore/wtf/ |
DateMath.h | 161 timeZone = adoptArrayPtr(new char[inZoneSize]); 162 strncpy(timeZone.get(), inTm.tm_zone, inZoneSize); 164 timeZone = nullptr; 187 ret.tm_zone = timeZone.get(); 205 if (rhs.timeZone) { 206 int inZoneSize = strlen(rhs.timeZone.get()) + 1; 207 timeZone = adoptArrayPtr(new char[inZoneSize]); 208 strncpy(timeZone.get(), rhs.timeZone.get(), inZoneSize); 210 timeZone = nullptr [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...] |
/libcore/luni/src/main/java/java/util/ |
TimeZone.java | 28 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or 31 * <p>Most applications will use {@link #getDefault} which returns a {@code TimeZone} based on 34 * <p>You can also get a specific {@code TimeZone} {@link #getTimeZone by Olson ID}. 67 public abstract class TimeZone implements Serializable, Cloneable { 84 private static final TimeZone GMT = new SimpleTimeZone(0, "GMT"); 85 private static final TimeZone UTC = new SimpleTimeZone(0, "UTC"); 87 private static TimeZone defaultTimeZone; 91 public TimeZone() {} 132 public static synchronized TimeZone getDefault() { 136 return (TimeZone) defaultTimeZone.clone() [all...] |
/frameworks/base/core/java/android/app/ |
AlarmManager.java | 297 * @param timeZone in the format understood by {@link java.util.TimeZone} 299 public void setTimeZone(String timeZone) { 301 mService.setTimeZone(timeZone);
|
/frameworks/base/core/java/android/widget/ |
TextClock.java | 37 import java.util.TimeZone; 139 final String timeZone = intent.getStringExtra("time-zone"); 140 createTime(timeZone); 226 private void createTime(String timeZone) { 227 if (timeZone != null) { 228 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); 347 * @see TimeZone 348 * @see java.util.TimeZone#getAvailableIDs() 360 * @param timeZone The desired time zone's ID as specified in {@link TimeZone [all...] |
/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);
|
/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 | 195 * @param timeZone The time zone to set Calendar to, or 198 public void setTimeZone(Context context, String timeZone) { 199 if (TextUtils.isEmpty(timeZone)) { 207 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { 213 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) { 217 mHomeTZ = timeZone;
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
CalendarUtilities.java | 65 import java.util.TimeZone; 128 // TimeZone cache; we parse/decode as little as possible, because the process is quite slow 129 private static HashMap<String, TimeZone> sTimeZoneCache = new HashMap<String, TimeZone>(); 131 private static HashMap<TimeZone, String> sTziStringCache = new HashMap<TimeZone, String>(); 133 private static final TimeZone UTC_TIMEZONE = TimeZone.getTimeZone("UTC"); 164 static final TimeZone sGmtTimeZone = TimeZone.getTimeZone("GMT") [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERGeneralizedTime.java | 8 import java.util.TimeZone; 172 TimeZone timeZone = TimeZone.getDefault(); 173 int offset = timeZone.getRawOffset(); 184 if (timeZone.useDaylightTime() && timeZone.inDaylightTime(this.getDate())) 252 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 | 23 import java.util.TimeZone; 26 * Our concrete TimeZone implementation, backed by zoneinfo data. 28 * @hide - used to implement TimeZone 30 public final class ZoneInfo extends TimeZone { 54 private final int mDstSavings; // Implements TimeZone.getDSTSavings. 87 // This isn't generally useful, but it's exposed by TimeZone.getDSTSavings. 214 @Override public boolean hasSameRules(TimeZone timeZone) { 215 if (!(timeZone instanceof ZoneInfo)) { 218 ZoneInfo other = (ZoneInfo) timeZone; [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Script.java | 272 public void setTimeZone(String timeZone) { 275 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8"));
|
/frameworks/rs/ |
rsScript.cpp | 145 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { 151 ALOGE("Couldn't allocate memory for timezone buffer"); 154 strncpy(tz, timeZone, length); 159 ALOGE("Error setting timezone");
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
Script.java | 272 public void setTimeZone(String timeZone) { 275 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8"));
|
/frameworks/support/renderscript/v8/rs_support/ |
rsScript.cpp | 145 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { 151 ALOGE("Couldn't allocate memory for timezone buffer"); 154 strncpy(tz, timeZone, length); 159 ALOGE("Error setting timezone");
|
/libcore/luni/src/test/java/libcore/java/util/ |
CalendarTest.java | 22 import java.util.TimeZone; 27 private static final TimeZone AMERICA_SAO_PAULO = TimeZone.getTimeZone("America/Sao_Paulo"); 30 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe"); 34 * TimeZone.useDaylightTime() as an optimization will probably be broken 37 private static final TimeZone ASIA_KUALA_LUMPUR = TimeZone.getTimeZone("Asia/Kuala_Lumpur"); 39 private static final TimeZone ASIA_SEOUL = TimeZone.getTimeZone("Asia/Seoul") [all...] |
TimeZoneTest.java | 24 import java.util.TimeZone; 30 TimeZone asiaTaipei = TimeZone.getTimeZone("Asia/Taipei"); 36 TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik"); 50 TimeZone tz0001 = new SimpleTimeZone(60000, "ONE MINUTE"); 51 TimeZone tz0130 = new SimpleTimeZone(5400000, "ONE HOUR, THIRTY"); 52 TimeZone tzMinus0130 = new SimpleTimeZone(-5400000, "NEG ONE HOUR, THIRTY"); 53 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); 54 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)) [all...] |