Home
last modified time | relevance | path

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

/external/robolectric/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/robolectric/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/parameter-framework/bindings/c/
DParameterFramework.cpp49 typedef std::map<string, Criterion *> Criteria; typedef
129 pfw::Criteria criteria;
248 static pfw::Criterion *getCriterion(const pfw::Criteria &criteria, in getCriterion()
251 pfw::Criteria::const_iterator it = criteria.find(name); in getCriterion()
/external/deqp/modules/egl/
DteglChooseConfigReference.cpp44 enum Criteria enum
67 Criteria criteria;
78 AttribRule (EGLenum name_, EGLint value_, Criteria criteria_, SortOrder sortOrder_) in AttribRule()
/external/parameter-framework/tools/coverage/
Dcoverage.py691 class Criteria(Element): class
701 exported = Criteria(self.name)
885 self.criteria = Criteria("CriterionRoot")
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.help_3.5.0.v20100524.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/llvm/docs/
DHowToReleaseLLVM.rst251 Release Qualification Criteria
/external/mesa3d/src/egl/docs/
DEGL_MESA_screen_surface350 Attribute Default Criteria Order Priority
/external/openssh/
Dssh_config.067 require an argument. Criteria may be negated by prepending an
/external/robolectric/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...