Lines Matching defs:location
27 import android.location.Location;
386 Location location = request.get(JPEG_GPS_LOCATION);
387 if (location != null) {
388 if (checkForCompleteGpsData(location)) {
389 params.setGpsAltitude(location.getAltitude());
390 params.setGpsLatitude(location.getLatitude());
391 params.setGpsLongitude(location.getLongitude());
392 params.setGpsProcessingMethod(location.getProvider().toUpperCase());
393 params.setGpsTimestamp(location.getTime());
395 Log.w(TAG, "Incomplete GPS parameters provided in location " + location);
458 private static boolean checkForCompleteGpsData(Location location) {
459 return location != null && location.getProvider() != null && location.getTime() != 0;