Lines Matching refs:provider
90 protected boolean isAcceptableProvider(String provider) {
92 return LocationManager.PASSIVE_PROVIDER.equals(provider);
96 * Register a listener with a provider name
98 protected void registerListener(String provider, LocationListener listener) {
101 mLocationManager.requestLocationUpdates(provider, 0, 0, listener);
127 for (String provider : providers) {
128 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider);
174 String provider = enabledProviders.get(i);
175 if (isAcceptableProvider(provider)) {
185 public void onProviderDisabled(String provider) {
188 public void onProviderEnabled(String provider) {
191 public void onStatusChanged(String provider, int status, Bundle extras) {
195 registerListener(provider, listener);
205 // Looks like no provider could provide the location, let's try the last
211 // There is no provider enabled.