HomeSort by relevance Sort by last modified time
    Searched refs:Geofence (Results 1 - 25 of 26) sorted by null

1 2

  /frameworks/base/location/java/android/location/
Geofence.aidl 19 parcelable Geofence;
Geofence.java 23 * Represents a geographical boundary, also known as a geofence.
29 public final class Geofence implements Parcelable {
39 * Create a circular geofence (on a flat, horizontal plane).
44 * @return a new geofence
47 public static Geofence createCircle(double latitude, double longitude, float radius) {
48 return new Geofence(latitude, longitude, radius);
51 private Geofence(double latitude, double longitude, float radius) {
101 public static final Parcelable.Creator<Geofence> CREATOR = new Parcelable.Creator<Geofence>() {
103 public Geofence createFromParcel(Parcel in)
    [all...]
ILocationManager.aidl 23 import android.location.Geofence;
46 void requestGeofence(in LocationRequest request, in Geofence geofence,
48 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
LocationManager.java     [all...]
  /developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofence.java 19 import com.google.android.gms.location.Geofence;
22 * A single Geofence object, defined by its center and radius.
35 * @param geofenceId The Geofence's request ID.
36 * @param latitude Latitude of the Geofence's center in degrees.
37 * @param longitude Longitude of the Geofence's center in degrees.
38 * @param radius Radius of the geofence circle in meters.
39 * @param expiration Geofence expiration duration.
40 * @param transition Type of Geofence transition.
74 * Creates a Location Services Geofence object from a SimpleGeofence.
75 * @return A Geofence object
    [all...]
Constants.java 21 import com.google.android.gms.location.Geofence;
38 public static final long GEOFENCE_EXPIRATION_TIME = Geofence.NEVER_EXPIRE;
40 // Geofence parameters for the Android building on Google's main campus in Mountain View.
46 // Geofence parameters for the Yerba Buena Gardens near the Moscone Center in San Francisco.
55 // Path for the DataItem containing the last geofence id entered.
69 // The prefix for flattened geofence keys.
72 // Invalid values, used to test geofence storage when retrieving geofences.
MainActivity.java 44 import com.google.android.gms.location.Geofence;
53 // Internal List of Geofence objects. In a real app, these might be provided by an API based on
55 List<Geofence> mGeofenceList;
65 // Stores the PendingIntent used to request geofence monitoring.
76 // Rather than displayng this activity, simply display a toast indicating that the geofence
92 // Instantiate a new geofence storage area.
95 mGeofenceList = new ArrayList<Geofence>();
104 // Create internal "flattened" objects containing the geofence data.
111 Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXI
    [all...]
GeofenceTransitionsIntentService.java 36 import com.google.android.gms.location.Geofence;
44 * Listens for geofence transition changes.
79 if (Geofence.GEOFENCE_TRANSITION_ENTER == transitionType) {
82 // Get the geofence id triggered. Note that only one geofence can be triggered at a
87 // Create a DataItem with this geofence's id. The wearable can use this to create
103 } else if (Geofence.GEOFENCE_TRANSITION_EXIT == transitionType) {
104 // Delete the data item when leaving a geofence region.
  /developers/samples/android/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofence.java 19 import com.google.android.gms.location.Geofence;
22 * A single Geofence object, defined by its center and radius.
35 * @param geofenceId The Geofence's request ID.
36 * @param latitude Latitude of the Geofence's center in degrees.
37 * @param longitude Longitude of the Geofence's center in degrees.
38 * @param radius Radius of the geofence circle in meters.
39 * @param expiration Geofence expiration duration.
40 * @param transition Type of Geofence transition.
74 * Creates a Location Services Geofence object from a SimpleGeofence.
75 * @return A Geofence object
    [all...]
Constants.java 21 import com.google.android.gms.location.Geofence;
38 public static final long GEOFENCE_EXPIRATION_TIME = Geofence.NEVER_EXPIRE;
40 // Geofence parameters for the Android building on Google's main campus in Mountain View.
46 // Geofence parameters for the Yerba Buena Gardens near the Moscone Center in San Francisco.
55 // Path for the DataItem containing the last geofence id entered.
69 // The prefix for flattened geofence keys.
72 // Invalid values, used to test geofence storage when retrieving geofences.
MainActivity.java 44 import com.google.android.gms.location.Geofence;
53 // Internal List of Geofence objects. In a real app, these might be provided by an API based on
55 List<Geofence> mGeofenceList;
65 // Stores the PendingIntent used to request geofence monitoring.
76 // Rather than displayng this activity, simply display a toast indicating that the geofence
92 // Instantiate a new geofence storage area.
95 mGeofenceList = new ArrayList<Geofence>();
104 // Create internal "flattened" objects containing the geofence data.
111 Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXI
    [all...]
GeofenceTransitionsIntentService.java 36 import com.google.android.gms.location.Geofence;
44 * Listens for geofence transition changes.
79 if (Geofence.GEOFENCE_TRANSITION_ENTER == transitionType) {
82 // Get the geofence id triggered. Note that only one geofence can be triggered at a
87 // Create a DataItem with this geofence's id. The wearable can use this to create
103 } else if (Geofence.GEOFENCE_TRANSITION_EXIT == transitionType) {
104 // Delete the data item when leaving a geofence region.
  /development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
SimpleGeofence.java 19 import com.google.android.gms.location.Geofence;
22 * A single Geofence object, defined by its center and radius.
35 * @param geofenceId The Geofence's request ID.
36 * @param latitude Latitude of the Geofence's center in degrees.
37 * @param longitude Longitude of the Geofence's center in degrees.
38 * @param radius Radius of the geofence circle in meters.
39 * @param expiration Geofence expiration duration.
40 * @param transition Type of Geofence transition.
74 * Creates a Location Services Geofence object from a SimpleGeofence.
75 * @return A Geofence object
    [all...]
Constants.java 21 import com.google.android.gms.location.Geofence;
38 public static final long GEOFENCE_EXPIRATION_TIME = Geofence.NEVER_EXPIRE;
40 // Geofence parameters for the Android building on Google's main campus in Mountain View.
46 // Geofence parameters for the Yerba Buena Gardens near the Moscone Center in San Francisco.
55 // Path for the DataItem containing the last geofence id entered.
69 // The prefix for flattened geofence keys.
72 // Invalid values, used to test geofence storage when retrieving geofences.
MainActivity.java 44 import com.google.android.gms.location.Geofence;
53 // Internal List of Geofence objects. In a real app, these might be provided by an API based on
55 List<Geofence> mGeofenceList;
65 // Stores the PendingIntent used to request geofence monitoring.
76 // Rather than displayng this activity, simply display a toast indicating that the geofence
92 // Instantiate a new geofence storage area.
95 mGeofenceList = new ArrayList<Geofence>();
104 // Create internal "flattened" objects containing the geofence data.
111 Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXI
    [all...]
GeofenceTransitionsIntentService.java 36 import com.google.android.gms.location.Geofence;
44 * Listens for geofence transition changes.
79 if (Geofence.GEOFENCE_TRANSITION_ENTER == transitionType) {
82 // Get the geofence id triggered. Note that only one geofence can be triggered at a
87 // Create a DataItem with this geofence's id. The wearable can use this to create
103 } else if (Geofence.GEOFENCE_TRANSITION_EXIT == transitionType) {
104 // Delete the data item when leaving a geofence region.
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/provider/
TouristAttractions.java 22 import com.google.android.gms.location.Geofence;
41 private static final int TRIGGER_TRANSITION = Geofence.GEOFENCE_TRANSITION_ENTER |
42 Geofence.GEOFENCE_TRANSITION_EXIT;
43 private static final long EXPIRATION_DURATION = Geofence.NEVER_EXPIRE;
112 public static List<Geofence> getGeofenceList() {
113 List<Geofence> geofenceList = new ArrayList<Geofence>();
116 geofenceList.add(new Geofence.Builder()
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/provider/
TouristAttractions.java 22 import com.google.android.gms.location.Geofence;
41 private static final int TRIGGER_TRANSITION = Geofence.GEOFENCE_TRANSITION_ENTER |
42 Geofence.GEOFENCE_TRANSITION_EXIT;
43 private static final long EXPIRATION_DURATION = Geofence.NEVER_EXPIRE;
112 public static List<Geofence> getGeofenceList() {
113 List<Geofence> geofenceList = new ArrayList<Geofence>();
116 geofenceList.add(new Geofence.Builder()
  /development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/
TouristAttractions.java 22 import com.google.android.gms.location.Geofence;
41 private static final int TRIGGER_TRANSITION = Geofence.GEOFENCE_TRANSITION_ENTER |
42 Geofence.GEOFENCE_TRANSITION_EXIT;
43 private static final long EXPIRATION_DURATION = Geofence.NEVER_EXPIRE;
112 public static List<Geofence> getGeofenceList() {
113 List<Geofence> geofenceList = new ArrayList<Geofence>();
116 geofenceList.add(new Geofence.Builder()
  /frameworks/base/services/core/java/com/android/server/location/
GeofenceState.java 21 import android.location.Geofence;
25 * Represents state associated with a geofence
35 public final Geofence mFence;
46 public GeofenceState(Geofence fence, long expireAt,
GeofenceManager.java 30 import android.location.Geofence;
153 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent,
156 Slog.d(TAG, "addFence: request=" + request + ", geofence=" + geofence
160 GeofenceState state = new GeofenceState(geofence,
166 if (geofence.equals(w.mFence) && intent.equals(w.mIntent)) {
177 public void removeFence(Geofence fence, PendingIntent intent) {
268 * The geofence update loop. This function removes expired fences, then tests the most
295 Slog.d(TAG, "skipping geofence processing for blacklisted app:
    [all...]
  /hardware/libhardware/include/hardware/
fused_location.h 511 * There are 3 states associated with a Geofence: Inside, Outside, Unknown.
528 * Inside state: We are 95% confident that the user is inside the geofence.
529 * Outside state: We are 95% confident that the user is outside the geofence
544 * whether it is inside or outside the geofence. If the accuracy remains the
551 * outside the Geofence. It moves to Unknown state only after the expiry of the
554 * The geofence callback needs to be triggered for the ENTERED and EXITED
556 * (Inside state) or exited (Outside state) the Geofence. An implementation
567 * appropriate (ENTERED or EXITED) transition for every Geofence it knows about.
573 * UNKNOWN transition described above is per geofence.
584 * The callback associated with the geofence
701 } geofence; member in struct:__anon48141
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
UtilityService.java 44 import com.google.android.gms.location.Geofence;
181 * Called when a geofence is triggered
191 List<Geofence> geofences = event.getTriggeringGeofences();
194 if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_ENTER) {
195 // Trigger the notification based on the first geofence
197 } else if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_EXIT) {
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
UtilityService.java 44 import com.google.android.gms.location.Geofence;
181 * Called when a geofence is triggered
191 List<Geofence> geofences = event.getTriggeringGeofences();
194 if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_ENTER) {
195 // Trigger the notification based on the first geofence
197 } else if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_EXIT) {
  /development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
UtilityService.java 43 import com.google.android.gms.location.Geofence;
180 * Called when a geofence is triggered
190 List<Geofence> geofences = event.getTriggeringGeofences();
193 if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_ENTER) {
194 // Trigger the notification based on the first geofence
196 } else if (event.getGeofenceTransition() == Geofence.GEOFENCE_TRANSITION_EXIT) {

Completed in 530 milliseconds

1 2