Lines Matching refs:intent

155      * Broadcast intent action indicating that the GPS has either been
156 * enabled or disabled. An intent extra provides this state as a boolean,
166 * Broadcast intent action when the configured location providers
175 * Broadcast intent action when {@link android.provider.Settings.Secure#LOCATION_MODE} changes.
186 * Broadcast intent action indicating that the GPS has either started or
187 * stopped receiving GPS fixes. An intent extra provides this state as a
206 * Broadcast intent action indicating that a high power location requests
443 * pending intent.
539 * pending intent.
547 * @param intent a {@link PendingIntent} to be sent for each location update
551 * @throws IllegalArgumentException if intent is null
556 PendingIntent intent) {
558 checkPendingIntent(intent);
562 requestLocationUpdates(request, null, null, intent);
566 * Register for location updates using a Criteria and pending intent.
580 * <p> If the caller supplied a pending intent, then location updates
631 * pending intent was supplied then status and availability updates
650 * @param intent a {@link PendingIntent} to be sent for each location update
653 * @throws IllegalArgumentException if intent is null
658 PendingIntent intent) {
660 checkPendingIntent(intent);
664 requestLocationUpdates(request, null, null, intent);
727 * Register for a single location update using a named provider and pending intent.
733 * @param intent a {@link PendingIntent} to be sent for the location update
736 * @throws IllegalArgumentException if intent is null
740 public void requestSingleUpdate(String provider, PendingIntent intent) {
742 checkPendingIntent(intent);
746 requestLocationUpdates(request, null, null, intent);
750 * Register for a single location update using a Criteria and pending intent.
757 * @param intent a {@link PendingIntent} to be sent for the location update
760 * @throws IllegalArgumentException if intent is null
764 public void requestSingleUpdate(Criteria criteria, PendingIntent intent) {
766 checkPendingIntent(intent);
770 requestLocationUpdates(request, null, null, intent);
794 * or pending intent. So a subsequent request with the same callback or
795 * pending intent will over-write the previous LocationRequest.
797 * <p> If a pending intent is supplied then location updates
840 * Register for fused location updates using a LocationRequest and a pending intent.
844 * in the intent's extras.</p>
852 * @param intent a {@link PendingIntent} to be sent for the location update
854 * @throws IllegalArgumentException if intent is null
861 public void requestLocationUpdates(LocationRequest request, PendingIntent intent) {
862 checkPendingIntent(intent);
863 requestLocationUpdates(request, null, null, intent);
879 Looper looper, PendingIntent intent) {
887 mService.requestLocationUpdates(request, transport, intent, packageName);
920 * Removes all location updates for the specified pending intent.
922 * <p>Following this call, updates will no longer for this pending intent.
924 * @param intent pending intent object that no longer needs location updates
925 * @throws IllegalArgumentException if intent is null
927 public void removeUpdates(PendingIntent intent) {
928 checkPendingIntent(intent);
932 mService.removeUpdates(null, intent, packageName);
979 * @param intent a PendingIntent that will be used to generate an Intent to
987 PendingIntent intent) {
988 checkPendingIntent(intent);
994 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1027 * @param intent pending intent to receive geofence updates
1030 * @throws IllegalArgumentException if intent is null
1037 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) {
1038 checkPendingIntent(intent);
1042 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1057 * @param intent the PendingIntent that no longer needs to be notified of
1060 * @throws IllegalArgumentException if intent is null
1064 public void removeProximityAlert(PendingIntent intent) {
1065 checkPendingIntent(intent);
1069 mService.removeGeofence(null, intent, packageName);
1079 * specified pending intent. All other geofences remain unchanged.
1082 * @param intent a pending intent previously passed to {@link #addGeofence}
1085 * @throws IllegalArgumentException if intent is null
1091 public void removeGeofence(Geofence fence, PendingIntent intent) {
1092 checkPendingIntent(intent);
1097 mService.removeGeofence(fence, intent, packageName);
1104 * Remove all geofences registered to the specified pending intent.
1106 * @param intent a pending intent previously passed to {@link #addGeofence}
1108 * @throws IllegalArgumentException if intent is null
1114 public void removeAllGeofences(PendingIntent intent) {
1115 checkPendingIntent(intent);
1119 mService.removeGeofence(null, intent, packageName);
2114 private void checkPendingIntent(PendingIntent intent) {
2115 if (intent == null) {
2116 throw new IllegalArgumentException("invalid pending intent: " + intent);
2118 if (!intent.isTargetedToPackage()) {
2120 "pending intent must be targeted to package");