HomeSort by relevance Sort by last modified time
    Searched defs:zoneId (Results 1 - 23 of 23) sorted by null

  /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...]
  /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/ojluni/src/main/java/java/time/temporal/
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/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/
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...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
MccTable.java 387 String zoneId = defaultTimeZoneForMcc(mcc);
388 if (zoneId != null && zoneId.length() > 0) {
392 alarm.setTimeZone(zoneId);
393 Slog.d(LOG_TAG, "timezone set to " + zoneId);
    [all...]
ServiceStateTracker.java     [all...]
  /libcore/ojluni/src/main/java/java/time/zone/
IcuZoneRulesProvider.java 64 // java.time assumes ZoneId that start with "GMT" fit the pattern "GMT+HH:mm:ss" which these
72 protected ZoneRules provideRules(String zoneId, boolean forCaching) {
74 return cache.get(zoneId);
78 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) {
81 provideRules(zoneId, /* forCaching */ false)));
105 static ZoneRules generateZoneRules(String zoneId) {
106 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId);
108 verify(timeZone instanceof OlsonTimeZone, zoneId,
156 verify(hadEffect, zoneId, "Transition changed neither total nor raw offset.");
163 verify(last1.getEndYear() == AnnualTimeZoneRule.MAX_YEAR, zoneId,
    [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...]
TCKMinguoChronology.java 73 import java.time.ZoneId;
110 private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris");
188 assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoDate.now(ZoneId.systemDefault())) ;
192 assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoChronology.INSTANCE.dateNow(ZoneId.systemDefault())) ;
196 ZoneId zoneId = ZoneId.of("Europe/Paris");
197 assertEquals(MinguoChronology.INSTANCE.dateNow(zoneId), MinguoChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
    [all...]
TCKThaiBuddhistChronology.java 76 import java.time.ZoneId;
225 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistDate.now(ZoneId.systemDefault())) ;
229 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistChronology.INSTANCE.dateNow(ZoneId.systemDefault())) ;
233 ZoneId zoneId = ZoneId.of("Europe/Paris");
234 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
235 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone()))
    [all...]
TCKJapaneseChronology.java 79 import java.time.ZoneId;
313 assertEquals(JapaneseChronology.INSTANCE.dateNow(), JapaneseDate.now(ZoneId.systemDefault())) ;
317 assertEquals(JapaneseChronology.INSTANCE.dateNow(), JapaneseChronology.INSTANCE.dateNow(ZoneId.systemDefault())) ;
321 ZoneId zoneId = ZoneId.of("Europe/Paris");
322 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
323 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone()))
    [all...]
  /packages/services/Car/service/src/com/android/car/
ICarImpl.java 452 int zoneId;
460 zoneId = Integer.decode(zone);
465 mHal.injectBooleanEvent(propId, zoneId, event);
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NightDisplayServiceTest.java 40 import java.time.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...]
  /external/robolectric/v3/runtime/
android-all-4.4_r1-robolectric-1.jar 
android-all-5.0.0_r2-robolectric-1.jar 
android-all-5.1.1_r9-robolectric-1.jar 
  /prebuilts/misc/common/robolectric/lib/
android-all-4.4_r1-robolectric-1.jar 
android-all-5.0.0_r2-robolectric-1.jar 
android-all-6.0.0_r1-robolectric-0.jar 
  /prebuilts/tools/common/m2/repository/net/sourceforge/saxon/saxon/9.1.0.8/
saxon-9.1.0.8.jar 
  /prebuilts/tools/common/m2/repository/nl/jqno/equalsverifier/equalsverifier/2.1.5/
equalsverifier-2.1.5.jar 

Completed in 441 milliseconds