Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneSettings.java153 String tzId = data.getStringExtra(FixedOffsetPicker.EXTRA_RESULT_TIME_ZONE_ID); in onActivityResult() local
155 if (tzId != null && !tzId.equals(mSelectedTimeZoneId)) { in onActivityResult()
156 onFixedOffsetZoneChanged(tzId); in onActivityResult()
211 private void setDisplayedTimeZoneInfo(String regionId, String tzId) { in setDisplayedTimeZoneInfo() argument
212 final TimeZoneInfo tzInfo = tzId == null ? null : mTimeZoneInfoFormatter.format(tzId); in setDisplayedTimeZoneInfo()
227 private void setDisplayedFixedOffsetTimeZoneInfo(String tzId) { in setDisplayedFixedOffsetTimeZoneInfo() argument
228 if (isFixedOffset(tzId)) { in setDisplayedFixedOffsetTimeZoneInfo()
230 mTimeZoneInfoFormatter.format(tzId)); in setDisplayedFixedOffsetTimeZoneInfo()
239 String tzId = data.getStringExtra(RegionZonePicker.EXTRA_RESULT_TIME_ZONE_ID); in onZonePickerRequestResult() local
242 && Objects.equals(tzId, mSelectedTimeZoneId)) { in onZonePickerRequestResult()
[all …]
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
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()
186 throw new IllegalStateException("Multiple entries found for: " + tzId); in execute()
188 knownTzIds.add(tzId); in execute()
191 File outputFile = TzIds.createFile(mOutputDir, tzPolygons.tzId, fileSuffix); in execute()
[all …]
DTypes.java149 public final String tzId; field in Types.TzS2Polygons
154 public TzS2Polygons(String tzId, List<S2Polygon> s2PolygonList) { in TzS2Polygons() argument
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()
240 S2Protos.TzS2Polygons.newBuilder().setTzId(tzPolygons.tzId); in store()
312 public final String tzId; field in Types.TzS2CellUnion
317 public TzS2CellUnion(String tzId, S2CellUnion s2CellUnion) { in TzS2CellUnion() argument
318 this.tzId = Objects.requireNonNull(tzId); in TzS2CellUnion()
[all …]
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()
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()
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()
DCanonicalizeTzS2Polygons.java171 String timeZoneId = inputTzS2Polygons.tzId; in processFile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
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()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
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()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCityDAO.kt135 fun createCity(id: String?, formattedName: String, tzId: String?): City? { in createCity()
136 val tz = TimeZone.getTimeZone(tzId) in createCity()
/packages/modules/GeoTZ/data_pipeline/src/main/proto/
Ds2_protos.proto29 required string tzId = 1; field
54 required string tzId = 1; field
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceController.java95 String tzId = timeZone.get(ZoneGetter.KEY_ID).toString(); in createTimeZonePreference()
97 tzId, "Settings: Set time zone"); in createTimeZonePreference()
/packages/modules/GeoTZ/data_pipeline/src/debug/java/com/android/timezone/location/data_pipeline/tools/
DPrintTzS2CellUnionStats.java66 joiner.add(cellUnion.tzId); in printS2CellStats()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/input_polygons/
DAmerica_Argentina_Ushuaia_tzs2polygons.prototxt6 tzId: "America/Argentina/Ushuaia"
DAmerica_Argentina_Cordoba_tzs2polygons.prototxt6 tzId: "America/Argentina/Cordoba"
DGB_tzs2polygons.prototxt6 tzId: "GB"
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/
DAmerica_Argentina_Buenos_Aires_tzs2polygons.prototxt6 tzId: "America/Argentina/Buenos_Aires"
DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/
DEurope_London_tzs2cellunion.prototxt6 tzId: "Europe/London"
DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/
DEurope_London_tzs2cellunion.prototxt6 tzId: "Europe/London"
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/
DEurope_London_tzs2polygons.prototxt6 tzId: "Europe/London"