Home
last modified time | relevance | path

Searched refs:isLocationEnabled (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverLocationTest.java160 assertTrue(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
180 assertTrue(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
187 assertFalse(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
195 assertTrue(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
203 assertFalse(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
211 assertTrue(getLocationManager().isLocationEnabled()); in testLocationAllDisabled()
287 assertTrue(getLocationManager().isLocationEnabled()); in testLocationRequestThrottling()
303 assertTrue(getLocationManager().isLocationEnabled()); in testLocationRequestThrottling()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java119 public static boolean isLocationEnabled() { in isLocationEnabled() method in NetworkPolicyTestUtils
122 return lm.isLocationEnabled(); in isLocationEnabled()
129 assertEquals("Couldn't change location enabled state", lm.isLocationEnabled(), enabled); in setLocationEnabled()
148 final boolean isLocationEnabled = isLocationEnabled(); in setupMeteredNetwork()
150 if (!isLocationEnabled) { in setupMeteredNetwork()
159 if (!isLocationEnabled) { in setupMeteredNetwork()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiManagerTest.java305 if (!isLocationEnabled()) { in testWifiManagerScanWhenWifiOffLocationTurnedOn()
361 if (!isLocationEnabled()) { in testWifiScanTimestamp()
397 private boolean isLocationEnabled() { in isLocationEnabled() method in WifiManagerTest
559 if (!isLocationEnabled()) {
991 if (!isLocationEnabled()) { in testScreenOffDoesNotTurnOffWifiScanningWhenWifiDisabled()
1021 if (!isLocationEnabled()) { in testScreenOffDoesNotTurnOffWifiScanningWhenWifiEnabled()
DConcurrencyTest.java209 private boolean isLocationEnabled() { in isLocationEnabled() method in ConcurrencyTest
270 if (!isLocationEnabled()) { in setupWifiP2p()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestListActivity.java111 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java87 mLocationManager.isLocationEnabled()); in setUp()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java360 Context.LOCATION_SERVICE)).isLocationEnabled()); in setUp()