Home
last modified time | relevance | path

Searched refs:geofenceId (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DGnssGeofenceProvider.java20 public int geofenceId; field in GnssGeofenceProvider.GeofenceEntry
53 boolean added = mNative.addGeofence(entry.geofenceId, entry.latitude, in resumeIfStarted()
59 mNative.pauseGeofence(entry.geofenceId); in resumeIfStarted()
73 public boolean addCircularHardwareGeofence(int geofenceId, double latitude, in addCircularHardwareGeofence() argument
77 boolean added = mNative.addGeofence(geofenceId, latitude, longitude, radius, in addCircularHardwareGeofence()
82 entry.geofenceId = geofenceId; in addCircularHardwareGeofence()
90 mGeofenceEntries.put(geofenceId, entry); in addCircularHardwareGeofence()
97 public boolean removeHardwareGeofence(int geofenceId) { in removeHardwareGeofence() argument
99 boolean removed = mNative.removeGeofence(geofenceId); in removeHardwareGeofence()
101 mGeofenceEntries.remove(geofenceId); in removeHardwareGeofence()
[all …]
DGnssLocationProvider.java1755 private void reportGeofenceTransition(int geofenceId, Location location, int transition,
1763 geofenceId,
1791 private void reportGeofenceAddStatus(int geofenceId, int status) {
1796 mGeofenceHardwareImpl.reportGeofenceAddStatus(geofenceId, getGeofenceStatus(status));
1801 private void reportGeofenceRemoveStatus(int geofenceId, int status) {
1806 mGeofenceHardwareImpl.reportGeofenceRemoveStatus(geofenceId, getGeofenceStatus(status));
1811 private void reportGeofencePauseStatus(int geofenceId, int status) {
1816 mGeofenceHardwareImpl.reportGeofencePauseStatus(geofenceId, getGeofenceStatus(status));
1821 private void reportGeofenceResumeStatus(int geofenceId, int status) {
1826 mGeofenceHardwareImpl.reportGeofenceResumeStatus(geofenceId, getGeofenceStatus(status));
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareImpl.java258 int geofenceId = request.getId(); in addCircularFence() local
276 mGeofences.put(geofenceId, callback); in addCircularFence()
319 mGeofences.remove(geofenceId); in addCircularFence()
327 public boolean removeGeofence(int geofenceId, int monitoringType) { in removeGeofence() argument
330 if (DEBUG) Log.d(TAG, "Remove Geofence: GeofenceId: " + geofenceId); in removeGeofence()
334 if (mGeofences.get(geofenceId) == null) { in removeGeofence()
335 throw new IllegalArgumentException("Geofence " + geofenceId + " not registered."); in removeGeofence()
342 result = mGpsService.removeHardwareGeofence(geofenceId); in removeGeofence()
353 mFusedService.removeGeofences(new int[] { geofenceId }); in removeGeofence()
367 public boolean pauseGeofence(int geofenceId, int monitoringType) { in pauseGeofence() argument
[all …]
DGeofenceHardware.java270 public boolean addGeofence(int geofenceId, int monitoringType, GeofenceHardwareRequest in addGeofence() argument
276 new GeofenceHardwareRequestParcelable(geofenceId, geofenceRequest), in addGeofence()
308 public boolean removeGeofence(int geofenceId, int monitoringType) { in removeGeofence() argument
310 return mService.removeGeofence(geofenceId, monitoringType); in removeGeofence()
338 public boolean pauseGeofence(int geofenceId, int monitoringType) { in pauseGeofence() argument
340 return mService.pauseGeofence(geofenceId, monitoringType); in pauseGeofence()
370 public boolean resumeGeofence(int geofenceId, int monitoringType, int monitorTransition) { in resumeGeofence() argument
372 return mService.resumeGeofence(geofenceId, monitoringType, monitorTransition); in resumeGeofence()
509 public void onGeofenceTransition(int geofenceId, int transition, Location location, in onGeofenceTransition() argument
513 c.onGeofenceTransition(geofenceId, transition, location, timestamp, in onGeofenceTransition()
[all …]
DIGeofenceHardwareCallback.aidl23 void onGeofenceTransition(int geofenceId, int transition, in Location location, in onGeofenceTransition() argument
25 void onGeofenceAdd(int geofenceId, int status); in onGeofenceAdd() argument
26 void onGeofenceRemove(int geofenceId, int status); in onGeofenceRemove() argument
27 void onGeofencePause(int geofenceId, int status); in onGeofencePause() argument
28 void onGeofenceResume(int geofenceId, int status); in onGeofenceResume() argument
DGeofenceHardwareCallback.java41 public void onGeofenceTransition(int geofenceId, int transition, Location location, in onGeofenceTransition() argument
55 public void onGeofenceAdd(int geofenceId, int status) { in onGeofenceAdd() argument
66 public void onGeofenceRemove(int geofenceId, int status) { in onGeofenceRemove() argument
77 public void onGeofencePause(int geofenceId, int status) { in onGeofencePause() argument
89 public void onGeofenceResume(int geofenceId, int status) { in onGeofenceResume() argument
/frameworks/base/location/java/android/location/
DIGpsGeofenceHardware.aidl27 boolean addCircularHardwareGeofence(int geofenceId, double latitude, double in addCircularHardwareGeofence() argument
30 boolean removeHardwareGeofence(int geofenceId); in removeHardwareGeofence() argument
31 boolean pauseHardwareGeofence(int geofenceId); in pauseHardwareGeofence() argument
32 boolean resumeHardwareGeofence(int geofenceId, int monitorTransition); in resumeHardwareGeofence() argument
DIFusedGeofenceHardware.aidl58 void pauseMonitoringGeofence(in int geofenceId); in pauseMonitoringGeofence() argument
69 void resumeMonitoringGeofence(in int geofenceId, in int monitorTransitions); in resumeMonitoringGeofence() argument
87 in int geofenceId, in modifyGeofenceOptions() argument
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp830 int32_t geofenceId,
838 Return<void> gnssGeofenceAddCb(int32_t geofenceId,
840 Return<void> gnssGeofenceRemoveCb(int32_t geofenceId,
842 Return<void> gnssGeofencePauseCb(int32_t geofenceId,
844 Return<void> gnssGeofenceResumeCb(int32_t geofenceId,
849 int32_t geofenceId, const GnssLocation_V1_0& location, in gnssGeofenceTransitionCb() argument
858 geofenceId, in gnssGeofenceTransitionCb()
882 Return<void> GnssGeofenceCallback::gnssGeofenceAddCb(int32_t geofenceId, in gnssGeofenceAddCb() argument
891 geofenceId, in gnssGeofenceAddCb()
897 Return<void> GnssGeofenceCallback::gnssGeofenceRemoveCb(int32_t geofenceId, in gnssGeofenceRemoveCb() argument
[all …]