Home
last modified time | relevance | path

Searched refs:ProviderRequest (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DStationaryThrottlingLocationProviderTest.java33 import android.location.provider.ProviderRequest;
88 mProvider.getController().setRequest(ProviderRequest.EMPTY_REQUEST); in tearDown()
94 ProviderRequest request = new ProviderRequest.Builder().setIntervalMillis(50).build(); in testThrottle()
103 verify(mDelegate, never()).onSetRequest(ProviderRequest.EMPTY_REQUEST); in testThrottle()
106 verify(mDelegate).onSetRequest(ProviderRequest.EMPTY_REQUEST); in testThrottle()
117 ProviderRequest request = new ProviderRequest.Builder().setIntervalMillis(50).build(); in testThrottle_NoInitialLocation()
124 verify(mDelegate, never()).onSetRequest(ProviderRequest.EMPTY_REQUEST); in testThrottle_NoInitialLocation()
128 verify(mDelegate, times(1)).onSetRequest(ProviderRequest.EMPTY_REQUEST); in testThrottle_NoInitialLocation()
138 ProviderRequest request = new ProviderRequest.Builder().setIntervalMillis(50).build(); in testNoThrottle_noLocation()
146 verify(mDelegate, never()).onSetRequest(ProviderRequest.EMPTY_REQUEST); in testNoThrottle_noLocation()
[all …]
DMockableLocationProviderTest.java20 import static android.location.provider.ProviderRequest.EMPTY_REQUEST;
32 import android.location.provider.ProviderRequest;
112 ProviderRequest request = new ProviderRequest.Builder().setIntervalMillis(1).build(); in testSetRequest()
DLocationProviderManagerTest.java73 import android.location.provider.ProviderRequest;
714 any(ProviderRequest.class)); in testProviderRequestListener()
1174 private ProviderRequest mProviderRequest = ProviderRequest.EMPTY_REQUEST;
1201 public ProviderRequest getRequest() {
1206 public void onSetRequest(ProviderRequest request) {
/frameworks/base/location/java/android/location/provider/
DProviderRequest.java42 public final class ProviderRequest implements Parcelable { class
46 public static final @NonNull ProviderRequest EMPTY_REQUEST = new ProviderRequest(
74 void onProviderRequestChanged(@NonNull String provider, @NonNull ProviderRequest request); in onProviderRequestChanged()
77 private ProviderRequest( in ProviderRequest() method in ProviderRequest
174 public static final @NonNull Creator<ProviderRequest> CREATOR = new Creator<ProviderRequest>() {
176 public ProviderRequest createFromParcel(Parcel in) {
181 return new ProviderRequest(
193 public ProviderRequest[] newArray(int size) {
194 return new ProviderRequest[size];
225 ProviderRequest that = (ProviderRequest) o; in equals()
[all …]
DIProviderRequestListener.aidl19 import android.location.provider.ProviderRequest;
25 void onProviderRequestChanged(String provider, in ProviderRequest request); in onProviderRequestChanged()
DILocationProvider.aidl22 import android.location.provider.ProviderRequest;
32 oneway void setRequest(in ProviderRequest request); in setRequest()
DProviderRequest.aidl19 parcelable ProviderRequest;
DLocationProviderBase.java242 public abstract void onSetRequest(@NonNull ProviderRequest request); in onSetRequest()
322 public void setRequest(ProviderRequest request) { in setRequest()
/frameworks/base/services/core/java/com/android/server/location/provider/
DMockableLocationProvider.java24 import android.location.provider.ProviderRequest;
63 private ProviderRequest mRequest;
79 mRequest = ProviderRequest.EMPTY_REQUEST; in MockableLocationProvider()
146 oldProvider.getController().setRequest(ProviderRequest.EMPTY_REQUEST); in setProviderLocked()
161 mProvider.getController().setRequest(ProviderRequest.EMPTY_REQUEST); in setProviderLocked()
206 public ProviderRequest getCurrentRequest() { in getCurrentRequest()
221 if (!mRequest.equals(ProviderRequest.EMPTY_REQUEST)) { in onStart()
236 if (!mRequest.equals(ProviderRequest.EMPTY_REQUEST)) { in onStop()
237 mProvider.getController().setRequest(ProviderRequest.EMPTY_REQUEST); in onStop()
242 mRequest = ProviderRequest.EMPTY_REQUEST; in onStop()
[all …]
DStationaryThrottlingLocationProvider.java19 import static android.location.provider.ProviderRequest.INTERVAL_DISABLED;
29 import android.location.provider.ProviderRequest;
70 private ProviderRequest mIncomingRequest = ProviderRequest.EMPTY_REQUEST;
72 private ProviderRequest mOutgoingRequest = ProviderRequest.EMPTY_REQUEST;
123 mIncomingRequest = ProviderRequest.EMPTY_REQUEST; in onStop()
124 mOutgoingRequest = ProviderRequest.EMPTY_REQUEST; in onStop()
139 protected void onSetRequest(ProviderRequest request) { in onSetRequest()
185 ProviderRequest newRequest; in onThrottlingChangedLocked()
187 newRequest = ProviderRequest.EMPTY_REQUEST; in onThrottlingChangedLocked()
DPassiveLocationProviderManager.java23 import android.location.provider.ProviderRequest;
71 protected ProviderRequest mergeRegistrations(Collection<Registration> registrations) { in mergeRegistrations()
72 return new ProviderRequest.Builder().setIntervalMillis(0).build(); in mergeRegistrations()
DLocationProviderController.java20 import android.location.provider.ProviderRequest;
57 void setRequest(ProviderRequest request); in setRequest()
DPassiveLocationProvider.java27 import android.location.provider.ProviderRequest;
64 public void onSetRequest(ProviderRequest request) {} in onSetRequest()
DMockLocationProvider.java25 import android.location.provider.ProviderRequest;
62 public void onSetRequest(ProviderRequest request) {} in onSetRequest()
DDelegateLocationProvider.java20 import android.location.provider.ProviderRequest;
98 protected void onSetRequest(ProviderRequest request) { in onSetRequest()
DAbstractLocationProvider.java22 import android.location.provider.ProviderRequest;
338 protected abstract void onSetRequest(ProviderRequest request); in onSetRequest()
394 public void setRequest(ProviderRequest request) { in setRequest()
DLocationProviderManager.java63 import android.location.provider.ProviderRequest;
133 LocationProviderManager.Registration, ProviderRequest> implements
1950 protected boolean registerWithService(ProviderRequest request,
1952 return reregisterWithService(ProviderRequest.EMPTY_REQUEST, request, registrations);
1957 protected boolean reregisterWithService(ProviderRequest oldRequest,
1958 ProviderRequest newRequest, Collection<Registration> registrations) {
2023 setProviderRequest(ProviderRequest.EMPTY_REQUEST);
2027 void setProviderRequest(ProviderRequest request) {
2114 protected ProviderRequest mergeRegistrations(Collection<Registration> registrations) {
2119 long intervalMs = ProviderRequest.INTERVAL_DISABLED;
[all …]
/frameworks/base/location/lib/java/com/android/location/provider/
DProviderRequestUnbundled.java21 import android.location.provider.ProviderRequest;
41 public static final long INTERVAL_DISABLED = ProviderRequest.INTERVAL_DISABLED;
43 private final ProviderRequest mRequest;
46 public ProviderRequestUnbundled(ProviderRequest request) { in ProviderRequestUnbundled()
DLocationProviderBase.java29 import android.location.provider.ProviderRequest;
385 public void setRequest(ProviderRequest request) { in setRequest()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/test/
DFakeProvider.java19 import android.location.provider.ProviderRequest;
32 void onSetRequest(ProviderRequest request); in onSetRequest()
49 protected void onSetRequest(ProviderRequest request) { in onSetRequest()
/frameworks/base/services/core/java/com/android/server/location/provider/proxy/
DProxyLocationProvider.java29 import android.location.provider.ProviderRequest;
96 private volatile ProviderRequest mRequest;
111 mRequest = ProviderRequest.EMPTY_REQUEST; in ProxyLocationProvider()
128 ProviderRequest request = mRequest; in onBind()
129 if (!request.equals(ProviderRequest.EMPTY_REQUEST)) { in onBind()
180 protected void onSetRequest(ProviderRequest request) { in onSetRequest()
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java34 import android.location.provider.ProviderRequest;
189 public void logProviderUpdateRequest(String provider, ProviderRequest request) { in logProviderUpdateRequest()
209 ProviderRequest request) { in logProviderStationaryThrottled()
254 (ProviderRequest) args[1]); in createLogEvent()
263 (Boolean) args[1], (ProviderRequest) args[2]); in createLogEvent()
389 private final ProviderRequest mRequest;
391 ProviderUpdateEvent(long timeDelta, String provider, ProviderRequest request) { in ProviderUpdateEvent()
439 private final ProviderRequest mRequest;
442 boolean stationaryThrottled, ProviderRequest request) { in ProviderStationaryThrottledEvent()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java39 import android.location.provider.ProviderRequest;
72 private ProviderRequest mRequest;
96 mRequest = ProviderRequest.EMPTY_REQUEST; in FusedLocationProvider()
107 mRequest = ProviderRequest.EMPTY_REQUEST; in stop()
113 public void onSetRequest(ProviderRequest request) { in onSetRequest()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java32 import android.location.provider.ProviderRequest;
121 new ProviderRequest.Builder() in testNetworkRequest()
134 new ProviderRequest.Builder() in testGpsRequest()
/frameworks/base/location/lib/
DREADME.txt10 ProviderRequest.java), but it must not expose them in any public method
29 It wraps internal platform classes (like ProviderRequest) with a stable

12