Home
last modified time | relevance | path

Searched refs:featureName (Results 1 – 8 of 8) sorted by relevance

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java67 for (String featureName : sdkFeatures) { in collectDeviceInfo()
68 boolean hasFeature = packageManager.hasSystemFeature(featureName); in collectDeviceInfo()
69 addFeature(store, featureName, "sdk", hasFeature); in collectDeviceInfo()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DUtils.java44 public static boolean hasFeature(String featureName) { in hasFeature() argument
45 return executeShellCommand("pm list features").contains(featureName); in hasFeature()
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
DHarmfulAppWarningTest.java173 protected boolean hasFeature(String featureName) throws DeviceNotAvailableException { in hasFeature() argument
174 return getDevice().executeShellCommand("pm list features").contains(featureName); in hasFeature()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java272 for (String featureName : getPackageManagerFeatures()) { in getFeatures()
273 checkedFeatures.add(featureName); in getFeatures()
274 boolean hasFeature = packageManager.hasSystemFeature(featureName); in getFeatures()
275 addFeature(features, featureName, "sdk", hasFeature); in getFeatures()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java114 for (String featureName : notOfficialFeatures) { in testFeatureNamespaces()
115 if (featureName != null) { in testFeatureNamespaces()
117 featureName.equals("android.software.preview_sdk")) { in testFeatureNamespaces()
121 assertFalse("Use a different namespace than 'android' for " + featureName, in testFeatureNamespaces()
122 featureName.startsWith("android")); in testFeatureNamespaces()
/cts/tests/location/location_none/src/android/location/cts/none/
DAddressTest.java109 String featureName = "Golden Gate Bridge"; in testAccessFeatureName() local
110 address.setFeatureName(featureName); in testAccessFeatureName()
111 assertEquals(featureName, address.getFeatureName()); in testAccessFeatureName()
/cts/hostsidetests/appcompat/strictjavapackages/src/android/compat/sjp/cts/
DStrictJavaPackagesTest.java1119 private boolean hasFeature(String featureName) throws DeviceNotAvailableException { in hasFeature() argument
1120 return getDevice().executeShellCommand("pm list features").contains(featureName); in hasFeature()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTestOnMockModem.java281 private static boolean hasTelephonyFeature(String featureName) { in hasTelephonyFeature() argument
283 if (!pm.hasSystemFeature(featureName)) { in hasTelephonyFeature()
284 Log.d(TAG, "Skipping test that requires " + featureName); in hasTelephonyFeature()