/cts/tests/tests/os/src/android/os/cts/ |
D | CpuFeaturesTest.java | 89 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/ |
D | RequiredFeatureRule.java | 35 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);
|
D | FeatureUtil.java | 40 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/ |
D | VulkanFeaturesTest.java | 79 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/ |
D | Utils.java | 25 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/ |
D | SystemFeaturesTest.java | 78 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/ |
D | TvInputManagerHostTest.java | 139 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/ |
D | HasFeaturesTx.java | 43 for (String feature : features) { in HasFeaturesTx() 44 this.features.add(feature); in HasFeaturesTx()
|
D | StartAddAccountSessionTx.java | 46 for (String feature : requiredFeatures) { in StartAddAccountSessionTx() 47 this.requiredFeatures.add(feature); in StartAddAccountSessionTx()
|
D | AddAccountTx.java | 49 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/ |
D | NoRestartFeatureActivity.java | 17 package com.android.cts.norestart.feature;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/ |
D | FeatureSummaryActivity.java | 87 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/ |
D | ISensorTestStateContainer.java | 78 boolean hasSystemFeature(String feature); in hasSystemFeature() argument
|
D | BaseSensorTestActivity.java | 343 public boolean hasSystemFeature(String feature) { in hasSystemFeature() argument 345 return pm.hasSystemFeature(feature); in hasSystemFeature()
|
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/ |
D | Android.mk | 43 include $(LOCAL_PATH)/feature/Android.mk
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | FeatureDeviceInfo.java | 88 String feature = (String) field.get(null); in getPackageManagerFeatures() local 89 features.add(feature); in getPackageManagerFeatures()
|
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/feature/ |
D | Android.mk | 37 LOCAL_AAPT_FLAGS += --feature-of $(featureOfApk)
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 357 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/ |
D | Android.mk | 40 LOCAL_AAPT_FLAGS += --feature-of $(featureOfApk)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ManifestTestListAdapter.java | 287 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/ |
D | Android.mk | 140 include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 489 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/ |
D | DeviceInfoInstrument.java | 308 String feature = (String) field.get(null); in getPackageManagerFeatures() local 309 features.add(feature); in getPackageManagerFeatures()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 375 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/ |
D | MockAccountAuthenticator.java | 280 for (String feature: features) { in hasFeatures() 281 if (!mockFeatureList.contains(feature)) { in hasFeatures()
|