Home
last modified time | relevance | path

Searched refs:LocationRequest (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/location/lib/java/com/android/location/provider/
DLocationRequestUnbundled.java19 import android.location.LocationRequest;
20 import android.location.LocationRequest.Quality;
38 public static final int ACCURACY_FINE = LocationRequest.ACCURACY_FINE;
44 public static final int ACCURACY_BLOCK = LocationRequest.ACCURACY_BLOCK;
51 public static final int ACCURACY_CITY = LocationRequest.ACCURACY_CITY;
58 public static final int POWER_NONE = LocationRequest.POWER_NONE;
65 public static final int POWER_LOW = LocationRequest.POWER_LOW;
72 public static final int POWER_HIGH = LocationRequest.POWER_HIGH;
74 private final LocationRequest delegate;
76 LocationRequestUnbundled(LocationRequest delegate) { in LocationRequestUnbundled()
DProviderRequestUnbundled.java20 import android.location.LocationRequest;
72 public @LocationRequest.Quality int getQuality() { in getQuality()
118 new LocationRequest.Builder(mRequest.getIntervalMillis()) in getLocationRequests()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java24 import static android.location.LocationRequest.PASSIVE_INTERVAL;
69 import android.location.LocationRequest;
421 LocationRequest request = new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(); in testPassive_Listener()
442 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener()
483 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_SameProcess()
498 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_Unregister()
519 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_Unregister_SameProcess()
543 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_NumUpdates()
563 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_ExpiringAlarm()
578 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_ExpiringNoAlarm()
[all …]
/frameworks/base/location/java/android/location/
DLocationRequest.java49 public final class LocationRequest implements Parcelable { class
209 public static LocationRequest create() { in create()
211 return new LocationRequest.Builder(60 * 60 * 1000) in create()
223 public static LocationRequest createFromDeprecatedProvider(@NonNull String provider, in createFromDeprecatedProvider()
245 return new LocationRequest.Builder(intervalMillis) in createFromDeprecatedProvider()
261 public static LocationRequest createFromDeprecatedCriteria(@NonNull Criteria criteria, in createFromDeprecatedCriteria()
274 return new LocationRequest.Builder(intervalMillis) in createFromDeprecatedCriteria()
282 private LocationRequest( in LocationRequest() method in LocationRequest
319 public @NonNull LocationRequest setProvider(@NonNull String provider) { in setProvider()
341 public @NonNull LocationRequest setQuality(int quality) { in setQuality()
[all …]
DILocationManager.aidl38 import android.location.LocationRequest;
54 …@nullable ICancellationSignal getCurrentLocation(String provider, in LocationRequest request, in I… in getCurrentLocation()
56 …void registerLocationListener(String provider, in LocationRequest request, in ILocationListener li… in registerLocationListener()
59 …void registerLocationPendingIntent(String provider, in LocationRequest request, in PendingIntent p… in registerLocationPendingIntent()
DLocationRequest.aidl19 parcelable LocationRequest;
DLocationManager.java23 import static android.location.LocationRequest.createFromDeprecatedCriteria;
24 import static android.location.LocationRequest.createFromDeprecatedProvider;
857 new LocationRequest.Builder(0).build(), in getCurrentLocation()
886 public void getCurrentLocation(@NonNull LocationRequest locationRequest, in getCurrentLocation()
932 @NonNull LocationRequest locationRequest, in getCurrentLocation()
985 new LocationRequest.Builder(0) in requestSingleUpdate()
1024 new LocationRequest.Builder(0) in requestSingleUpdate()
1056 new LocationRequest.Builder(0) in requestSingleUpdate()
1090 new LocationRequest.Builder(0) in requestSingleUpdate()
1356 @Nullable LocationRequest locationRequest, in requestLocationUpdates()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DGnssTimeUpdateServiceTest.java36 import android.location.LocationRequest;
113 eq(new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
143 eq(new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
/frameworks/proto_logging/stats/enums/stats/location/
Dlocation_enums.proto57 // frameworks/base/location/java/android/location/LocationRequest.java
69 // frameworks/base/location/java/android/location/LocationRequest.java
81 // frameworks/base/location/java/android/location/LocationRequest.java
91 // frameworks/base/location/java/android/location/LocationRequest.java
/frameworks/base/location/java/android/location/provider/
DProviderRequest.java19 import static android.location.LocationRequest.QUALITY_BALANCED_POWER_ACCURACY;
20 import static android.location.LocationRequest.QUALITY_HIGH_ACCURACY;
21 import static android.location.LocationRequest.QUALITY_LOW_POWER;
26 import android.location.LocationRequest;
27 import android.location.LocationRequest.Quality;
/frameworks/base/services/core/java/com/android/server/timedetector/
DGnssTimeUpdateService.java29 import android.location.LocationRequest;
167 new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in requestGnssTimeUpdates()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java22 import static android.location.LocationRequest.QUALITY_LOW_POWER;
36 import android.location.LocationRequest;
270 LocationRequest request = new LocationRequest.Builder(mInterval)
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java59 import android.location.LocationRequest;
302 protected abstract class Registration extends RemoteListenerRegistration<LocationRequest,
310 private LocationRequest mProviderLocationRequest;
315 protected Registration(LocationRequest request, CallerIdentity identity, in Registration()
428 public final LocationRequest getRequest() { in getRequest()
600 LocationRequest newRequest = calculateProviderLocationRequest(); in onProviderLocationRequestChanged()
605 LocationRequest oldRequest = mProviderLocationRequest; in onProviderLocationRequestChanged()
614 private LocationRequest calculateProviderLocationRequest() { in calculateProviderLocationRequest()
615 LocationRequest baseRequest = super.getRequest(); in calculateProviderLocationRequest()
616 LocationRequest.Builder builder = new LocationRequest.Builder(baseRequest); in calculateProviderLocationRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java33 import android.location.LocationRequest;
137 LocationRequest request) { in logProviderClientRegistered()
236 (CallerIdentity) args[1], (LocationRequest) args[2]); in createLogEvent()
328 @Nullable private final LocationRequest mLocationRequest;
331 CallerIdentity identity, @Nullable LocationRequest locationRequest) { in ProviderClientRegisterEvent()
657 if (intervalMs == LocationRequest.PASSIVE_INTERVAL) { in intervalToString()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java34 import android.location.LocationRequest;
63 LocationRequest> implements
396 protected boolean registerWithService(LocationRequest locationRequest, in registerWithService()
412 protected LocationRequest mergeRegistrations(Collection<GeofenceRegistration> registrations) { in mergeRegistrations()
444 return new LocationRequest.Builder(intervalMs) in mergeRegistrations()
/frameworks/base/services/core/java/com/android/server/location/injector/
DLocationUsageLogger.java23 import android.location.LocationRequest;
53 LocationRequest locationRequest, boolean hasListener, in logLocationApiUsage()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java28 import android.location.LocationRequest;
135 .setQuality(LocationRequest.QUALITY_HIGH_ACCURACY) in testGpsRequest()
/frameworks/base/location/lib/api/
Dcurrent.txt41 method @Deprecated @android.location.LocationRequest.Quality public int getQuality();
60 …method @android.location.LocationRequest.Quality @RequiresApi(android.os.Build.VERSION_CODES.S) pu…
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java28 import static android.location.LocationRequest.LOW_POWER_EXCEPTIONS;
71 import android.location.LocationRequest;
555 new LocationRequest.Builder(intervalMs) in startGnssBatch()
676 public ICancellationSignal getCurrentLocation(String provider, LocationRequest request, in getCurrentLocation()
699 public void registerLocationListener(String provider, LocationRequest request, in registerLocationListener()
725 public void registerLocationPendingIntent(String provider, LocationRequest request, in registerLocationPendingIntent()
762 private LocationRequest validateLocationRequest(String provider, LocationRequest request, in validateLocationRequest()
772 LocationRequest.Builder sanitized = new LocationRequest.Builder(request); in validateLocationRequest()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java62 import android.location.LocationRequest;
505 new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in handleInitialize()
561 LocationRequest.Builder locationRequest = new LocationRequest.Builder( in handleRequestLocation()
569 locationRequest.setQuality(LocationRequest.QUALITY_LOW_POWER); in handleRequestLocation()
574 locationRequest.setQuality(LocationRequest.QUALITY_HIGH_ACCURACY); in handleRequestLocation()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java30 import android.location.LocationRequest;
256 new LocationRequest.Builder(LOCATION_UPDATE_MS) in onStartLoading()
257 .setQuality(LocationRequest.QUALITY_LOW_POWER) in onStartLoading()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java48 import android.location.LocationRequest;
296 private LocationRequest mLocationRequest;
2382 mLocationRequest = new LocationRequest.Builder(/*intervalMillis=*/ 0) in onBootPhase()
2383 .setQuality(LocationRequest.QUALITY_HIGH_ACCURACY) in onBootPhase()
/frameworks/base/core/api/
Dsystem-lint-baseline.txt176 …oid.location.LocationManager#requestLocationUpdates(android.location.LocationRequest, java.util.co…
Dtest-lint-baseline.txt484 GetterSetterNames: android.location.LocationRequest#isLocationSettingsIgnored():
486 GetterSetterNames: android.location.LocationRequest#isLowPowerMode():
566 …oid.location.LocationManager#requestLocationUpdates(android.location.LocationRequest, android.loca…
1046 MissingNullability: android.location.LocationRequest#writeToParcel(android.os.Parcel, int) paramete…
2824 …oid.location.LocationManager#requestLocationUpdates(android.location.LocationRequest, android.loca…
2826 …oid.location.LocationManager#requestLocationUpdates(android.location.LocationRequest, java.util.co…
Dsystem-current.txt4936 …_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable an…
4949 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull and…
4950 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull jav…
4951 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull and…
4959 public final class LocationRequest implements android.os.Parcelable {
4960 method @Deprecated @NonNull public static android.location.LocationRequest create();
4961 …method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedCri…
4962 …method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedPro…
4976 method @Deprecated @NonNull public android.location.LocationRequest setExpireAt(long);
4977 method @Deprecated @NonNull public android.location.LocationRequest setExpireIn(long);
[all …]

12