Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformTest.java124 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in testVulkanPreTransformSetToMatchCurrentTransform()
125 || !hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testVulkanPreTransformSetToMatchCurrentTransform()
139 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in testVulkanPreTransformNotSetToMatchCurrentTransform()
140 || !hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testVulkanPreTransformNotSetToMatchCurrentTransform()
150 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in VulkanPreTransformTest
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java116 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in ConfigurationScreenLayoutTest
190 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
191 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation()
198 return hasDeviceFeature(PackageManager.FEATURE_PC); in isPC()
/cts/hostsidetests/os/src/android/os/cts/
DQuiescentBootTests.java57 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp()
64 if (hasDeviceFeature(FEATURE_LEANBACK_ONLY)) { in tearDown()
DInattentiveSleepTests.java85 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java197 private static boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PackageUtil
208 final boolean supportsLandscape = hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
209 final boolean supportsPortrait = hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT); in supportsRotation()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21260.java44 hasDeviceFeature(FEATURE_AUTOMOTIVE)); in testPocCVE_2023_21260()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DFreeformWindowingModeTests.java167 supportsFreeform() && hasDeviceFeature(FEATURE_PC)); in testMultiWindowFullscreenRequest()
187 supportsFreeform() && hasDeviceFeature(FEATURE_PC)); in testMultiWindowFullscreenRequestRejection()
203 !supportsFreeform() || !hasDeviceFeature(FEATURE_PC)); in testMultiWindowFullscreenOnNonPcDevice()
/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/jetpack/src/android/server/wm/jetpack/utils/
DWindowManagerJetpackTestBase.java105 protected boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in WindowManagerJetpackTestBase
119 final boolean supportsLandscape = hasDeviceFeature(FEATURE_SCREEN_LANDSCAPE); in doesDeviceSupportRotation()
120 final boolean supportsPortrait = hasDeviceFeature(FEATURE_SCREEN_PORTRAIT); in doesDeviceSupportRotation()
125 return hasDeviceFeature(FEATURE_PICTURE_IN_PICTURE); in supportsPip()
/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/
DCtsFrameTracerDataSourceTest.java53 assumeFalse(hasDeviceFeature(feature)); in bypassTestForFeatures()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java322 final boolean supportsLandscape = hasDeviceFeature(FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
323 final boolean supportsPortrait = hasDeviceFeature(FEATURE_SCREEN_PORTRAIT); in supportsRotation()
328 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in AnimatorInflaterTest
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java87 mHasFeature = hasDeviceFeature("android.software.device_admin"); in setUp()
241 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in PrivacyDeviceOwnerTest
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java407 final boolean supportsLandscape = hasDeviceFeature(FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
408 final boolean supportsPortrait = hasDeviceFeature(FEATURE_SCREEN_PORTRAIT); in supportsRotation()
413 protected boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in MediaProjectionMirroringTest
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java203 mIsWatch = hasDeviceFeature(FEATURE_WATCH); in setUp()
209 if (hasDeviceFeature(FEATURE_SECURE_LOCK_SCREEN)) { in setUp()
704 assumeTrue("device doesn't have " + feature, hasDeviceFeature(feature)); in assumeHasDeviceFeature()
708 assumeFalse("device has " + feature, hasDeviceFeature(feature)); in assumeDoesNotHaveDeviceFeature()
1328 return hasDeviceFeature(FEATURE_LEANBACK); in isTv()
1332 return hasDeviceFeature(FEATURE_AUTOMOTIVE); in isAutomotive()
DDeviceAndProfileOwnerTest.java542 boolean hasAutofill = hasDeviceFeature("android.software.autofill"); in testDisallowAutofill_allowed()
592 boolean mIsWatch = hasDeviceFeature("android.hardware.type.watch"); in testPackageInstallUserRestrictions()
1288 assumeFalse("is watch", hasDeviceFeature("android.hardware.type.watch")); in assumeIsNotWatch()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DLegacyStorageHostTest.java92 assumeFalse(hasDeviceFeature("android.hardware.type.automotive")); in setup()
DScopedStorageHostTest.java77 assumeFalse(hasDeviceFeature("android.hardware.type.automotive")); in setup()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java298 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in BaseMultiUserTest
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java215 if (!hasDeviceFeature("android.software.managed_users")) { in testGetActiveSessions_managedProfiles()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1191 return hasDeviceFeature(FEATURE_VR_MODE_HIGH_PERFORMANCE); in supportsVrMode()
1195 return hasDeviceFeature(FEATURE_PICTURE_IN_PICTURE) in supportsPip()
1200 return hasDeviceFeature(FEATURE_EXPANDED_PICTURE_IN_PICTURE); in supportsExpandedPip()
1204 return hasDeviceFeature(FEATURE_FREEFORM_WINDOW_MANAGEMENT) in supportsFreeform()
1239 return hasDeviceFeature(FEATURE_WATCH); in isWatch()
1243 return hasDeviceFeature(FEATURE_AUTOMOTIVE); in isCar()
1247 return hasDeviceFeature(FEATURE_TELEVISION); in isLeanBack()
1462 final boolean supportsLandscape = hasDeviceFeature(FEATURE_SCREEN_LANDSCAPE); in supportsRotation()
1463 final boolean supportsPortrait = hasDeviceFeature(FEATURE_SCREEN_PORTRAIT); in supportsRotation()
1501 protected boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in ActivityManagerTestBase
DMultiDisplayTestBase.java663 return hasDeviceFeature(FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS); in supportsMultiDisplay()
668 return hasDeviceFeature(PackageManager.FEATURE_LIVE_WALLPAPER); in supportsLiveWallpaper()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java349 assumeFalse(hasDeviceFeature(ShellCommandUtils.FEATURE_TV_OPERATOR_TIER)); in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppDataIsolationTests.java185 hasDeviceFeature("android.software.secure_lock_screen")); in testDirectBootModeWorks()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java1777 if (hasDeviceFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)) { in testClipToScreenClipsToInsets()
1781 if (hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)) { in testClipToScreenClipsToInsets()
2045 if (!hasDeviceFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)) { in testFocusAfterOrientation()
2173 private boolean hasDeviceFeature(final String requiredFeature) { in hasDeviceFeature() method in PopupWindowTest