Home
last modified time | relevance | path

Searched refs:hasFeature (Results 1 – 25 of 72) sorted by relevance

123

/cts/hostsidetests/adbmanager/src/android/adbmanager/cts/
DAdbManagerHostDeviceTest.java36 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/hostsidetests/telephonyprovider/src/android/telephonyprovider/cts/
DTelephonyProviderHostTest.java37 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/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java75 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/tests/tests/tv/src/android/tv/settings/cts/
DUtils.java25 public static boolean hasFeature(Context context, String feature) { in hasFeature() method in Utils
30 return hasFeature(context, PackageManager.FEATURE_LEANBACK); in hasLeanback()
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java55 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()
DToolbarActionBarTest.java42 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOptionsMenuKey()
59 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOpenOptionsMenu()
DActionBarTest.java91 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL) in testOptionsMenuKey()
112 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL) in testOpenOptionsMenu()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DDirectBootHostTest.java203 getDevice().hasFeature(FEATURE_DEVICE_ADMIN)); in assumeSupportedDevice()
205 getDevice().hasFeature(FEATURE_SECURE_LOCK_SCREEN)); in assumeSupportedDevice()
210 getDevice().hasFeature("feature:android.hardware.security.model.compatible")); in assumeSupportedDevice()
215 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
DDocumentsTest.java182 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()
DAdoptableHostTest.java131 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()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java156 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testChargingStateChangedAtom()
206 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testPluggedStateChangedAtom()
257 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testBatteryLevelChangedAtom()
338 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testBatterySaverModeStateChangedAtom()
372 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testRemainingBatteryCapacity()
373 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testRemainingBatteryCapacity()
394 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testFullBatteryCapacity()
395 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testFullBatteryCapacity()
414 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testBatteryVoltage()
434 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testBatteryLevel()
[all …]
DUidAtomTests.java212 if (DeviceUtils.hasFeature(getDevice(), FEATURE_TV)
247 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_AUDIO_OUTPUT)) return;
282 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_CAMERA) && !DeviceUtils.hasFeature(
307 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LEANBACK_ONLY)) return; in testDeviceCalculatedPowerUse()
327 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LEANBACK_ONLY)) return; in testDeviceCalculatedPowerBlameUid()
366 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_CAMERA_FLASH)) return; in testFlashlightState()
459 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LOCATION_GPS)) return; in testGpsScan()
503 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testMediaCodecActivity()
539 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testOverlayState()
568 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH) || in testPictureInPictureState()
[all …]
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseBackupHostSideTest.java193 boolean hasFeature = false; in apply()
195 hasFeature = mReceiver.getTestInformation().getDevice() in apply()
196 .hasFeature(mFeature); in apply()
202 if (!hasFeature) { in apply()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRequiredFeatureRule.java44 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
71 public static boolean hasFeature(String feature) {
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.cpp59 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/telephony/
DTelephonyStatsTests.java108 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/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/
DAlarmStatsTests.java67 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/bluetooth/
DBluetoothStatsTests.java68 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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java68 boolean hasFeature = packageManager.hasSystemFeature(featureName); in collectDeviceInfo()
69 addFeature(store, featureName, "sdk", hasFeature); in collectDeviceInfo()
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
DHarmfulAppWarningTest.java87 assumeFalse(hasFeature(FEATURE_WEARABLE)); in setUp()
164 protected boolean hasFeature(String featureName) throws DeviceNotAvailableException { in hasFeature() method in HarmfulAppWarningTest
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DPackageInstallerV2StatsTests.java52 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_INCREMENTAL_DELIVERY)) { in testPackageInstallerV2MetricsReported()
68 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_INCREMENTAL_DELIVERY)) { in testPackageInstallerV2MetricsReportedForSplits()
DIncrementalAppErrorStatsTests.java72 if (!getDevice().hasFeature(FEATURE_INCREMENTAL_DELIVERY)) { in setUp()
135 if (!getDevice().hasFeature(FEATURE_INCREMENTAL_DELIVERY)) { in testAppCrashOnIncremental()
179 if (!getDevice().hasFeature(FEATURE_INCREMENTAL_DELIVERY)) { in testAppAnrIncremental()
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java62 mSupportsManagedUsers = getDevice().hasFeature(FEATURE_MANAGED_USERS); in setUp()
154 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
/cts/hostsidetests/incident/src/com/android/server/cts/
DUsbIncidentTest.java47 boolean hasUsbHost = device.hasFeature(FEATURE_USB_HOST); in hasUsbFunctionality()
48 boolean hasUsbAccessory = device.hasFeature(FEATURE_USB_ACCESSORY); in hasUsbFunctionality()
/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java493 boolean hasFeature = false; in apply()
495 hasFeature = mReceiver.getTestInformation().getDevice() in apply()
496 .hasFeature(mFeature); in apply()
502 if (!hasFeature) { in apply()

123