Searched refs:getBestProvider (Results 1 – 2 of 2) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLocationManagerTest.java | 255 assertNull(locationManager.getBestProvider(criteria, true)); in shouldStoreBestProviderCriteriaAndEnabledOnlyFlag() 264 … assertThat(locationManager.getBestProvider(null, false)).isEqualTo(LocationManager.GPS_PROVIDER); in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState() 265 assertThat(locationManager.getBestProvider(null, true)).isNull(); in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState() 266 …assertThat(locationManager.getBestProvider(criteria, false)).isEqualTo(LocationManager.NETWORK_PRO… in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState() 267 assertThat(locationManager.getBestProvider(criteria, true)).isNull(); in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState() 320 assertThat(locationManager.getBestProvider(criteria, true)) in shouldReturnBestCustomProviderUsingCriteria() 324 assertThat(locationManager.getBestProvider(criteria, false)) in shouldReturnBestCustomProviderUsingCriteria() 326 assertThat(locationManager.getBestProvider(criteria, true)) in shouldReturnBestCustomProviderUsingCriteria() 336 assertThat(locationManager.getBestProvider(criteria, false)) in shouldReturnBestProviderUsingCriteria() 341 assertThat(locationManager.getBestProvider(criteria, false)) in shouldReturnBestProviderUsingCriteria() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLocationManager.java | 170 protected String getBestProvider(Criteria criteria, boolean enabled) { in getBestProvider() method in ShadowLocationManager 286 if (getBestProvider(criteria, true) == null) { in requestLocationUpdates()
|