Searched refs:sLocationManager (Results 1 – 4 of 4) sorted by relevance
36 private static LocationManager sLocationManager; field in WifiJUnit4TestBase43 sLocationManager = context.getSystemService(LocationManager.class); in enableLocationIfNotEnabled()44 if (!sLocationManager.isLocationEnabled()) { in enableLocationIfNotEnabled()47 () -> sLocationManager.setLocationEnabledForUser( in enableLocationIfNotEnabled()58 sLocationManager.setLocationEnabledForUser( in disableLocationIfOriginallyDisabled()
37 private static final LocationManager sLocationManager = sContext.getSystemService( field in LocationProvider60 sLocationManager.addTestProvider(sProviderName, in addTestProvider()73 sLocationManager.setTestProviderEnabled(sProviderName, /* enabled= */true); in enableTestProvider()78 sLocationManager.removeTestProvider(sProviderName); in removeTestProvider()91 sLocationManager.setTestProviderLocation(sProviderName, in setLocation()
41 private static final LocationManager sLocationManager = sContext.getSystemService( field in Locations66 sLocationManager.setLocationEnabledForUser(enabled, in setLocationEnabled()87 return sLocationManager.getLastKnownLocation(providerName); in getLastKnownLocation()
154 private static LocationManager sLocationManager; field in SatelliteManagerTestOnMockService190 sLocationManager = getContext().getSystemService(LocationManager.class); in beforeAllTests()5210 sLocationManager.addTestProvider(TEST_PROVIDER, in registerTestLocationProvider()5212 sLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in registerTestLocationProvider()5217 sLocationManager.removeTestProvider(TEST_PROVIDER); in unregisterTestLocationProvider()5225 sLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in setTestProviderLocation()