Home
last modified time | relevance | path

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

12

/packages/apps/Camera2/src/com/android/camera/data/
DLocation.java33 private Location(double latitude, double longitude) { in Location() argument
34 mLatitude = latitude; in Location()
94 public static Location from(double latitude, double longitude) { in from() argument
95 if (Double.isNaN(latitude) || Double.isNaN(longitude) in from()
96 || Double.isInfinite(latitude) || Double.isInfinite(longitude) in from()
97 || (latitude == 0.0 && longitude == 0.0)) { in from()
101 return new Location(latitude, longitude); in from()
DVideoDataFactory.java68 double latitude = c.getDouble(VideoDataQuery.COL_LATITUDE); in fromCursor() local
71 Location location = Location.from(latitude, longitude); in fromCursor()
DPhotoDataFactory.java66 double latitude = c.getDouble(PhotoDataQuery.COL_LATITUDE); in fromCursor() local
68 Location location = Location.from(latitude, longitude); in fromCursor()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/
DMapView.kt112 var latitude = (location.latitude - average.first + 180) % 180 in <lambda>() variable
113 if (latitude > 90) latitude -= 180 in <lambda>()
116 Pair(latitude, longitude) in <lambda>()
158 x += cos(toRadians(location.latitude)) * cos(toRadians(location.longitude)) in <lambda>()
159 y += cos(toRadians(location.latitude)) * sin(toRadians(location.longitude)) in <lambda>()
160 z += sin(toRadians(location.latitude)) in <lambda>()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMediaItem.java40 public double latitude = INVALID_LATLNG; field in LocalMediaItem
66 latLong[0] = latitude; in getLatLong()
93 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getDetails()
94 details.addDetail(MediaDetails.INDEX_LOCATION, new double[] {latitude, longitude}); in getDetails()
DLocalImage.java137 latitude = cursor.getDouble(INDEX_LATITUDE); in loadFromCursor()
156 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
249 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getSupportedOperations()
DLocalVideo.java105 latitude = cursor.getDouble(INDEX_LATITUDE); in loadFromCursor()
141 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DOther.java100 public boolean setLatLong(double latitude, double longitude) { in setLatLong() argument
101 if (latitude == mLatitude || longitude == mLongitude) { in setLatLong()
104 mLatitude = latitude; in setLatLong()
DVideoStore.java261 double latitude = cursor.getDouble(latitudeColumn); in loadData() local
263 updated |= other.setLatLong(latitude, longitude); in loadData()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java266 public static boolean isValidLocation(double latitude, double longitude) { in isValidLocation() argument
268 return (latitude != MediaItem.INVALID_LATLNG || longitude != MediaItem.INVALID_LATLNG); in isValidLocation()
271 public static String formatLatitudeLongitude(String format, double latitude, in formatLatitudeLongitude() argument
275 return String.format(Locale.ENGLISH, format, latitude, longitude); in formatLatitudeLongitude()
278 public static void showOnMap(Context context, double latitude, double longitude) { in showOnMap() argument
285 latitude, longitude); in showOnMap()
294 String url = formatLatitudeLongitude("geo:%f,%f", latitude, longitude); in showOnMap()
DSaveVideoFileUtils.java124 double latitude = cursor.getDouble(1); in insertContent()
129 if ((latitude != 0f) || (longitude != 0f)) { in insertContent()
130 values.put(Video.Media.LATITUDE, latitude); in insertContent()
DReverseGeocoder.java305 public Address lookupAddress(final double latitude, final double longitude, in lookupAddress() argument
308 long locationKey = (long) (((latitude + LAT_MAX) * 2 * LAT_MAX in lookupAddress()
320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress()
372 return lookupAddress(latitude, longitude, false); in lookupAddress()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseRoute.java170 @FloatRange(from = MIN_LATITUDE, to = MAX_LATITUDE) double latitude, in Location()
179 ValidationUtils.requireInRange(latitude, MIN_LATITUDE, MAX_LATITUDE, "Latitude"); in Location()
195 mLatitude = latitude; in Location()
333 @FloatRange(from = -90.0, to = 90.0) double latitude, in Builder()
337 mLatitude = latitude; in Builder()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/data/
DExerciseRoutesTestData.kt11 val latitude: Double, constant in com.android.healthconnect.testapps.toolbox.data.ExerciseRoutesTestData.ExerciseRouteLocationData
132 locationsDatum.latitude, in generateExerciseRouteFromLocations()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java139 double latitude = PicasaSource.getLatitude(image); in queryPicasaItem() local
141 boolean isValidLatlong = GalleryUtils.isValidLocation(latitude, longitude); in queryPicasaItem()
158 columnValues[i] = isValidLatlong ? latitude : null; in queryPicasaItem()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DOtherDetailsActivity.java160 double latitude = mOther.getLatitude(); in updateViews() local
162 String latlong = String.format("%f %f", latitude, longitude); in updateViews()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseRouteInternal.java166 public LocationInternal setLatitude(@FloatRange(from = -90.0, to = 90.0) double latitude) { in setLatitude()
167 this.mLatitude = latitude; in setLatitude()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DTransactionTestUtils.java200 double latitude = 52.13; in createExerciseRoute() local
209 .setLatitude(latitude + 0.001 * i) in createExerciseRoute()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DInspectorController.java254 float latitude, float longitude, @Nullable String label) { in createGeoIntent() argument
256 String data = "geo:0,0?q=" + latitude + " " + longitude + "(" + label + ")"; in createGeoIntent()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java1933 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles() local
1937 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null in getLatLongAsDoubles()
1938 || latitude.length < 3 || longitude.length < 3) { in getLatLongAsDoubles()
1942 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); in getLatLongAsDoubles()
1986 public boolean addGpsTags(double latitude, double longitude) { in addGpsTags() argument
1987 ExifTag latTag = buildTag(TAG_GPS_LATITUDE, toExifLatLong(latitude)); in addGpsTags()
1990 latitude >= 0 ? ExifInterface.GpsLatitudeRef.NORTH in addGpsTags()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java1974 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles() local
1978 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null in getLatLongAsDoubles()
1979 || latitude.length < 3 || longitude.length < 3) { in getLatLongAsDoubles()
1983 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); in getLatLongAsDoubles()
2027 public boolean addGpsTags(double latitude, double longitude) { in addGpsTags() argument
2028 ExifTag latTag = buildTag(TAG_GPS_LATITUDE, toExifLatLong(latitude)); in addGpsTags()
2031 latitude >= 0 ? GpsLatitudeRef.NORTH in addGpsTags()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java1912 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles() local
1916 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null in getLatLongAsDoubles()
1917 || latitude.length < 3 || longitude.length < 3) { in getLatLongAsDoubles()
1921 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); in getLatLongAsDoubles()
1965 public boolean addGpsTags(double latitude, double longitude) { in addGpsTags() argument
1966 ExifTag latTag = buildTag(TAG_GPS_LATITUDE, toExifLatLong(latitude)); in addGpsTags()
1969 latitude >= 0 ? ExifInterface.GpsLatitudeRef.NORTH in addGpsTags()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java725 double latitude = cursor.getDouble(1); in getContentValues()
729 if ((latitude != 0f) || (longitude != 0f)) { in getContentValues()
730 values.put(Images.Media.LATITUDE, latitude); in getContentValues()
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto603 // An object representing a latitude/longitude pair. This is expressed as a pair
604 // of doubles representing degrees latitude and degrees longitude. Unless
612 // The latitude in degrees. It must be in the range [-90.0, +90.0].
613 double latitude = 1; field
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java644 double latitude = latitudes[i]; in createExerciseSessionRecord()
652 time, latitude, longitude); in createExerciseSessionRecord()

12