Searched refs:setBestProvider (Results 1 – 2 of 2) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLocationManagerTest.java | 203 shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria() 220 assertTrue(shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true)); in shouldNotSetBestEnabledProviderIfProviderIsDisabled() 226 assertFalse(shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, false)); in shouldNotSetBestDisabledProviderIfProviderIsEnabled() 239 shadowLocationManager.setBestProvider(LocationManager.GPS_PROVIDER, true); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners() 300 shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER", true); in shouldThrowExceptionIfTheBestProviderIsUnknown() 317 assertTrue(shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER_WITH_CRITERIA", true)); in shouldReturnBestCustomProviderUsingCriteria() 322 assertThat(shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER_WITH_CRITERIA", true)) in shouldReturnBestCustomProviderUsingCriteria() 353 shadowLocationManager.setBestProvider("BEST_DISABLED_PROVIDER", false); in shouldReturnBestDisabledProvider() 355 shadowLocationManager.setBestProvider("BEST_ENABLED_PROVIDER", true); in shouldReturnBestDisabledProvider() 357 assertTrue(shadowLocationManager.setBestProvider("BEST_DISABLED_PROVIDER", false)); in shouldReturnBestDisabledProvider() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLocationManager.java | 360 …public boolean setBestProvider(String provider, boolean enabled, List<Criteria> criteria) throws E… in setBestProvider() method in ShadowLocationManager 398 public boolean setBestProvider(String provider, boolean enabled) throws Exception { in setBestProvider() method in ShadowLocationManager 399 return setBestProvider(provider, enabled, null); in setBestProvider()
|