Home
last modified time | relevance | path

Searched refs:hasDeviceFeature (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformTest.java117 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/
DConfigurationScreenLayoutTest.java104 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/
DPackageUtil.java118 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/
DPackageUtil.java132 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/
DMixedDeviceOwnerHostSideTransferTest.java53 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipCompleteCallback()
76 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipInComp()
DMixedProfileOwnerHostSideTransferTest.java32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
DManagedProfileProvisioningSingleAdminTest.java35 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
DDevicePlusProfileOwnerHostSideTransferTest.java21 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
DCustomManagedProfileTest.java30 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
DDeviceOwnerTest.java124 && 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()
DManagedProfileTest.java111 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()
DMixedManagedProfileOwnerTestApi25.java32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
DManagedProfileProvisioningTest.java30 mHasFeature = mHasFeature && hasDeviceFeature( in setUp()
DProfileOwnerTest.java51 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi()
DQuietModeHostsideTest.java27 mHasFeature = mHasFeature & hasDeviceFeature("android.software.managed_users"); in setUp()
DEphemeralUserTest.java61 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users") in testProfileInheritsEphemeral()
DMixedManagedProfileOwnerTest.java37 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
DCrossProfileAppsHostSideTest.java38 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
DLauncherAppsProfileTest.java45 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
DUserRestrictionsTest.java48 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
DBaseDevicePolicyTest.java155 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/
DTvInputManagerHostTest.java81 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/
DActivityManagerTestBase.java768 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/
DShellCommandFromAppTest.java80 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java219 if (!hasDeviceFeature("android.software.managed_users")) { in testGetActiveSessions_managedProfiles()

12