HomeSort by relevance Sort by last modified time
    Searched refs:geofence (Results 1 - 8 of 8) sorted by null

  /developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofenceStore.java 33 * Storage for geofence values, implemented in SharedPreferences.
50 * Returns a stored geofence by its id, or returns null if it's not found.
51 * @param id The ID of a stored geofence.
55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't
81 * Save a geofence.
82 * @param geofence The SimpleGeofence with the values you want to save in SharedPreferences.
84 public void setGeofence(String id, SimpleGeofence geofence) {
88 // Write the Geofence values to SharedPreferences.
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude());
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude())
    [all...]
  /developers/samples/android/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofenceStore.java 33 * Storage for geofence values, implemented in SharedPreferences.
50 * Returns a stored geofence by its id, or returns null if it's not found.
51 * @param id The ID of a stored geofence.
55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't
81 * Save a geofence.
82 * @param geofence The SimpleGeofence with the values you want to save in SharedPreferences.
84 public void setGeofence(String id, SimpleGeofence geofence) {
88 // Write the Geofence values to SharedPreferences.
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude());
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude())
    [all...]
  /development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
SimpleGeofenceStore.java 33 * Storage for geofence values, implemented in SharedPreferences.
50 * Returns a stored geofence by its id, or returns null if it's not found.
51 * @param id The ID of a stored geofence.
55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't
81 * Save a geofence.
82 * @param geofence The SimpleGeofence with the values you want to save in SharedPreferences.
84 public void setGeofence(String id, SimpleGeofence geofence) {
88 // Write the Geofence values to SharedPreferences.
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude());
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude())
    [all...]
  /frameworks/base/services/core/java/com/android/server/location/
GeofenceManager.java 28 import android.location.Geofence;
119 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent,
122 Slog.d(TAG, "addFence: request=" + request + ", geofence=" + geofence
126 GeofenceState state = new GeofenceState(geofence,
132 if (geofence.equals(w.mFence) && intent.equals(w.mIntent)) {
143 public void removeFence(Geofence fence, PendingIntent intent) {
234 * The geofence update loop. This function removes expired fences, then tests the most
261 Slog.d(TAG, "skipping geofence processing for blacklisted app:
    [all...]
  /frameworks/base/location/java/android/location/
ILocationManager.aidl 23 import android.location.Geofence;
45 void requestGeofence(in LocationRequest request, in Geofence geofence,
47 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
  /hardware/libhardware/include/hardware/
fused_location.h 520 * There are 3 states associated with a Geofence: Inside, Outside, Unknown.
537 * Inside state: We are 95% confident that the user is inside the geofence.
538 * Outside state: We are 95% confident that the user is outside the geofence
553 * whether it is inside or outside the geofence. If the accuracy remains the
560 * outside the Geofence. It moves to Unknown state only after the expiry of the
563 * The geofence callback needs to be triggered for the ENTERED and EXITED
565 * (Inside state) or exited (Outside state) the Geofence. An implementation
576 * appropriate (ENTERED or EXITED) transition for every Geofence it knows about.
582 * UNKNOWN transition described above is per geofence.
593 * The callback associated with the geofence
710 } geofence; member in struct:__anon30808
    [all...]
  /frameworks/base/services/core/jni/
com_android_server_location_FlpHardwareProvider.cpp 383 * Helper function to unwrap Geofence structures from the Java Runtime calls.
388 Geofence& geofence) {
392 geofence.geofence_id = env->CallIntMethod(geofenceRequestObject, getId);
396 // the same notion of geofence types
401 geofence.data->type = type;
402 GeofenceCircle& circle = geofence.data->geofence.circle;
419 GeofenceOptions* options = geofence.options;
954 Geofence* geofences = new Geofence[geofenceRequestsCount]
    [all...]
  /frameworks/base/services/core/java/com/android/server/
LocationManagerService.java 63 import android.location.Geofence;
560 // bind to geofence provider
569 Slog.d(TAG, "Unable to bind FLP Geofence proxy.");
    [all...]

Completed in 239 milliseconds