/libcore/luni/src/test/java/libcore/java/util/ |
SimpleTimeZoneTest.java | 25 import java.util.TimeZone; 41 private static final TimeZone UTC = TimeZone.getTimeZone("UTC"); 44 * Sanity check to ensure that the standard TimeZone for Europe/Paris has the correct DST 48 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); 50 checkDstParis2014(timeZone); 54 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris" [all...] |
GregorianCalendarTest.java | 28 import java.util.TimeZone; 33 private static final TimeZone LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles"); 35 private static final TimeZone LONDON = TimeZone.getTimeZone("Europe/London"); 162 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); 163 checkDstLosAngeles2014(timeZone); 175 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
TimeZone.java | 4 * @(#)TimeZone.java 1.51 00/01/19 21 * {@icuenhanced java.util.TimeZone}.{@icu _usage_} 23 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight 26 * <p>Typically, you get a <code>TimeZone</code> using {@link #getDefault()} 27 * which creates a <code>TimeZone</code> based on the time zone where the program 29 * creates a <code>TimeZone</code> object based on Japanese Standard Time. 31 * <p>You can also get a <code>TimeZone</code> using {@link #getTimeZone(String)} 34 * U.S. Pacific Time <code>TimeZone</code> object with: 38 * TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicDurationFormatterFactory.java | 14 import java.util.TimeZone; 33 private TimeZone timeZone; 42 this.timeZone = TimeZone.getDefault(); 139 * @param timeZone The time zone to use. 143 public DurationFormatterFactory setTimeZone(TimeZone timeZone) { 144 if (!timeZone.equals(this.timeZone)) { [all...] |
BasicDurationFormatter.java | 14 import java.util.TimeZone; 25 private TimeZone timeZone; 47 TimeZone timeZone) { 53 this.timeZone = timeZone; 88 locName, timeZone); 94 public DurationFormatter withTimeZone(TimeZone tz) { 95 if (!tz.equals(timeZone)) { [all...] |
DurationFormatterFactory.java | 13 import java.util.TimeZone; 72 * @param timeZone The time zone to set. 75 public DurationFormatterFactory setTimeZone(TimeZone timeZone);
|
PeriodBuilderFactory.java | 13 import java.util.TimeZone; 92 * Sets the time zone for the factory. This can affect the timezone 94 * @param timeZone the timeZone 97 PeriodBuilderFactory setTimeZone(TimeZone timeZone);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicDurationFormatterFactory.java | 13 import java.util.TimeZone; 32 private TimeZone timeZone; 41 this.timeZone = TimeZone.getDefault(); 138 * @param timeZone The time zone to use. 142 public DurationFormatterFactory setTimeZone(TimeZone timeZone) { 143 if (!timeZone.equals(this.timeZone)) { [all...] |
BasicDurationFormatter.java | 13 import java.util.TimeZone; 24 private TimeZone timeZone; 46 TimeZone timeZone) { 52 this.timeZone = timeZone; 87 locName, timeZone); 93 public DurationFormatter withTimeZone(TimeZone tz) { 94 if (!tz.equals(timeZone)) { [all...] |
DurationFormatterFactory.java | 12 import java.util.TimeZone; 70 * @param timeZone The time zone to set. 73 public DurationFormatterFactory setTimeZone(TimeZone timeZone);
|
PeriodBuilderFactory.java | 12 import java.util.TimeZone; 90 * Sets the time zone for the factory. This can affect the timezone 92 * @param timeZone the timeZone 95 PeriodBuilderFactory setTimeZone(TimeZone 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...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
DeviceOwnerInitializeProvisioningTask.java | 30 * Initialization of locale and timezone. 46 setTimeAndTimezone(mProvisioningParams.timeZone, mProvisioningParams.localTime); 52 private void setTimeAndTimezone(String timeZone, long localTime) { 55 if (timeZone != null) { 56 alarmManager.setTimeZone(timeZone); 62 ProvisionLogger.loge("Alarm manager failed to set the system time/timezone.", e);
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
TimeZoneLineItem.java | 45 Map<String, Object> timeZone) { 46 super((CharSequence) timeZone.get(ZoneGetter.KEY_DISPLAYNAME)); 49 mTimeZone = timeZone;
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/ |
ZoneGetterTest.java | 90 final TimeZone timeZone = TimeZone.getTimeZone(TIME_ZONE_LA_ID); 92 CharSequence timeZoneString = ZoneGetter.getTimeZoneOffsetAndName(context, timeZone, 102 final TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); 104 CharSequence timeZoneString = ZoneGetter.getTimeZoneOffsetAndName(context, timeZone,
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
IcuZoneRulesProviderTest.java | 22 import android.icu.util.TimeZone; 85 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId); 91 timeZone.getOffset(instant.toEpochMilli(), false, icuOffsets); 102 icuTrans = timeZone.getNextTransition(instant.toEpochMilli(), false); 104 icuTrans = timeZone.getNextTransition(icuTrans.getTime(), false); 109 icuTrans = timeZone.getPreviousTransition(instant.toEpochMilli(), false); 112 icuTrans = timeZone.getPreviousTransition(icuTrans.getTime(), false); 131 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKClock.java | 96 public Clock withZone(ZoneId timeZone) { 97 return new MockInstantClock(millis, timeZone);
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
UtilsTest_IsInGivenDay.java | 28 import java.util.TimeZone; 51 TimeZone timeZone = TimeZone.getDefault(); 53 TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); 66 TimeZone.setDefault(timeZone);
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/ |
DumperOptions.java | 19 import java.util.TimeZone; 172 private TimeZone timeZone = null; 385 public TimeZone getTimeZone() { 386 return timeZone; 390 * Set the timezone to be used for Date. If set to <code>null</code> UTC is 393 public void setTimeZone(TimeZone timeZone) { 394 this.timeZone = timeZone; [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerDialog.java | 61 String timeZone = null; 65 timeZone = b.getString(BUNDLE_TIME_ZONE); 72 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this,
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 33 import java.util.TimeZone; 68 String[] timeZones = TimeZone.getAvailableIDs(); 69 String timeZone = timeZones[0]; 72 alarmManager.setTimeZone(timeZone);
|
/frameworks/base/core/java/android/widget/ |
TextClock.java | 46 import java.util.TimeZone; 167 final String timeZone = intent.getStringExtra("time-zone"); 168 createTime(timeZone); 259 private void createTime(String timeZone) { 260 if (timeZone != null) { 261 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); 432 * @see TimeZone 433 * @see java.util.TimeZone#getAvailableIDs() 445 * @param timeZone The desired time zone's ID as specified in {@link TimeZone [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...] |
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 31 import java.util.TimeZone; 35 * Our concrete TimeZone implementation, backed by zoneinfo data. 45 * and storing it a representation to support the {@link TimeZone} and {@link GregorianCalendar} 63 * @hide - used to implement TimeZone 65 public final class ZoneInfo extends TimeZone { 92 * {@link TimeZone#useDaylightTime()} method but it appears to be what the RI does and that 188 throw new IOException("Timezone id=" + id + " has an invalid header=" + tzh_magic); 201 "Timezone id=" + id + " has an invalid number of transitions=" + tzh_timecnt); 208 + "to be provided for each timezone but could not find one for '" + id + "'"); 211 "Timezone with id " + id + " has too many types=" + tzh_typecnt) [all...] |