Searched refs:isLocationEnabled (Results 1 – 11 of 11) sorted by relevance
53 boolean enabled = mLocationManager.isLocationEnabled(); in testSetLocationEnabled()67 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runDisableLocationFirst()71 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runDisableLocationFirst()79 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runEnableLocationFirst()83 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runEnableLocationFirst()
39 if (!mLocationManager.isLocationEnabled()) { in setUp()
45 if (!mLocationManager.isLocationEnabled()) { in enableLocationIfNotEnabled()
156 .that(mContext.getSystemService(LocationManager.class).isLocationEnabled()) in setUp()
159 mContext.getSystemService(LocationManager.class).isLocationEnabled()).isTrue(); in setUp()
261 private boolean isLocationEnabled() { in isLocationEnabled() method in ConcurrencyTest344 if (!isLocationEnabled()) { in setupWifiP2p()
509 if (!isLocationEnabled()) { in testWifiManagerScanWhenWifiOffLocationTurnedOn()621 if (!isLocationEnabled()) { in testWifiScanTimestamp()672 private boolean isLocationEnabled() { in isLocationEnabled() method in WifiManagerTest986 if (!isLocationEnabled()) { in startLocalOnlyHotspot()1963 if (!isLocationEnabled()) { in testScreenOffDoesNotTurnOffWifiScanningWhenWifiDisabled()1997 if (!isLocationEnabled()) { in testScreenOffDoesNotTurnOffWifiScanningWhenWifiEnabled()
123 if (!sContext.getSystemService(LocationManager.class).isLocationEnabled()) return; in setUpClass()
124 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
108 mLocationManager.isLocationEnabled()); in setUp()
173 assertThat(mManager.isLocationEnabled()).isTrue(); in testIsLocationEnabled()177 LocationManager.class).isLocationEnabled(); in testIsLocationEnabled()185 LocationManager.class).isLocationEnabled(); in testIsLocationEnabled()