Home
last modified time | relevance | path

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

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DLocationManagerTest.java184 shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
201 assertTrue(shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true)); in shouldNotSetBestEnabledProviderIfProviderIsDisabled()
207 assertFalse(shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, false)); in shouldNotSetBestDisabledProviderIfProviderIsEnabled()
220 shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners()
281 shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER", true); in shouldThrowExceptionIfTheBestProviderIsUnknown()
298 … assertTrue(shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER_WITH_CRITERIA", true)); in shouldReturnBestCustomProviderUsingCriteria()
302 … assertTrue(shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER_WITH_CRITERIA", true)); in shouldReturnBestCustomProviderUsingCriteria()
327 shadowLocationManager.setBestProvider("BEST_DISABLED_PROVIDER", false); in shouldReturnBestDisabledProvider()
329 shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER", true); in shouldReturnBestDisabledProvider()
331 assertTrue(shadowLocationManager.setBestProvider("BEST_DISABLED_PROVIDER", false)); in shouldReturnBestDisabledProvider()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLocationManager.java293 …public boolean setBestProvider(String provider, boolean enabled, List<Criteria> criteria) throws E… in setBestProvider() method in ShadowLocationManager
331 public boolean setBestProvider(String provider, boolean enabled) throws Exception { in setBestProvider() method in ShadowLocationManager
332 return setBestProvider(provider, enabled, null); in setBestProvider()