/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CbGeoUtils.java | 118 for (LatLng latLng : ((Polygon) geometry).getVertices()) { in encodeGeometryToString() 120 sb.append(latLng.lat); in encodeGeometryToString() 122 sb.append(latLng.lng); in encodeGeometryToString() 153 String[] latLng = str.split("\\s*,\\s*"); in parseLatLngFromString() local 154 return new LatLng(Double.parseDouble(latLng[0]), Double.parseDouble(latLng[1])); in parseLatLngFromString() 171 @NonNull LatLng latLng) { in distance() argument 175 return Optional.of(distancePolygon.distance(latLng)); in distance() 179 return Optional.of(distanceCircle.distance(latLng)); in distance() 204 public double distance(@NonNull final LatLng latLng) { in distance() argument 205 return latLng.distance(mCircle.getCenter()) - mCircle.getRadius(); in distance() [all …]
|
D | CellBroadcastHandler.java | 966 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in onLocationUpdate() local 973 callback.onLocationUpdate(latLng, accuracy); in onLocationUpdate()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CbGeoUtilsTest.java | 221 LatLng addEast(LatLng latLng, double meters) { in addEast() argument 223 / Math.cos(Math.toRadians(latLng.lat)); in addEast() 224 return new LatLng(latLng.lat, latLng.lng + offset); in addEast() 228 LatLng addSouth(LatLng latLng, double meters) { in addSouth() argument 229 return new LatLng(latLng.lat + scaleMeters(meters), in addSouth() 230 latLng.lng); in addSouth() 251 private CbGeoUtils.Point convert(LatLng origin, LatLng latLng) { in convert() argument 252 return CbGeoUtils.convertToDistanceFromOrigin(origin, latLng); in convert()
|
D | CbSendMessageCalculatorTest.java | 304 LatLng addEast(LatLng latLng, double meters) { in addEast() argument 306 / Math.cos(Math.toRadians(latLng.lat)); in addEast() 307 return new LatLng(latLng.lat, latLng.lng + offset); in addEast() 311 LatLng addSouth(LatLng latLng, double meters) { in addSouth() argument 312 return new LatLng(latLng.lat + scaleMeters(meters), in addSouth() 313 latLng.lng); in addSouth()
|
D | GsmCellBroadcastHandlerTest.java | 502 CbGeoUtils.LatLng latLng = new CbGeoUtils.LatLng(mRandom.nextFloat() % 150 + 1, in setMockCalculation() local 507 Location location = createMockLocation(latLng, accuracy); in setMockCalculation() 523 assertEquals(acLatLng.getValue().lat, latLng.lat); in setMockCalculation() 524 assertEquals(acLatLng.getValue().lng, latLng.lng); in setMockCalculation() 534 Location createMockLocation(CbGeoUtils.LatLng latLng, float accuracy) { in createMockLocation() argument 536 doReturn(latLng.lat).when(location).getLatitude(); in createMockLocation() 537 doReturn(latLng.lng).when(location).getLongitude(); in createMockLocation()
|
/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/ |
D | CitiesFile.java | 54 City(String name, S2LatLng latLng, String isoCountryCode, int population, in City() argument 57 this.mLatLng = Objects.requireNonNull(latLng); in City() 100 S2LatLng latLng = S2LatLng.fromDegrees(Double.parseDouble(lat), Double.parseDouble(lng)); in createCity() local 122 return new City(name, latLng, isoCountryCode, population, timeZoneId); in createCity()
|
D | GeonamesComparison.java | 127 S2LatLng latLng = city.getLatLng(); in main() local 129 latLng.latDegrees(), latLng.lngDegrees()); in main() 134 S2CellId s2CellId = S2CellId.fromLatLng(latLng); in main()
|
/packages/apps/Dialer/java/com/android/incallui/maps/impl/ |
D | StaticMapFragment.java | 71 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in onMapReady() local 72 googleMap.addMarker(new MarkerOptions().position(latLng).flat(true).draggable(false)); in onMapReady() 74 googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15f)); in onMapReady()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarNavigationManagerTest.java | 80 LatLng latLng = LatLng.newBuilder().build(); in testSerializeAndDeserializeProto() local 94 assertThat(latLng).isNotNull(); in testSerializeAndDeserializeProto() 109 assertThat(LatLng.parseFrom(latLng.toByteArray())).isNotNull(); in testSerializeAndDeserializeProto()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | TimeClustering.java | 103 final double[] latLng = new double[2]; in run() local 112 item.getLatLong(latLng); in run() 113 s.lat = latLng[0]; in run() 114 s.lng = latLng[1]; in run()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationFragment.java | 168 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in updateMap() local 170 savedGoogleMap.addMarker(new MarkerOptions().position(latLng).flat(true).draggable(false)); in updateMap() 171 savedGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, MAP_ZOOM_LEVEL)); in updateMap()
|