Searched refs:longitude (Results 1 - 11 of 11) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalMediaItem.java41 public double longitude = INVALID_LATLNG; field in class:LocalMediaItem
67 latLong[1] = longitude;
93 if (GalleryUtils.isValidLocation(latitude, longitude)) {
94 details.addDetail(MediaDetails.INDEX_LOCATION, new double[] {latitude, longitude});
H A DLocalVideo.java106 longitude = cursor.getDouble(INDEX_LONGITUDE);
138 longitude = uh.update(longitude, cursor.getDouble(INDEX_LONGITUDE));
H A DLocalImage.java136 longitude = cursor.getDouble(INDEX_LONGITUDE);
155 longitude = uh.update(longitude, cursor.getDouble(INDEX_LONGITUDE));
249 if (GalleryUtils.isValidLocation(latitude, longitude)) {
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DGalleryUtils.java266 public static boolean isValidLocation(double latitude, double longitude) { argument
268 return (latitude != MediaItem.INVALID_LATLNG || longitude != MediaItem.INVALID_LATLNG);
272 double longitude) {
275 return String.format(Locale.ENGLISH, format, latitude, longitude);
278 public static void showOnMap(Context context, double latitude, double longitude) { argument
280 // We don't use "geo:latitude,longitude" because it only centers
285 latitude, longitude);
294 String url = formatLatitudeLongitude("geo:%f,%f", latitude, longitude);
271 formatLatitudeLongitude(String format, double latitude, double longitude) argument
H A DReverseGeocoder.java58 // The latitude and longitude of the min latitude point.
61 // The latitude and longitude of the max latitude point.
64 // The latitude and longitude of the min longitude point.
67 // The latitude and longitude of the max longitude point.
305 public Address lookupAddress(final double latitude, final double longitude, argument
309 + (longitude + LON_MAX)) * EARTH_RADIUS_METERS);
320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1);
372 return lookupAddress(latitude, longitude, fals
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifData.java140 * given latitude and longitude.
142 public void addGpsTags(double latitude, double longitude) { argument
157 longTag.setValue(toExifLatLong(longitude));
161 longRefTag.setValue(longitude >= 0
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DSaveCopyTask.java322 double longitude = cursor.getDouble(2);
325 if ((latitude != 0f) || (longitude != 0f)) {
327 values.put(Images.Media.LONGITUDE, longitude);
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
H A DGalleryProvider.java167 double longitude = PicasaSource.getLongitude(image);
168 boolean isValidLatlong = GalleryUtils.isValidLocation(latitude, longitude);
187 columnValues[i] = isValidLatlong ? longitude : null;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DTrimVideo.java373 double longitude = cursor.getDouble(2);
376 if ((latitude != 0f) || (longitude != 0f)) {
378 values.put(Video.Media.LONGITUDE, longitude);
H A DCropImage.java467 double longitude = PicasaSource.getLongitude(mMediaItem);
468 if (GalleryUtils.isValidLocation(latitude, longitude)) {
470 values.put(Images.Media.LONGITUDE, longitude);
511 if (GalleryUtils.isValidLocation(localImage.latitude, localImage.longitude)) {
513 values.put(Images.Media.LONGITUDE, localImage.longitude);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DLocalDataTest.java123 assertEquals(34.0, item.longitude);
243 "longitude DOUBLE," +
258 db.execSQL("INSERT INTO images (title, mime_type, latitude, longitude, "
301 assertEquals(22.0, item.longitude);
367 "longitude DOUBLE," +
381 db.execSQL("INSERT INTO video (title, mime_type, latitude, longitude, "

Completed in 291 milliseconds