Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
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()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessControllerTest.java121 private LocationManager mMockLocationManager; field in SatelliteAccessControllerTest
220 mMockLocationManager); in setUp()
247 when(mMockLocationManager.getProviders(true)).thenReturn(LOCATION_PROVIDERS); in setUp()
248 when(mMockLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER)) in setUp()
250 when(mMockLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER)) in setUp()
273 mMockFeatureFlags, mLooper, mMockLocationManager, mMockTelecomManager, in setUp()
387 verify(mMockLocationManager).getCurrentLocation(eq(LocationManager.GPS_PROVIDER), in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
418 verify(mMockLocationManager).getCurrentLocation(anyString(), any(LocationRequest.class), in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
448 verify(mMockLocationManager, never()).getCurrentLocation(anyString(), in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
541 clearInvocations(mMockLocationManager); in clearAllInvocations()