Home
last modified time | relevance | path

Searched refs:mMockLocationManager (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DLocationManagerProxyTest.java46 private LocationManager mMockLocationManager; field in LocationManagerProxyTest
52 .thenReturn(mMockLocationManager); in setUp()
60 verify(mMockLocationManager).injectLocation(location); in testLocationManagerProxyCanInjectLocation()
66 when(mMockLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER)) in testLocationManagerProxyCanGetLastKnownLocation()
75 when(mMockLocationManager.isLocationEnabled()).thenReturn(true); in testLocationManagerProxyCanCheckIfLocationIsEnabled()
78 when(mMockLocationManager.isLocationEnabled()).thenReturn(false); in testLocationManagerProxyCanCheckIfLocationIsEnabled()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
H A DGnssTimeUpdateServiceTest.java61 @Mock private LocationManager mMockLocationManager; field in GnssTimeUpdateServiceTest
81 .thenReturn(mMockLocationManager); in setUp()
111 verify(mMockLocationManager).requestLocationUpdates( in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
123 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime()
141 verify(mMockLocationManager).requestLocationUpdates( in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
153 verify(mMockLocationManager).removeUpdates(locationListener); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()