Searched defs:longitude (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/location/java/android/location/
H A DGeocoder.java34 * of a location into a (latitude, longitude) coordinate. Reverse
35 * geocoding is the process of transforming a (latitude, longitude)
100 * area immediately surrounding the given latitude and longitude.
110 * @param longitude the longitude a point for the search
118 * @throws IllegalArgumentException if longitude is
123 public List<Address> getFromLocation(double latitude, double longitude, int maxResults) argument
128 if (longitude < -180.0 || longitude > 180.0) {
129 throw new IllegalArgumentException("longitude
[all...]
H A DGeofence.java42 * @param longitude longitude in degrees, between -180 and +180 inclusive
47 public static Geofence createCircle(double latitude, double longitude, float radius) { argument
48 return new Geofence(latitude, longitude, radius);
51 private Geofence(double latitude, double longitude, float radius) { argument
53 checkLatLong(latitude, longitude);
56 mLongitude = longitude;
86 private static void checkLatLong(double latitude, double longitude) { argument
90 if (longitude > 180.0 || longitude <
[all...]
H A DAddress.java325 * Returns true if a longitude has been assigned to this Address,
333 * Returns the longitude of the address if known.
336 * a longitude.
347 * Sets the longitude associated with this address.
349 public void setLongitude(double longitude) { argument
350 mLongitude = longitude;
355 * Removes any longitude associated with this address.
463 sb.append(",longitude=");
H A DLocation.java33 * <p>A location can consist of a latitude, longitude, timestamp,
37 * guaranteed to have a valid latitude, longitude, and timestamp
43 * Constant used to specify formatting of a latitude or longitude
49 * Constant used to specify formatting of a latitude or longitude
56 * Constant used to specify formatting of a latitude or longitude
111 * <p>By default time, latitude and longitude are 0, and the location
400 * @param startLongitude the starting longitude
402 * @param endLongitude the ending longitude
563 * Get the longitude, in degrees.
566 * will have a valid longitude
575 setLongitude(double longitude) argument
[all...]
H A DLocationManager.java920 * (latitude, longitude) and the given radius.
953 * @param longitude the longitude of the central point of the
965 public void addProximityAlert(double latitude, double longitude, float radius, long expiration, argument
970 Geofence fence = Geofence.createCircle(latitude, longitude, radius);
/frameworks/base/location/lib/java/com/android/location/provider/
H A DGeocodeProvider.java40 public String getFromLocation(double latitude, double longitude, int maxResults,
42 return GeocodeProvider.this.onGetFromLocation(latitude, longitude, maxResults,
61 public abstract String onGetFromLocation(double latitude, double longitude, int maxResults, argument
/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp120 status_t MediaMuxer::setLocation(int latitude, int longitude) { argument
131 ALOGV("Setting location: latitude = %d, longitude = %d", latitude, longitude);
132 return static_cast<MPEG4Writer*>(mWriter.get())->setGeoData(latitude, longitude);
/frameworks/base/services/core/java/com/android/server/
H A DTwilightCalculator.java69 * @param longitude latitude in degrees.
71 public void calculateTwilight(long time, double latiude, double longitude) { argument
81 // ecliptic longitude
85 final double arcLongitude = -longitude / 360;
H A DLocationManagerService.java2325 public String getFromLocation(double latitude, double longitude, int maxResults, argument
2328 return mGeocodeProvider.getFromLocation(latitude, longitude, maxResults,
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareRequest.java42 private void setCircularGeofence(double latitude, double longitude, double radius) { argument
44 mLongitude = longitude;
53 * @param longitude Longitude of the geofence
57 double longitude, double radius) {
59 geofenceRequest.setCircularGeofence(latitude, longitude, radius);
139 * Returns the longitude of this geofence.
56 createCircularGeofence(double latitude, double longitude, double radius) argument
/frameworks/base/services/core/java/com/android/server/location/
H A DGeocoderProxy.java74 public String getFromLocation(double latitude, double longitude, int maxResults, argument
79 return provider.getFromLocation(latitude, longitude, maxResults, params, addrs);
H A DGpsLocationProvider.java1234 double longitude, double radius, int lastTransition, int monitorTransitions,
1236 return native_add_geofence(geofenceId, latitude, longitude, radius,
1376 private void reportLocation(int flags, double latitude, double longitude, double altitude, argument
1378 if (VERBOSE) Log.v(TAG, "reportLocation lat: " + latitude + " long: " + longitude +
1385 mLocation.setLongitude(longitude);
1656 double longitude,
1665 location.setLongitude(longitude);
1711 double longitude, double altitude, float speed, float bearing, float accuracy,
1719 longitude,
1738 double longitude, doubl
1653 buildLocation( int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp) argument
1710 reportGeofenceTransition(int geofenceId, int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp, int transition, long transitionTimestamp) argument
1737 reportGeofenceStatus(int status, int flags, double latitude, double longitude, double altitude, float speed, float bearing, float accuracy, long timestamp) argument
2183 native_inject_location(double latitude, double longitude, float accuracy) argument
2213 native_add_geofence(int geofenceId, double latitude, double longitude, double radius, int lastTransition,int monitorTransitions, int notificationResponsivenes, int unknownTimer) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java92 private static native void nativeSetLocation(long nativeObject, int latitude, int longitude); argument
168 * Set and store the geodata (latitude and longitude) in the output file.
176 * @param longitude Longitude in degrees. Its value must be in the range
178 * @throws IllegalArgumentException If the given latitude or longitude is out
182 public void setLocation(float latitude, float longitude) { argument
184 int longitudex10000 = (int) (longitude * 10000 + 0.5);
191 String msg = "Longitude: " + longitude + " out of range";
H A DMediaRecorder.java472 * Set and store the geodata (latitude and longitude) in the output file.
480 * @param longitude longitude in degrees. Its value must be in the
484 * longitude is out of range.
487 public void setLocation(float latitude, float longitude) { argument
489 int longitudex10000 = (int) (longitude * 10000 + 0.5);
496 String msg = "Longitude: " + longitude + " out of range";
501 setParameter("param-geotag-longitude=" + longitudex10000);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp167 JNIEnv *env, jclass clazz, jlong nativeObject, jint latitude, jint longitude) {
170 status_t res = muxer->setLocation(latitude, longitude);
166 android_media_MediaMuxer_setLocation( JNIEnv *env, jclass clazz, jlong nativeObject, jint latitude, jint longitude) argument
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBaseCluster.java52 public BaseCluster(String semanticId, double longitude, double latitude, argument
55 mCenter = getLocationVector(longitude, latitude);
79 protected double[] getLocationVector(double longitude, double latitude) { argument
81 double lambda = Math.toRadians(longitude);
93 double longitude = Math.toDegrees(Math.asin(mCenter[1] / cosPhi));
95 longitude = (longitude > 0) ? 180f - longitude : -180 - longitude;
97 return longitude;
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraSettings.java71 public final double longitude; field in class:CameraSettings.GpsData
81 * {@code latitude}, {@code longitude}, and {@code altitude} will be
84 public GpsData(double latitude, double longitude, double altitude, long timeStamp, argument
87 (latitude != 0.0 || longitude != 0.0 || altitude != 0.0)) {
91 this.longitude = longitude;
100 this.longitude = src.longitude;
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c210 int a, longitude, latitude; local
223 // longitude -pi to pi
224 for (longitude = 0; longitude < longitudeCount; ++longitude)
230 float t1 = -PI + longitude * 2 * PI / resol1;
231 float t2 = -PI + (longitude + 1) * 2 * PI / resol1;
336 } // longitude
/frameworks/base/core/java/android/provider/
H A DContacts.java1244 * The column with longitude data for postal locations
1441 * Add a longitude and latitude location to a postal address.
1446 * @param longitude the longitude for the address
1451 double latitude, double longitude) {
1456 values.put(POSTAL_LOCATION_LONGITUDE, longitude);
1450 addPostalLocation(Context context, long postalId, double latitude, double longitude) argument
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_DngCreator.cpp1561 "invalid longitude tag length");
1570 uint32_t longitude[GPS_VALUE_LENGTH]; local
1576 reinterpret_cast<jint*>(&longitude));
1616 BAIL_IF_INVALID(writer->addEntry(TAG_GPSLONGITUDE, 3, longitude,
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp91 (jdouble)location->latitude, (jdouble)location->longitude,
357 location->flags, (jdouble)location->latitude, (jdouble)location->longitude,
370 jdouble longitude = 0; local
379 longitude = location->longitude;
388 flags, latitude, longitude, altitude, speed, bearing, accuracy, timestamp);
708 jdouble latitude, jdouble longitude, jfloat accuracy)
711 sGpsInterface->inject_location(latitude, longitude, accuracy);
849 jint geofence_id, jdouble latitude, jdouble longitude, jdouble radius,
853 sGpsGeofencingInterface->add_geofence_area(geofence_id, latitude, longitude,
707 android_location_GpsLocationProvider_inject_location(JNIEnv* env, jobject obj, jdouble latitude, jdouble longitude, jfloat accuracy) argument
848 android_location_GpsLocationProvider_add_geofence(JNIEnv* env, jobject obj, jint geofence_id, jdouble latitude, jdouble longitude, jdouble radius, jint last_transition, jint monitor_transition, jint notification_responsiveness, jint unknown_timer) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java2096 private static final String KEY_GPS_LONGITUDE = "gps-longitude";
3154 * Sets GPS longitude coordinate. This will be stored in JPEG EXIF
3157 * @param longitude GPS longitude coordinate.
3159 public void setGpsLongitude(double longitude) { argument
3160 set(KEY_GPS_LONGITUDE, Double.toString(longitude));
3193 * Removes GPS latitude, longitude, altitude, and timestamp from the
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifInterface.java1898 * Gets the double representation of the GPS latitude or longitude
1925 * Gets the GPS latitude and longitude as a pair of doubles from this
1928 * @return an array of 2 doubles containing the latitude, and longitude
1935 Rational[] longitude = getTagRationalValues(TAG_GPS_LONGITUDE);
1937 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null
1938 || latitude.length < 3 || longitude.length < 3) {
1943 latLon[1] = convertLatOrLongToDouble(longitude, longitudeRef);
1980 * Creates and sets all to the GPS tags for a give latitude and longitude.
1983 * @param longitude a GPS longitude coordinat
1986 addGpsTags(double latitude, double longitude) argument
[all...]

Completed in 189 milliseconds