Lines Matching defs:location
26 import android.location.Location;
249 * Set image location metadata.
252 * The given location object must contain at least a valid time, latitude, and longitude
253 * (equivalent to the values returned by {@link android.location.Location#getTime()},
254 * {@link android.location.Location#getLatitude()}, and
255 * {@link android.location.Location#getLongitude()} methods).
258 * @param location an {@link android.location.Location} object to set.
261 * @throws java.lang.IllegalArgumentException if the given location object doesn't
262 * contain enough information to set location metadata.
265 public DngCreator setLocation(@NonNull Location location) {
266 if (location == null) {
267 throw new IllegalArgumentException("Null location passed to setLocation");
269 double latitude = location.getLatitude();
270 double longitude = location.getLongitude();
271 long time = location.getTime();