/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));
|
/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; 74 List<String> getProviders(in Criteria criteria, boolean enabledOnly); 75 String getBestProvider(in Criteria criteria, boolean enabledOnly); 76 boolean providerMeetsCriteria(String provider, in Criteria criteria);
|
LocationManager.java | 382 * criteria, or null if none do. Only providers that are permitted to be 385 * @param criteria the criteria that the returned providers must match 390 public List<String> getProviders(Criteria criteria, boolean enabledOnly) { 391 checkCriteria(criteria); 393 return mService.getProviders(criteria, enabledOnly); 401 * Returns the name of the provider that best meets the given criteria. Only providers 403 * returned. If several providers meet the criteria, the one with the best 404 * accuracy is returned. If no provider meets the criteria, [all...] |
/external/chromium_org/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/ |
CriteriaHelper.java | 12 * Helper methods for creating and managing criteria. 14 * If possible, use callbacks or testing delegates instead of criteria as they 15 * do not introduce any polling delays. Should only use Criteria if no suitable 20 /** The default maximum time to wait for a criteria to become valid. */ 25 * criteria. 30 * Checks whether the given Criteria is satisfied at a given interval, until 31 * either the criteria is satisfied, or the specified maxTimeoutMs number of 34 * @param criteria The Criteria that will be checked. 38 * @return true iff checking has ended with the criteria being satisfied [all...] |
/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/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
CriteriaHelper.java | 16 * Helper methods for creating and managing criteria. 19 * If possible, use callbacks or testing delegates instead of criteria as they 20 * do not introduce any polling delays. Should only use Criteria if no suitable 25 /** The default maximum time to wait for a criteria to become valid. */ 27 /** The default polling interval to wait between checking for a satisfied criteria. */ 31 * Checks whether the given Criteria is satisfied at a given interval, until either 32 * the criteria is satisfied, or the specified maxTimeoutMs number of ms has elapsed. 33 * @param criteria The Criteria that will be checked. 37 * @return true iff checking has ended with the criteria being satisfied [all...] |
CallbackHelper.java | 201 * Blocks until the criteria is satisfied or throws an exception 206 public void waitUntilCriteria(Criteria criteria, long timeout, TimeUnit unit) 210 boolean isSatisfied = criteria.isSatisfied(); 214 isSatisfied = criteria.isSatisfied(); 220 public void waitUntilCriteria(Criteria criteria) 222 waitUntilCriteria(criteria, WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
/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...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioMixingRule.java | 40 private AudioMixingRule(ArrayList<AttributeMatchCriterion> criteria) { 41 mCriteria = criteria;
|
AudioPolicyConfig.java | 74 final ArrayList<AttributeMatchCriterion> criteria = mix.getRule().getCriteria(); local 75 dest.writeInt(criteria.size()); 76 for (AttributeMatchCriterion criterion : criteria) { 150 final ArrayList<AttributeMatchCriterion> criteria = mix.getRule().getCriteria(); local 151 for (AttributeMatchCriterion criterion : criteria) {
|
/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/content/public/android/javatests/src/org/chromium/content/browser/ |
ScreenOrientationProviderTest.java | 69 OrientationChangeObserverCriteria criteria = local 74 return CriteriaHelper.pollForCriteria(criteria); 96 OrientationChangeObserverCriteria criteria = local 98 CriteriaHelper.pollForCriteria(criteria);
|
ScreenOrientationListenerTest.java | 66 OrientationChangeObserverCriteria criteria = new OrientationChangeObserverCriteria( local 71 return CriteriaHelper.pollForCriteria(criteria);
|
/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...] |