Lines Matching refs:intent

145      * Broadcast intent action indicating that the GPS has either been
146 * enabled or disabled. An intent extra provides this state as a boolean,
156 * Broadcast intent action when the configured location providers
165 * Broadcast intent action when {@link android.provider.Settings.Secure#LOCATION_MODE} changes.
176 * Broadcast intent action indicating that the GPS has either started or
177 * stopped receiving GPS fixes. An intent extra provides this state as a
196 * Broadcast intent action indicating that a high power location requests
434 * pending intent.
527 * pending intent.
535 * @param intent a {@link PendingIntent} to be sent for each location update
539 * @throws IllegalArgumentException if intent is null
543 PendingIntent intent) {
545 checkPendingIntent(intent);
549 requestLocationUpdates(request, null, null, intent);
553 * Register for location updates using a Criteria and pending intent.
567 * <p> If the caller supplied a pending intent, then location updates
618 * pending intent was supplied then status and availability updates
637 * @param intent a {@link PendingIntent} to be sent for each location update
640 * @throws IllegalArgumentException if intent is null
644 PendingIntent intent) {
646 checkPendingIntent(intent);
650 requestLocationUpdates(request, null, null, intent);
711 * Register for a single location update using a named provider and pending intent.
717 * @param intent a {@link PendingIntent} to be sent for the location update
720 * @throws IllegalArgumentException if intent is null
723 public void requestSingleUpdate(String provider, PendingIntent intent) {
725 checkPendingIntent(intent);
729 requestLocationUpdates(request, null, null, intent);
733 * Register for a single location update using a Criteria and pending intent.
740 * @param intent a {@link PendingIntent} to be sent for the location update
743 * @throws IllegalArgumentException if intent is null
746 public void requestSingleUpdate(Criteria criteria, PendingIntent intent) {
748 checkPendingIntent(intent);
752 requestLocationUpdates(request, null, null, intent);
776 * or pending intent. So a subsequent request with the same callback or
777 * pending intent will over-write the previous LocationRequest.
779 * <p> If a pending intent is supplied then location updates
821 * Register for fused location updates using a LocationRequest and a pending intent.
825 * in the intent's extras.</p>
833 * @param intent a {@link PendingIntent} to be sent for the location update
835 * @throws IllegalArgumentException if intent is null
841 public void requestLocationUpdates(LocationRequest request, PendingIntent intent) {
842 checkPendingIntent(intent);
843 requestLocationUpdates(request, null, null, intent);
859 Looper looper, PendingIntent intent) {
867 mService.requestLocationUpdates(request, transport, intent, packageName);
900 * Removes all location updates for the specified pending intent.
902 * <p>Following this call, updates will no longer for this pending intent.
904 * @param intent pending intent object that no longer needs location updates
905 * @throws IllegalArgumentException if intent is null
907 public void removeUpdates(PendingIntent intent) {
908 checkPendingIntent(intent);
912 mService.removeUpdates(null, intent, packageName);
959 * @param intent a PendingIntent that will be used to generate an Intent to
966 PendingIntent intent) {
967 checkPendingIntent(intent);
973 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1006 * @param intent pending intent to receive geofence updates
1009 * @throws IllegalArgumentException if intent is null
1015 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) {
1016 checkPendingIntent(intent);
1020 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1035 * @param intent the PendingIntent that no longer needs to be notified of
1038 * @throws IllegalArgumentException if intent is null
1042 public void removeProximityAlert(PendingIntent intent) {
1043 checkPendingIntent(intent);
1047 mService.removeGeofence(null, intent, packageName);
1057 * specified pending intent. All other geofences remain unchanged.
1060 * @param intent a pending intent previously passed to {@link #addGeofence}
1063 * @throws IllegalArgumentException if intent is null
1069 public void removeGeofence(Geofence fence, PendingIntent intent) {
1070 checkPendingIntent(intent);
1075 mService.removeGeofence(fence, intent, packageName);
1082 * Remove all geofences registered to the specified pending intent.
1084 * @param intent a pending intent previously passed to {@link #addGeofence}
1086 * @throws IllegalArgumentException if intent is null
1092 public void removeAllGeofences(PendingIntent intent) {
1093 checkPendingIntent(intent);
1097 mService.removeGeofence(null, intent, packageName);
1701 private void checkPendingIntent(PendingIntent intent) {
1702 if (intent == null) {
1703 throw new IllegalArgumentException("invalid pending intent: " + intent);
1705 if (!intent.isTargetedToPackage()) {
1707 "pending intent must be targeted to package");