/libcore/luni/src/test/java/libcore/libcore/util/ |
ZoneInfoTest.java | 28 import libcore.util.ZoneInfo; 32 * Tests for {@link ZoneInfo} 37 * Checks that a {@link ZoneInfo} cannot be created without any types. 50 * Checks that a {@link ZoneInfo} can be created with one type and no transitions. 57 ZoneInfo zoneInfo = createZoneInfo(transitions, types); 60 assertEquals(secondsInMillis(4800), zoneInfo.getOffset(Long.MIN_VALUE)); 61 assertEquals(secondsInMillis(4800), zoneInfo.getOffset(0)); 62 assertEquals(secondsInMillis(4800), zoneInfo.getOffset(Long.MAX_VALUE)); 65 assertFalse("Doesn't use DST", zoneInfo.useDaylightTime()) [all...] |
/external/icu/icu4c/source/i18n/ |
wintzimpl.h | 34 uprv_getWindowsTimeZoneInfo(TIME_ZONE_INFORMATION *zoneInfo, const UChar *icuid, int32_t length);
|
wintzimpl.cpp | 120 static UBool getWindowsTimeZoneInfo(TIME_ZONE_INFORMATION *zoneInfo, const UChar *icuid, int32_t length) { 133 uprv_memset(zoneInfo, 0, sizeof(TIME_ZONE_INFORMATION)); // We do not set standard/daylight names, so nullify first. 134 zoneInfo->Bias = bias; 135 zoneInfo->DaylightBias = daylightBias; 136 zoneInfo->StandardBias = standardBias; 137 zoneInfo->DaylightDate = daylightDate; 138 zoneInfo->StandardDate = standardDate; 148 * Given the timezone icuid, fill in zoneInfo by calling auxillary functions that creates a timezone and extract the 149 * information to put into zoneInfo. This includes bias and standard time date and daylight saving date. 152 uprv_getWindowsTimeZoneInfo(TIME_ZONE_INFORMATION *zoneInfo, const UChar *icuid, int32_t length [all...] |
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
ZoneInfo.java | 29 final class ZoneInfo { 45 private ZoneInfo(String zoneId, int priority, List<ZoneOffsetPeriod> zoneOffsetPeriods) { 55 * Creates a ZoneInfo using the supplied ICU data and metadata. 59 * <p>The returned {@link ZoneInfo} will be populated with {@link ZoneOffsetPeriod}s using 62 public static ZoneInfo create(TimeZoneNames timeZoneNames, BasicTimeZone timeZone, int priority, 75 return new ZoneInfo(timeZone.getID(), priority, zoneOffsetPeriods); 84 TimeZoneNames timeZoneNames, ZoneInfo zoneInfo, int index, Instant partitionInstant) { 85 ZoneOffsetPeriod oldZoneOffsetPeriod = zoneInfo.zoneOffsetPeriods.get(index); 86 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneInfo.getZoneId()) [all...] |
CountryZoneTree.java | 50 private final List<ZoneInfo> zoneInfos; 53 private ZoneInfo primaryZoneInfo; 56 ZoneNode(String id, List<ZoneInfo> zoneInfos, int periodOffset, int periodCount) { 65 ZoneInfo priorityCandidate = null; 67 for (ZoneInfo zoneInfo : zoneInfos) { 69 || priorityCandidate.getPriority() < zoneInfo.getPriority()) { 70 priorityCandidate = zoneInfo; 72 } else if (priorityCandidate.getPriority() == zoneInfo.getPriority()) { 77 // If more than one ZoneInfo has the same priority as the primaryZoneInfo then w [all...] |
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 35 * Our concrete TimeZone implementation, backed by zoneinfo data. 46 * implementations. See {@link ZoneInfo#readTimeZone(String, BufferIterator, long)}. 65 public final class ZoneInfo extends TimeZone { 118 * future) and stored in a file from which {@link ZoneInfo#readTimeZone(String, BufferIterator, 124 * <p>In terms of {@link ZoneInfo tzfile} structure this array is of length {@code tzh_timecnt} 144 * <p>In the {@link ZoneInfo tzfile} structure the type array only contains unique instances of 181 public static ZoneInfo readTimeZone(String id, BufferIterator it, long currentTimeMillis) 207 throw new IOException("ZoneInfo requires at least one type " 264 return new ZoneInfo(id, transitions64, type, gmtOffsets, isDsts, currentTimeMillis); 267 private ZoneInfo(String name, long[] transitions, byte[] types, int[] gmtOffsets, byte[] isDsts [all...] |
ZoneInfoDB.java | 91 * ZoneInfo objects are worth caching because they are expensive to create. 95 private final BasicLruCache<String, ZoneInfo> cache = 96 new BasicLruCache<String, ZoneInfo>(CACHE_SIZE) { 98 protected ZoneInfo create(String id) { 297 ZoneInfo zoneInfo = makeTimeZoneUncached(id); 298 if (zoneInfo == null) { 304 ZoneInfo makeTimeZoneUncached(String id) throws IOException { 310 return ZoneInfo.readTimeZone(id, it, System.currentTimeMillis()); 356 public ZoneInfo makeTimeZone(String id) throws IOException [all...] |
/frameworks/base/core/java/android/text/format/ |
TimeFormatter.java | 26 import libcore.util.ZoneInfo; 91 public String format(String pattern, ZoneInfo.WallTime wallTime, ZoneInfo zoneInfo) { 100 formatInternal(pattern, wallTime, zoneInfo); 132 private void formatInternal(String pattern, ZoneInfo.WallTime wallTime, ZoneInfo zoneInfo) { 138 outputCurrentChar = handleToken(formatBuffer, wallTime, zoneInfo); 147 private boolean handleToken(CharBuffer formatBuffer, ZoneInfo.WallTime wallTime [all...] |
Time.java | 21 import libcore.util.ZoneInfo; [all...] |
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/ |
ZoneInfoTest.java | 46 ZoneInfo zoneInfo = ZoneInfo.create(timeZoneNames, londonTz, 5, START_INSTANT, END_INSTANT); 48 assertEquals(londonTz.getID(), zoneInfo.getZoneId()); 49 assertEquals(5, zoneInfo.getPriority()); 51 assertEquals(expectedPeriodCount, zoneInfo.getZoneOffsetPeriodCount()); 59 assertEquals(expectedPeriod0, zoneInfo.getZoneOffsetPeriod(0)); 66 assertEquals(expectedPeriod1, zoneInfo.getZoneOffsetPeriod(1)); 72 assertEquals(expectedPeriod37, zoneInfo.getZoneOffsetPeriod(37)); 82 ZoneInfo denverZoneInfo [all...] |
/external/mdnsresponder/mDNSCore/ |
uDNS.h | 63 extern void LLQGotZoneData(mDNS *const m, mStatus err, const ZoneData *zoneInfo);
|
uDNS.c | [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
GregorianCalendarTest.java | 193 // Get the DST entry time with a ZoneInfo implementation of TimeZone. 194 TimeZone zoneInfo = TimeZone.getTimeZone("America/Los_Angeles"); 195 long zoneInfoTime = getDstLosAngeles2014(zoneInfo); 198 assertTrue(zoneInfo.inDaylightTime(new Date(zoneInfoTime))); 199 assertFalse(zoneInfo.inDaylightTime(new Date(zoneInfoTime - 1)));
|
/libcore/ojluni/src/main/java/java/util/ |
GregorianCalendar.java | 47 import libcore.util.ZoneInfo; [all...] |
/prebuilts/misc/common/robolectric/android-all/ |
android-all-8.0.0_r4-robolectric-0.jar | |
android-all-8.0.0_r4-robolectric-r1.jar | |
android-all-8.1.0-robolectric-r4458339.jar | |
android-all-o-preview-4-robolectric-0.jar | |
android-all-6.0.1_r3-robolectric-0.jar | |
android-all-7.1.0_r7-robolectric-0.jar | |