Home
last modified time | relevance | path

Searched refs:regionId (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneSettings.java206 private void setDisplayedRegion(String regionId) { in setDisplayedRegion() argument
207 use(RegionPreferenceController.class).setRegionId(regionId); in setDisplayedRegion()
211 private void setDisplayedTimeZoneInfo(String regionId, String tzId) { in setDisplayedTimeZoneInfo() argument
214 mTimeZoneData.lookupCountryTimeZones(regionId); in setDisplayedTimeZoneInfo()
238 String regionId = data.getStringExtra(RegionSearchPicker.EXTRA_RESULT_REGION_ID); in onZonePickerRequestResult() local
241 if (Objects.equals(regionId, use(RegionPreferenceController.class).getRegionId()) in onZonePickerRequestResult()
247 timeZoneData.lookupCountryTimeZones(regionId); in onZonePickerRequestResult()
255 setDisplayedRegion(regionId); in onZonePickerRequestResult()
256 setDisplayedTimeZoneInfo(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
257 saveTimeZone(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
[all …]
DRegionSearchPicker.java72 final String regionId = item.getId(); in onListItemClick() local
74 regionId); in onListItemClick()
77 Log.e(TAG, "Region has no time zones: " + regionId); in onListItemClick()
87 .putExtra(EXTRA_RESULT_REGION_ID, regionId) in onListItemClick()
95 args.putString(RegionZonePicker.EXTRA_REGION_ID, regionId); in onListItemClick()
120 for (String regionId : regionIds) { in createAdapterItem()
122 mLocale, localeDisplayNames.regionDisplayName(regionId)); in createAdapterItem()
123 items.add(new RegionItem(i++, regionId, name)); in createAdapterItem()
DRegionZonePicker.java68 final String regionId = in onCreate() local
70 mRegionName = regionId == null ? null : capitalizeForStandaloneDisplay( in onCreate()
71 mLocale, localeDisplayNames.regionDisplayName(regionId)); in onCreate()
96 String regionId = getArguments().getString(EXTRA_REGION_ID); in getAllTimeZoneInfos() local
99 regionId); in getAllTimeZoneInfos()
101 Log.e(TAG, "region id is not valid: " + regionId); in getAllTimeZoneInfos()
DRegionPreferenceController.java45 public void setRegionId(String regionId) { in setRegionId() argument
46 mRegionId = regionId; in setRegionId()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
DTimeZoneData.java81 public FilteredCountryTimeZones lookupCountryTimeZones(String regionId) { in lookupCountryTimeZones() argument
82 CountryTimeZones finder = regionId == null ? null in lookupCountryTimeZones()
83 : mCountryZonesFinder.lookupCountryTimeZones(regionId); in lookupCountryTimeZones()
89 for (String regionId : regionIds) { in getNormalizedRegionIds()
90 result.add(normalizeRegionId(regionId)); in getNormalizedRegionIds()
96 public static String normalizeRegionId(String regionId) { in normalizeRegionId() argument
97 return regionId == null ? null : regionId.toUpperCase(Locale.US); in normalizeRegionId()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/datetime/timezone/model/
DTimeZoneDataTest.java42 for (String regionId : regionIds) { in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion()
44 mTimeZoneData.lookupCountryTimeZones(regionId); in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion()