Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMediaItem.java40 public double latitude = INVALID_LATLNG; field in LocalMediaItem
66 latLong[0] = latitude; in getLatLong()
90 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getDetails()
91 details.addDetail(MediaDetails.INDEX_LOCATION, new double[] {latitude, longitude}); in getDetails()
DLocalImage.java115 latitude = cursor.getDouble(INDEX_LATITUDE); in loadFromCursor()
132 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
222 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getSupportedOperations()
DLocalVideo.java105 latitude = cursor.getDouble(INDEX_LATITUDE); in loadFromCursor()
135 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java227 public static boolean isValidLocation(double latitude, double longitude) { in isValidLocation() argument
229 return (latitude != MediaItem.INVALID_LATLNG || longitude != MediaItem.INVALID_LATLNG); in isValidLocation()
232 public static String formatLatitudeLongitude(String format, double latitude, in formatLatitudeLongitude() argument
236 return String.format(Locale.ENGLISH, format, latitude, longitude); in formatLatitudeLongitude()
239 public static void showOnMap(Context context, double latitude, double longitude) { in showOnMap() argument
246 latitude, longitude); in showOnMap()
255 String url = formatLatitudeLongitude("geo:%f,%f", latitude, longitude); in showOnMap()
DReverseGeocoder.java304 public Address lookupAddress(final double latitude, final double longitude, in lookupAddress() argument
307 long locationKey = (long) (((latitude + LAT_MAX) * 2 * LAT_MAX in lookupAddress()
319 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress()
371 return lookupAddress(latitude, longitude, false); in lookupAddress()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DSaveCopyTask.java169 double latitude = cursor.getDouble(1); in insertContent()
172 if ((latitude != 0f) || (longitude != 0f)) { in insertContent()
173 values.put(Images.Media.LATITUDE, latitude); in insertContent()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DSunCalculator.java229 final double latitude = Math.toRadians(mLocation.getLatitude()); in getCosineSunLocalHour() local
232 double sinLatitude = Math.sin(latitude); in getCosineSunLocalHour()
233 double cosLatitude = Math.cos(latitude); in getCosineSunLocalHour()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java165 double latitude = PicasaSource.getLatitude(image); in queryPicasaItem() local
167 boolean isValidLatlong = GalleryUtils.isValidLocation(latitude, longitude); in queryPicasaItem()
184 columnValues[i] = isValidLatlong ? latitude : null; in queryPicasaItem()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCropImage.java401 double latitude = PicasaSource.getLatitude(mMediaItem); in savePicasaImage() local
403 if (GalleryUtils.isValidLocation(latitude, longitude)) { in savePicasaImage()
404 values.put(Images.Media.LATITUDE, latitude); in savePicasaImage()
440 if (GalleryUtils.isValidLocation(localImage.latitude, localImage.longitude)) { in saveLocalImage()
441 values.put(Images.Media.LATITUDE, localImage.latitude); in saveLocalImage()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DLocalDataTest.java122 assertEquals(12.0, item.latitude); in verifyResult()
300 assertEquals(11.0, item.latitude); in verifyResult()