/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/ |
D | TimeZoneSettings.java | 202 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 …]
|
D | RegionSearchPicker.java | 70 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()
|
D | RegionZonePicker.java | 66 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()
|
D | RegionPreferenceController.java | 41 public void setRegionId(String regionId) { in setRegionId() argument 42 mRegionId = regionId; in setRegionId()
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | TimeZoneSettings.java | 202 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 …]
|
D | RegionSearchPicker.java | 70 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()
|
D | RegionZonePicker.java | 66 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()
|
D | RegionPreferenceController.java | 41 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/model/ |
D | TimeZoneData.java | 81 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/src/com/android/settings/datetime/timezone/model/ |
D | TimeZoneData.java | 81 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/ |
D | TimeZoneDataTest.java | 42 for (String regionId : regionIds) { in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion() 44 mTimeZoneData.lookupCountryTimeZones(regionId); in lookupCountryTimeZones_shouldReturnAtLeastOneTimeZoneInEveryRegion()
|