Home
last modified time | relevance | path

Searched refs:locationListener (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DGnssTimeUpdateServiceTest.java118 LocationListener locationListener = argumentCaptor.getValue(); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime() local
121 locationListener.onLocationChanged(location); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
123 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
148 LocationListener locationListener = argumentCaptor.getValue(); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime() local
151 locationListener.onLocationChanged(location); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
153 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java560 LocationListener locationListener; in handleRequestLocation() local
568 locationListener = location -> { }; in handleRequestLocation()
573 locationListener = this::injectBestLocation; in handleRequestLocation()
597 DIRECT_EXECUTOR, locationListener); in handleRequestLocation()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java708 ILocationListener locationListener = createMockLocationListener(); in testProviderRequestListener() local
711 mManager.registerLocationRequest(request, IDENTITY, PERMISSION_FINE, locationListener); in testProviderRequestListener()
716 mManager.unregisterLocationRequest(locationListener); in testProviderRequestListener()