Lines Matching defs:criteria
11 import android.location.Criteria;
17 private Criteria criteria;
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);
33 assertThat(Criteria.POWER_HIGH, IsEqual.equalTo(criteria.getPowerRequirement()));
38 criteria.setPowerRequirement(Criteria.POWER_HIGH);
39 criteria.setAccuracy(Criteria.ACCURACY_COARSE);
41 Criteria criteria1 = new Criteria(criteria);
42 Assert.assertTrue(criteria1.equals(criteria));
44 Criteria criteria2 = new Criteria();
45 criteria2.setPowerRequirement(Criteria.POWER_HIGH);
46 criteria2.setAccuracy(Criteria.ACCURACY_COARSE);
47 Assert.assertTrue(criteria2.equals(criteria));