/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | HostAtomTests.java | 109 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testChargingStateChangedAtom() 162 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testPluggedStateChangedAtom() 215 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testBatteryLevelChangedAtom() 302 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testBatterySaverModeStateChangedAtom() 339 if (!hasFeature(FEATURE_WATCH, false)) return; in testRemainingBatteryCapacity() 340 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testRemainingBatteryCapacity() 365 if (!hasFeature(FEATURE_WATCH, false)) return; in testFullBatteryCapacity() 366 if (!hasFeature(FEATURE_AUTOMOTIVE, false)) return; in testFullBatteryCapacity() 390 if (!hasFeature(FEATURE_WATCH, false)) return; in testBatteryVoltage() 415 if (!hasFeature(FEATURE_WATCH, false)) return; in testBatteryLevel() [all …]
|
D | UidAtomTests.java | 162 if (!hasFeature(FEATURE_AUDIO_OUTPUT, true)) return; in testAudioState() 193 if (!hasFeature(FEATURE_BLUETOOTH_LE, true)) return; in testBleScan() 215 if (!hasFeature(FEATURE_BLUETOOTH_LE, true)) return; in testBleUnoptimizedScan() 259 if (!hasFeature(FEATURE_BLUETOOTH_LE, true)) return; in testBleScanResult() 317 if (!hasFeature(FEATURE_CAMERA, true) && !hasFeature(FEATURE_CAMERA_FRONT, true)) return; in testCameraState() 341 if (!hasFeature(FEATURE_WATCH, false)) return; in testCpuTimePerUid() 373 if (!hasFeature(FEATURE_LEANBACK_ONLY, false)) return; in testDeviceCalculatedPowerUse() 395 if (!hasFeature(FEATURE_LEANBACK_ONLY, false)) return; in testDeviceCalculatedPowerBlameUid() 450 if (!hasFeature(FEATURE_CAMERA_FLASH, true)) return; in testFlashlightState() 508 if (!hasFeature(FEATURE_LOCATION_GPS, true)) return; in testGpsScan() [all …]
|
D | GarageModeAtomTests.java | 39 if (!hasFeature(FEATURE_AUTOMOTIVE, true)) { in testGarageModeOnOff()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityActionModeTest.java | 55 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartPrimaryActionMode() 69 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartFloatingActionMode() 83 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartTypelessActionMode()
|
D | ToolbarActionBarTest.java | 42 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOptionsMenuKey() 59 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOpenOptionsMenu()
|
D | ActionBarTest.java | 94 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL) in testOptionsMenuKey() 115 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL) in testOpenOptionsMenu()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AdoptableHostTest.java | 82 final boolean hasFeature = hasFeature(); in testFeatureConsistent() 84 if (hasFeature != hasFstab) { in testFeatureConsistent() 85 fail("Inconsistent adoptable storage status; feature claims " + hasFeature in testFeatureConsistent() 329 return hasFeature() || hasFstab(); in isSupportedDevice() 332 private boolean hasFeature() throws Exception { in hasFeature() method in AdoptableHostTest 333 return getDevice().hasFeature(FEATURE_ADOPTABLE_STORAGE); in hasFeature()
|
D | PermissionsHostTest.java | 420 if (getDevice().hasFeature("feature:android.software.leanback")) { in testPermissionSplit28() 429 if (getDevice().hasFeature("feature:android.software.leanback")) { in testPermissionNotSplit29() 444 if (getDevice().hasFeature("feature:android.software.leanback")) { in testRequestBoth() 453 if (getDevice().hasFeature("feature:android.software.leanback")) { in testRequestBothInSequence() 462 if (getDevice().hasFeature("feature:android.software.leanback")) { in testRequestBothButGrantInSequence() 471 if (getDevice().hasFeature("feature:android.software.leanback")) { in testDenyBackgroundWithPrejudice() 480 if (getDevice().hasFeature("feature:android.software.leanback")) { in testPermissionNotSplitLatest()
|
D | DirectBootHostTest.java | 216 return getDevice().hasFeature(FEATURE_DEVICE_ADMIN); in isSupportedDevice() 220 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
|
D | AuthBoundKeyTest.java | 55 getDevice().hasFeature("android.software.secure_lock_screen")); in useInvalidatedAuthBoundKey()
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
D | Utils.java | 25 public static boolean hasFeature(Context context, String feature) { in hasFeature() method in Utils 30 return hasFeature(context, PackageManager.FEATURE_LEANBACK); in hasLeanback()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | utils.cpp | 59 bool hasFeature = false; in deviceSupportsFeature() local 66 hasFeature = true; in deviceSupportsFeature() 76 feature, hasFeature ? "" : "not "); in deviceSupportsFeature() 77 return hasFeature; in deviceSupportsFeature()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | RequiredFeatureRule.java | 37 mHasFeature = hasFeature(feature); in RequiredFeatureRule() 57 public static boolean hasFeature(String feature) {
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RequiredFeatureRule.java | 44 mHasFeature = hasFeature(feature); in RequiredFeatureRule() 71 public static boolean hasFeature(String feature) {
|
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/ |
D | HarmfulAppWarningTest.java | 87 assumeFalse(hasFeature(FEATURE_WEARABLE)); in setUp() 164 protected boolean hasFeature(String featureName) throws DeviceNotAvailableException { in hasFeature() method in HarmfulAppWarningTest
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | FeatureDeviceInfo.java | 68 boolean hasFeature = packageManager.hasSystemFeature(featureName); in collectDeviceInfo() 69 addFeature(store, featureName, "sdk", hasFeature); in collectDeviceInfo()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 274 if (noBattery() || !hasFeature(FEATURE_BLUETOOTH_LE, true)) { in testBleScans() 298 if (noBattery() || !hasFeature(FEATURE_BLUETOOTH_LE, true)) { in testUnoptimizedBleScans() 349 if (noBattery() || !hasFeature(FEATURE_LOCATION_GPS, true)) { in testGpsUpdates() 653 private boolean hasFeature(String featureName, boolean requiredAnswer) throws Exception { in hasFeature() method in BatteryStatsValidationTest
|
D | FingerprintIncidentTest.java | 64 if (!device.hasFeature("android.hardware.fingerprint")) { in supportsFingerprint()
|
D | AppWidgetIncidentTest.java | 48 return getDevice().hasFeature("android.software.app_widgets"); in hasAppWidgets()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | RequiredFeatureRule.java | 51 testDevice.hasFeature(mFeature)); in apply()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ProfileOwnerTest.java | 79 final boolean hasBackupService = getDevice().hasFeature(FEATURE_BACKUP); in testBackupServiceEnabling()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 65 && getDevice().hasFeature(FEATURE_TELEPHONY) in setUp() 66 && getDevice().hasFeature(FEATURE_CONNECTION_SERVICE); in setUp()
|
/cts/hostsidetests/wifibroadcasts/src/android/wifibroadcasts/cts/ |
D | WifiBroadcastsHostJUnit4Test.java | 104 if (!device.hasFeature(FEATURE_WIFI)) { in testCleanLogcat()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 145 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 73 mIsBackupSupported = getDevice().hasFeature("feature:" + FEATURE_BACKUP); in setUp()
|