Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 43) 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.java43 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() argument
44 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
50 for (String feature : features) { in hasAnySystemFeature()
51 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
61 for (String feature : features) { in hasAllSystemFeatures()
62 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFeatureUtil.java44 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() argument
45 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
51 for (String feature : features) { in hasAnySystemFeature()
52 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
62 for (String feature : features) { in hasAllSystemFeatures()
63 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
DRequiredFeatureRule.java42 public RequiredFeatureRule(String feature) { in RequiredFeatureRule() argument
43 mFeature = feature; in RequiredFeatureRule()
44 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
71 public static boolean hasFeature(String feature) {
72 return InstrumentationRegistry.getContext().getPackageManager().hasSystemFeature(feature);
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java85 for (FeatureInfo feature : features) { in setup()
86 if (PackageManager.FEATURE_VULKAN_HARDWARE_LEVEL.equals(feature.name)) { in setup()
87 mVulkanHardwareLevel = feature; in setup()
89 Log.d(TAG, feature.name + "=" + feature.version); in setup()
91 } else if (PackageManager.FEATURE_VULKAN_HARDWARE_VERSION.equals(feature.name)) { in setup()
92 mVulkanHardwareVersion = feature; in setup()
94 Log.d(TAG, feature.name + "=0x" + Integer.toHexString(feature.version)); in setup()
96 } else if (PackageManager.FEATURE_VULKAN_HARDWARE_COMPUTE.equals(feature.name)) { in setup()
97 mVulkanHardwareCompute = feature; in setup()
99 Log.d(TAG, feature.name + "=" + feature.version); in setup()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java92 for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) { in setUp()
93 mAvailableFeatures.add(feature.name); in setUp()
441 String feature = (String) field.get(null); in getFeatureConstantsNames() local
442 features.add(feature); in getFeatureConstantsNames()
621 private void assertAvailable(String feature) { in assertAvailable() argument
622 assertTrue("PackageManager#hasSystemFeature should return true for " + feature, in assertAvailable()
623 mPackageManager.hasSystemFeature(feature)); in assertAvailable()
624 assertTrue("PackageManager#getSystemAvailableFeatures should have " + feature, in assertAvailable()
625 mAvailableFeatures.contains(feature)); in assertAvailable()
628 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/tools/release-parser/tests/resources/
Dandroid.hardware.vulkan.version.xml.pb.txt6 key: "feature"
8 name: "feature"
/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/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()
377 for (String feature : actualFeatures.keySet()) { in onCreate()
378 if (feature == null || "".equals(feature)) in onCreate()
382 row.put("feature", feature); in onCreate()
383 if (feature.startsWith("android")) { // intentionally not "android." in onCreate()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DRequiredFeatureRule.java36 public RequiredFeatureRule(BaseHostJUnit4Test test, String feature) { in RequiredFeatureRule() argument
38 mFeature = feature; in RequiredFeatureRule()
/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestMmTelFeature.java19 import android.telephony.ims.feature.CapabilityChangeRequest;
20 import android.telephony.ims.feature.MmTelFeature;
DTestImsService.java25 import android.telephony.ims.feature.MmTelFeature;
26 import android.telephony.ims.feature.RcsFeature;
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java358 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
360 String[] tokens = feature.split(":"); in hasDeviceFeature()
362 "\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
364 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.cpp58 bool deviceSupportsFeature(const char* feature) { in deviceSupportsFeature() argument
65 if (strstr(line, feature)) { in deviceSupportsFeature()
76 feature, hasFeature ? "" : "not "); in deviceSupportsFeature()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_c/
DAndroid.bp34 // Use the same package ID as feature A, since this is an isolated split
35 // and will not be loaded together with feature A.
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/
DAndroid.bp34 // Although feature splits use unique resource package names, they must all
38 // Assign a unique package ID to this feature split. Since these are
/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/apps/CtsVerifier/src/com/android/cts/verifier/
DManifestTestListAdapter.java309 for (String feature : features) { in hasAnyFeature()
310 if (packageManager.hasSystemFeature(feature)) { in hasAnyFeature()
321 for (String feature : features) { in hasAllFeatures()
322 if (!packageManager.hasSystemFeature(feature)) { in hasAllFeatures()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecPlayerTestBase.java156 for (String feature: features) { in isResolutionSupported()
157 format.setFeatureEnabled(feature, true); in isResolutionSupported()
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/feature/src/com/android/cts/norestart/feature/
DNoRestartFeatureActivity.java17 package com.android.cts.norestart.feature;

12