Lines Matching defs:Location

40 public class Location implements Parcelable {
108 * Construct a new Location with a named provider.
115 public Location(String provider) {
120 * Construct a new Location object that is copied from an existing one.
122 public Location(Location l) {
129 public void set(Location l) {
423 public float distanceTo(Location dest) {
451 public float bearingTo(Location dest) {
521 * to calculate the age of a fix and to compare Location fixes. This
728 * velocity or altitude if those are included in this Location.
762 * Return true if this Location object is complete.
785 * Location objects received from applications.
829 s.append("Location[");
859 public static final Parcelable.Creator<Location> CREATOR =
860 new Parcelable.Creator<Location>() {
862 public Location createFromParcel(Parcel in) {
864 Location l = new Location(provider);
883 public Location[] newArray(int size) {
884 return new Location[size];
913 * Returns one of the optional extra {@link Location}s that can be attached
914 * to this Location.
916 * @param key the key associated with the desired extra Location
917 * @return the extra Location, or null if unavailable
920 public Location getExtraLocation(String key) {
923 if (value instanceof Location) {
924 return (Location) value;
931 * Attaches an extra {@link Location} to this Location.
933 * @param key the key associated with the Location extra
934 * @param location the Location to attach
937 public void setExtraLocation(String key, Location value) {
945 * Returns true if the Location came from a mock provider.
947 * @return true if this Location came from a mock provider, false otherwise
954 * Flag this Location as having come from a mock provider or not.
956 * @param isFromMockProvider true if this Location came from a mock provider, false otherwise