Lines Matching defs:accuracy

24  * location provider.  Providers maybe ordered according to accuracy,
51 * A constant indicating a finer location accuracy requirement
56 * A constant indicating an approximate accuracy requirement
61 * A constant indicating a low location accuracy requirement
62 * - may be used for horizontal, altitude, speed or bearing accuracy.
64 * an accuracy of greater than 500 meters.
69 * A constant indicating a medium accuracy requirement
70 * - currently used only for horizontal accuracy.
71 * For horizontal position this corresponds roughly to to an accuracy
77 * a constant indicating a high accuracy requirement
78 * - may be used for horizontal, altitude, speed or bearing accuracy.
80 * an accuracy of less than 100 meters.
96 * requirements on accuracy, power, or response time; will not
118 * Indicates the desired horizontal accuracy (latitude and longitude).
123 * @throws IllegalArgumentException if accuracy is not one of the supported constants
125 public void setHorizontalAccuracy(int accuracy) {
126 if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_HIGH) {
127 throw new IllegalArgumentException("accuracy=" + accuracy);
129 mHorizontalAccuracy = accuracy;
133 * Returns a constant indicating the desired horizontal accuracy (latitude and longitude).
142 * Indicates the desired vertical accuracy (altitude).
147 * @throws IllegalArgumentException if accuracy is not one of the supported constants
149 public void setVerticalAccuracy(int accuracy) {
150 if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_HIGH) {
151 throw new IllegalArgumentException("accuracy=" + accuracy);
153 mVerticalAccuracy = accuracy;
157 * Returns a constant indicating the desired vertical accuracy (altitude).
166 * Indicates the desired speed accuracy.
171 * @throws IllegalArgumentException if accuracy is not one of the supported constants
173 public void setSpeedAccuracy(int accuracy) {
174 if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_HIGH) {
175 throw new IllegalArgumentException("accuracy=" + accuracy);
177 mSpeedAccuracy = accuracy;
181 * Returns a constant indicating the desired speed accuracy
190 * Indicates the desired bearing accuracy.
195 * @throws IllegalArgumentException if accuracy is not one of the supported constants
197 public void setBearingAccuracy(int accuracy) {
198 if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_HIGH) {
199 throw new IllegalArgumentException("accuracy=" + accuracy);
201 mBearingAccuracy = accuracy;
205 * Returns a constant indicating the desired bearing accuracy.
214 * Indicates the desired accuracy for latitude and longitude. Accuracy
219 * @throws IllegalArgumentException if accuracy is not one of the supported constants
221 public void setAccuracy(int accuracy) {
222 if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_COARSE) {
223 throw new IllegalArgumentException("accuracy=" + accuracy);
225 if (accuracy == ACCURACY_FINE) {
233 * Returns a constant indicating desired accuracy of location
383 private static String accuracyToString(int accuracy) {
384 switch (accuracy) {