Home | History | Annotate | Download | only in location

Lines Matching refs:geofenceId

258         int geofenceId = request.getId();
276 mGeofences.put(geofenceId, callback);
319 mGeofences.remove(geofenceId);
327 public boolean removeGeofence(int geofenceId, int monitoringType) {
330 if (DEBUG) Log.d(TAG, "Remove Geofence: GeofenceId: " + geofenceId);
334 if (mGeofences.get(geofenceId) == null) {
335 throw new IllegalArgumentException("Geofence " + geofenceId + " not registered.");
342 result = mGpsService.removeHardwareGeofence(geofenceId);
353 mFusedService.removeGeofences(new int[] { geofenceId });
367 public boolean pauseGeofence(int geofenceId, int monitoringType) {
370 if (DEBUG) Log.d(TAG, "Pause Geofence: GeofenceId: " + geofenceId);
373 if (mGeofences.get(geofenceId) == null) {
374 throw new IllegalArgumentException("Geofence " + geofenceId + " not registered.");
381 result = mGpsService.pauseHardwareGeofence(geofenceId);
392 mFusedService.pauseMonitoringGeofence(geofenceId);
407 public boolean resumeGeofence(int geofenceId, int monitoringType, int monitorTransition) {
410 if (DEBUG) Log.d(TAG, "Resume Geofence: GeofenceIdgeofenceId);
413 if (mGeofences.get(geofenceId) == null) {
414 throw new IllegalArgumentException("Geofence " + geofenceId + " not registered.");
421 result = mGpsService.resumeHardwareGeofence(geofenceId, monitorTransition);
432 mFusedService.resumeMonitoringGeofence(geofenceId, monitorTransition);
471 int geofenceId,
490 geofenceId,
527 * @param geofenceId The id of the geofence the operation is related to.
531 private void reportGeofenceOperationStatus(int operation, int geofenceId, int operationStatus) {
534 message.arg1 = geofenceId;
542 public void reportGeofenceAddStatus(int geofenceId, int status) {
543 if(DEBUG) Log.d(TAG, "AddCallback| id:" + geofenceId + ", status:" + status);
544 reportGeofenceOperationStatus(ADD_GEOFENCE_CALLBACK, geofenceId, status);
550 public void reportGeofenceRemoveStatus(int geofenceId, int status) {
551 if(DEBUG) Log.d(TAG, "RemoveCallback| id:" + geofenceId + ", status:" + status);
552 reportGeofenceOperationStatus(REMOVE_GEOFENCE_CALLBACK, geofenceId, status);
558 public void reportGeofencePauseStatus(int geofenceId, int status) {
559 if(DEBUG) Log.d(TAG, "PauseCallbac| id:" + geofenceId + ", status" + status);
560 reportGeofenceOperationStatus(PAUSE_GEOFENCE_CALLBACK, geofenceId, status);
566 public void reportGeofenceResumeStatus(int geofenceId, int status) {
567 if(DEBUG) Log.d(TAG, "ResumeCallback| id:" + geofenceId + ", status:" + status);
568 reportGeofenceOperationStatus(RESUME_GEOFENCE_CALLBACK, geofenceId, status);
575 int geofenceId;
580 geofenceId = msg.arg1;
582 callback = mGeofences.get(geofenceId);
587 callback.onGeofenceAdd(geofenceId, msg.arg2);
593 geofenceId = msg.arg1;
595 callback = mGeofences.get(geofenceId);
600 callback.onGeofenceRemove(geofenceId, msg.arg2);
605 mGeofences.remove(geofenceId);
636 geofenceId = msg.arg1;
638 callback = mGeofences.get(geofenceId);
643 callback.onGeofencePause(geofenceId, msg.arg2);
650 geofenceId = msg.arg1;
652 callback = mGeofences.get(geofenceId);
657 callback.onGeofenceResume(geofenceId, msg.arg2);
669 if (DEBUG) Log.d(TAG, "GeofenceTransistionCallback: GPS : GeofenceId: " +
693 geofenceId = mGeofences.keyAt(i);
695 mGeofences.remove(geofenceId);
807 int geofenceId,
813 mGeofenceId = geofenceId;