Home
last modified time | relevance | path

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

12

/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java109 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 …]
DUidAtomTests.java162 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 …]
DGarageModeAtomTests.java39 if (!hasFeature(FEATURE_AUTOMOTIVE, true)) { in testGarageModeOnOff()
/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.java94 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/
DAdoptableHostTest.java82 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()
DPermissionsHostTest.java420 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()
DDirectBootHostTest.java216 return getDevice().hasFeature(FEATURE_DEVICE_ADMIN); in isSupportedDevice()
220 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
DAuthBoundKeyTest.java55 getDevice().hasFeature("android.software.secure_lock_screen")); in useInvalidatedAuthBoundKey()
/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/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/common/device-side/util/src/com/android/compatibility/common/util/
DRequiredFeatureRule.java37 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
57 public static boolean hasFeature(String feature) {
/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/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/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/incident/src/com/android/server/cts/
DBatteryStatsValidationTest.java274 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
DFingerprintIncidentTest.java64 if (!device.hasFeature("android.hardware.fingerprint")) { in supportsFingerprint()
DAppWidgetIncidentTest.java48 return getDevice().hasFeature("android.software.app_widgets"); in hasAppWidgets()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DRequiredFeatureRule.java51 testDevice.hasFeature(mFeature)); in apply()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DProfileOwnerTest.java79 final boolean hasBackupService = getDevice().hasFeature(FEATURE_BACKUP); in testBackupServiceEnabling()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java65 && getDevice().hasFeature(FEATURE_TELEPHONY) in setUp()
66 && getDevice().hasFeature(FEATURE_CONNECTION_SERVICE); in setUp()
/cts/hostsidetests/wifibroadcasts/src/android/wifibroadcasts/cts/
DWifiBroadcastsHostJUnit4Test.java104 if (!device.hasFeature(FEATURE_WIFI)) { in testCleanLogcat()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java145 return getDevice().hasFeature(FEATURE_AUTOMOTIVE); in isAutomotiveDevice()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseBackupHostSideTest.java73 mIsBackupSupported = getDevice().hasFeature("feature:" + FEATURE_BACKUP); in setUp()

12