Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/os/src/android/os/cts/
DCpuFeaturesTest.java89 String feature) { in assertInCpuinfo() argument
90 …assertTrue("/proc/cpuinfo does not advertise required feature " + feature + " to 32-bit ARM proces… in assertInCpuinfo()
91 features.contains(feature)); in assertInCpuinfo()
95 String feature) { in assertNotInCpuinfo() argument
96 … assertFalse("/proc/cpuinfo advertises required feature " + feature + " to 64-bit ARM processes", in assertNotInCpuinfo()
97 features.contains(feature)); in assertNotInCpuinfo()
132 for (String feature : armv8RequiredFeatures) { in testArmCpuinfo()
133 assertInCpuinfo(features, feature); in testArmCpuinfo()
153 for (String feature : armv8RequiredFeatures) { in testArm64Cpuinfo()
154 assertNotInCpuinfo(features, feature); in testArm64Cpuinfo()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DRequiredFeatureRule.java35 public RequiredFeatureRule(String feature) { in RequiredFeatureRule() argument
36 mFeature = feature; in RequiredFeatureRule()
37 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
57 public static boolean hasFeature(String feature) {
58 return InstrumentationRegistry.getContext().getPackageManager().hasSystemFeature(feature);
DFeatureUtil.java40 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() argument
41 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
47 for (String feature : features) { in hasAnySystemFeature()
48 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
58 for (String feature : features) { in hasAllSystemFeatures()
59 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java79 for (FeatureInfo feature : features) { in setup()
80 if (PackageManager.FEATURE_VULKAN_HARDWARE_LEVEL.equals(feature.name)) { in setup()
81 mVulkanHardwareLevel = feature; in setup()
83 Log.d(TAG, feature.name + "=" + feature.version); in setup()
85 } else if (PackageManager.FEATURE_VULKAN_HARDWARE_VERSION.equals(feature.name)) { in setup()
86 mVulkanHardwareVersion = feature; in setup()
88 Log.d(TAG, feature.name + "=0x" + Integer.toHexString(feature.version)); in setup()
90 } else if (PackageManager.FEATURE_VULKAN_HARDWARE_COMPUTE.equals(feature.name)) { in setup()
91 mVulkanHardwareCompute = feature; in setup()
93 Log.d(TAG, feature.name + "=" + feature.version); in setup()
/cts/tests/tests/tv/src/android/tv/settings/cts/
DUtils.java25 public static boolean hasFeature(Context context, String feature) { in hasFeature() argument
26 return context.getPackageManager().hasSystemFeature(feature); in hasFeature()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java78 for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) { in setUp()
79 mAvailableFeatures.add(feature.name); in setUp()
389 String feature = (String) field.get(null); in getFeatureConstantsNames() local
390 features.add(feature); in getFeatureConstantsNames()
522 private void assertAvailable(String feature) { in assertAvailable() argument
523 assertTrue("PackageManager#hasSystemFeature should return true for " + feature, in assertAvailable()
524 mPackageManager.hasSystemFeature(feature)); in assertAvailable()
525 assertTrue("PackageManager#getSystemAvailableFeatures should have " + feature, in assertAvailable()
526 mAvailableFeatures.contains(feature)); in assertAvailable()
529 private void assertNotAvailable(String feature) { in assertNotAvailable() argument
[all …]
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerHostTest.java139 for (String feature: commandOutput.split("\\s+")) { in hasDeviceFeature()
141 String[] tokens = feature.split(":"); in hasDeviceFeature()
142 assertTrue("\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
144 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
DHasFeaturesTx.java43 for (String feature : features) { in HasFeaturesTx()
44 this.features.add(feature); in HasFeaturesTx()
DStartAddAccountSessionTx.java46 for (String feature : requiredFeatures) { in StartAddAccountSessionTx()
47 this.requiredFeatures.add(feature); in StartAddAccountSessionTx()
DAddAccountTx.java49 for (String feature : requiredFeatures) { in AddAccountTx()
50 this.requiredFeatures.add(feature); in AddAccountTx()
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/feature/src/com/android/cts/norestart/feature/
DNoRestartFeatureActivity.java17 package com.android.cts.norestart.feature;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureSummaryActivity.java87 Feature feature = (Feature) o; in equals() local
88 return name.equals(feature.name); in equals()
371 for (String feature : actualFeatures.keySet()) { in onCreate()
372 if (feature == null || "".equals(feature)) in onCreate()
376 row.put("feature", feature); in onCreate()
377 if (feature.startsWith("android")) { // intentionally not "android." in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DISensorTestStateContainer.java78 boolean hasSystemFeature(String feature); in hasSystemFeature() argument
DBaseSensorTestActivity.java343 public boolean hasSystemFeature(String feature) { in hasSystemFeature() argument
345 return pm.hasSystemFeature(feature); in hasSystemFeature()
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/
DAndroid.mk43 include $(LOCAL_PATH)/feature/Android.mk
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java88 String feature = (String) field.get(null); in getPackageManagerFeatures() local
89 features.add(feature); in getPackageManagerFeatures()
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/feature/
DAndroid.mk37 LOCAL_AAPT_FLAGS += --feature-of $(featureOfApk)
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java357 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
359 String[] tokens = feature.split(":"); in hasDeviceFeature()
361 "\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
363 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature/
DAndroid.mk40 LOCAL_AAPT_FLAGS += --feature-of $(featureOfApk)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DManifestTestListAdapter.java287 for (String feature : features) { in hasAnyFeature()
288 if (packageManager.hasSystemFeature(feature)) { in hasAnyFeature()
299 for (String feature : features) { in hasAllFeatures()
300 if (!packageManager.hasSystemFeature(feature)) { in hasAllFeatures()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/
DAndroid.mk140 include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java489 for (String feature: commandOutput.split("\\s+")) { in hasDeviceFeature()
491 String[] tokens = feature.split(":"); in hasDeviceFeature()
492 assertTrue("\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
494 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java308 String feature = (String) field.get(null); in getPackageManagerFeatures() local
309 features.add(feature); in getPackageManagerFeatures()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java375 private void assertStartUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStartUsingNetworkFeatureUnsupported() argument
377 mCm.startUsingNetworkFeature(networkType, feature); in assertStartUsingNetworkFeatureUnsupported()
382 private void assertStopUsingNetworkFeatureUnsupported(int networkType, String feature) { in assertStopUsingNetworkFeatureUnsupported() argument
384 mCm.startUsingNetworkFeature(networkType, feature); in assertStopUsingNetworkFeatureUnsupported()
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java280 for (String feature: features) { in hasFeatures()
281 if (!mockFeatureList.contains(feature)) { in hasFeatures()

12