Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssGeofenceProxy.java32 public int geofenceId; field in GnssGeofenceProxy.GeofenceEntry
64 public boolean addCircularHardwareGeofence(int geofenceId, double latitude, in addCircularHardwareGeofence() argument
68 boolean added = mGnssNative.addGeofence(geofenceId, latitude, longitude, radius, in addCircularHardwareGeofence()
73 entry.geofenceId = geofenceId; in addCircularHardwareGeofence()
81 mGeofenceEntries.put(geofenceId, entry); in addCircularHardwareGeofence()
88 public boolean removeHardwareGeofence(int geofenceId) { in removeHardwareGeofence() argument
90 boolean removed = mGnssNative.removeGeofence(geofenceId); in removeHardwareGeofence()
92 mGeofenceEntries.remove(geofenceId); in removeHardwareGeofence()
99 public boolean pauseHardwareGeofence(int geofenceId) { in pauseHardwareGeofence() argument
101 boolean paused = mGnssNative.pauseGeofence(geofenceId); in pauseHardwareGeofence()
[all …]
DGnssManagerService.java363 public void onReportGeofenceTransition(int geofenceId, Location location, in onReportGeofenceTransition() argument
366 geofenceId, location, transition, timestamp, in onReportGeofenceTransition()
387 public void onReportGeofenceAddStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceAddStatus() argument
389 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceAddStatus()
393 public void onReportGeofenceRemoveStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceRemoveStatus() argument
395 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceRemoveStatus()
399 public void onReportGeofencePauseStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofencePauseStatus() argument
401 geofenceId, translateGeofenceStatus(status))); in onReportGeofencePauseStatus()
405 public void onReportGeofenceResumeStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceResumeStatus() argument
407 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceResumeStatus()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareImpl.java259 int geofenceId = request.getId(); in addCircularFence() local
277 mGeofences.put(geofenceId, callback); in addCircularFence()
320 mGeofences.remove(geofenceId); in addCircularFence()
328 public boolean removeGeofence(int geofenceId, int monitoringType) { in removeGeofence() argument
331 if (DEBUG) Log.d(TAG, "Remove Geofence: GeofenceId: " + geofenceId); in removeGeofence()
335 if (mGeofences.get(geofenceId) == null) { in removeGeofence()
336 throw new IllegalArgumentException("Geofence " + geofenceId + " not registered."); in removeGeofence()
343 result = mGpsService.removeHardwareGeofence(geofenceId); in removeGeofence()
354 mFusedService.removeGeofences(new int[] { geofenceId }); in removeGeofence()
368 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/java/com/android/server/location/gnss/hal/
DGnssNative.java238 void onReportGeofenceTransition(int geofenceId, Location location, in onReportGeofenceTransition() argument
242 void onReportGeofenceAddStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceAddStatus() argument
243 void onReportGeofenceRemoveStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceRemoveStatus() argument
244 void onReportGeofencePauseStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofencePauseStatus() argument
245 void onReportGeofenceResumeStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceResumeStatus() argument
826 public boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument
830 return mGnssHal.addGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
837 public boolean resumeGeofence(int geofenceId, int monitorTransitions) { in resumeGeofence() argument
839 return mGnssHal.resumeGeofence(geofenceId, monitorTransitions); in resumeGeofence()
845 public boolean pauseGeofence(int geofenceId) { in pauseGeofence() argument
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DFakeGnssHal.java188 public GnssHalGeofence(int geofenceId, double latitude, double longitude, double radius, in GnssHalGeofence() argument
191 GeofenceId = geofenceId; in GnssHalGeofence()
592 protected boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument
595 if (mState.mGeofences.containsKey(geofenceId)) { in addGeofence()
596 Objects.requireNonNull(mGnssNative).reportGeofenceAddStatus(geofenceId, in addGeofence()
599 mState.mGeofences.put(geofenceId, in addGeofence()
600 new GnssHalGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
602 Objects.requireNonNull(mGnssNative).reportGeofenceAddStatus(geofenceId, in addGeofence()
609 protected boolean resumeGeofence(int geofenceId, int monitorTransitions) { in resumeGeofence() argument
610 GnssHalGeofence geofence = mState.mGeofences.get(geofenceId); in resumeGeofence()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp803 int32_t geofenceId,
811 Return<void> gnssGeofenceAddCb(int32_t geofenceId,
813 Return<void> gnssGeofenceRemoveCb(int32_t geofenceId,
815 Return<void> gnssGeofencePauseCb(int32_t geofenceId,
817 Return<void> gnssGeofenceResumeCb(int32_t geofenceId,
822 int32_t geofenceId, const GnssLocation_V1_0& location, in gnssGeofenceTransitionCb() argument
831 geofenceId, in gnssGeofenceTransitionCb()
855 Return<void> GnssGeofenceCallback::gnssGeofenceAddCb(int32_t geofenceId, in gnssGeofenceAddCb() argument
864 geofenceId, in gnssGeofenceAddCb()
870 Return<void> GnssGeofenceCallback::gnssGeofenceRemoveCb(int32_t geofenceId, in gnssGeofenceRemoveCb() argument
[all …]