Home
last modified time | relevance | path

Searched refs:sLocationManager (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiJUnit4TestBase.java36 private static LocationManager sLocationManager; field in WifiJUnit4TestBase
43 sLocationManager = context.getSystemService(LocationManager.class); in enableLocationIfNotEnabled()
44 if (!sLocationManager.isLocationEnabled()) { in enableLocationIfNotEnabled()
47 () -> sLocationManager.setLocationEnabledForUser( in enableLocationIfNotEnabled()
58 sLocationManager.setLocationEnabledForUser( in disableLocationIfOriginallyDisabled()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/
DLocationProvider.java37 private static final LocationManager sLocationManager = sContext.getSystemService( field in LocationProvider
60 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()
DLocations.java41 private static final LocationManager sLocationManager = sContext.getSystemService( field in Locations
66 sLocationManager.setLocationEnabledForUser(enabled, in setLocationEnabled()
87 return sLocationManager.getLastKnownLocation(providerName); in getLastKnownLocation()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestOnMockService.java154 private static LocationManager sLocationManager; field in SatelliteManagerTestOnMockService
190 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()