Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformTest.java116 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in testVulkanPreTransformSetToMatchCurrentTransform()
117 || !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-axt/src/com/android/compatibility/common/util/
DPackageUtil.java150 private static boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PackageUtil
161 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
162 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation()
/cts/hostsidetests/os/src/android/os/cts/
DQuiescentBootTests.java60 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp()
67 if (hasDeviceFeature(FEATURE_LEANBACK_ONLY)) { in tearDown()
DInattentiveSleepTests.java79 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp()
/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.java965 return hasDeviceFeature(FEATURE_VR_MODE_HIGH_PERFORMANCE); in supportsVrMode()
969 return hasDeviceFeature(FEATURE_PICTURE_IN_PICTURE) in supportsPip()
974 return hasDeviceFeature(FEATURE_FREEFORM_WINDOW_MANAGEMENT) in supportsFreeform()
985 return hasDeviceFeature(FEATURE_SECURE_LOCK_SCREEN); in supportsSecureLock()
990 return !hasDeviceFeature(FEATURE_LEANBACK) in supportsInsecureLock()
991 && !hasDeviceFeature(FEATURE_WATCH) in supportsInsecureLock()
992 && !hasDeviceFeature(FEATURE_EMBEDDED) in supportsInsecureLock()
993 && !hasDeviceFeature(FEATURE_AUTOMOTIVE) in supportsInsecureLock()
1003 return hasDeviceFeature(FEATURE_WATCH); in isWatch()
1007 return hasDeviceFeature(FEATURE_AUTOMOTIVE); in isCar()
[all …]
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsFrameTracerDataSourceTest.java53 assumeFalse(hasDeviceFeature(feature)); in bypassTestForFeatures()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java85 mHasFeature = hasDeviceFeature("android.software.device_admin"); in setUp()
238 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in PrivacyDeviceOwnerTest
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DShellCommandFromAppTest.java80 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
DMultiUserTest.java93 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
DInputMethodServiceLifecycleTest.java78 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java202 if (!hasDeviceFeature("android.software.managed_users")) { in testGetActiveSessions_managedProfiles()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java208 if (hasDeviceFeature(FEATURE_SECURE_LOCK_SCREEN)) { in setUp()
709 assumeTrue("device doesn't have " + feature, hasDeviceFeature(feature)); in assumeHasDeviceFeature()
713 assumeFalse("device has " + feature, hasDeviceFeature(feature)); in assumeDoesNotHaveDeviceFeature()
1318 return hasDeviceFeature(FEATURE_LEANBACK); in isTv()
DCrossProfileAppsHostSideTest.java61 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
DDeviceAndProfileOwnerTest.java900 boolean hasAutofill = hasDeviceFeature("android.software.autofill"); in testDisallowAutofill_allowed()
973 boolean mIsWatch = hasDeviceFeature("android.hardware.type.watch"); in testPackageInstallUserRestrictions()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java276 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in BaseMultiUserTest
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java850 return hasDeviceFeature(FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS); in supportsMultiDisplay()
855 return hasDeviceFeature(PackageManager.FEATURE_LIVE_WALLPAPER); in supportsLiveWallpaper()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppDataIsolationTests.java187 hasDeviceFeature("android.software.secure_lock_screen")); in testDirectBootModeWorks()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java1750 if (hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testClipToScreenClipsToInsets()
1754 if (hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)) { in testClipToScreenClipsToInsets()
2012 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)) { in testFocusAfterOrientation()
2140 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PopupWindowTest