Lines Matching defs:location

17 package android.location;
19 import com.android.internal.location.ProviderProperties;
43 * This class provides access to the system location services. These
45 * device's geographical location, or to fire an application-specified
47 * geographical location.
58 * access to the GPS or passive location providers. Other providers will still
59 * return location results, but the update rate will be throttled and the exact
60 * location will be obfuscated to a coarse level of accuracy.
87 * Name of the network location provider.
88 * <p>This provider determines location based on
95 * Name of the GPS location provider.
97 * <p>This provider determines location using
99 * a location fix. Requires the permission
102 * <p> The extras Bundle for the GPS location provider can contain the
111 * A special location provider for receiving locations without actually initiating
112 * a location fix.
114 * <p>This provider can be used to passively receive location updates
118 * the origin of the location update. Requires the permission
125 * Name of the Fused location provider.
127 * <p>This provider combines inputs for all possible location sources
156 * when a location change is broadcast using a PendingIntent.
158 public static final String KEY_LOCATION_CHANGED = "location";
169 "android.location.GPS_ENABLED_CHANGE";
172 * Broadcast intent action when the configured location providers
178 "android.location.PROVIDERS_CHANGED";
189 public static final String MODE_CHANGED_ACTION = "android.location.MODE_CHANGED";
200 "android.location.GPS_FIX_CHANGE";
212 * Broadcast intent action indicating that a high power location requests
214 * active location requests should be read from AppOpsManager using
220 "android.location.HIGH_POWER_REQUEST_CHANGE";
256 public void onLocationChanged(Location location) {
259 msg.obj = location;
296 Location location = new Location((Location) msg.obj);
297 mListener.onLocationChanged(location);
340 * Returns a list of the names of all known location providers.
355 * Returns a list of the names of location providers.
370 * Returns the information associated with the location provider of the
444 * Register for location updates using the named provider, and a
451 * @param minTime minimum time interval between location updates, in milliseconds
452 * @param minDistance minimum distance between location updates, in meters
455 * each location update
475 * Register for location updates using the named provider, and a callback on
482 * @param minTime minimum time interval between location updates, in milliseconds
483 * @param minDistance minimum distance between location updates, in meters
486 * each location update
507 * Register for location updates using a Criteria, and a callback
513 * @param minTime minimum time interval between location updates, in milliseconds
514 * @param minDistance minimum distance between location updates, in meters
515 * @param criteria contains parameters for the location manager to choose the
516 * appropriate provider and parameters to compute the location
519 * each location update
540 * Register for location updates using the named provider, and a
547 * @param minTime minimum time interval between location updates, in milliseconds
548 * @param minDistance minimum distance between location updates, in meters
549 * @param intent a {@link PendingIntent} to be sent for each location update
568 * Register for location updates using a Criteria and pending intent.
573 * the specified {@link Criteria}, with location and status updates.
575 * <p> It may take a while to receive the first location update. If
576 * an immediate location is required, applications may use the
582 * <p> If the caller supplied a pending intent, then location updates
584 * {@link android.location.Location} value.
586 * <p> The location update interval can be controlled using the minTime parameter.
587 * The elapsed time between location updates will never be less than
592 * battery life. Each location update requires power from
596 * location to the user then your application should avoid using an active
600 * location to the user then it is appropriate to select a faster
604 * frequency of location updates. If it is greater than 0 then the
605 * location provider will only send your application an update when
606 * the location has changed by at least minDistance meters, AND
608 * difficult for location providers to save power using the minDistance
612 * <p> If your application wants to passively observe location
615 * This provider does not actively turn on or modify active location
618 * on a location update (such as network activity) then you should
621 * location provider with extremely fast updates.
626 * location updates will immediately resume and a provider availability
644 * only a hint, and some location provider implementations ignored it.
648 * @param minTime minimum time interval between location updates, in milliseconds
649 * @param minDistance minimum distance between location updates, in meters
650 * @param criteria contains parameters for the location manager to choose the
651 * appropriate provider and parameters to compute the location
652 * @param intent a {@link PendingIntent} to be sent for each location update
670 * Register for a single location update using the named provider and
679 * the location update is available
699 * Register for a single location update using a Criteria and
705 * @param criteria contains parameters for the location manager to choose the
706 * appropriate provider and parameters to compute the location
709 * the location update is available
729 * Register for a single location update using a named provider and pending intent.
735 * @param intent a {@link PendingIntent} to be sent for the location update
752 * Register for a single location update using a Criteria and pending intent.
757 * @param criteria contains parameters for the location manager to choose the
758 * appropriate provider and parameters to compute the location
759 * @param intent a {@link PendingIntent} to be sent for the location update
776 * Register for fused location updates using a LocationRequest and callback.
778 * <p>Upon a location update, the system delivers the new {@link Location} to the
783 * to compute a location for your application. It may use only passive
784 * locations, or just a single location source, or it may fuse together
785 * multiple location sources in order to produce the best possible
790 * default, low power parameters for location updates. You will occasionally
791 * receive location updates as available, without a major power impact on the
792 * system. If your application just needs an occasional location update
799 * <p> If a pending intent is supplied then location updates
801 * {@link android.location.Location} value. If a callback is supplied
802 * then location updates are made using the
822 * the location update is available
841 * Register for fused location updates using a LocationRequest and a pending intent.
843 * <p>Upon a location update, the system delivers the new {@link Location} with your provided
853 * @param intent a {@link PendingIntent} to be sent for the location update
894 * Removes all location updates for the specified LocationListener.
899 * @param listener listener object that no longer needs location updates
920 * Removes all location updates for the specified pending intent.
924 * @param intent pending intent object that no longer needs location updates
939 * Set a proximity alert for the location given by the position
944 * location, the given PendingIntent will be used to create an Intent
958 * parameter, the location manager will delete this proximity
1005 * location, the given PendingIntent will be used to create an Intent
1012 * <p> The geofence engine fuses results from all location providers to
1138 * method would throw {@link SecurityException} if the location permissions
1157 * Get the last known location.
1159 * <p>This location could be very old so use
1161 * also return null if no previous location is available.
1165 * @return The last known location, or null if not available
1182 * location fix obtained from the given provider.
1185 * without starting the provider. Note that this location could
1187 * moved to another location.
1192 * @return the last known location for the provider, or null
1216 * Creates a mock location provider and adds it to the set of active providers.
1221 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1243 * Removes the mock location provider with the given name.
1248 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1261 * Sets a mock location for the given provider.
1262 * <p>This location will be used in place of any actual location from the provider.
1263 * The location object must have a minimum number of fields set to be
1268 * @param loc the mock location
1271 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1274 * @throws IllegalArgumentException if the location is incomplete
1279 "Incomplete location object, missing timestamp or accuracy? " + loc);
1298 * Removes any mock location associated with the given provider.
1303 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1323 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1341 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1363 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
1382 * mock location app op} is not set to {@link android.app.AppOpsManager#MODE_ALLOWED
2214 * Sends additional commands to a location provider.
2217 * @param provider name of the location provider.