/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | TimeZoneSettings.java | 153 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/ |
D | GeoJsonTzToTzS2Polygons.java | 118 .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 …]
|
D | Types.java | 149 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 …]
|
D | TzS2PolygonsToTzS2CellUnions.java | 156 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()
|
D | TzS2CellUnionsToTzS2Ranges.java | 154 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()
|
D | TzIds.java | 28 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()
|
D | CanonicalizeTzS2Polygons.java | 171 String timeZoneId = inputTzS2Polygons.tzId; in processFile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/ |
D | TimeZoneSettingsTest.java | 41 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/ |
D | TimeZoneData.java | 65 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/ |
D | CityDAO.kt | 135 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/ |
D | s2_protos.proto | 29 required string tzId = 1; field 54 required string tzId = 1; field
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
D | TimeZonePickerScreenPreferenceController.java | 95 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/ |
D | PrintTzS2CellUnionStats.java | 66 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/ |
D | America_Argentina_Ushuaia_tzs2polygons.prototxt | 6 tzId: "America/Argentina/Ushuaia"
|
D | America_Argentina_Cordoba_tzs2polygons.prototxt | 6 tzId: "America/Argentina/Cordoba"
|
D | GB_tzs2polygons.prototxt | 6 tzId: "GB"
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/ |
D | America_Argentina_Buenos_Aires_tzs2polygons.prototxt | 6 tzId: "America/Argentina/Buenos_Aires"
|
D | Europe_London_tzs2polygons.prototxt | 6 tzId: "Europe/London"
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/ |
D | Europe_London_tzs2cellunion.prototxt | 6 tzId: "Europe/London"
|
D | Europe_London_tzs2polygons.prototxt | 6 tzId: "Europe/London"
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/ |
D | Europe_London_tzs2cellunion.prototxt | 6 tzId: "Europe/London"
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/ |
D | Europe_London_tzs2polygons.prototxt | 6 tzId: "Europe/London"
|