Home
last modified time | relevance | path

Searched refs:timeZoneId (Results 1 – 20 of 20) sorted by relevance

/aosp12/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/
H A DCitiesFile.java55 String timeZoneId) { in City() argument
60 this.mTimeZoneId = timeZoneId; in City()
117 String timeZoneId = fields[TIME_ZONE_ID_INDEX]; in createCity() local
118 if (timeZoneId.isEmpty()) { in createCity()
119 timeZoneId = null; in createCity()
122 return new City(name, latLng, isoCountryCode, population, timeZoneId); in createCity()
/aosp12/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
H A DFilteredCountryTimeZones.java45 String timeZoneId = timeZoneMapping.getTimeZoneId(); in FilteredCountryTimeZones() local
46 timeZoneIds.add(timeZoneId); in FilteredCountryTimeZones()
66 public boolean matches(String timeZoneId) { in matches() argument
67 return mPreferredTimeZoneIds.contains(timeZoneId) in matches()
68 || mAlternativeTimeZoneIds.contains(timeZoneId); in matches()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DTimeZones.kt33 fun getTimeZoneName(timeZoneId: CharSequence?): CharSequence? {
35 if (TextUtils.equals(timeZoneId, timeZoneIds[i])) {
47 operator fun contains(timeZoneId: String?): Boolean {
48 return getTimeZoneName(timeZoneId) != null
H A DSettingsDAO.kt104 var timeZoneId: String? = prefs.getString(SettingsActivity.KEY_HOME_TZ, null)
108 if (timeZones.contains(timeZoneId)) {
109 return TimeZone.getTimeZone(timeZoneId)
113 timeZoneId = defaultTZ.id
114 if (timeZones.contains(timeZoneId)) {
115 prefs.edit().putString(SettingsActivity.KEY_HOME_TZ, timeZoneId).apply()
/aosp12/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneData.java107 public int findIndexByTimeZoneIdSlow(String timeZoneId) { in findIndexByTimeZoneIdSlow() argument
110 if (timeZoneId.equals(tzi.mTzId)) { in findIndexByTimeZoneIdSlow()
385 final String timeZoneId = fields[2]; in loadTzsInZoneTab() local
387 final TimeZone tz = TimeZone.getTimeZone(timeZoneId); in loadTzsInZoneTab()
389 Log.e(TAG, "Timezone not found: " + timeZoneId); in loadTzsInZoneTab()
399 if (countryCode == null && !timeZoneId.startsWith("Etc/GMT")) { in loadTzsInZoneTab()
400 processedTimeZones.add(timeZoneId); in loadTzsInZoneTab()
417 && timeZoneId.equals(mAlternateDefaultTimeZoneId)) { in loadTzsInZoneTab()
450 Log.e(TAG, "# Adding time zone: " + timeZoneId + " ## " + in loadTzsInZoneTab()
456 Log.e(TAG, "# Dropping identical time zone: " + timeZoneId + " ## " + in loadTzsInZoneTab()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/
H A DTimeZoneCanonicalizer.java29 public String apply(String timeZoneId) { in apply() argument
31 .findCanonicalTimeZoneId(timeZoneId); in apply()
33 return canonicialZoneId == null ? timeZoneId : canonicialZoneId; in apply()
H A DEnvironmentImpl.java155 String timeZoneId = getDeviceTimeZone(); in isDeviceTimeZoneInitialized() local
156 return timeZoneId != null && timeZoneId.length() > 0 && !timeZoneId.equals("GMT"); in isDeviceTimeZoneInitialized()
H A DTimeZoneDetectorStrategyImpl.java321 String timeZoneId = suggestion.getZoneId(); in suggestManualTimeZone() local
330 + ", timeZoneId=" + timeZoneId in suggestManualTimeZone()
341 setDeviceTimeZoneIfRequired(timeZoneId, cause); in suggestManualTimeZone()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
H A DCanonicalizeTzS2Polygons.java171 String timeZoneId = inputTzS2Polygons.tzId; in processFile() local
173 if (COUNTRY_MAPPED_EXCEPTIONS.contains(timeZoneId)) { in processFile()
174 canonicalTzId = timeZoneId; in processFile()
176 String countryIsoCode = timeZoneIds.getCountryCodeForZoneId(timeZoneId); in processFile()
178 errors.addError(timeZoneId + " is not mapped to a country"); in processFile()
192 canonicalTzId = countryTzIdsMap.get(timeZoneId); in processFile()
/aosp12/system/timezone/apex/tests/src/java/android/tzdata/mts/
H A DTimeZoneRulesTest.java211 final String timeZoneId = "Europe/Dublin"; in dstMeansSummer() local
232 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timeZoneId); in dstMeansSummer()
252 android.icu.util.TimeZone timeZone = android.icu.util.TimeZone.getTimeZone(timeZoneId); in dstMeansSummer()
287 timeZoneId, TimeZoneNames.NameType.LONG_STANDARD, winterTimeMillis)); in dstMeansSummer()
289 timeZoneId, TimeZoneNames.NameType.LONG_DAYLIGHT, winterTimeMillis)); in dstMeansSummer()
292 timeZoneId, TimeZoneNames.NameType.LONG_STANDARD, summerTimeMillis)); in dstMeansSummer()
294 timeZoneId, TimeZoneNames.NameType.LONG_DAYLIGHT, summerTimeMillis)); in dstMeansSummer()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeMigrationUtilsTest.java104 for (String timeZoneId : timeZoneIds) { in formatMillisAsDateTime_matchesOldBehavior()
105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior()
113 "locale=" + locale + ", timeZoneId=" + timeZoneId in formatMillisAsDateTime_matchesOldBehavior()
/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
H A DTzLookupGenerator.java469 String timeZoneId = mapping.getId(); in validateCountryZonesTzIdsAgainstIana() local
472 expectedIanaTimeZoneId = timeZoneId; in validateCountryZonesTzIdsAgainstIana()
477 if (!aliasTimeZoneId.equals(zoneIdLinks.get(timeZoneId))) { in validateCountryZonesTzIdsAgainstIana()
478 errors.addError(timeZoneId + " does not link to " + aliasTimeZoneId); in validateCountryZonesTzIdsAgainstIana()
542 for (String timeZoneId : timeZoneIds) { in anyZonesUseUtc()
543 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(timeZoneId); in anyZonesUseUtc()
586 private static boolean invalidTimeZoneId(String timeZoneId) { in invalidTimeZoneId() argument
587 TimeZone zone = TimeZone.getTimeZone(timeZoneId); in invalidTimeZoneId()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/
H A DTzS2CellUnionsToTzS2RangesTest.java60 String timeZoneId = "Europe/London"; in regressionTest() local
80 TzIds.fileNameSafe(timeZoneId) + TzS2Ranges.getFileSuffix(storageFormat), in regressionTest()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/
H A DTzS2PolygonsToTzS2CellUnionsTest.java60 String timeZoneId = "Europe/London"; in regressionTest() local
80 TzIds.fileNameSafe(timeZoneId) + TzS2CellUnion.getFileSuffix(storageFormat), in regressionTest()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/
H A DGeoJsonTzToTzS2PolygonsTest.java62 String timeZoneId = "Europe/London"; in regressionTest() local
80 TzIds.fileNameSafe(timeZoneId) + TzS2Polygons.getFileSuffix(storageFormat), in regressionTest()
/aosp12/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
H A DZoneGetterTest.java102 private void testTimeZoneOffsetAndNameInner(String timeZoneId, String expectedName) { in testTimeZoneOffsetAndNameInner() argument
104 final TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in testTimeZoneOffsetAndNameInner()
/aosp12/packages/apps/Settings/src/com/android/settings/datetime/timezone/
H A DTimeZoneInfo.java142 public TimeZoneInfo format(String timeZoneId) { in format() argument
143 TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in format()
H A DRegionZonePicker.java123 for (final String timeZoneId : timeZoneIds) { in getRegionTimeZoneInfo()
124 final TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in getRegionTimeZoneInfo()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
H A DNitzStateMachineTestSupport.java156 Scenario changeCountry(String timeZoneId, String networkCountryIsoCode) { in changeCountry() argument
158 mZone = zone(timeZoneId); in changeCountry()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
H A DTimeZoneDetectorStrategyImplTest.java1152 void assertTimeZoneChangedTo(String timeZoneId) { in assertTimeZoneChangedTo() argument
1155 mTimeZoneId.assertLatestEquals(timeZoneId); in assertTimeZoneChangedTo()