Code example for Map

Methods: keySet

0
    return false; 
  } 
 
  @Implementation 
  public List<String> getAllProviders() {
    Set<String> allKnownProviders = new LinkedHashSet<String>(providersEnabled.keySet());
    allKnownProviders.add(LocationManager.GPS_PROVIDER);
    allKnownProviders.add(LocationManager.NETWORK_PROVIDER);
    allKnownProviders.add(LocationManager.PASSIVE_PROVIDER);
 
    return new ArrayList<String>(allKnownProviders);
  } 
 
  /** 
   * Sets the value to return from {@link #isProviderEnabled(String)} for the given {@code provider} 
   * 
   * @param provider 
   *            name of the provider whose status to set 
   * @param isEnabled 
   *            whether that provider should appear enabled 
   */