/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | CriteriaTest.java | 11 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 …]
|
D | LocationManagerTest.java | 6 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/ |
D | InstanceOfCriterion.java | 31 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 …]
|
D | LambdaCriterion.java | 30 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 …]
|
D | IsSigMethodCriterion.java | 137 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() 333 …Criteria.dbug.debug("IsSigMethodCriterion.isSatisfiedBy => false: Number of parameters don't match… in isSatisfiedBy() [all …]
|
D | ReturnTypeCriterion.java | 17 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()
|
D | InMethodCriterion.java | 42 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()
|
D | MethodBoundCriterion.java | 18 this.sigMethodCriterion = Criteria.inMethod(methodName); in MethodBoundCriterion() 19 this.boundLocationCriterion = Criteria.atBoundLocation(boundLoc); in MethodBoundCriterion()
|
D | ClassBoundCriterion.java | 18 this.notInMethodCriterion = Criteria.notInMethod(); in ClassBoundCriterion() 19 this.boundLocCriterion = Criteria.atBoundLocation(boundLoc); in ClassBoundCriterion()
|
D | FieldCriterion.java | 20 this.varCriterion = Criteria.is(Tree.Kind.VARIABLE, varName); in FieldCriterion() 21 this.notInMethodCriterion = Criteria.notInMethod(); in FieldCriterion()
|
D | PackageCriterion.java | 37 Criteria.dbug.debug("PackageCriterion.isSatisfiedBy(%s, %s); this=%s%n", in isSatisfiedBy() 51 Criteria.dbug.debug("PackageCriterion.isSatisfiedBy => false%n"); in isSatisfiedBy()
|
D | TypedInsertion.java | 47 public TypedInsertion(Type type, Criteria criteria, in TypedInsertion() 52 public TypedInsertion(Type type, Criteria criteria, boolean b, in TypedInsertion()
|
D | InPackageCriterion.java | 42 Criteria.dbug.debug("InPackageCriterion.isSatisfiedBy(%s); this=%s", in isSatisfiedBy() 60 Criteria.dbug.debug("InPackageCriterion.isSatisfiedBy => false"); in isSatisfiedBy()
|
D | AnnotationInsertion.java | 26 public AnnotationInsertion(String annotation, Criteria criteria, boolean separateLine) { in AnnotationInsertion() 42 this(annotation, new Criteria(), false); in AnnotationInsertion()
|
D | TypeBoundExtendsInsertion.java | 19 public TypeBoundExtendsInsertion(String text, Criteria criteria, in TypeBoundExtendsInsertion()
|
D | CloseParenthesisInsertion.java | 10 public CloseParenthesisInsertion(Criteria criteria, in CloseParenthesisInsertion()
|
D | Insertion.java | 35 private final Criteria criteria; 64 public Insertion(Criteria criteria, boolean separateLine) { in Insertion() 76 public Criteria getCriteria() { in getCriteria()
|
D | CastInsertion.java | 38 public CastInsertion(Criteria criteria, Type type) { in CastInsertion()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLocationManagerTest.java | 16 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/ |
D | ShadowLocationManager.java | 6 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 …]
|
D | 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) { 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/ |
D | IndexFileSpecification.java | 41 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 …]
|
D | CriterionList.java | 3 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/ |
D | ShadowLocationManager.java | 6 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/ |
D | ParameterFramework.cpp | 51 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()
|