Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
H A 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()
/aosp12/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
H A DEnvironmentImpl.java297 LocationListener locationListener = new LocationListener() { in startPassiveLocationListening() local
333 LocationManager.PASSIVE_PROVIDER, locationRequest, mExecutor, locationListener); in startPassiveLocationListening()
339 mLocationManager.removeUpdates(locationListener); in startPassiveLocationListening()
372 mLocationManager.removeUpdates(locationListener); in startPassiveLocationListening()
/aosp12/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
H A DOfflineLocationTimeZoneDelegateTest.java346 Duration duration, Consumer<LocationListeningResult> locationListener,
350 mLocationListener = locationListener;
382 Duration duration, Consumer<LocationListeningResult> locationListener) {
385 mLocationListener = locationListener;
/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
H A DGsmCellBroadcastHandlerTest.java513 LocationListener locationListener = getLocationCallback(); in setMockCalculation() local
514 locationListener.onLocationChanged(location); in setMockCalculation()
/aosp12/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssLocationProvider.java571 LocationListener locationListener; in handleRequestLocation() local
579 locationListener = location -> { }; in handleRequestLocation()
584 locationListener = this::injectBestLocation; in handleRequestLocation()
608 DIRECT_EXECUTOR, locationListener); in handleRequestLocation()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DLocationProviderManagerTest.java708 ILocationListener locationListener = createMockLocationListener(); in testProviderRequestListener() local
711 mManager.registerLocationRequest(request, IDENTITY, PERMISSION_FINE, locationListener); in testProviderRequestListener()
716 mManager.unregisterLocationRequest(locationListener); in testProviderRequestListener()