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

1 2 3 4 5 6 7 8

  /external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
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...]
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...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
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...]
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...]
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 34 import java.util.TimeZone;
69 String[] timeZones = TimeZone.getAvailableIDs();
70 String timeZone = timeZones[0];
73 alarmManager.setTimeZone(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...]
  /system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
ZoneInfo.java 16 package com.android.libcore.timezone.tzlookup.zonetree;
20 import com.ibm.icu.util.TimeZone;
62 public static ZoneInfo create(TimeZoneNames timeZoneNames, BasicTimeZone timeZone, int priority,
70 ZoneOffsetPeriod.create(timeZoneNames, timeZone, start, endExclusive);
75 return new ZoneInfo(timeZone.getID(), priority, zoneOffsetPeriods);
86 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneInfo.getZoneId());
88 oldZoneOffsetPeriod, timeZoneNames, timeZone, partitionInstant);
ZoneOffsetPeriod.java 16 package com.android.libcore.timezone.tzlookup.zonetree;
20 import com.ibm.icu.util.TimeZone;
54 public static ZoneOffsetPeriod create(TimeZoneNames timeZoneNames, BasicTimeZone timeZone,
59 timeZone.getNextTransition(startMillis, true /* inclusive */);
67 timeZone.getNextTransition(startMillis, false /* inclusive */);
78 String longName = getNameAtTime(timeZoneNames, timeZone, startMillis);
80 timeZone.getOffset(startMillis, false /* local */, offsets);
87 ZoneOffsetPeriod toSplit, TimeZoneNames timeZoneNames, BasicTimeZone timeZone,
97 getNameAtTime(timeZoneNames, timeZone, partitionInstant.toEpochMilli());
205 TimeZoneNames timeZoneNames, BasicTimeZone timeZone, long startMillis)
    [all...]
  /libcore/luni/src/main/java/libcore/util/
CountryTimeZones.java 19 import android.icu.util.TimeZone;
40 public final TimeZone mTimeZone;
45 public OffsetResult(TimeZone timeZone, boolean oneMatch) {
46 mTimeZone = java.util.Objects.requireNonNull(timeZone);
127 // Memoized frozen ICU TimeZone object for the default.
128 private TimeZone icuDefaultTimeZone;
129 // Memoized frozen ICU TimeZone objects for the timeZoneIds.
130 private List<TimeZone> icuTimeZones;
196 public synchronized TimeZone getDefaultTimeZone()
    [all...]
  /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...]
  /cts/tests/tests/widget/src/android/widget/cts/
TextClockTest.java 47 import java.util.TimeZone;
92 for (String id : TimeZone.getAvailableIDs()) {
93 final TimeZone timeZone = TimeZone.getTimeZone(id);
94 mNow.setTimeZone(timeZone);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1GeneralizedTime.java 11 import java.util.TimeZone;
217 TimeZone timeZone = TimeZone.getDefault();
218 int offset = timeZone.getRawOffset();
229 if (timeZone.useDaylightTime() && timeZone.inDaylightTime(this.getDate()))
309 dateF.setTimeZone(new SimpleTimeZone(0, TimeZone.getDefault().getID()));
  /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...]
  /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,
  /packages/apps/Settings/src/com/android/settings/datetime/timezone/
RegionZonePicker.java 17 package com.android.settings.datetime.timezone;
22 import android.icu.util.TimeZone;
30 import com.android.settings.datetime.timezone.model.FilteredCountryTimeZones;
31 import com.android.settings.datetime.timezone.model.TimeZoneData;
47 "com.android.settings.datetime.timezone.region_id";
123 final TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId);
125 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID))
    [all...]
TimeZoneInfo.java 16 package com.android.settings.datetime.timezone;
20 import android.icu.util.TimeZone;
34 private final TimeZone mTimeZone;
55 public TimeZone getTimeZone() {
80 private final TimeZone mTimeZone;
87 public Builder(TimeZone timeZone) {
88 if (timeZone == null) {
89 throw new IllegalArgumentException("TimeZone must not be null!");
91 mTimeZone = timeZone;
    [all...]
TimeZoneInfoPreferenceController.java 17 package com.android.settings.datetime.timezone;
25 import android.icu.util.TimeZone;
90 final TimeZone timeZone = item.getTimeZone();
91 if (!timeZone.observesDaylightTime()) {
95 final TimeZoneTransition nextDstTransition = findNextDstTransition(timeZone);
109 final Calendar transitionTime = Calendar.getInstance(timeZone);
116 private TimeZoneTransition findNextDstTransition(TimeZone timeZone) {
117 if (!(timeZone instanceof OlsonTimeZone))
    [all...]
  /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...]
  /system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
TzLookupGenerator.java 16 package com.android.libcore.timezone.tzlookup;
18 import com.android.libcore.timezone.tzlookup.proto.CountryZonesFile;
19 import com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree;
20 import com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage;
24 import com.ibm.icu.util.TimeZone;
85 "usage: java com.android.libcore.timezone.tzlookup.proto.TzLookupGenerator"
110 String icuTzDataVersion = TimeZone.getTZDataVersion();
385 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(timeZoneId);
386 TimeZoneRule[] rules = timeZone.getTimeZoneRules(startTimeMillis)
    [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/ojluni/src/main/java/java/time/zone/
IcuZoneRulesProvider.java 28 import android.icu.util.TimeZone;
61 Set<String> zoneIds = TimeZone.getAvailableIDs(TimeZone.SystemTimeZoneType.ANY, null, null);
79 Collections.singletonMap(TimeZone.getTZDataVersion(),
87 * 0. TimeZone.getFrozenTimeZone() always returns a BasicTimeZone object.
105 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId);
107 verify(timeZone instanceof BasicTimeZone, zoneId,
108 "Unexpected time zone class " + timeZone.getClass())
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/data/
CityModel.java 38 import java.util.TimeZone;
78 /** A city instance representing the home timezone of the user. */
124 * @return a city representing the user's home timezone
129 final TimeZone timeZone = mSettingsModel.getHomeTimeZone();
130 mHomeCity = new City(null, -1, null, name, name, timeZone);
  /prebuilts/go/darwin-x86/src/archive/zip/
struct.go 69 // of the timezone used for the date fields), many competing extra fields
112 // date field, and the offset between the times is used as the timezone.
113 // If only the MS-DOS date is present, the timezone is assumed to be UTC.
115 // When writing, an extended timestamp (which is timezone-agnostic) is
187 // timeZone returns a *time.Location based on the provided offset.
189 func timeZone(offset time.Duration) *time.Location {
  /prebuilts/go/linux-x86/src/archive/zip/
struct.go 69 // of the timezone used for the date fields), many competing extra fields
112 // date field, and the offset between the times is used as the timezone.
113 // If only the MS-DOS date is present, the timezone is assumed to be UTC.
115 // When writing, an extended timestamp (which is timezone-agnostic) is
187 // timeZone returns a *time.Location based on the provided offset.
189 func timeZone(offset time.Duration) *time.Location {

Completed in 741 milliseconds

1 2 3 4 5 6 7 8