/frameworks/base/services/core/jni/gnss/ |
D | GnssGeofenceCallback.cpp | 59 Status GnssGeofenceCallbackAidl::gnssGeofenceTransitionCb(int geofenceId, in gnssGeofenceTransitionCb() argument 62 GnssGeofenceCallbackUtil::gnssGeofenceTransitionCb(geofenceId, location, transition, in gnssGeofenceTransitionCb() 73 Status GnssGeofenceCallbackAidl::gnssGeofenceAddCb(int geofenceId, int status) { in gnssGeofenceAddCb() argument 74 GnssGeofenceCallbackUtil::gnssGeofenceAddCb(geofenceId, status); in gnssGeofenceAddCb() 78 Status GnssGeofenceCallbackAidl::gnssGeofenceRemoveCb(int geofenceId, int status) { in gnssGeofenceRemoveCb() argument 79 GnssGeofenceCallbackUtil::gnssGeofenceRemoveCb(geofenceId, status); in gnssGeofenceRemoveCb() 83 Status GnssGeofenceCallbackAidl::gnssGeofencePauseCb(int geofenceId, int status) { in gnssGeofencePauseCb() argument 84 GnssGeofenceCallbackUtil::gnssGeofencePauseCb(geofenceId, status); in gnssGeofencePauseCb() 88 Status GnssGeofenceCallbackAidl::gnssGeofenceResumeCb(int geofenceId, int status) { in gnssGeofenceResumeCb() argument 89 GnssGeofenceCallbackUtil::gnssGeofenceResumeCb(geofenceId, status); in gnssGeofenceResumeCb() [all …]
|
D | GnssGeofence.cpp | 43 jboolean GnssGeofenceAidl::addGeofence(int geofenceId, double latitudeDegrees, in addGeofence() argument 47 auto status = mIGnssGeofenceAidl->addGeofence(geofenceId, latitudeDegrees, longitudeDegrees, in addGeofence() 53 jboolean GnssGeofenceAidl::removeGeofence(int geofenceId) { in removeGeofence() argument 54 auto status = mIGnssGeofenceAidl->removeGeofence(geofenceId); in removeGeofence() 58 jboolean GnssGeofenceAidl::pauseGeofence(int geofenceId) { in pauseGeofence() argument 59 auto status = mIGnssGeofenceAidl->pauseGeofence(geofenceId); in pauseGeofence() 63 jboolean GnssGeofenceAidl::resumeGeofence(int geofenceId, int monitorTransitions) { in resumeGeofence() argument 64 auto status = mIGnssGeofenceAidl->resumeGeofence(geofenceId, monitorTransitions); in resumeGeofence() 80 jboolean GnssGeofenceHidl::addGeofence(int geofenceId, double latitudeDegrees, in addGeofence() argument 84 auto result = mIGnssGeofenceHidl->addGeofence(geofenceId, latitudeDegrees, longitudeDegrees, in addGeofence() [all …]
|
D | GnssGeofenceCallback.h | 51 binder::Status gnssGeofenceTransitionCb(int geofenceId, 56 binder::Status gnssGeofenceAddCb(int geofenceId, int status) override; 57 binder::Status gnssGeofenceRemoveCb(int geofenceId, int status) override; 58 binder::Status gnssGeofencePauseCb(int geofenceId, int status) override; 59 binder::Status gnssGeofenceResumeCb(int geofenceId, int status) override; 66 int32_t geofenceId, const hardware::gnss::V1_0::GnssLocation& location, 73 int32_t geofenceId, 76 int32_t geofenceId, 79 int32_t geofenceId, 82 int32_t geofenceId, [all …]
|
D | GnssGeofence.h | 39 virtual jboolean addGeofence(int geofenceId, double latitudeDegrees, double longitudeDegrees, 42 virtual jboolean pauseGeofence(int geofenceId); 43 virtual jboolean resumeGeofence(int geofenceId, int monitorTransitions); 44 virtual jboolean removeGeofence(int geofenceId); 51 jboolean addGeofence(int geofenceId, double latitudeDegrees, double longitudeDegrees, 54 jboolean pauseGeofence(int geofenceId) override; 55 jboolean resumeGeofence(int geofenceId, int monitorTransitions) override; 56 jboolean removeGeofence(int geofenceId) override; 66 jboolean addGeofence(int geofenceId, double latitudeDegrees, double longitudeDegrees, 69 jboolean pauseGeofence(int geofenceId) override; [all …]
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssGeofenceProxy.java | 32 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 …]
|
D | GnssManagerService.java | 367 public void onReportGeofenceTransition(int geofenceId, Location location, in onReportGeofenceTransition() argument 370 geofenceId, location, transition, timestamp, in onReportGeofenceTransition() 391 public void onReportGeofenceAddStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceAddStatus() argument 393 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceAddStatus() 397 public void onReportGeofenceRemoveStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceRemoveStatus() argument 399 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceRemoveStatus() 403 public void onReportGeofencePauseStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofencePauseStatus() argument 405 geofenceId, translateGeofenceStatus(status))); in onReportGeofencePauseStatus() 409 public void onReportGeofenceResumeStatus(int geofenceId, @GeofenceStatus int status) { in onReportGeofenceResumeStatus() argument 411 geofenceId, translateGeofenceStatus(status))); in onReportGeofenceResumeStatus()
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareImpl.java | 259 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 …]
|
D | GeofenceHardware.java | 270 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 …]
|
D | IGeofenceHardwareCallback.aidl | 23 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
|
D | GeofenceHardwareCallback.java | 41 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/core/java/android/location/ |
D | IGpsGeofenceHardware.aidl | 27 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
|
D | IFusedGeofenceHardware.aidl | 58 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/tests/mockingservicestests/src/com/android/server/location/gnss/hal/ |
D | FakeGnssHal.java | 193 public GnssHalGeofence(int geofenceId, double latitude, double longitude, double radius, in GnssHalGeofence() argument 196 GeofenceId = geofenceId; in GnssHalGeofence() 626 protected boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument 629 if (mState.mGeofences.containsKey(geofenceId)) { in addGeofence() 630 Objects.requireNonNull(mGnssNative).reportGeofenceAddStatus(geofenceId, in addGeofence() 633 mState.mGeofences.put(geofenceId, in addGeofence() 634 new GnssHalGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence() 636 Objects.requireNonNull(mGnssNative).reportGeofenceAddStatus(geofenceId, in addGeofence() 643 protected boolean resumeGeofence(int geofenceId, int monitorTransitions) { in resumeGeofence() argument 644 GnssHalGeofence geofence = mState.mGeofences.get(geofenceId); in resumeGeofence() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/gnss/hal/ |
D | GnssNative.java | 252 void onReportGeofenceTransition(int geofenceId, Location location, in onReportGeofenceTransition() argument 256 void onReportGeofenceAddStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceAddStatus() argument 257 void onReportGeofenceRemoveStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceRemoveStatus() argument 258 void onReportGeofencePauseStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofencePauseStatus() argument 259 void onReportGeofenceResumeStatus(int geofenceId, @GeofenceStatus int status); in onReportGeofenceResumeStatus() argument 920 public boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument 924 return mGnssHal.addGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence() 931 public boolean resumeGeofence(int geofenceId, int monitorTransitions) { in resumeGeofence() argument 933 return mGnssHal.resumeGeofence(geofenceId, monitorTransitions); in resumeGeofence() 939 public boolean pauseGeofence(int geofenceId) { in pauseGeofence() argument [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_GnssLocationProvider.cpp | 592 JNIEnv* /* env */, jclass, jint geofenceId, jdouble latitude, jdouble longitude, in android_location_gnss_hal_GnssNative_add_geofence() argument 599 return gnssGeofencingIface->addGeofence(geofenceId, latitude, longitude, radius, in android_location_gnss_hal_GnssNative_add_geofence() 605 jint geofenceId) { in android_location_gnss_hal_GnssNative_remove_geofence() argument 610 return gnssGeofencingIface->removeGeofence(geofenceId); in android_location_gnss_hal_GnssNative_remove_geofence() 614 jint geofenceId) { in android_location_gnss_hal_GnssNative_pause_geofence() argument 619 return gnssGeofencingIface->pauseGeofence(geofenceId); in android_location_gnss_hal_GnssNative_pause_geofence() 623 jint geofenceId, in android_location_gnss_hal_GnssNative_resume_geofence() argument 629 return gnssGeofencingIface->resumeGeofence(geofenceId, monitor_transition); in android_location_gnss_hal_GnssNative_resume_geofence()
|