Home
last modified time | relevance | path

Searched refs:regionId (Results 1 – 11 of 11) 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()
237 String regionId = data.getStringExtra(RegionSearchPicker.EXTRA_RESULT_REGION_ID); in onZonePickerRequestResult() local
240 if (Objects.equals(regionId, use(RegionPreferenceController.class).getRegionId()) in onZonePickerRequestResult()
246 timeZoneData.lookupCountryTimeZones(regionId); in onZonePickerRequestResult()
253 setDisplayedRegion(regionId); in onZonePickerRequestResult()
254 setDisplayedTimeZoneInfo(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
255 saveTimeZone(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
[all …]
DRegionSearchPicker.java70 final String regionId = item.getId(); in onListItemClick() local
72 regionId); in onListItemClick()
75 Log.e(TAG, "Region has no time zones: " + regionId); in onListItemClick()
85 .putExtra(EXTRA_RESULT_REGION_ID, regionId) in onListItemClick()
93 args.putString(RegionZonePicker.EXTRA_REGION_ID, regionId); in onListItemClick()
118 for (String regionId : regionIds) { in createAdapterItem()
119 String name = localeDisplayNames.regionDisplayName(regionId); in createAdapterItem()
120 items.add(new RegionItem(i++, regionId, name)); in createAdapterItem()
DRegionZonePicker.java66 final String regionId = in onCreate() local
68 mRegionName = regionId == null ? null : localeDisplayNames.regionDisplayName(regionId); in onCreate()
93 String regionId = getArguments().getString(EXTRA_REGION_ID); in getAllTimeZoneInfos() local
96 regionId); in getAllTimeZoneInfos()
98 Log.e(TAG, "region id is not valid: " + regionId); in getAllTimeZoneInfos()
DRegionPreferenceController.java41 public void setRegionId(String regionId) { in setRegionId() argument
42 mRegionId = regionId; in setRegionId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DTimeZoneSettings.java202 private void setDisplayedRegion(String regionId) { in setDisplayedRegion() argument
203 use(RegionPreferenceController.class).setRegionId(regionId); in setDisplayedRegion()
207 private void setDisplayedTimeZoneInfo(String regionId, String tzId) { in setDisplayedTimeZoneInfo() argument
210 mTimeZoneData.lookupCountryTimeZones(regionId); in setDisplayedTimeZoneInfo()
233 String regionId = data.getStringExtra(RegionSearchPicker.EXTRA_RESULT_REGION_ID); in onZonePickerRequestResult() local
236 if (Objects.equals(regionId, use(RegionPreferenceController.class).getRegionId()) in onZonePickerRequestResult()
242 timeZoneData.lookupCountryTimeZones(regionId); in onZonePickerRequestResult()
249 setDisplayedRegion(regionId); in onZonePickerRequestResult()
250 setDisplayedTimeZoneInfo(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
251 saveTimeZone(regionId, mSelectedTimeZoneId); in onZonePickerRequestResult()
[all …]
DRegionSearchPicker.java70 final String regionId = item.getId(); in onListItemClick() local
72 regionId); in onListItemClick()
75 Log.e(TAG, "Region has no time zones: " + regionId); in onListItemClick()
85 .putExtra(EXTRA_RESULT_REGION_ID, regionId) in onListItemClick()
93 args.putString(RegionZonePicker.EXTRA_REGION_ID, regionId); in onListItemClick()
118 for (String regionId : regionIds) { in createAdapterItem()
119 String name = localeDisplayNames.regionDisplayName(regionId); in createAdapterItem()
120 items.add(new RegionItem(i++, regionId, name)); in createAdapterItem()
DRegionZonePicker.java66 final String regionId = in onCreate() local
68 mRegionName = regionId == null ? null : localeDisplayNames.regionDisplayName(regionId); in onCreate()
93 String regionId = getArguments().getString(EXTRA_REGION_ID); in getAllTimeZoneInfos() local
96 regionId); in getAllTimeZoneInfos()
98 Log.e(TAG, "region id is not valid: " + regionId); in getAllTimeZoneInfos()
DRegionPreferenceController.java41 public void setRegionId(String regionId) { in setRegionId() argument
42 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/unit/src/com/android/settings/datetime/timezone/model/
DTimeZoneDataTest.java42 for (String regionId : regionIds) { in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion()
44 mTimeZoneData.lookupCountryTimeZones(regionId); in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion()