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

1 2 3

  /system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
CountryZoneUsage.java 37 void addEntry(String zoneId, Instant notUsedAfterInstant) {
38 if (zoneIdEntryMap.containsKey(zoneId)) {
40 "Entry exists for " + zoneId + " for isoCode=" + isoCode);
42 zoneIdEntryMap.put(zoneId, new Entry(zoneId, notUsedAfterInstant));
45 public boolean hasEntry(String zoneId) {
46 return zoneIdEntryMap.containsKey(zoneId);
49 public Instant getNotUsedAfterInstant(String zoneId) {
50 Entry entry = zoneIdEntryMap.get(zoneId);
53 "No entry for " + zoneId+ " for isoCode=" + isoCode)
    [all...]
ZoneInfo.java 43 private final String zoneId;
45 private ZoneInfo(String zoneId, int priority, List<ZoneOffsetPeriod> zoneOffsetPeriods) {
51 this.zoneId = zoneId;
94 return zoneId;
105 ", zoneId=" + zoneId +
CountryZoneTree.java 527 String zoneId = zoneInfo.getZoneId();
532 if (!zoneUsage.hasEntry(zoneId)) {
533 zoneUsage.addEntry(zoneId, endInstant);
625 private static BasicTimeZone getBasicTimeZone(String zoneId) {
626 TimeZone timeZone = TimeZone.getTimeZone(zoneId);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
TimeZoneLookupHelper.java 39 public final String zoneId;
44 public OffsetResult(String zoneId, boolean isOnlyMatch) {
45 this.zoneId = zoneId;
63 return zoneId.equals(result.zoneId);
68 int result = zoneId.hashCode();
76 + "zoneId='" + zoneId + '\''
88 public final String zoneId;
    [all...]
NitzStateMachine.java 220 String zoneId;
233 zoneId = lookupResult != null ? lookupResult.zoneId : null;
235 zoneId = null;
261 zoneId = zone.getID();
313 zoneId = lookupResult != null ? lookupResult.zoneId : null;
321 + " zoneId=" + zoneId;
324 if (zoneId != null)
    [all...]
TimeServiceHelper.java 141 * @param zoneId timezone set by carrier
143 public void setDeviceTimeZone(String zoneId) {
144 setDeviceTimeZoneStatic(mContext, zoneId);
185 static void setDeviceTimeZoneStatic(Context context, String zoneId) {
187 alarmManager.setTimeZone(zoneId);
190 intent.putExtra("time-zone", zoneId);
  /libcore/ojluni/src/main/java/java/time/zone/
ZoneRulesProvider.java 66 import java.time.ZoneId;
107 * Rules are looked up primarily by zone ID, as used by {@link ZoneId}.
150 * These IDs are the string form of a {@link ZoneId}.
167 * prevent the rules being cached in {@code ZoneId}.
172 * @param zoneId the zone ID as defined by {@code ZoneId}, not null
174 * true if the returned rules will be cached by {@code ZoneId},
175 * false if they will be returned to the user without being cached in {@code ZoneId}
177 * is a dynamic provider that wants to prevent caching in {@code ZoneId},
181 public static ZoneRules getRules(String zoneId, boolean forCaching)
    [all...]
IcuZoneRulesProvider.java 63 // java.time assumes ZoneId that start with "GMT" fit the pattern "GMT+HH:mm:ss" which these
71 protected ZoneRules provideRules(String zoneId, boolean forCaching) {
73 return cache.get(zoneId);
77 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) {
80 provideRules(zoneId, /* forCaching */ false)));
104 static ZoneRules generateZoneRules(String zoneId) {
105 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId);
107 verify(timeZone instanceof BasicTimeZone, zoneId,
155 verify(hadEffect, zoneId, "Transition changed neither total nor raw offset.");
162 verify(last1.getEndYear() == AnnualTimeZoneRule.MAX_YEAR, zoneId,
    [all...]
  /libcore/ojluni/src/main/java/java/time/
ZoneId.java 92 * A {@code ZoneId} is used to identify the rules used to convert between
102 * Calling {@link #normalized()} on any {@code ZoneId} will ensure that a
110 * The distinction has other effects. Serializing the {@code ZoneId} will only send
156 * A {@code ZoneId} can be deserialized in a Java Runtime where the ID is unknown.
158 * the client-side Java Runtime has not been updated. In this case, the {@code ZoneId}
172 public abstract class ZoneId implements Serializable {
261 * and converts it to a {@code ZoneId}. If the system default time-zone is changed,
268 public static ZoneId systemDefault() {
277 * The ID can be passed to {@link #of(String)} to create a {@code ZoneId}.
290 * Obtains an instance of {@code ZoneId} using its ID using a ma
    [all...]
ZoneRegion.java 90 final class ZoneRegion extends ZoneId implements Serializable {
106 * Obtains an instance of {@code ZoneId} from an identifier.
108 * @param zoneId the time-zone ID, not null
114 static ZoneRegion ofId(String zoneId, boolean checkAvailable) {
115 Objects.requireNonNull(zoneId, "zoneId");
116 checkName(zoneId);
120 rules = ZoneRulesProvider.getRules(zoneId, true);
126 return new ZoneRegion(zoneId, rules);
132 * @param zoneId the time-zone ID, not nul
    [all...]
  /frameworks/base/services/core/java/com/android/server/twilight/
TwilightState.java 23 import java.time.ZoneId;
54 final ZoneId zoneId = TimeZone.getDefault().toZoneId();
55 return LocalDateTime.ofInstant(Instant.ofEpochMilli(mSunriseTimeMillis), zoneId);
70 final ZoneId zoneId = TimeZone.getDefault().toZoneId();
71 return LocalDateTime.ofInstant(Instant.ofEpochMilli(mSunsetTimeMillis), zoneId);
  /libcore/luni/src/test/java/libcore/java/time/format/
DateTimeFormatterBuilderTest.java 23 import java.time.ZoneId;
56 formatter.format(ZonedDateTime.now(ZoneId.of("Europe/London"))));
58 formatter.format(ZonedDateTime.now(ZoneId.of("UTC"))));
78 assertEquals(ZoneId.of("Europe/London"),
79 formatter.parse("Europe/London").query(TemporalQueries.zoneId()));
80 assertEquals(ZoneId.of("UTC"),
81 formatter.parse("UTC").query(TemporalQueries.zoneId()));
82 assertEquals(ZoneId.of("GMT+1"),
83 formatter.parse("GMT+01:00").query(TemporalQueries.zoneId()));
86 assertEquals(ZoneId.of("UTC+01:00")
    [all...]
  /libcore/luni/src/test/java/libcore/java/time/zone/
IcuZoneRulesProviderTest.java 56 private final String zoneId;
58 public IcuZoneRulesProviderTest(final String zoneId) {
59 this.zoneId = zoneId;
84 ZoneRules rules = ZoneRulesProvider.getRules(zoneId, false);
85 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId);
93 assertEquals("total offset for " + zoneId + " at " + instant,
95 assertEquals("dst offset for " + zoneId + " at " + instant,
130 ZoneRules rules = ZoneRulesProvider.getRules(zoneId, false);
131 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId);
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/zone/
TCKZoneRulesProvider.java 66 import java.time.ZoneId;
127 ZoneRules rules1 = ZoneId.of("DynamicLocation").getRules();
130 ZoneRules rules2 = ZoneId.of("DynamicLocation").getRules();
191 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) {
197 protected ZoneRules provideRules(String zoneId, boolean forCaching) {
198 if (zoneId.equals("FooLocation")) {
214 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) {
223 protected ZoneRules provideRules(String zoneId, boolean forCaching) {
225 if (zoneId.equals("DynamicLocation")) {
  /libcore/luni/src/main/java/libcore/util/
CountryZonesFinder.java 57 public List<CountryTimeZones> lookupCountryTimeZonesForZoneId(String zoneId) {
61 countryTimeZones.getTimeZoneMappings(), zoneId);
  /hardware/intel/common/utils/ituxd/src/com/intel/thermal/
ThermalCoolingDevice.java 48 /* Maintains list of zoneid's under which this cooling device falls. */
161 * Adds zoneID and its thermal state to mListOfZoneIDs and
162 * mListOfTStatesOfZones array. If zoneId exists then its thermal state is
163 * updated else zoneId and its state will be added to array.
165 public void updateZoneState(int zoneId, int state) {
169 index = mZoneIdList.indexOf(zoneId);
174 mZoneIdList.add(zoneId);
  /libcore/ojluni/src/main/java/java/time/temporal/
TemporalAccessor.java 83 * {@linkplain java.time.ZoneId time-zone}.
269 * {@code LocalDate::from} and {@code ZoneId::from}.
275 * if (query == TemporalQueries.zoneId() ||
309 if (query == TemporalQueries.zoneId()
TemporalQueries.java 70 import java.time.ZoneId;
104 * {@code LocalDate::from} and {@code ZoneId::from}.
113 * <li> a zoneId.
136 * A strict query for the {@code ZoneId}.
139 * The zone is only returned if the date-time conceptually contains a {@code ZoneId}.
167 public static TemporalQuery<ZoneId> zoneId() {
250 * A lenient query for the {@code ZoneId}, falling back to the {@code ZoneOffset}.
253 * It first tries to obtain the zone, using {@link #zoneId()}.
258 * In most cases, applications should use this query rather than {@code #zoneId()}
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKDateTimeFormatters.java 84 import java.time.ZoneId;
227 Integer year, Integer month, Integer day, String offsetId, String zoneId,
229 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
244 Integer year, Integer month, Integer day, String offsetId, String zoneId,
321 Integer year, Integer month, Integer day, String offsetId, String zoneId,
323 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
338 Integer year, Integer month, Integer day, String offsetId, String zoneId,
379 Integer year, Integer month, Integer day, String offsetId, String zoneId,
381 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
396 Integer year, Integer month, Integer day, String offsetId, String zoneId,
    [all...]
TCKZoneIdPrinterParser.java 68 import java.time.ZoneId;
90 private static final ZoneId EUROPE_PARIS = ZoneId.of("Europe/Paris");
91 private static final ZoneId AMERICA_NEW_YORK = ZoneId.of("America/New_York");
115 public void test_print(LocalDateTime ldt, ZoneId zone, String expected) {
123 public void test_print_pattern_VV(LocalDateTime ldt, ZoneId zone, String expected) {
155 {"Z", 1, -1, ZoneId.of("Z")},
156 {"UTC", 3, -1, ZoneId.of("UTC")},
157 {"UT", 2, -1, ZoneId.of("UT")}
    [all...]
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestCharLiteralParser.java 115 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
TestStringLiteralParser.java 118 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
TestNumberParser.java 182 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
202 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
317 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
427 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
518 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
556 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKZoneId.java 74 import java.time.ZoneId;
91 * Test ZoneId.
100 Map<String, String> ids = ZoneId.SHORT_IDS;
133 Map<String, String> ids = ZoneId.SHORT_IDS;
142 Set<String> zoneIds = ZoneId.getAvailableZoneIds();
146 Set<String> zoneIds2 = ZoneId.getAvailableZoneIds();
158 ZoneId test = ZoneId.of("LONDON", map);
167 ZoneId test = ZoneId.of("Europe/Madrid", map)
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKHijrahChronology.java 66 import java.time.ZoneId;
109 assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now(ZoneId.systemDefault())) ;
113 assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahChronology.INSTANCE.dateNow(ZoneId.systemDefault())) ;
117 ZoneId zoneId = ZoneId.of("Europe/Paris");
118 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
119 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone()))
    [all...]

Completed in 1838 milliseconds

1 2 3