Home
last modified time | relevance | path

Searched refs:geofence (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
H A DFakeGnssHal.java323 for (GnssHalGeofence geofence : mState.mGeofences.values()) { in reportLocation()
324 if (!geofence.Paused) { in reportLocation()
325 if (geofence.Center.distanceTo(location) > geofence.Radius) { in reportLocation()
327 geofence.LastTransition = GEOFENCE_TRANSITION_EXITED; in reportLocation()
644 GnssHalGeofence geofence = mState.mGeofences.get(geofenceId); in resumeGeofence() local
645 if (geofence != null) { in resumeGeofence()
646 geofence.Paused = false; in resumeGeofence()
647 geofence.MonitorTransitions = monitorTransitions; in resumeGeofence()
659 GnssHalGeofence geofence = mState.mGeofences.get(geofenceId); in pauseGeofence() local
660 if (geofence != null) { in pauseGeofence()
[all …]
/aosp14/frameworks/base/location/java/android/location/
H A DGeofence.java131 Geofence geofence = (Geofence) o; in equals() local
132 return Double.compare(geofence.mLatitude, mLatitude) == 0 in equals()
133 && Double.compare(geofence.mLongitude, mLongitude) == 0 in equals()
134 && Float.compare(geofence.mRadius, mRadius) == 0 in equals()
135 && mExpirationRealtimeMs == geofence.mExpirationRealtimeMs; in equals()
H A DILocationManager.aidl68 …void requestGeofence(in Geofence geofence, in PendingIntent intent, String packageName, String att… in requestGeofence() argument
/aosp14/frameworks/base/services/core/java/com/android/server/location/geofence/
H A DGeofenceManager.java17 package com.android.server.location.geofence;
84 GeofenceKey(PendingIntent pendingIntent, Geofence geofence) { in GeofenceKey() argument
86 mGeofence = Objects.requireNonNull(geofence); in GeofenceKey()
131 GeofenceRegistration(Geofence geofence, CallerIdentity identity, in GeofenceRegistration() argument
135 mGeofence = geofence; in GeofenceRegistration()
138 mCenter.setLatitude(geofence.getLatitude()); in GeofenceRegistration()
139 mCenter.setLongitude(geofence.getLongitude()); in GeofenceRegistration()
348 public void addGeofence(Geofence geofence, PendingIntent pendingIntent, String packageName, in addGeofence() argument
357 putRegistration(new GeofenceKey(pendingIntent, geofence), in addGeofence()
358 new GeofenceRegistration(geofence, identity, pendingIntent)); in addGeofence()
H A DGeofenceProxy.java16 package com.android.server.location.geofence;
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/
H A DLocationUsageLogger.java54 boolean hasIntent, Geofence geofence, boolean foreground) { in logLocationApiUsage() argument
61 boolean isGeofenceNull = geofence == null; in logLocationApiUsage()
86 : bucketizeRadius(geofence.getRadius()), in logLocationApiUsage()
/aosp14/frameworks/base/services/core/java/com/android/server/location/
H A DLocationManagerService.java107 import com.android.server.location.geofence.GeofenceManager;
108 import com.android.server.location.geofence.GeofenceProxy;
1038 public void requestGeofence(Geofence geofence, PendingIntent intent, String packageName, in requestGeofence() argument
1040 mGeofenceManager.addGeofence(geofence, intent, packageName, attributionTag); in requestGeofence()