Home
last modified time | relevance | path

Searched refs:Criteria (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCriteriaTest.java11 import android.location.Criteria;
17 private Criteria criteria;
21 criteria = new Criteria(); in setUp()
26 criteria.setAccuracy(Criteria.ACCURACY_COARSE); in shouldReturnAccuracy()
27 assertThat(Criteria.ACCURACY_COARSE, IsEqual.equalTo(criteria.getAccuracy())); in shouldReturnAccuracy()
32 criteria.setPowerRequirement(Criteria.POWER_HIGH); in shouldReturnPowerRequirement()
33 assertThat(Criteria.POWER_HIGH, IsEqual.equalTo(criteria.getPowerRequirement())); in shouldReturnPowerRequirement()
38 criteria.setPowerRequirement(Criteria.POWER_HIGH); in shouldBeEqual()
39 criteria.setAccuracy(Criteria.ACCURACY_COARSE); in shouldBeEqual()
41 Criteria criteria1 = new Criteria(criteria); in shouldBeEqual()
[all …]
DLocationManagerTest.java6 import android.location.Criteria;
185 Criteria criteria = new Criteria(); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
186 criteria.setAccuracy(Criteria.ACCURACY_FINE); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
193 Map<PendingIntent, Criteria> expectedCriteria = new HashMap<PendingIntent, Criteria>(); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
236 Criteria criteria = new Criteria(); in shouldStoreBestProviderCriteriaAndEnabledOnlyFlag()
244 Criteria criteria = new Criteria(); in shouldReturnNullIfBestProviderNotExplicitlySet()
254 shadowLocationManager.requestLocationUpdates(0, 0, new Criteria(), null); in shouldThrowExceptionWhenRequestingLocationUpdatesWithANullIntent()
266 Criteria criteria = new Criteria(); in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound()
267 criteria.setAccuracy(Criteria.ACCURACY_FINE); in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound()
278 Criteria criteria = new Criteria(); in shouldThrowExceptionIfTheBestProviderIsUnknown()
[all …]
/external/annotation-tools/annotation-file-utilities/src/annotator/find/
DInstanceOfCriterion.java31 Criteria.dbug.debug("return null"); in isSatisfiedBy()
37 Criteria.dbug.debug("%n%s%n", this.toString()); in isSatisfiedBy()
38 Criteria.dbug.debug("InstanceOfCriterion.isSatisfiedBy: %s%n", leaf); in isSatisfiedBy()
39 Criteria.dbug.debug("leaf: %s%n", leaf); in isSatisfiedBy()
40 Criteria.dbug.debug("kind: %s%n", leaf.getKind()); in isSatisfiedBy()
41 Criteria.dbug.debug("class: %s%n", leaf.getClass()); in isSatisfiedBy()
45 Criteria.dbug.debug("return: parent path null%n"); in isSatisfiedBy()
51 Criteria.dbug.debug("return: parent null%n"); in isSatisfiedBy()
58 Criteria.dbug.debug("return: not type part of instanceof%n"); in isSatisfiedBy()
63 Criteria.dbug.debug("return source: %d%n", indexInSource); in isSatisfiedBy()
[all …]
DLambdaCriterion.java30 Criteria.dbug.debug("return null"); in isSatisfiedBy()
36 Criteria.dbug.debug("%n%s%n", this.toString()); in isSatisfiedBy()
37 Criteria.dbug.debug("LambdaCriterion.isSatisfiedBy: %s%n", leaf); in isSatisfiedBy()
38 Criteria.dbug.debug("leaf: %s%n", leaf); in isSatisfiedBy()
39 Criteria.dbug.debug("kind: %s%n", leaf.getKind()); in isSatisfiedBy()
40 Criteria.dbug.debug("class: %s%n", leaf.getClass()); in isSatisfiedBy()
44 Criteria.dbug.debug("return: parent path null%n"); in isSatisfiedBy()
50 Criteria.dbug.debug("return: parent null%n"); in isSatisfiedBy()
58 Criteria.dbug.debug("return source: %d%n", indexInSource); in isSatisfiedBy()
62 Criteria.dbug.debug("return class: %d%n", indexInClass); in isSatisfiedBy()
[all …]
DIsSigMethodCriterion.java137 Criteria.dbug.debug("matchTypeParams() => false:%n"); in matchTypeParam()
138 Criteria.dbug.debug(" type = %s%n", type); in matchTypeParam()
139 Criteria.dbug.debug(" simpleType = %s%n", simpleType); in matchTypeParam()
140 Criteria.dbug.debug(" goalType = %s%n", goalType); in matchTypeParam()
158 Criteria.dbug.debug( in matchTypeParams()
172 Criteria.dbug.debug("matchSimpleType(%s, %s, %s)%n", in matchSimpleType()
288 Criteria.dbug.debug("matchWithPrefix(%s, %s, %s) => %b)%n", in matchWithPrefixOneWay()
312 Criteria.dbug.debug( in isSatisfiedBy()
327 Criteria.dbug.debug("IsSigMethodCriterion.isSatisfiedBy => false: Names don't match%n"); in isSatisfiedBy()
333Criteria.dbug.debug("IsSigMethodCriterion.isSatisfiedBy => false: Number of parameters don't match… in isSatisfiedBy()
[all …]
DReturnTypeCriterion.java17 this.inClassCriterion = Criteria.inClass(className, false); in ReturnTypeCriterion()
19 : Criteria.isSigMethod(methodName); in ReturnTypeCriterion()
34 Criteria.dbug.debug("ReturnTypeCriterion.isSatisfiedBy(%s); this=%n", in isSatisfiedBy()
46 Criteria.dbug.debug("ReturnTypeCriterion.isSatisfiedBy => true%n"); in isSatisfiedBy()
57 Criteria.dbug.debug("ReturnTypeCriterion.isSatisfiedBy => false%n"); in isSatisfiedBy()
DInMethodCriterion.java42 Criteria.dbug.debug("InMethodCriterion.isSatisfiedBy(%s); this=%s%n", in isSatisfiedBy()
50 Criteria.dbug.debug("%s%n", "InMethodCriterion.isSatisfiedBy => b"); in isSatisfiedBy()
62 Criteria.dbug.debug("InMethodCriterion.isSatisfiedBy => %s%n", result); in isSatisfiedBy()
DMethodBoundCriterion.java18 this.sigMethodCriterion = Criteria.inMethod(methodName); in MethodBoundCriterion()
19 this.boundLocationCriterion = Criteria.atBoundLocation(boundLoc); in MethodBoundCriterion()
DClassBoundCriterion.java18 this.notInMethodCriterion = Criteria.notInMethod(); in ClassBoundCriterion()
19 this.boundLocCriterion = Criteria.atBoundLocation(boundLoc); in ClassBoundCriterion()
DFieldCriterion.java20 this.varCriterion = Criteria.is(Tree.Kind.VARIABLE, varName); in FieldCriterion()
21 this.notInMethodCriterion = Criteria.notInMethod(); in FieldCriterion()
DPackageCriterion.java37 Criteria.dbug.debug("PackageCriterion.isSatisfiedBy(%s, %s); this=%s%n", in isSatisfiedBy()
51 Criteria.dbug.debug("PackageCriterion.isSatisfiedBy => false%n"); in isSatisfiedBy()
DTypedInsertion.java47 public TypedInsertion(Type type, Criteria criteria, in TypedInsertion()
52 public TypedInsertion(Type type, Criteria criteria, boolean b, in TypedInsertion()
DInPackageCriterion.java42 Criteria.dbug.debug("InPackageCriterion.isSatisfiedBy(%s); this=%s", in isSatisfiedBy()
60 Criteria.dbug.debug("InPackageCriterion.isSatisfiedBy => false"); in isSatisfiedBy()
DAnnotationInsertion.java26 public AnnotationInsertion(String annotation, Criteria criteria, boolean separateLine) { in AnnotationInsertion()
42 this(annotation, new Criteria(), false); in AnnotationInsertion()
DTypeBoundExtendsInsertion.java19 public TypeBoundExtendsInsertion(String text, Criteria criteria, in TypeBoundExtendsInsertion()
DCloseParenthesisInsertion.java10 public CloseParenthesisInsertion(Criteria criteria, in CloseParenthesisInsertion()
DInsertion.java35 private final Criteria criteria;
64 public Insertion(Criteria criteria, boolean separateLine) { in Insertion()
76 public Criteria getCriteria() { in getCriteria()
DCastInsertion.java38 public CastInsertion(Criteria criteria, Type type) { in CastInsertion()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLocationManagerTest.java16 import android.location.Criteria;
186 Criteria criteria = new Criteria(); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
187 criteria.setAccuracy(Criteria.ACCURACY_FINE); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
194 Map<PendingIntent, Criteria> expectedCriteria = new HashMap<>(); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
236 Criteria criteria = new Criteria(); in shouldStoreBestProviderCriteriaAndEnabledOnlyFlag()
244 Criteria criteria = new Criteria(); in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState()
245 criteria.setAccuracy(Criteria.ACCURACY_COARSE); in getBestProvider_returnsProviderBasedOnCriteriaAndEnabledState()
255 shadowLocationManager.requestLocationUpdates(0, 0, new Criteria(), null); in shouldThrowExceptionWhenRequestingLocationUpdatesWithANullIntent()
267 Criteria criteria = new Criteria(); in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound()
268 criteria.setAccuracy(Criteria.ACCURACY_FINE); in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLocationManager.java6 import android.location.Criteria;
26 …ivate final Map<PendingIntent, Criteria> requestLocationUdpateCriteriaPendingIntents = new HashMap…
30 private Criteria lastBestProviderCriteria;
67 public void setProviderEnabled(String provider, boolean isEnabled, List<Criteria> criteria) { in setProviderEnabled()
143 public String getBestProvider(Criteria criteria, boolean enabled) { in getBestProvider()
154 private String getBestProviderWithCriteria(Criteria criteria, boolean enabled) { in getBestProviderWithCriteria()
163 List<Criteria> criteriaList = locationProviderEntry.getValue(); in getBestProviderWithCriteria()
167 for (Criteria criteriaListItem : criteriaList) { in getBestProviderWithCriteria()
179 …cationManager.NETWORK_PROVIDER) && (accuracy == Criteria.ACCURACY_COARSE || powerRequirement == Cr… in getBestProviderWithCriteria()
181 …als(LocationManager.GPS_PROVIDER) && accuracy == Criteria.ACCURACY_FINE && powerRequirement != Cri… in getBestProviderWithCriteria()
[all …]
DShadowCriteria.java3 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) { in __constructor__()
45 if (!(obj instanceof Criteria)) { in equals()
48 Criteria criteria = (Criteria) obj; in equals()
/external/annotation-tools/annotation-file-utilities/src/annotator/specification/
DIndexFileSpecification.java41 import annotator.find.Criteria;
165 CriterionList packageClist = clist.add(Criteria.packageDecl(packageName)); in parsePackage()
204 clist = clist.add(Criteria.inClass(className, true)); in parseClass()
205 CriterionList classClist = clistSansClass.add(Criteria.is(Tree.Kind.CLASS, className)); in parseClass()
212 CriterionList boundList = clist.add(Criteria.classBound(className, boundLoc)); in parseClass()
216 CriterionList innerBoundList = boundList.add(Criteria.atLocation(innerLoc)); in parseClass()
219 CriterionList outerClist = boundList.add(Criteria.atLocation()); in parseClass()
223 clist = clist.add(Criteria.inClass(className, /*exactMatch=*/ false)); in parseClass()
229 CriterionList eiList = clist.add(Criteria.atExtImplsLocation(className, eiLoc)); in parseClass()
234 CriterionList innerBoundList = eiList.add(Criteria.atLocation(innerLoc)); in parseClass()
[all …]
DCriterionList.java3 import annotator.find.Criteria;
74 public Criteria criteria() { in criteria()
75 Criteria criteria = new Criteria(); in criteria()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLocationManager.java6 import android.location.Criteria;
29 …private final Map<PendingIntent, Criteria> requestLocationUdpateCriteriaPendingIntents = new HashM…
34 private Criteria lastBestProviderCriteria;
94 public void setProviderEnabled(String provider, boolean isEnabled, List<Criteria> criteria) { in setProviderEnabled()
160 public String getBestProvider(Criteria criteria, boolean enabled) { in getBestProvider()
171 private String getBestProviderWithCriteria(Criteria criteria, boolean enabled) { in getBestProviderWithCriteria()
180 List<Criteria> criteriaList = locationProviderEntry.getValue(); in getBestProviderWithCriteria()
184 for (Criteria criteriaListItem : criteriaList) { in getBestProviderWithCriteria()
196 …cationManager.NETWORK_PROVIDER) && (accuracy == Criteria.ACCURACY_COARSE || powerRequirement == Cr… in getBestProviderWithCriteria()
198 …als(LocationManager.GPS_PROVIDER) && accuracy == Criteria.ACCURACY_FINE && powerRequirement != Cri… in getBestProviderWithCriteria()
[all …]
/external/parameter-framework/upstream/bindings/c/
DParameterFramework.cpp51 typedef std::map<string, Criterion *> Criteria; typedef
146 pfw::Criteria criteria;
250 static pfw::Criterion *getCriterion(const pfw::Criteria &criteria, const string &name) in getCriterion()
252 pfw::Criteria::const_iterator it = criteria.find(name); in getCriterion()

12