/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformTest.java | 116 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/ |
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-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 150 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/ |
D | QuiescentBootTests.java | 60 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp() 67 if (hasDeviceFeature(FEATURE_LEANBACK_ONLY)) { in tearDown()
|
D | InattentiveSleepTests.java | 79 assumeTrue("Test only applicable to TVs.", hasDeviceFeature(FEATURE_LEANBACK_ONLY)); in setUp()
|
/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 | 965 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/ |
D | CtsFrameTracerDataSourceTest.java | 53 assumeFalse(hasDeviceFeature(feature)); in bypassTestForFeatures()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 85 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/ |
D | ShellCommandFromAppTest.java | 80 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
|
D | MultiUserTest.java | 93 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
|
D | InputMethodServiceLifecycleTest.java | 78 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
|
/cts/hostsidetests/media/src/android/media/session/cts/ |
D | MediaSessionManagerHostTest.java | 202 if (!hasDeviceFeature("android.software.managed_users")) { in testGetActiveSessions_managedProfiles()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 208 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()
|
D | CrossProfileAppsHostSideTest.java | 61 mHasManagedUserFeature = hasDeviceFeature("android.software.managed_users"); in setUp()
|
D | DeviceAndProfileOwnerTest.java | 900 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/ |
D | BaseMultiUserTest.java | 276 protected boolean hasDeviceFeature(String requiredFeature) throws DeviceNotAvailableException { in hasDeviceFeature() method in BaseMultiUserTest
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayTestBase.java | 850 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/ |
D | AppDataIsolationTests.java | 187 hasDeviceFeature("android.software.secure_lock_screen")); in testDirectBootModeWorks()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupWindowTest.java | 1750 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
|