Home | History | Annotate | Download | only in cts

Lines Matching defs:feature

78             for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) {
79 mAvailableFeatures.add(feature.name);
178 // Capabilities don't have a matching system feature
204 "the FEATURE_CAMERA_FRONT or FEATURE_CAMERA_EXTERNAL feature",
209 "the FEATURE_CAMERA_FRONT or FEATURE_CAMERA_EXTERNAL feature",
382 /** Get a list of feature constants in PackageManager matching a prefix. */
389 String feature = (String) field.get(null);
390 features.add(feature);
420 * Check that if the PackageManager declares a sensor feature that the device has at least
421 * one sensor that matches that feature. Also check that if a PackageManager does not declare
522 private void assertAvailable(String feature) {
523 assertTrue("PackageManager#hasSystemFeature should return true for " + feature,
524 mPackageManager.hasSystemFeature(feature));
525 assertTrue("PackageManager#getSystemAvailableFeatures should have " + feature,
526 mAvailableFeatures.contains(feature));
529 private void assertNotAvailable(String feature) {
530 assertFalse("PackageManager#hasSystemFeature should NOT return true for " + feature,
531 mPackageManager.hasSystemFeature(feature));
532 assertFalse("PackageManager#getSystemAvailableFeatures should NOT have " + feature,
533 mAvailableFeatures.contains(feature));
546 private void assertFeature(boolean exist, String feature) {
548 assertAvailable(feature);
550 assertNotAvailable(feature);