/cts/hostsidetests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | TelephonyProviderHostTest.java | 37 if (!getDevice().hasFeature(FEATURE_TELEPHONY)) { in setUp() 44 if (!getDevice().hasFeature(FEATURE_TELEPHONY)) { in testWithChangeEnabled() 53 if (!getDevice().hasFeature(FEATURE_TELEPHONY)) { in testWithChangeDisabled()
|
/cts/hostsidetests/adbmanager/src/android/adbmanager/cts/ |
D | AdbManagerHostDeviceTest.java | 36 private boolean hasFeature(String feature) throws Exception { in hasFeature() method in AdbManagerHostDeviceTest 44 boolean expected = hasFeature(FEATURE_WIFI); in test_isadbWifiSupported() 55 boolean expected = hasFeature(FEATURE_WIFI) && hasFeature(FEATURE_CAMERA_ANY); in test_isadbWifiQrSupported()
|
/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()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/ |
D | WifiStatsTests.java | 75 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiLockHighPerf() 76 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiLockHighPerf() 104 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiLockLowLatency() 105 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiLockLowLatency() 133 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiMulticastLock() 134 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiMulticastLock() 165 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiReconnect() 211 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiScanLogsScanAtoms() 241 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiScanLogsStateChangedAtoms()
|
/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/appsecurity/src/android/appsecurity/cts/ |
D | DirectBootHostTest.java | 205 getDevice().hasFeature(FEATURE_DEVICE_ADMIN)); in assumeSupportedDevice() 207 getDevice().hasFeature(FEATURE_SECURE_LOCK_SCREEN)); in assumeSupportedDevice() 214 getDevice().hasFeature("feature:android.hardware.security.model.compatible")); in assumeSupportedDevice() 219 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
|
D | DocumentsTest.java | 182 if (getDevice().hasFeature("feature:android.hardware.type.television") in isSupportedHardware() 183 || getDevice().hasFeature("feature:android.hardware.type.watch") in isSupportedHardware() 184 || getDevice().hasFeature("feature:android.hardware.type.automotive")) { in isSupportedHardware()
|
D | AdoptableHostTest.java | 131 final boolean hasFeature = hasFeature(); in testFeatureConsistent() 133 if (hasFeature != hasFstab) { in testFeatureConsistent() 134 fail("Inconsistent adoptable storage status; feature claims " + hasFeature in testFeatureConsistent() 401 return hasFeature() || hasFstab(); in isSupportedDevice() 404 private boolean hasFeature() throws Exception { in hasFeature() method in AdoptableHostTest 405 return getDevice().hasFeature(FEATURE_ADOPTABLE_STORAGE); in hasFeature()
|
D | AuthBoundKeyTest.java | 55 getDevice().hasFeature("android.software.secure_lock_screen")); in useInvalidatedAuthBoundKey()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 193 boolean hasFeature = false; in apply() 195 hasFeature = mReceiver.getTestInformation().getDevice() in apply() 196 .hasFeature(mFeature); in apply() 202 if (!hasFeature) { in apply()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 157 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testChargingStateChangedAtom() 207 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testPluggedStateChangedAtom() 263 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testBatteryLevelChangedAtom() 344 if (DeviceUtils.hasFeature(getDevice(), FEATURE_TWM)) return; in testBatterySaverModeStateChangedAtom() 345 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testBatterySaverModeStateChangedAtom() 379 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testRemainingBatteryCapacity() 380 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testRemainingBatteryCapacity() 401 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testFullBatteryCapacity() 402 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testFullBatteryCapacity() 421 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testBatteryVoltage() [all …]
|
D | UidAtomTests.java | 217 if (DeviceUtils.hasFeature(getDevice(), FEATURE_TV) 253 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_AUDIO_OUTPUT)) return; 291 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_CAMERA) && !DeviceUtils.hasFeature( 316 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LEANBACK_ONLY)) return; in testDeviceCalculatedPowerUse() 336 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LEANBACK_ONLY)) return; in testDeviceCalculatedPowerBlameUid() 375 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_CAMERA_FLASH)) return; in testFlashlightState() 468 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LOCATION_GPS)) return; in testGpsScan() 512 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testMediaCodecActivity() 548 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testOverlayState() 577 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH) || in testPictureInPictureState() [all …]
|
/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/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/ |
D | AlarmStatsTests.java | 67 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testWakeupAlarm() 85 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testAlarmScheduled() 127 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testAlarmBatchDelivered() 146 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testPendingAlarmInfo()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/telephony/ |
D | TelephonyStatsTests.java | 108 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testSimSlotState() 136 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testSupportedRadioAccessFamily() 160 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testCarrierIdTableVersion() 179 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testAirplaneModeEvent_shortToggle() 213 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testAirplaneModeEvent_longToggle() 246 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testModemRestart()
|
/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/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageInstallerV2StatsTests.java | 52 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_INCREMENTAL_DELIVERY)) { in testPackageInstallerV2MetricsReported() 68 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_INCREMENTAL_DELIVERY)) { in testPackageInstallerV2MetricsReportedForSplits()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/ |
D | BluetoothStatsTests.java | 68 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleScan() 90 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleUnoptimizedScan() 125 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleOpportunisticScan() 160 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleScanResult()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 62 mSupportsManagedUsers = getDevice().hasFeature(FEATURE_MANAGED_USERS); in setUp() 154 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | Bug_183613671.java | 38 getDevice().hasFeature("feature:android.hardware.type.automotive")); in setUp()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | RequiredFeatureRule.java | 51 testDevice.hasFeature(mFeature)); in apply()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | UsbIncidentTest.java | 48 boolean hasUsbHost = device.hasFeature(FEATURE_USB_HOST); in hasUsbFunctionality() 49 boolean hasUsbAccessory = device.hasFeature(FEATURE_USB_ACCESSORY); in hasUsbFunctionality()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | MetadataEncryptionTest.java | 77 getDevice().hasFeature("feature:android.hardware.security.model.compatible")); in assumeSecurityModelCompat()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/preferred/ |
D | PreferredActivitiesTest.java | 285 if (Utils.hasFeature(FEATURE_WEARABLE)) { in verifyDialogIsShown() 305 if (!Utils.hasFeature(FEATURE_WEARABLE)) { in findActivityInDialog() 316 if (Utils.hasFeature(FEATURE_WEARABLE)) { in chooseUseAlways()
|