Home
last modified time | relevance | path

Searched refs:GPS_PROVIDER (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLocationManagerTest.java3 import static android.location.LocationManager.GPS_PROVIDER;
67 Boolean enabled = locationManager.isProviderEnabled(GPS_PROVIDER); in shouldReturnNoProviderEnabledByDefault()
78 shadowLocationManager.setProviderEnabled(GPS_PROVIDER, true); in shouldDisableProvider()
79 shadowLocationManager.setProviderEnabled(GPS_PROVIDER, false); in shouldDisableProvider()
80 assertFalse(locationManager.isProviderEnabled(GPS_PROVIDER)); in shouldDisableProvider()
109 shadowLocationManager.setProviderEnabled(GPS_PROVIDER, true); in getProviders_returnsProvidersBasedOnEnabledParameter()
112 assertTrue(providers.contains(GPS_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
118 assertTrue(providers.contains(GPS_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
136 Location gpsLocation = new Location(GPS_PROVIDER); in shouldReturnLastKnownLocationForAProvider()
139 shadowLocationManager.setLastKnownLocation(GPS_PROVIDER, gpsLocation); in shouldReturnLastKnownLocationForAProvider()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLocationManager.java85 allKnownProviders.add(LocationManager.GPS_PROVIDER); in getAllProviders()
208 …} else if (provider.equals(LocationManager.GPS_PROVIDER) && accuracy == Criteria.ACCURACY_FINE && … in getBestProviderWithCriteria()
224 } else if (providers.contains(LocationManager.GPS_PROVIDER)) { in getBestProviderWithNoCriteria()
225 return LocationManager.GPS_PROVIDER; in getBestProviderWithNoCriteria()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java3 import static android.location.LocationManager.GPS_PROVIDER;
254 Secure.setLocationProviderEnabled(application.getContentResolver(), GPS_PROVIDER, true); in setUpApplicationState() local