Home
last modified time | relevance | path

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

123

/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-axt/src/com/android/compatibility/common/util/
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);
DFeatureUtil.java46 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() argument
47 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
53 for (String feature : features) { in hasAnySystemFeature()
54 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
64 for (String feature : features) { in hasAllSystemFeatures()
65 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
/cts/hostsidetests/car/src/android/car/cts/
DOptionalFeatureHostTest.java141 for (String feature : enabledFeaturesOrig) { in testNoFeatureChangeAfterRebootForAdbCommand()
142 getDevice().executeShellCommand("cmd car_service disable-feature %s" + feature); in testNoFeatureChangeAfterRebootForAdbCommand()
147 for (String feature : enabledFeaturesAfterReboot) { in testNoFeatureChangeAfterRebootForAdbCommand()
148 enabledFeaturesOrig.remove(feature); in testNoFeatureChangeAfterRebootForAdbCommand()
164 for (String feature : features) { in findFeatureListFromCarServiceDump()
165 if (feature.isEmpty()) { in findFeatureListFromCarServiceDump()
168 featureList.add(feature); in findFeatureListFromCarServiceDump()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanDeqpLevelTest.java62 for (FeatureInfo feature : features) { in setup()
63 if (PackageManager.FEATURE_VULKAN_HARDWARE_VERSION.equals(feature.name)) { in setup()
64 mVulkanHardwareVersion = feature; in setup()
66 Log.d(TAG, feature.name + "=0x" + Integer.toHexString(feature.version)); in setup()
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()
443 String feature = (String) field.get(null); in getFeatureConstantsNames() local
444 features.add(feature); in getFeatureConstantsNames()
623 private void assertAvailable(String feature) { in assertAvailable() argument
624 assertTrue("PackageManager#hasSystemFeature should return true for " + feature, in assertAvailable()
625 mPackageManager.hasSystemFeature(feature)); in assertAvailable()
626 assertTrue("PackageManager#getSystemAvailableFeatures should have " + feature, in assertAvailable()
627 mAvailableFeatures.contains(feature)); in assertAvailable()
630 private void assertNotAvailable(String feature) { in assertNotAvailable() argument
[all …]
/cts/tests/tests/security/native/
Dutils.cpp22 bool deviceSupportsFeature(const char *feature) { in deviceSupportsFeature() argument
29 if (strstr(line, feature)) { in deviceSupportsFeature()
Dutils.h20 bool deviceSupportsFeature(const char *feature);
/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/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/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/
DAndroid.bp38 // Although feature splits use unique resource package names, they must all
42 // Assign a unique package ID to this feature split. Since these are
65 // Although feature splits use unique resource package names, they must all
69 // Assign a unique package ID to this feature split. Since these are
/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/hostsidetests/adbmanager/src/android/adbmanager/cts/
DAdbManagerHostDeviceTest.java36 private boolean hasFeature(String feature) throws Exception { in hasFeature() argument
37 CommandResult result = getDevice().executeShellV2Command("pm has-feature " + 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/media/src/android/media/cts/
DBaseMultiUserTest.java285 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
287 String[] tokens = feature.split(":"); in hasDeviceFeature()
289 "\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
291 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsFrameTracerDataSourceTest.java52 for (String feature : features) { in bypassTestForFeatures()
53 assumeFalse(hasDeviceFeature(feature)); in bypassTestForFeatures()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java244 for (String feature : commandOutput.split("\\s+")) { in hasDeviceFeature()
246 String[] tokens = feature.split(":"); in hasDeviceFeature()
248 "\"" + feature + "\" expected to have format feature:{FEATURE_VALUE}", in hasDeviceFeature()
250 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_c/
DAndroid.bp37 // Use the same package ID as feature A, since this is an isolated split
38 // and will not be loaded together with feature A.
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestMmTelFeature.java20 import android.telephony.ims.feature.CapabilityChangeRequest;
21 import android.telephony.ims.feature.MmTelFeature;
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature_warm/src/com/android/cts/splitapp/feature/warm/
DEmptyActivity.java17 package com.android.cts.splitapp.feature.warm;

123