Searched refs:GPS_PROVIDER (Results 1 – 3 of 3) sorted by relevance
3 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 …]
85 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()
3 import static android.location.LocationManager.GPS_PROVIDER;229 Secure.setLocationProviderEnabled(application.getContentResolver(), GPS_PROVIDER, true); in setUpApplicationState() local