Home
last modified time | relevance | path

Searched refs:tzId (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DTimeZoneSettings.java149 String tzId = data.getStringExtra(FixedOffsetPicker.EXTRA_RESULT_TIME_ZONE_ID); in onActivityResult() local
151 if (tzId != null && !tzId.equals(mSelectedTimeZoneId)) { in onActivityResult()
152 onFixedOffsetZoneChanged(tzId); in onActivityResult()
207 private void setDisplayedTimeZoneInfo(String regionId, String tzId) { in setDisplayedTimeZoneInfo() argument
208 final TimeZoneInfo tzInfo = tzId == null ? null : mTimeZoneInfoFormatter.format(tzId); in setDisplayedTimeZoneInfo()
222 private void setDisplayedFixedOffsetTimeZoneInfo(String tzId) { in setDisplayedFixedOffsetTimeZoneInfo() argument
223 if (isFixedOffset(tzId)) { in setDisplayedFixedOffsetTimeZoneInfo()
225 mTimeZoneInfoFormatter.format(tzId)); in setDisplayedFixedOffsetTimeZoneInfo()
234 String tzId = data.getStringExtra(RegionZonePicker.EXTRA_RESULT_TIME_ZONE_ID); in onZonePickerRequestResult() local
237 && Objects.equals(tzId, mSelectedTimeZoneId)) { in onZonePickerRequestResult()
[all …]
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneSettings.java149 String tzId = data.getStringExtra(FixedOffsetPicker.EXTRA_RESULT_TIME_ZONE_ID); in onActivityResult() local
151 if (tzId != null && !tzId.equals(mSelectedTimeZoneId)) { in onActivityResult()
152 onFixedOffsetZoneChanged(tzId); in onActivityResult()
207 private void setDisplayedTimeZoneInfo(String regionId, String tzId) { in setDisplayedTimeZoneInfo() argument
208 final TimeZoneInfo tzInfo = tzId == null ? null : mTimeZoneInfoFormatter.format(tzId); in setDisplayedTimeZoneInfo()
222 private void setDisplayedFixedOffsetTimeZoneInfo(String tzId) { in setDisplayedFixedOffsetTimeZoneInfo() argument
223 if (isFixedOffset(tzId)) { in setDisplayedFixedOffsetTimeZoneInfo()
225 mTimeZoneInfoFormatter.format(tzId)); in setDisplayedFixedOffsetTimeZoneInfo()
234 String tzId = data.getStringExtra(RegionZonePicker.EXTRA_RESULT_TIME_ZONE_ID); in onZonePickerRequestResult() local
237 && Objects.equals(tzId, mSelectedTimeZoneId)) { in onZonePickerRequestResult()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DTimeZoneSettingsTest.java41 String tzId = "Unknown/Secret_City"; in findRegionIdForTzId_matchExpectedCountry() local
43 when(timeZoneData.lookupCountryCodesForZoneId(tzId)) in findRegionIdForTzId_matchExpectedCountry()
48 assertThat(settings.findRegionIdForTzId(tzId, null, "")).matches("US|GB"); in findRegionIdForTzId_matchExpectedCountry()
49 assertThat(settings.findRegionIdForTzId(tzId, "GB", "")).isEqualTo("GB"); in findRegionIdForTzId_matchExpectedCountry()
50 assertThat(settings.findRegionIdForTzId(tzId, null, "GB")).isEqualTo("GB"); in findRegionIdForTzId_matchExpectedCountry()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/model/
DTimeZoneData.java65 public Set<String> lookupCountryCodesForZoneId(String tzId) { in lookupCountryCodesForZoneId() argument
66 if (tzId == null) { in lookupCountryCodesForZoneId()
70 .lookupCountryTimeZonesForZoneId(tzId); in lookupCountryCodesForZoneId()
74 if (filteredZones.getTimeZoneIds().contains(tzId)) { in lookupCountryCodesForZoneId()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
DTimeZoneData.java65 public Set<String> lookupCountryCodesForZoneId(String tzId) { in lookupCountryCodesForZoneId() argument
66 if (tzId == null) { in lookupCountryCodesForZoneId()
70 .lookupCountryTimeZonesForZoneId(tzId); in lookupCountryCodesForZoneId()
74 if (filteredZones.getTimeZoneIds().contains(tzId)) { in lookupCountryCodesForZoneId()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCityDAO.kt135 fun createCity(id: String?, formattedName: String, tzId: String?): City? { in createCity()
136 val tz = TimeZone.getTimeZone(tzId) in createCity()
DCityDAO.java146 static City createCity(String id, String formattedName, String tzId) { in createCity() argument
147 final TimeZone tz = TimeZone.getTimeZone(tzId); in createCity()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceController.java95 String tzId = timeZone.get(ZoneGetter.KEY_ID).toString(); in createTimeZonePreference()
97 tzId, "Settings: Set time zone"); in createTimeZonePreference()