Home
last modified time | relevance | path

Searched refs:LocationRequest (Results 1 – 25 of 34) 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.java27 import static android.location.LocationRequest.PASSIVE_INTERVAL;
71 import android.location.LocationRequest;
477 LocationRequest request = new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(); in testPassive_Listener()
498 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener()
539 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_SameProcess()
554 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_Unregister()
575 new LocationRequest.Builder(0).setWorkSource(WORK_SOURCE).build(), in testRegisterListener_Unregister_SameProcess()
599 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_NumUpdates()
619 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_InvisibleUser()
638 LocationRequest request = new LocationRequest.Builder(0) in testRegisterListener_ExpiringAlarm()
[all …]
DStationaryThrottlingLocationProviderTest.java32 import android.location.LocationRequest;
226 50).setQuality(LocationRequest.QUALITY_HIGH_ACCURACY).build(); in testNoThrottle_highAccuracy()
/frameworks/base/location/java/android/location/
DLocationRequest.java52 public final class LocationRequest implements Parcelable { class
208 public static LocationRequest create() { in create()
210 return new LocationRequest.Builder(60 * 60 * 1000).build(); in create()
220 public static LocationRequest createFromDeprecatedProvider(@NonNull String provider, in createFromDeprecatedProvider()
242 return new LocationRequest.Builder(intervalMillis) in createFromDeprecatedProvider()
258 public static LocationRequest createFromDeprecatedCriteria(@NonNull Criteria criteria, in createFromDeprecatedCriteria()
271 return new LocationRequest.Builder(intervalMillis) in createFromDeprecatedCriteria()
279 private LocationRequest( in LocationRequest() method in LocationRequest
316 public @NonNull LocationRequest setProvider(@NonNull String provider) { in setProvider()
338 public @NonNull LocationRequest setQuality(int quality) { in setQuality()
[all …]
DILocationManager.aidl36 import android.location.LocationRequest;
55 …@nullable ICancellationSignal getCurrentLocation(String provider, in LocationRequest request, in I… in getCurrentLocation()
57 …void registerLocationListener(String provider, in LocationRequest request, in ILocationListener li… in registerLocationListener()
60 …void registerLocationPendingIntent(String provider, in LocationRequest request, in PendingIntent p… in registerLocationPendingIntent()
DLocationRequest.aidl19 parcelable LocationRequest;
DLocationManager.java24 import static android.location.LocationRequest.createFromDeprecatedCriteria;
25 import static android.location.LocationRequest.createFromDeprecatedProvider;
947 new LocationRequest.Builder(0).build(), in getCurrentLocation()
976 public void getCurrentLocation(@NonNull LocationRequest locationRequest, in getCurrentLocation()
1022 @NonNull LocationRequest locationRequest, in getCurrentLocation()
1075 new LocationRequest.Builder(0) in requestSingleUpdate()
1114 new LocationRequest.Builder(0) in requestSingleUpdate()
1146 new LocationRequest.Builder(0) in requestSingleUpdate()
1180 new LocationRequest.Builder(0) in requestSingleUpdate()
1446 @Nullable LocationRequest locationRequest, in requestLocationUpdates()
[all …]
/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/tests/timetests/src/com/android/server/timedetector/
DGnssTimeUpdateServiceTest.java37 import android.location.LocationRequest;
88 eq(new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
118 eq(new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationManagerServiceTest.java35 import android.location.LocationRequest;
143 LocationRequest request = new LocationRequest.Builder(0).build(); in testRequestLocationUpdates()
156 LocationRequest request = new LocationRequest.Builder(0).build(); in testRequestLocationUpdates_noPermission()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java22 import static android.location.LocationRequest.QUALITY_LOW_POWER;
36 import android.location.LocationRequest;
296 LocationRequest request = new LocationRequest.Builder(mInterval) in resetProviderRequest()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java67 import android.location.LocationRequest;
375 private final LocationRequest mBaseRequest;
390 private LocationRequest mProviderLocationRequest;
396 protected Registration(LocationRequest request, CallerIdentity identity, Executor executor, in Registration()
414 public final LocationRequest getRequest() { in getRequest()
668 LocationRequest newRequest = calculateProviderLocationRequest(); in onProviderLocationRequestChanged()
673 LocationRequest oldRequest = mProviderLocationRequest; in onProviderLocationRequestChanged()
684 private LocationRequest calculateProviderLocationRequest() { in calculateProviderLocationRequest()
685 LocationRequest.Builder builder = new LocationRequest.Builder(mBaseRequest); in calculateProviderLocationRequest()
688 builder.setQuality(LocationRequest.QUALITY_LOW_POWER); in calculateProviderLocationRequest()
[all …]
DStationaryThrottlingLocationProvider.java30 import android.location.LocationRequest;
191 && mIncomingRequest.getQuality() != LocationRequest.QUALITY_HIGH_ACCURACY in onThrottlingChangedLocked()
/frameworks/base/packages/FusedLocation/src/com/android/location/gnss/
DGnssOverlayLocationProvider.java27 import android.location.LocationRequest;
121 new LocationRequest.Builder(request.getIntervalMillis()) in onSetRequest()
/frameworks/base/location/api/
Dsystem-current.txt442 …_LOCATION}) public void getCurrentLocation(@NonNull android.location.LocationRequest, @Nullable an…
456 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull and…
457 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull jav…
458 …TION}) public void requestLocationUpdates(@Nullable android.location.LocationRequest, @NonNull and…
470 public final class LocationRequest implements android.os.Parcelable {
471 method @Deprecated @NonNull public static android.location.LocationRequest create();
472 …method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedCri…
473 …method @Deprecated @NonNull public static android.location.LocationRequest createFromDeprecatedPro…
488 method @Deprecated @NonNull public android.location.LocationRequest setExpireAt(long);
489 method @Deprecated @NonNull public android.location.LocationRequest setExpireIn(long);
[all …]
Dcurrent.txt538 …c void getCurrentLocation(@NonNull String, @NonNull android.location.LocationRequest, @Nullable an…
579 …id requestLocationUpdates(@NonNull String, @NonNull android.location.LocationRequest, @NonNull jav…
580 …id requestLocationUpdates(@NonNull String, @NonNull android.location.LocationRequest, @NonNull and…
629 public final class LocationRequest implements android.os.Parcelable {
639 …onNull public static final android.os.Parcelable.Creator<android.location.LocationRequest> CREATOR;
646 public static final class LocationRequest.Builder {
647 ctor public LocationRequest.Builder(long);
648 ctor public LocationRequest.Builder(@NonNull android.location.LocationRequest);
649 method @NonNull public android.location.LocationRequest build();
650 method @NonNull public android.location.LocationRequest.Builder clearMinUpdateIntervalMillis();
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DGnssTimeUpdateService.java28 import android.location.LocationRequest;
200 new LocationRequest.Builder(LocationRequest.PASSIVE_INTERVAL) in startGnssListeningLocked()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java33 import android.location.LocationRequest;
63 GeofenceManager.GeofenceRegistration, LocationRequest> implements
449 protected boolean registerWithService(LocationRequest locationRequest, in registerWithService()
465 protected LocationRequest mergeRegistrations(Collection<GeofenceRegistration> registrations) { in mergeRegistrations()
497 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/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java34 import android.location.LocationRequest;
168 LocationRequest request) { in logProviderClientRegistered()
356 @Nullable private final LocationRequest mLocationRequest;
359 CallerIdentity identity, @Nullable LocationRequest locationRequest) { in ProviderClientRegisterEvent()
764 if (intervalMs == LocationRequest.PASSIVE_INTERVAL) { in intervalToString()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/gnss/tests/
DGnssOverlayLocationServiceTest.java27 import android.location.LocationRequest;
110 .setQuality(LocationRequest.QUALITY_HIGH_ACCURACY) in testGpsRequest()
/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…

12