HomeSort by relevance Sort by last modified time
    Searched refs:criteria (Results 1 - 25 of 67) sorted by null

1 2 3

  /cts/tests/tests/location/src/android/location/cts/
CriteriaTest.java 20 import android.location.Criteria;
26 new Criteria();
28 Criteria c = new Criteria();
29 c.setAccuracy(Criteria.ACCURACY_FINE);
33 c.setPowerRequirement(Criteria.POWER_HIGH);
35 Criteria criteria = new Criteria(c); local
36 assertEquals(Criteria.ACCURACY_FINE, criteria.getAccuracy())
52 Criteria criteria = new Criteria(); local
57 Criteria criteria = new Criteria(); local
83 Criteria criteria = new Criteria(); local
107 Criteria criteria = new Criteria(); local
117 Criteria criteria = new Criteria(); local
127 Criteria criteria = new Criteria(); local
137 Criteria criteria = new Criteria(); local
147 Criteria criteria = new Criteria(); local
    [all...]
LocationProviderTest.java 21 import android.location.Criteria;
60 Criteria.POWER_MEDIUM, // powerRequirement,
61 Criteria.ACCURACY_FINE); // accuracy
73 Criteria criteria = new Criteria(); local
74 criteria.setAltitudeRequired(true);
75 criteria.setBearingRequired(true);
76 assertTrue(locationProvider.meetsCriteria(criteria));
LocationManagerTest.java 27 import android.location.Criteria;
101 Criteria.POWER_MEDIUM, // powerRequirement
102 Criteria.ACCURACY_FINE); // accuracy
134 Criteria.POWER_MEDIUM, // powerRequirement
135 Criteria.ACCURACY_FINE); // accuracy
233 Criteria criteria = new Criteria(); local
234 List<String> providers = mManager.getProviders(criteria, true);
238 criteria = new Criteria()
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
CriteriaTest.java 11 import android.location.Criteria;
17 private Criteria criteria; field in class:CriteriaTest
21 criteria = new Criteria();
26 criteria.setAccuracy(Criteria.ACCURACY_COARSE);
27 assertThat(Criteria.ACCURACY_COARSE, IsEqual.equalTo(criteria.getAccuracy()));
32 criteria.setPowerRequirement(Criteria.POWER_HIGH)
    [all...]
LocationManagerTest.java 6 import android.location.Criteria;
185 Criteria criteria = new Criteria(); local
186 criteria.setAccuracy(Criteria.ACCURACY_FINE);
188 locationManager.requestLocationUpdates(0, 0, criteria, someLocationListenerPendingIntent);
189 locationManager.requestLocationUpdates(0, 0, criteria, someOtherLocationListenerPendingIntent);
193 Map<PendingIntent, Criteria> expectedCriteria = new HashMap<PendingIntent, Criteria>();
236 Criteria criteria = new Criteria(); local
244 Criteria criteria = new Criteria(); local
266 Criteria criteria = new Criteria(); local
278 Criteria criteria = new Criteria(); local
290 Criteria criteria = new Criteria(); local
309 Criteria criteria = new Criteria(); local
374 Criteria criteria = new Criteria(); local
    [all...]
  /frameworks/base/location/java/android/location/
LocationProvider.java 27 * <p> Each provider has a set of criteria under which it may be used;
33 * Criteria} class allows providers to be selected based on
34 * user-specified criteria.
75 * Returns true if this provider meets the given criteria,
78 public boolean meetsCriteria(Criteria criteria) {
79 return propertiesMeetCriteria(mName, mProperties, criteria);
86 Criteria criteria) {
97 if (criteria.getAccuracy() != Criteria.NO_REQUIREMENT &
    [all...]
Criteria.java 23 * A class indicating the application criteria for selecting a
28 public class Criteria implements Parcelable {
95 * Constructs a new Criteria object. The new object will have no
100 public Criteria() {}
103 * Constructs a new Criteria object that is a copy of the given criteria.
105 public Criteria(Criteria criteria) {
106 mHorizontalAccuracy = criteria.mHorizontalAccuracy
    [all...]
ILocationManager.aidl 21 import android.location.Criteria;
65 List<String> getProviders(in Criteria criteria, boolean enabledOnly);
66 String getBestProvider(in Criteria criteria, boolean enabledOnly);
67 boolean providerMeetsCriteria(String provider, in Criteria criteria);
LocationManager.java 377 * criteria, or null if none do. Only providers that are permitted to be
380 * @param criteria the criteria that the returned providers must match
385 public List<String> getProviders(Criteria criteria, boolean enabledOnly) {
386 checkCriteria(criteria);
388 return mService.getProviders(criteria, enabledOnly);
396 * Returns the name of the provider that best meets the given criteria. Only providers
398 * returned. If several providers meet the criteria, the one with the best
399 * accuracy is returned. If no provider meets the criteria,
    [all...]
LocationRequest.java 194 public static LocationRequest createFromDeprecatedCriteria(Criteria criteria, long minTime,
200 switch (criteria.getAccuracy()) {
201 case Criteria.ACCURACY_COARSE:
204 case Criteria.ACCURACY_FINE:
208 switch (criteria.getPowerRequirement()) {
209 case Criteria.POWER_HIGH:
  /external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
CriteriaHelper.java 10 * Helper methods for creating and managing criteria.
13 * If possible, use callbacks or testing delegates instead of criteria as they
14 * do not introduce any polling delays. Should only use Criteria if no suitable
19 /** The default maximum time to wait for a criteria to become valid. */
21 /** The default polling interval to wait between checking for a satisfied criteria. */
25 * Checks whether the given Criteria is satisfied at a given interval, until either
26 * the criteria is satisfied, or the specified maxTimeoutMs number of ms has elapsed.
27 * @param criteria The Criteria that will be checked.
31 * @return true iff checking has ended with the criteria being satisfied
    [all...]
CallbackHelper.java 199 * Blocks until the criteria is satisfied or throws an exception
204 public void waitUntilCriteria(Criteria criteria, long timeout, TimeUnit unit)
208 boolean isSatisfied = criteria.isSatisfied();
212 isSatisfied = criteria.isSatisfied();
218 public void waitUntilCriteria(Criteria criteria)
220 waitUntilCriteria(criteria, WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCriteria.java 3 import android.location.Criteria;
8 @Implements(Criteria.class)
10 private int accuracy = Criteria.NO_REQUIREMENT;
15 private int powerRequirement = Criteria.NO_REQUIREMENT;
17 public void __constructor__(Criteria criteria) {
18 accuracy = criteria.getAccuracy();
19 powerRequirement = criteria.getPowerRequirement();
45 if (!(obj instanceof Criteria)) {
48 Criteria criteria = (Criteria) obj local
    [all...]
ShadowLocationManager.java 6 import android.location.Criteria;
26 private final Map<PendingIntent, Criteria> requestLocationUdpateCriteriaPendingIntents = new HashMap<PendingIntent, Criteria>();
30 private Criteria lastBestProviderCriteria;
67 public void setProviderEnabled(String provider, boolean isEnabled, List<Criteria> criteria) {
73 providerEntry.criteria = criteria;
133 * Returns the best provider with respect to the passed criteria (if any) and its status. If no criteria are passe
371 private List<Criteria> criteria; field in class:ShadowLocationManager.LocationProviderEntry
    [all...]
  /external/opencv/cv/src/
cvposit.cpp 113 float focalLength, CvTermCriteria criteria,
119 float diff = (float)criteria.epsilon;
139 if( (criteria.type == 0) || (criteria.type > (CV_TERMCRIT_ITER | CV_TERMCRIT_EPS)))
141 if( (criteria.type & CV_TERMCRIT_EPS) && criteria.epsilon < 0 )
143 if( (criteria.type & CV_TERMCRIT_ITER) && criteria.max_iter <= 0 )
233 converged = ((criteria.type & CV_TERMCRIT_EPS) && (diff < criteria.epsilon))
    [all...]
cvcamshift.cpp 62 CvTermCriteria criteria, CvConnectedComp* comp )
91 CV_CALL( criteria = cvCheckTermCriteria( criteria, 1., 100 ));
93 eps = cvRound( criteria.epsilon * criteria.epsilon );
95 for( i = 0; i < criteria.max_iter; i++ )
153 // criteria - criteria of stop finding window
166 CvTermCriteria criteria,
190 CV_CALL( itersUsed = cvMeanShift( mat, windowIn, criteria, &comp ))
    [all...]
cvcornersubpix.cpp 46 CvTermCriteria criteria )
95 switch( criteria.type )
99 max_iters = criteria.max_iter;
102 eps = criteria.epsilon;
106 eps = criteria.epsilon;
107 max_iters = criteria.max_iter;
cvsnakes.cpp 63 // criteria - termination criteria.
79 int coeffUsage, CvSize win, CvTermCriteria criteria, int scheme )
388 if( (criteria.type & CV_TERMCRIT_ITER) && (iteration >= criteria.max_iter) )
390 if( (criteria.type & CV_TERMCRIT_EPS) && (moved <= criteria.epsilon) )
413 CvTermCriteria criteria, int calcGradient )
433 alpha, beta, gamma, coeffUsage, win, criteria,
cvoptflowhs.cpp 70 // criteria - criteria of termination processmaximum number of iterations
95 CvTermCriteria criteria )
378 if( criteria.type & CV_TERMCRIT_EPS )
404 if( criteria.type & CV_TERMCRIT_EPS )
434 if( criteria.type & CV_TERMCRIT_EPS )
459 if( (criteria.type & CV_TERMCRIT_ITER) && (iter == criteria.max_iter) )
461 if( (criteria.type & CV_TERMCRIT_EPS) && (Eps < criteria.epsilon)
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
LocationProviderFactory.java 8 import android.location.Criteria;
152 Criteria criteria = new Criteria(); local
153 mLocationManager.requestLocationUpdates(0, 0, criteria, this,
156 criteria.setAccuracy(Criteria.ACCURACY_FINE);
157 mLocationManager.requestLocationUpdates(0, 0, criteria, this,
  /external/chromium_org/third_party/mesa/src/src/egl/main/
eglconfig.c 126 /* criteria */
422 * Return true if a config matches the criteria. This and
430 _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria)
441 cmp = _eglGetConfigKey(criteria, attr);
474 "the value (0x%x) of attribute 0x%04x did not meet the criteria (0x%x)",
500 * Initialize a criteria config from the given attribute list.
561 * Decide the ordering of conf1 and conf2, under the given criteria.
575 const _EGLConfig *criteria, EGLBoolean compare_id)
604 if (criteria) {
607 if (criteria->RedSize > 0)
779 _EGLConfig criteria; local
    [all...]
  /external/mesa3d/src/egl/main/
eglconfig.c 126 /* criteria */
422 * Return true if a config matches the criteria. This and
430 _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria)
441 cmp = _eglGetConfigKey(criteria, attr);
474 "the value (0x%x) of attribute 0x%04x did not meet the criteria (0x%x)",
500 * Initialize a criteria config from the given attribute list.
561 * Decide the ordering of conf1 and conf2, under the given criteria.
575 const _EGLConfig *criteria, EGLBoolean compare_id)
604 if (criteria) {
607 if (criteria->RedSize > 0)
779 _EGLConfig criteria; local
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.help_3.5.0.v20100524.jar 
  /external/opencv/cv/include/
cv.hpp 373 CvLevMarq( int nparams, int nerrs, CvTermCriteria criteria=
377 void init( int nparams, int nerrs, CvTermCriteria criteria=
399 CvTermCriteria criteria; member in struct:CvLevMarq
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/
egl_g3d_api.c 90 _EGLConfig criteria; member in struct:egl_g3d_choose_config_data
100 const _EGLConfig *criteria = &data->criteria;; local
103 return _eglCompareConfigs(conf1, conf2, criteria, EGL_TRUE);
117 return _eglMatchConfig(conf, &data->criteria);
126 if (!_eglParseConfigAttribList(&data.criteria, dpy, attribs))
130 if (data.criteria.MatchNativePixmap != EGL_NONE &&
131 data.criteria.MatchNativePixmap != EGL_DONT_CARE) {
135 (EGLNativePixmapType) data.criteria.MatchNativePixmap,

Completed in 352 milliseconds

1 2 3