Searched refs:locationListener (Results 1 – 3 of 3) sorted by relevance
93 LocationListener locationListener = locationListenerCaptor.getValue(); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime() local96 locationListener.onLocationChanged(location); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()98 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()123 LocationListener locationListener = locationListenerCaptor.getValue(); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime() local126 locationListener.onLocationChanged(location); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()128 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()191 LocationListener locationListener = locationListenerCaptor.getValue(); in advanceServiceToSleepingState() local195 locationListener.onLocationChanged(location); in advanceServiceToSleepingState()197 verify(mMockLocationManager).removeUpdates(locationListener); in advanceServiceToSleepingState()
701 LocationListener locationListener; in handleRequestLocation() local709 locationListener = location -> { }; in handleRequestLocation()714 locationListener = this::injectBestLocation; in handleRequestLocation()738 DIRECT_EXECUTOR, locationListener); in handleRequestLocation()
783 ILocationListener locationListener = createMockLocationListener(); in testProviderRequestListener() local786 mManager.registerLocationRequest(request, IDENTITY, PERMISSION_FINE, locationListener); in testProviderRequestListener()791 mManager.unregisterLocationRequest(locationListener); in testProviderRequestListener()