Searched refs:timeZoneInfo (Results 1 – 5 of 5) sorted by relevance
39 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in testFormat() local40 assertThat(timeZoneInfo.getId()).isEqualTo("America/Los_Angeles"); in testFormat()41 assertThat(timeZoneInfo.getExemplarLocation()).isEqualTo("Los Angeles"); in testFormat()42 assertThat(timeZoneInfo.getGmtOffset().toString()).isEqualTo("GMT-08:00"); in testFormat()43 assertThat(timeZoneInfo.getGenericName()).isEqualTo("Pacific Time"); in testFormat()44 assertThat(timeZoneInfo.getStandardName()).isEqualTo("Pacific Standard Time"); in testFormat()45 assertThat(timeZoneInfo.getDaylightName()).isEqualTo("Pacific Daylight Time"); in testFormat()53 TimeZoneInfo timeZoneInfo = formatter.format("Australia/Lord_Howe"); in getGmtOffset_zoneLordHowe_correctGmtOffset() local54 assertThat(timeZoneInfo.getGmtOffset().toString()).isEqualTo("GMT+11:00"); in getGmtOffset_zoneLordHowe_correctGmtOffset()
64 final TimeZoneInfo timeZoneInfo = item.mTimeZoneInfo; in onListItemClick() local65 getActivity().setResult(Activity.RESULT_OK, prepareResultData(timeZoneInfo)); in onListItemClick()107 private TimeZoneInfoItem(long itemId, TimeZoneInfo timeZoneInfo, Resources resources, in TimeZoneInfoItem() argument110 mTimeZoneInfo = timeZoneInfo; in TimeZoneInfoItem()113 mTitle = createTitle(timeZoneInfo); in TimeZoneInfoItem()117 private static String createTitle(TimeZoneInfo timeZoneInfo) { in createTitle() argument118 String name = timeZoneInfo.getExemplarLocation(); in createTitle()120 name = timeZoneInfo.getGenericName(); in createTitle()122 if (name == null && timeZoneInfo.getTimeZone().inDaylightTime(new Date())) { in createTitle()123 name = timeZoneInfo.getDaylightName(); in createTitle()[all …]
62 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument63 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()129 private ZoneOffsetTransition findNextDstTransition(TimeZoneInfo timeZoneInfo) { in findNextDstTransition() argument130 TimeZone timeZone = timeZoneInfo.getTimeZone(); in findNextDstTransition()131 ZoneRules zoneRules = timeZoneInfo.getJavaTimeZone().toZoneId().getRules(); in findNextDstTransition()
49 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument50 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()
54 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument55 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()