Home
last modified time | relevance | path

Searched refs:timeZoneData (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/model/
DTimeZoneDataTest.java52 TimeZoneData timeZoneData = new TimeZoneData(mCountryZonesFinder); in testRegionsWithTimeZone() local
56 assertThat(timeZoneData.lookupCountryTimeZones("US").getCountryTimeZones()) in testRegionsWithTimeZone()
63 TimeZoneData timeZoneData = new TimeZoneData(mCountryZonesFinder); in testGetRegionIds() local
64 assertThat(timeZoneData.getRegionIds()).isEmpty(); in testGetRegionIds()
67 timeZoneData = new TimeZoneData(mCountryZonesFinder); in testGetRegionIds()
68 assertThat(timeZoneData.getRegionIds()).containsExactly("US", "GB"); in testGetRegionIds()
73 TimeZoneData timeZoneData = new TimeZoneData(mCountryZonesFinder); in testLookupCountryCodesForZoneId() local
74 assertThat(timeZoneData.lookupCountryCodesForZoneId(null)).isEmpty(); in testLookupCountryCodesForZoneId()
91 assertThat(timeZoneData.lookupCountryCodesForZoneId("Unknown/Secret_City")) in testLookupCountryCodesForZoneId()
93 assertThat(timeZoneData.lookupCountryCodesForZoneId("Unknown/Secret_City2")).isEmpty(); in testLookupCountryCodesForZoneId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DTimeZoneSettings.java160 void setTimeZoneData(TimeZoneData timeZoneData) { in setTimeZoneData() argument
161 mTimeZoneData = timeZoneData; in setTimeZoneData()
164 private void onTimeZoneDataReady(TimeZoneData timeZoneData) { in onTimeZoneDataReady() argument
165 if (mTimeZoneData == null && timeZoneData != null) { in onTimeZoneDataReady()
166 mTimeZoneData = timeZoneData; in onTimeZoneDataReady()
170 onZonePickerRequestResult(timeZoneData, mPendingZonePickerRequestResult); in onTimeZoneDataReady()
232 private void onZonePickerRequestResult(TimeZoneData timeZoneData, Intent data) { in onZonePickerRequestResult() argument
242 timeZoneData.lookupCountryTimeZones(regionId); in onZonePickerRequestResult()
DBaseTimeZonePicker.java99 public void onTimeZoneDataReady(TimeZoneData timeZoneData) { in onTimeZoneDataReady() argument
100 if (mTimeZoneData == null && timeZoneData != null) { in onTimeZoneDataReady()
101 mTimeZoneData = timeZoneData; in onTimeZoneDataReady()
116 protected abstract BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData); in createAdapter() argument
DBaseTimeZoneInfoPicker.java50 protected BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
51 mAdapter = new ZoneAdapter(getContext(), getAllTimeZoneInfos(timeZoneData), in createAdapter()
73 public abstract List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData); in getAllTimeZoneInfos() argument
DRegionSearchPicker.java61 protected BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
62 mTimeZoneData = timeZoneData; in createAdapter()
63 mAdapter = new BaseTimeZoneAdapter<>(createAdapterItem(timeZoneData.getRegionIds()), in createAdapter()
DRegionZonePicker.java87 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos() argument
95 FilteredCountryTimeZones filteredCountryTimeZones = timeZoneData.lookupCountryTimeZones( in getAllTimeZoneInfos()
DFixedOffsetPicker.java52 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos() argument
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneSettings.java160 void setTimeZoneData(TimeZoneData timeZoneData) { in setTimeZoneData() argument
161 mTimeZoneData = timeZoneData; in setTimeZoneData()
164 private void onTimeZoneDataReady(TimeZoneData timeZoneData) { in onTimeZoneDataReady() argument
165 if (mTimeZoneData == null && timeZoneData != null) { in onTimeZoneDataReady()
166 mTimeZoneData = timeZoneData; in onTimeZoneDataReady()
170 onZonePickerRequestResult(timeZoneData, mPendingZonePickerRequestResult); in onTimeZoneDataReady()
232 private void onZonePickerRequestResult(TimeZoneData timeZoneData, Intent data) { in onZonePickerRequestResult() argument
242 timeZoneData.lookupCountryTimeZones(regionId); in onZonePickerRequestResult()
DBaseTimeZonePicker.java99 public void onTimeZoneDataReady(TimeZoneData timeZoneData) { in onTimeZoneDataReady() argument
100 if (mTimeZoneData == null && timeZoneData != null) { in onTimeZoneDataReady()
101 mTimeZoneData = timeZoneData; in onTimeZoneDataReady()
116 protected abstract BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData); in createAdapter() argument
DRegionSearchPicker.java61 protected BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
62 mTimeZoneData = timeZoneData; in createAdapter()
63 mAdapter = new BaseTimeZoneAdapter<>(createAdapterItem(timeZoneData.getRegionIds()), in createAdapter()
DBaseTimeZoneInfoPicker.java50 protected BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
51 mAdapter = new ZoneAdapter(getContext(), getAllTimeZoneInfos(timeZoneData), in createAdapter()
73 public abstract List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData); in getAllTimeZoneInfos() argument
DRegionZonePicker.java87 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos() argument
95 FilteredCountryTimeZones filteredCountryTimeZones = timeZoneData.lookupCountryTimeZones( in getAllTimeZoneInfos()
DFixedOffsetPicker.java52 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DTimeZoneSettingsTest.java42 TimeZoneData timeZoneData = mock(TimeZoneData.class); in findRegionIdForTzId_matchExpectedCountry() local
43 when(timeZoneData.lookupCountryCodesForZoneId(tzId)) in findRegionIdForTzId_matchExpectedCountry()
47 settings.setTimeZoneData(timeZoneData); in findRegionIdForTzId_matchExpectedCountry()
DBaseTimeZoneInfoPickerTest.java84 public List<TimeZoneInfo> getAllTimeZoneInfos(TimeZoneData timeZoneData) { in getAllTimeZoneInfos() argument
107 public BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
108 return super.createAdapter(timeZoneData); in createAdapter()
DFixedOffsetPickerTest.java79 public BaseTimeZoneAdapter createAdapter(TimeZoneData timeZoneData) { in createAdapter() argument
80 return super.createAdapter(timeZoneData); in createAdapter()