/aosp12/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/ |
H A D | CitiesFile.java | 55 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 D | FilteredCountryTimeZones.java | 45 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 D | TimeZones.kt | 33 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 D | SettingsDAO.kt | 104 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 D | TimeZoneData.java | 107 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 D | TimeZoneCanonicalizer.java | 29 public String apply(String timeZoneId) { in apply() argument 31 .findCanonicalTimeZoneId(timeZoneId); in apply() 33 return canonicialZoneId == null ? timeZoneId : canonicialZoneId; in apply()
|
H A D | EnvironmentImpl.java | 155 String timeZoneId = getDeviceTimeZone(); in isDeviceTimeZoneInitialized() local 156 return timeZoneId != null && timeZoneId.length() > 0 && !timeZoneId.equals("GMT"); in isDeviceTimeZoneInitialized()
|
H A D | TimeZoneDetectorStrategyImpl.java | 321 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 D | CanonicalizeTzS2Polygons.java | 171 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 D | TimeZoneRulesTest.java | 211 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 D | TimeMigrationUtilsTest.java | 104 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 D | TzLookupGenerator.java | 469 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 D | TzS2CellUnionsToTzS2RangesTest.java | 60 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 D | TzS2PolygonsToTzS2CellUnionsTest.java | 60 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 D | GeoJsonTzToTzS2PolygonsTest.java | 62 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 D | ZoneGetterTest.java | 102 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 D | TimeZoneInfo.java | 142 public TimeZoneInfo format(String timeZoneId) { in format() argument 143 TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in format()
|
H A D | RegionZonePicker.java | 123 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 D | NitzStateMachineTestSupport.java | 156 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 D | TimeZoneDetectorStrategyImplTest.java | 1152 void assertTimeZoneChangedTo(String timeZoneId) { in assertTimeZoneChangedTo() argument 1155 mTimeZoneId.assertLatestEquals(timeZoneId); in assertTimeZoneChangedTo()
|