Home
last modified time | relevance | path

Searched refs:timeZoneInfo (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/
DTimeZoneInfoTest.java39 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in testFormat() local
40 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() local
54 assertThat(timeZoneInfo.getGmtOffset().toString()).isEqualTo("GMT+11:00"); in getGmtOffset_zoneLordHowe_correctGmtOffset()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZoneInfoPicker.java64 final TimeZoneInfo timeZoneInfo = item.mTimeZoneInfo; in onListItemClick() local
65 getActivity().setResult(Activity.RESULT_OK, prepareResultData(timeZoneInfo)); in onListItemClick()
107 private TimeZoneInfoItem(long itemId, TimeZoneInfo timeZoneInfo, Resources resources, in TimeZoneInfoItem() argument
110 mTimeZoneInfo = timeZoneInfo; in TimeZoneInfoItem()
113 mTitle = createTitle(timeZoneInfo); in TimeZoneInfoItem()
117 private static String createTitle(TimeZoneInfo timeZoneInfo) { in createTitle() argument
118 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 …]
DTimeZoneInfoPreferenceController.java62 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument
63 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()
129 private ZoneOffsetTransition findNextDstTransition(TimeZoneInfo timeZoneInfo) { in findNextDstTransition() argument
130 TimeZone timeZone = timeZoneInfo.getTimeZone(); in findNextDstTransition()
131 ZoneRules zoneRules = timeZoneInfo.getJavaTimeZone().toZoneId().getRules(); in findNextDstTransition()
DFixedOffsetPreferenceController.java49 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument
50 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()
DRegionZonePreferenceController.java54 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument
55 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()