Searched refs:criteria (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/location/java/android/location/
H A DLocationProvider.java24 * <p> Each provider has a set of criteria under which it may be used;
31 * user-specified criteria.
70 * Returns true if this provider meets the given criteria,
73 public boolean meetsCriteria(Criteria criteria) { argument
74 // We do not want to match the special passive provider based on criteria.
78 if ((criteria.getAccuracy() != Criteria.NO_REQUIREMENT) &&
79 (criteria.getAccuracy() < getAccuracy())) {
82 int criteriaPower = criteria.getPowerRequirement();
87 if (criteria.isAltitudeRequired() && !supportsAltitude()) {
90 if (criteria
[all...]
H A DCriteria.java23 * A class indicating the application criteria for selecting a
77 * Constructs a new Criteria object that is a copy of the given criteria.
79 public Criteria(Criteria criteria) { argument
80 mAccuracy = criteria.mAccuracy;
81 mPowerRequirement = criteria.mPowerRequirement;
82 // mPreferredResponseTime = criteria.mPreferredResponseTime;
83 mAltitudeRequired = criteria.mAltitudeRequired;
84 mBearingRequired = criteria.mBearingRequired;
85 mSpeedRequired = criteria.mSpeedRequired;
86 mCostAllowed = criteria
[all...]
H A DLocationManager.java307 * criteria, or null if none do. Only providers that are permitted to be
310 * @param criteria the criteria that the returned providers must match
315 public List<String> getProviders(Criteria criteria, boolean enabledOnly) { argument
320 if (provider != null && provider.meetsCriteria(criteria)) {
486 * Returns the name of the provider that best meets the given criteria. Only providers
488 * returned. If several providers meet the criteria, the one with the best
489 * accuracy is returned. If no provider meets the criteria,
490 * the criteria are loosened in the following sequence:
503 * @param criteria th
507 getBestProvider(Criteria criteria, boolean enabledOnly) argument
[all...]

Completed in 41 milliseconds