Home
last modified time | relevance | path

Searched refs:LocationListener (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DGnssTimeUpdateServiceTest.java34 import android.location.LocationListener;
84 ArgumentCaptor<LocationListener> locationListenerCaptor = in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
85 ArgumentCaptor.forClass(LocationListener.class); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
93 LocationListener locationListener = locationListenerCaptor.getValue(); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
114 ArgumentCaptor<LocationListener> locationListenerCaptor = in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
115 ArgumentCaptor.forClass(LocationListener.class); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
123 LocationListener locationListener = locationListenerCaptor.getValue(); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
140 ArgumentCaptor<LocationListener> locationListenerCaptor = in testLocationListeningRestartsAfterSleep()
141 ArgumentCaptor.forClass(LocationListener.class); in testLocationListeningRestartsAfterSleep()
160 ArgumentCaptor<LocationListener> locationListenerCaptor = in testStartGnssListeningInternalCalledWhenSleeping()
[all …]
/frameworks/base/services/core/java/com/android/server/location/countrydetector/
DLocationBasedCountryDetector.java24 import android.location.LocationListener;
62 protected List<LocationListener> mLocationListeners;
98 protected void registerListener(String provider, LocationListener listener) { in registerListener()
110 protected void unregisterListener(LocationListener listener) { in unregisterListener()
172 mLocationListeners = new ArrayList<LocationListener>(totalProviders); in detectCountry()
176 LocationListener listener = new LocationListener () { in detectCountry()
223 for (LocationListener listener : mLocationListeners) { in stop()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
DLocationBasedCountryDetectorTest.java21 import android.location.LocationListener;
44 private Map<String, LocationListener> mListeners;
55 mListeners = new HashMap<String, LocationListener>(); in TestCountryDetector()
96 protected void registerListener(String provider, LocationListener listener) { in registerListener()
102 protected void unregisterListener(LocationListener listener) { in unregisterListener()
103 for (Entry<String, LocationListener> entry : mListeners.entrySet()) { in unregisterListener()
112 public Map<String, LocationListener> getListeners() { in getListeners()
128 LocationListener[] listeners = new LocationListener[mListeners.size()]; in notifyLocationFound()
130 for (LocationListener listener :listeners) { in notifyLocationFound()
197 Map<String, LocationListener> listeners = detector.getListeners(); in testFindingCountryCommon()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyCountryDetectorTest.java36 import android.location.LocationListener;
77 private ArgumentCaptor<LocationListener> mLocationListenerCaptor;
145 anyFloat(), any(LocationListener.class)); in testGetInstance()
268 verify(mLocationManager).removeUpdates(any(LocationListener.class)); in testRegisterForLocationUpdates()
274 any(LocationListener.class)); in testRegisterForLocationUpdates()
281 verify(mLocationManager, never()).removeUpdates(any(LocationListener.class)); in testRegisterForLocationUpdates()
290 any(LocationListener.class)); in testRegisterForLocationUpdates()
298 verify(mLocationManager).removeUpdates(any(LocationListener.class)); in testRegisterForLocationUpdates()
306 any(LocationListener.class)); in testRegisterForLocationUpdates()
313 verify(mLocationManager, never()).removeUpdates(any(LocationListener.class)); in testRegisterForLocationUpdates()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
DExternalSharedPermsFLTest.java21 import android.location.LocationListener;
36 new LocationListener() { in testRunFineLocation()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
DExternalSharedPermsTest.java21 import android.location.LocationListener;
41 new LocationListener() { in testRunLocationAndBluetooth()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
DExternalSharedPermsDiffKeyTest.java22 import android.location.LocationListener;
39 new LocationListener() { in testRunBluetoothAndFineLocation()
/frameworks/base/location/api/
Dmodule-lib-lint-baseline.txt36 …anager#requestLocationUpdates(String, long, float, android.location.LocationListener, android.os.L…
38 …tLocationUpdates(android.location.LocationRequest, android.location.LocationListener, android.os.L…
40 …ionUpdates(long, float, android.location.Criteria, android.location.LocationListener, android.os.L…
42 …cation.LocationManager#requestSingleUpdate(String, android.location.LocationListener, android.os.L…
44 …ger#requestSingleUpdate(android.location.Criteria, android.location.LocationListener, android.os.L…
Dsystem-lint-baseline.txt36 …anager#requestLocationUpdates(String, long, float, android.location.LocationListener, android.os.L…
38 …ionUpdates(long, float, android.location.Criteria, android.location.LocationListener, android.os.L…
40 …cation.LocationManager#requestSingleUpdate(String, android.location.LocationListener, android.os.L…
42 …ger#requestSingleUpdate(android.location.Criteria, android.location.LocationListener, android.os.L…
Dcurrent.txt513 public interface LocationListener {
568 …INE_LOCATION"}, apis="..22") public void removeUpdates(@NonNull android.location.LocationListener);
570 … method public void requestFlush(@NonNull String, @NonNull android.location.LocationListener, int);
572 …d requestLocationUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener);
573 …tionUpdates(@NonNull String, long, float, @NonNull android.location.LocationListener, @Nullable an…
574 …, long, float, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener);
575 …loat, @NonNull android.location.Criteria, @NonNull android.location.LocationListener, @Nullable an…
576 …tion.Criteria, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener);
579 …cationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener);
581 …void requestSingleUpdate(@NonNull String, @NonNull android.location.LocationListener, @Nullable an…
[all …]
Dsystem-current.txt456 …ullable android.location.LocationRequest, @NonNull android.location.LocationListener, @Nullable an…
457 …cationRequest, @NonNull java.util.concurrent.Executor, @NonNull android.location.LocationListener);
/frameworks/base/packages/FusedLocation/src/com/android/location/gnss/
DGnssOverlayLocationProvider.java25 import android.location.LocationListener;
64 private class GnssLocationListener implements LocationListener {
/frameworks/base/location/java/android/location/
DLocationManager.java467 private static final WeakHashMap<LocationListener, WeakReference<LocationListenerTransport>>
1069 @NonNull String provider, @NonNull LocationListener listener, @Nullable Looper looper) { in requestSingleUpdate()
1107 @NonNull LocationListener listener, in requestSingleUpdate()
1211 @NonNull LocationListener listener) { in requestLocationUpdates()
1239 @NonNull LocationListener listener, @Nullable Looper looper) { in requestLocationUpdates()
1273 @NonNull LocationListener listener) { in requestLocationUpdates()
1309 @NonNull Criteria criteria, @NonNull LocationListener listener, in requestLocationUpdates()
1348 @NonNull LocationListener listener) { in requestLocationUpdates()
1447 @NonNull LocationListener listener, in requestLocationUpdates()
1478 @NonNull LocationListener listener) { in requestLocationUpdates()
[all …]
DLocationListener.java38 public interface LocationListener { interface
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java28 import android.location.LocationListener;
36 implements SensorEventListener, LocationListener {
/frameworks/base/services/core/java/com/android/server/timedetector/
DGnssTimeUpdateService.java25 import android.location.LocationListener;
123 @GuardedBy("mLock") @Nullable private LocationListener mLocationListener;
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java28 import android.location.LocationListener;
51 implements AlarmManager.OnAlarmListener, Handler.Callback, LocationListener {
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java34 import android.location.LocationListener;
248 private class ChildLocationListener implements LocationListener {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyCountryDetector.java26 import android.location.LocationListener;
109 @NonNull private final LocationListener mLocationListener = new LocationListener() {
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java29 import android.location.LocationListener;
291 private class LocationTrackingListener implements LocationListener {
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java31 import android.location.LocationListener;
64 LocationListener {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java28 import android.location.LocationListener;
80 implements LocationListener {
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java66 import android.location.LocationListener;
701 LocationListener locationListener; in handleRequestLocation()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java53 import android.location.LocationListener;
983 private final LocationListener mGenericLocationListener = new LocationListener() {
1004 private final LocationListener mGpsLocationListener = new LocationListener() {
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt13843 public abstract interface LocationListener {
13870 method public void removeUpdates(android.location.LocationListener);
13872 …blic void requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener);
13873 …uestLocationUpdates(java.lang.String, long, float, android.location.LocationListener, android.os.L…
13874 …ionUpdates(long, float, android.location.Criteria, android.location.LocationListener, android.os.L…
13877 …method public void requestSingleUpdate(java.lang.String, android.location.LocationListener, androi…
13878 …oid requestSingleUpdate(android.location.Criteria, android.location.LocationListener, android.os.L…

12