/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformTest.java | 117 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in testVulkanPreTransformSetToMatchCurrentTransform() 118 || !hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testVulkanPreTransformSetToMatchCurrentTransform() 131 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in testVulkanPreTransformNotSetToMatchCurrentTransform() 132 || !hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testVulkanPreTransformNotSetToMatchCurrentTransform() 142 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in VulkanPreTransformTest
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | ConfigurationScreenLayoutTest.java | 104 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in ConfigurationScreenLayoutTest 169 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation() 170 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation() 177 return hasDeviceFeature(PackageManager.FEATURE_PC); in isPC()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 118 private static boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PackageUtil 129 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation() 130 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 132 private static boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PackageUtil 143 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation() 144 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | MixedDeviceOwnerHostSideTransferTest.java | 53 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipCompleteCallback() 76 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipInComp()
|
D | MixedProfileOwnerHostSideTransferTest.java | 32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | ManagedProfileProvisioningSingleAdminTest.java | 35 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | DevicePlusProfileOwnerHostSideTransferTest.java | 21 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | CustomManagedProfileTest.java | 30 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | DeviceOwnerTest.java | 124 && hasDeviceFeature("android.software.managed_users"); in setUp() 158 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi() 716 final boolean hasWifi = hasDeviceFeature("android.hardware.wifi"); in testWifiConfigLockdown() 734 final boolean hasWifi = hasDeviceFeature("android.hardware.wifi"); in testWifiSetHttpProxyTest() 796 if (!hasDeviceFeature("android.software.managed_users")) { in testIsManagedProfileProvisioningAllowed_deviceOwnerIsSet() 1017 if (!mHasFeature || !hasDeviceFeature("android.hardware.telephony")) { in testOverrideApn()
|
D | ManagedProfileTest.java | 111 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp() 112 mHasNfcFeature = hasDeviceFeature("android.hardware.nfc") in setUp() 113 && hasDeviceFeature("android.sofware.nfc.beam"); in setUp() 391 if (!mHasFeature || !hasDeviceFeature(FEATURE_WIFI)) { in testProfileWifiCleanup() 408 if (!mHasFeature || !hasDeviceFeature(FEATURE_WIFI)) { in testWifiMacAddress() 772 boolean hasBluetooth = hasDeviceFeature(FEATURE_BLUETOOTH); in testBluetooth() 788 boolean hasCamera = hasDeviceFeature(FEATURE_CAMERA); in testCameraPolicy() 1275 final boolean hasBluetooth = hasDeviceFeature(FEATURE_BLUETOOTH); in testBluetoothSharingRestriction() 1719 return hasDeviceFeature(FEATURE_TELEPHONY) && hasDeviceFeature(FEATURE_CONNECTION_SERVICE); in shouldRunTelecomTest()
|
D | MixedManagedProfileOwnerTestApi25.java | 32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | ManagedProfileProvisioningTest.java | 30 mHasFeature = mHasFeature && hasDeviceFeature( in setUp()
|
D | ProfileOwnerTest.java | 51 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi()
|
D | QuietModeHostsideTest.java | 27 mHasFeature = mHasFeature & hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | EphemeralUserTest.java | 61 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users") in testProfileInheritsEphemeral()
|
D | MixedManagedProfileOwnerTest.java | 37 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | CrossProfileAppsHostSideTest.java | 38 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | LauncherAppsProfileTest.java | 45 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | UserRestrictionsTest.java | 48 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | BaseDevicePolicyTest.java | 155 mHasFeature = mHasFeature && hasDeviceFeature("android.software.device_admin"); in setUp() 158 mSupportsFbe = hasDeviceFeature("android.software.file_based_encryption"); in setUp() 162 mHasSecureLockScreen = hasDeviceFeature("android.software.secure_lock_screen"); in setUp() 517 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in BaseDevicePolicyTest
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerHostTest.java | 81 mHasFeatureLiveTv = hasDeviceFeature(FEATURE_LIVE_TV); in setUp() 130 private boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in TvInputManagerHostTest
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 768 return hasDeviceFeature(FEATURE_VR_MODE_HIGH_PERFORMANCE); in supportsVrMode() 772 return hasDeviceFeature(FEATURE_PICTURE_IN_PICTURE) in supportsPip() 777 return hasDeviceFeature(FEATURE_FREEFORM_WINDOW_MANAGEMENT) in supportsFreeform() 783 return hasDeviceFeature(FEATURE_SECURE_LOCK_SCREEN); in supportsSecureLock() 788 return !hasDeviceFeature(FEATURE_LEANBACK) in supportsInsecureLock() 789 && !hasDeviceFeature(FEATURE_WATCH) in supportsInsecureLock() 790 && !hasDeviceFeature(FEATURE_EMBEDDED) in supportsInsecureLock() 791 && !hasDeviceFeature(FEATURE_AUTOMOTIVE) in supportsInsecureLock() 796 return hasDeviceFeature(FEATURE_WATCH); in isWatch() 897 final boolean supportsLandscape = hasDeviceFeature(FEATURE_SCREEN_LANDSCAPE); in supportsRotation() [all …]
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | ShellCommandFromAppTest.java | 80 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
|
/cts/hostsidetests/media/src/android/media/session/cts/ |
D | MediaSessionManagerHostTest.java | 219 if (!hasDeviceFeature("android.software.managed_users")) { in testGetActiveSessions_managedProfiles()
|