/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | Location.java | 22 * Encapsulate latitude and longitude into a single location object. 33 private Location(double latitude, double longitude) { argument 34 mLatitude = latitude; 94 public static Location from(double latitude, double longitude) { argument 95 if (Double.isNaN(latitude) || Double.isNaN(longitude) 96 || Double.isInfinite(latitude) || Double.isInfinite(longitude) 97 || (latitude == 0.0 && longitude == 0.0)) { 101 return new Location(latitude, longitude);
|
H A D | PhotoDataFactory.java | 66 double latitude = c.getDouble(PhotoDataQuery.COL_LATITUDE); 68 Location location = Location.from(latitude, longitude);
|
H A D | VideoDataFactory.java | 68 double latitude = c.getDouble(VideoDataQuery.COL_LATITUDE); 71 Location location = Location.from(latitude, longitude);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalMediaItem.java | 40 public double latitude = INVALID_LATLNG; field in class:LocalMediaItem 66 latLong[0] = latitude; 93 if (GalleryUtils.isValidLocation(latitude, longitude)) { 94 details.addDetail(MediaDetails.INDEX_LOCATION, new double[] {latitude, longitude});
|
H A D | LocalVideo.java | 105 latitude = cursor.getDouble(INDEX_LATITUDE); 137 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE));
|
H A D | LocalImage.java | 137 latitude = cursor.getDouble(INDEX_LATITUDE); 156 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); 249 if (GalleryUtils.isValidLocation(latitude, longitude)) {
|
/packages/apps/FMRadio/src/com/android/fmradio/ |
H A D | FmUtils.java | 210 * @return the list of latitude and longitude 217 double latitude = Double.valueOf(strLatitude); 219 return new double[] { latitude, longitude }; 225 public static void setLastSearchedLocation(Context context, double latitude, double longitude) { argument 228 String strLatitude = Double.valueOf(latitude).toString();
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | GalleryUtils.java | 266 public static boolean isValidLocation(double latitude, double longitude) { argument 268 return (latitude != MediaItem.INVALID_LATLNG || longitude != MediaItem.INVALID_LATLNG); 271 public static String formatLatitudeLongitude(String format, double latitude, argument 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);
|
H A D | SaveVideoFileUtils.java | 123 double latitude = cursor.getDouble(1); 128 if ((latitude != 0f) || (longitude != 0f)) { 129 values.put(Video.Media.LATITUDE, latitude);
|
H A D | ReverseGeocoder.java | 58 // 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 308 long locationKey = (long) (((latitude + LAT_MAX) * 2 * LAT_MAX 320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); 372 return lookupAddress(latitude, longitud [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
H A D | GalleryProvider.java | 139 double latitude = PicasaSource.getLatitude(image); 141 boolean isValidLatlong = GalleryUtils.isValidLocation(latitude, longitude); 158 columnValues[i] = isValidLatlong ? latitude : null;
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifInterface.java | 1877 * Gets the double representation of the GPS latitude or longitude 1904 * Gets the GPS latitude and longitude as a pair of doubles from this 1907 * @return an array of 2 doubles containing the latitude, and longitude 1912 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); 1916 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null 1917 || latitude.length < 3 || longitude.length < 3) { 1921 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); 1959 * Creates and sets all to the GPS tags for a give latitude and longitude. 1961 * @param latitude a GPS latitude coordinat 1965 addGpsTags(double latitude, double longitude) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1898 * 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 1933 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); 1937 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null 1938 || latitude.length < 3 || longitude.length < 3) { 1942 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); 1980 * Creates and sets all to the GPS tags for a give latitude and longitude. 1982 * @param latitude a GPS latitude coordinat 1986 addGpsTags(double latitude, double longitude) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1898 * 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 1933 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); 1937 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null 1938 || latitude.length < 3 || longitude.length < 3) { 1942 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); 1980 * Creates and sets all to the GPS tags for a give latitude and longitude. 1982 * @param latitude a GPS latitude coordinat 1986 addGpsTags(double latitude, double longitude) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
H A D | ExifInterface.java | 1939 * Gets the double representation of the GPS latitude or longitude 1966 * Gets the GPS latitude and longitude as a pair of doubles from this 1969 * @return an array of 2 doubles containing the latitude, and longitude 1974 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); 1978 if (latitude == null || longitude == null || latitudeRef == null || longitudeRef == null 1979 || latitude.length < 3 || longitude.length < 3) { 1983 latLon[0] = convertLatOrLongToDouble(latitude, latitudeRef); 2021 * Creates and sets all to the GPS tags for a give latitude and longitude. 2023 * @param latitude a GPS latitude coordinat 2027 addGpsTags(double latitude, double longitude) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | SaveImage.java | 725 double latitude = cursor.getDouble(1); 729 if ((latitude != 0f) || (longitude != 0f)) { 730 values.put(Images.Media.LATITUDE, latitude);
|