Home
last modified time | relevance | path

Searched refs:hasSystemFeature (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFeatureUtil.java44 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() method in FeatureUtil
45 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
52 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
63 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
86 return hasSystemFeature(WATCH_FEATURE); in isWatch()
91 return hasSystemFeature(AUTOMOTIVE_FEATURE); in isAutomotive()
105 hasSystemFeature(LOW_RAM_FEATURE); in isLowRam()
122 return hasSystemFeature(TELEPHONY_FEATURE); in hasTelephony()
127 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFeatureUtil.java43 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() method in FeatureUtil
44 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
51 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
62 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
85 return hasSystemFeature(WATCH_FEATURE); in isWatch()
90 return hasSystemFeature(AUTOMOTIVE_FEATURE); in isAutomotive()
104 hasSystemFeature(LOW_RAM_FEATURE); in isLowRam()
121 return hasSystemFeature(TELEPHONY_FEATURE); in hasTelephony()
126 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java138 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber()
150 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber()
162 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail()
174 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testChangePhoneAccounts()
185 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallAccessibilitySettings()
196 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallSettings()
207 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowRespondViaSmsSettings()
218 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCamera()
219 || packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) { in testCamera()
252 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testContactsCallLogs()
[all …]
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java155 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraFeatures()
243 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera()
244 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera()
248 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera()
249 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera()
286 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { in testGamepadFeature()
331 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testScreenFeatures()
332 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)); in testScreenFeatures()
384 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE_ECG)) { in testSensorFeatures()
393 } else if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE)) { in testSensorFeatures()
[all …]
DUiModeManagerTest.java156 return getContext().getPackageManager().hasSystemFeature( in isAutomotive()
162 return pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in isTelevision()
163 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTelevision()
167 return getContext().getPackageManager().hasSystemFeature( in isWatch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DIntentFiltersTestHelper.java163 if (pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in addIntentsThatDependOnDeviceFeatures()
195 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC)) { in addIntentsThatDependOnDeviceFeatures()
201 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in addIntentsThatDependOnDeviceFeatures()
207 if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) { in addIntentsThatDependOnDeviceFeatures()
223 if (pm.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in addIntentsThatDependOnDeviceFeatures()
229 if (pm.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in addIntentsThatDependOnDeviceFeatures()
235 if (pm.hasSystemFeature(PackageManager.FEATURE_LOCATION)) { in addIntentsThatDependOnDeviceFeatures()
240 if (pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in addIntentsThatDependOnDeviceFeatures()
248 if (pm.hasSystemFeature(PackageManager.FEATURE_HOME_SCREEN)) { in addIntentsThatDependOnDeviceFeatures()
253 if (pm.hasSystemFeature(PackageManager.FEATURE_INPUT_METHODS)) { in addIntentsThatDependOnDeviceFeatures()
[all …]
DUserRestrictions.java237 return pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in isRestrictionValid()
256 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
258 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isRestrictionValid()
260 return pm.hasSystemFeature(PackageManager.FEATURE_WIFI); in isRestrictionValid()
263 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
265 return pm.hasSystemFeature(PackageManager.FEATURE_NFC) in isRestrictionValid()
266 && pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM); in isRestrictionValid()
268 return pm.hasSystemFeature(PackageManager.FEATURE_LOCATION); in isRestrictionValid()
270 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
272 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/
DBiometricManagerTest.java37 mHasBiometric |= pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT); in setUp()
38 mHasBiometric |= pm.hasSystemFeature(PackageManager.FEATURE_FACE); in setUp()
39 mHasBiometric |= pm.hasSystemFeature(PackageManager.FEATURE_IRIS); in setUp()
/cts/tools/cts-preconditions/src/com/android/preconditions/cts/
DPreconditionsTest.java39 if (pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in testScreenUnlocked()
40 || pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in testScreenUnlocked()
41 || pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in testScreenUnlocked()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java375 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) return; in testServiceStateListeningWithoutPermissions()
486 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetRadioHalVersion()
500 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCreateForPhoneAccountHandle()
573 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in verifyDeviceId()
580 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in verifyDeviceId()
583 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in verifyDeviceId()
586 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET)) { in verifyDeviceId()
731 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetNetworkCountryIso()
743 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSimCountryIso()
787 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSimLocale()
[all …]
DSmsMessageTest.java92 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu()
93 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu()
173 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail()
174 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail()
217 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData()
218 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData()
237 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu()
282 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway()
283 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testEmailGateway()
315 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCalculateLength()
[all …]
/cts/tests/vr/src/android/vr/cts/
DVrFeaturesTest.java33 boolean hasVrMode = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature()
35 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature()
46 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testSustainedPerformanceModeSupported()
/cts/tests/tests/assist/src/android/assist/cts/
DDisableContextTest.java42 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextAndScreenshotOff()
57 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextOff()
72 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenshotOff()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiFeature.java25 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); in isWifiSupported()
30 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT); in isP2pSupported()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java156 if (pm.hasSystemFeature("android.hardware.type.television") in supportedHardware()
157 || pm.hasSystemFeature("android.hardware.type.watch")) { in supportedHardware()
165 if (pm.hasSystemFeature("android.hardware.type.watch") in supportedHardwareForScopedDirectoryAccess()
166 || pm.hasSystemFeature("android.hardware.type.automotive")) { in supportedHardwareForScopedDirectoryAccess()
174 return pm.hasSystemFeature("android.hardware.type.television"); in isTelevision()
/cts/tests/tests/systemintents/src/android/systemintents/cts/
DTestSystemIntents.java89 if (pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { in testSystemIntents()
93 if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSystemIntents()
97 if (!pm.hasSystemFeature(PackageManager.FEATURE_INPUT_METHODS)) { in testSystemIntents()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcTestActivity.java56 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_BEAM)) { in onCreate()
75 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate()
80 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in onCreate()
90 … if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF)) { in onCreate()
/cts/tests/tests/media/src/android/media/cts/
DEnumDevicesTest.java66 if (pkgMgr.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_getDevices()
89 if (pkgMgr.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices()
104 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT) && in test_getDevices()
105 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices()
DRoutingTest.java119 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_audioTrack_preferredDevice()
148 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_audioTrack_incallMusicRoutingPermissions()
331 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_RoutingListener()
395 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_preferredDevice()
519 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_getRoutedDevice()
579 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_preferredDevice()
609 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_getRoutedDevice()
629 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_MediaPlayer_RoutingListener()
664 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_MediaPlayer_RoutingChangedCallback()
738 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_incallMusicRoutingPermissions()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DVerifiedBootTest.java30 if (pm.hasSystemFeature(PackageManager.FEATURE_RAM_NORMAL)) { in isLowRamExempt()
55 pm.hasSystemFeature(PackageManager.FEATURE_VERIFIED_BOOT)); in testVerifiedBootSupport()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java117 assumeFalse(getInstrumentation().getContext().getPackageManager().hasSystemFeature( in assumeBasics()
122 assumeFalse(pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in assumeBasics()
123 || pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in assumeBasics()
124 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in assumeBasics()
125 || pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in assumeBasics()
/cts/tests/tests/net/api23Test/src/android/net/cts/api23test/
DConnectivityManagerApi23Test.java61 if (!mPackageManager.hasSystemFeature(FEATURE_WIFI)) { in testConnectivityChanged_manifestRequestOnly_shouldNotReceiveIntent()
79 if (!mPackageManager.hasSystemFeature(FEATURE_WIFI)) { in testConnectivityChanged_manifestRequestOnlyPreN_shouldReceiveIntent()
98 if (!mPackageManager.hasSystemFeature(FEATURE_WIFI)) { in testConnectivityChanged_whenRegistered_shouldReceiveIntent()
/cts/tests/tests/net/src/android/net/cts/
DTheaterModeTest.java38 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
39 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
DAirplaneModeTest.java41 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
42 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DScanResultTest.java46 hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) return; in testScanResultParceling()
67 hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) return; in testDescribeContents()

12345678910>>...12