Home
last modified time | relevance | path

Searched refs:tzId (Results 1 – 25 of 25) sorted by relevance

/aosp12/packages/apps/Settings/src/com/android/settings/datetime/timezone/
H A DTimeZoneSettings.java155 if (tzId != null && !tzId.equals(mSelectedTimeZoneId)) { in onActivityResult()
156 onFixedOffsetZoneChanged(tzId); in onActivityResult()
212 final TimeZoneInfo tzInfo = tzId == null ? null : mTimeZoneInfoFormatter.format(tzId); in setDisplayedTimeZoneInfo()
228 if (isFixedOffset(tzId)) { in setDisplayedFixedOffsetTimeZoneInfo()
254 mSelectedTimeZoneId = tzId; in onZonePickerRequestResult()
264 mSelectedTimeZoneId = tzId; in onFixedOffsetZoneChanged()
265 setDisplayedFixedOffsetTimeZoneInfo(tzId); in onFixedOffsetZoneChanged()
321 private static boolean isFixedOffset(String tzId) { in isFixedOffset() argument
322 return tzId.startsWith("Etc/GMT") || tzId.equals("Etc/UTC"); in isFixedOffset()
362 private String findRegionIdForTzId(String tzId) { in findRegionIdForTzId() argument
[all …]
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
H A DGeoJsonTzToTzS2Polygons.java118 .filter(tzId -> !tzId.isEmpty()) in tzIds()
167 String tzId = (String) feature.getProperties().get("tzid"); in execute() local
168 if (!mTzIds.isEmpty() && !mTzIds.contains(tzId)) { in execute()
171 System.out.println("Submitting " + tzId + " ..."); in execute()
173 NamedFuture<TzS2Polygons> namedFuture = new NamedFuture<>(tzId, future); in execute()
184 String tzId = tzPolygons.tzId; in execute() local
185 if (knownTzIds.contains(tzId)) { in execute()
188 knownTzIds.add(tzId); in execute()
200 String tzId = (String) feature.getProperties().get("tzid"); in processFeature() local
201 System.out.println("Converting " + tzId + " to S2 geometry..."); in processFeature()
[all …]
H A DTzS2PolygonsToTzS2CellUnions.java156 String tzId = output.a; in execute() local
157 if (knownTzIds.contains(tzId)) { in execute()
158 throw new IllegalStateException("Multiple entries found for: " + tzId); in execute()
160 knownTzIds.add(tzId); in execute()
172 outputDir, tzS2CellUnion.tzId, TzS2CellUnion.getFileSuffix(mProtoStorageFormat)); in processFile()
174 return new Pair<>(tzS2Polygons.tzId, outputFile); in processFile()
186 String tzId = tzPolygons.tzId; in createTzS2CellUnion() local
194 "Possible overflow. for " + tzPolygons.tzId + "size=" + cellIds.size() + "..."); in createTzS2CellUnion()
200 tzId, cellIds.size(), maxS2Level, stopwatch.elapsed()); in createTzS2CellUnion()
201 return new TzS2CellUnion(tzId, combinedCellUnion); in createTzS2CellUnion()
H A DTypes.java149 public final String tzId; field in Types.TzS2Polygons
155 this.tzId = Objects.requireNonNull(tzId); in TzS2Polygons()
171 return tzId.equals(that.tzId) in equals()
221 return Objects.hash(tzId); in hashCode()
227 + "tzId='" + tzId + '\'' in toString()
312 public final String tzId; field in Types.TzS2CellUnion
318 this.tzId = Objects.requireNonNull(tzId); in TzS2CellUnion()
331 return tzId.equals(that.tzId) in equals()
341 return Objects.hash(tzId); in hashCode()
347 + "tzId='" + tzId + '\'' + in toString()
[all …]
H A DTzIds.java28 public static File createFile(File outputDir, String tzId, String fileSuffix) { in createFile() argument
29 String tzIdName = fileNameSafe(tzId); in createFile()
34 public static String fileNameSafe(String tzId) { in fileNameSafe() argument
35 return tzId.replace('/', '_'); in fileNameSafe()
H A DTzS2CellUnionsToTzS2Ranges.java154 String tzId = output.a; in execute() local
155 if (knownTzIds.contains(tzId)) { in execute()
156 throw new IllegalStateException("Multiple entries found for: " + tzId); in execute()
158 knownTzIds.add(tzId); in execute()
170 mOutputDir, tzS2CellUnion.tzId, TzS2Ranges.getFileSuffix(mProtoStorageFormat)); in processFile()
172 return new Pair<>(tzS2CellUnion.tzId, outputFile); in processFile()
178 String tzId = tzS2CellUnion.tzId; in createTzS2Ranges() local
179 List<String> tzIds = Collections.singletonList(tzId); in createTzS2Ranges()
214 ranges.size(), tzId, stopwatch.elapsed()); in createTzS2Ranges()
H A DCanonicalizeTzS2Polygons.java171 String timeZoneId = inputTzS2Polygons.tzId; in processFile()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
H A DTimeZoneSettingsTest.java41 String tzId = "Unknown/Secret_City"; in findRegionIdForTzId_matchExpectedCountry() local
43 when(timeZoneData.lookupCountryCodesForZoneId(tzId)) in findRegionIdForTzId_matchExpectedCountry()
48 assertThat(settings.findRegionIdForTzId(tzId, null, "")).matches("US|GB"); in findRegionIdForTzId_matchExpectedCountry()
49 assertThat(settings.findRegionIdForTzId(tzId, "GB", "")).isEqualTo("GB"); in findRegionIdForTzId_matchExpectedCountry()
50 assertThat(settings.findRegionIdForTzId(tzId, null, "GB")).isEqualTo("GB"); in findRegionIdForTzId_matchExpectedCountry()
/aosp12/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
H A DTimeZoneData.java65 public Set<String> lookupCountryCodesForZoneId(String tzId) { in lookupCountryCodesForZoneId() argument
66 if (tzId == null) { in lookupCountryCodesForZoneId()
70 .lookupCountryTimeZonesForZoneId(tzId); in lookupCountryCodesForZoneId()
74 if (filteredZones.matches(tzId)) { in lookupCountryCodesForZoneId()
/aosp12/frameworks/base/core/java/android/app/timezonedetector/
H A DTimeZoneDetector.java103 static ManualTimeZoneSuggestion createManualTimeZoneSuggestion(String tzId, String debugInfo) { in createManualTimeZoneSuggestion() argument
104 ManualTimeZoneSuggestion suggestion = new ManualTimeZoneSuggestion(tzId); in createManualTimeZoneSuggestion()
/aosp12/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneResultAdapter.java205 for(String tzId : recentsString.split(RECENT_TIMEZONES_DELIMITER)) { in saveRecentTimezone()
206 if (!recents.contains(tzId) && !id.equals(tzId)) { in saveRecentTimezone()
207 recents.add(tzId); in saveRecentTimezone()
H A DTimeZoneData.java127 for (String tzId : tzIds) { in loadTzs()
128 if (processedTimeZones.contains(tzId)) { in loadTzs()
137 if (!tzId.startsWith("Etc/GMT")) { in loadTzs()
141 final TimeZone tz = TimeZone.getTimeZone(tzId); in loadTzs()
143 Log.e(TAG, "Timezone not found: " + tzId); in loadTzs()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DCityDAO.kt135 fun createCity(id: String?, formattedName: String, tzId: String?): City? {
136 val tz = TimeZone.getTimeZone(tzId)
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/proto/
H A Ds2_protos.proto29 required string tzId = 1; field
54 required string tzId = 1; field
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
H A DTimeZonePickerScreenPreferenceController.java107 String tzId = timeZone.get(ZoneGetter.KEY_ID).toString(); in createTimeZonePreference()
109 tzId, "Settings: Set time zone"); in createTimeZonePreference()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/debug/java/com/android/timezone/location/data_pipeline/tools/
H A DPrintTzS2CellUnionStats.java66 joiner.add(cellUnion.tzId); in printS2CellStats()
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/input_polygons/
H A DAmerica_Argentina_Ushuaia_tzs2polygons.prototxt6 tzId: "America/Argentina/Ushuaia"
H A DAmerica_Argentina_Cordoba_tzs2polygons.prototxt6 tzId: "America/Argentina/Cordoba"
H A DGB_tzs2polygons.prototxt6 tzId: "GB"
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/
H A DAmerica_Argentina_Buenos_Aires_tzs2polygons.prototxt6 tzId: "America/Argentina/Buenos_Aires"
H A DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/
H A DEurope_London_tzs2cellunion.prototxt6 tzId: "Europe/London"
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/
H A DEurope_London_tzs2cellunion.prototxt6 tzId: "Europe/London"
H A DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/
H A DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"