Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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 …]
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()
DTimeZoneInfoPreferenceController.java63 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument
64 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()
/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 …]
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()
DTimeZoneInfoPreferenceController.java63 public void setTimeZoneInfo(TimeZoneInfo timeZoneInfo) { in setTimeZoneInfo() argument
64 mTimeZoneInfo = timeZoneInfo; in setTimeZoneInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DTimeZoneInfoTest.java38 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in testFormat() local
39 assertThat(timeZoneInfo.getId()).isEqualTo("America/Los_Angeles"); in testFormat()
40 assertThat(timeZoneInfo.getExemplarLocation()).isEqualTo("Los Angeles"); in testFormat()
41 assertThat(timeZoneInfo.getGmtOffset().toString()).isEqualTo("GMT-08:00"); in testFormat()
42 assertThat(timeZoneInfo.getGenericName()).isEqualTo("Pacific Time"); in testFormat()
43 assertThat(timeZoneInfo.getStandardName()).isEqualTo("Pacific Standard Time"); in testFormat()
44 assertThat(timeZoneInfo.getDaylightName()).isEqualTo("Pacific Daylight Time"); in testFormat()
52 TimeZoneInfo timeZoneInfo = formatter.format("Australia/Lord_Howe"); in getGmtOffset_zoneLordHowe_correctGmtOffset() local
53 assertThat(timeZoneInfo.getGmtOffset().toString()).isEqualTo("GMT+11:00"); in getGmtOffset_zoneLordHowe_correctGmtOffset()
DTimeZoneInfoPreferenceControllerTest.java42 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in updateState_matchExpectedFormattedText() local
46 controller.setTimeZoneInfo(timeZoneInfo); in updateState_matchExpectedFormattedText()