Home
last modified time | relevance | path

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

12345678910

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFeatureUtil.java40 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() method in FeatureUtil
41 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature()
48 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature()
59 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures()
82 return hasSystemFeature(WATCH_FEATURE); in isWatch()
91 hasSystemFeature(LOW_RAM_FEATURE); in isLowRam()
100 return hasSystemFeature(TELEPHONY_FEATURE); in hasTelephony()
105 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java131 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber()
143 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber()
155 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail()
167 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testChangePhoneAccounts()
178 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallAccessibilitySettings()
189 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallSettings()
200 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowRespondViaSmsSettings()
211 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCamera()
212 || packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) { in testCamera()
245 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testContactsCallLogs()
[all …]
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java138 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraFeatures()
205 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera()
206 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera()
210 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera()
211 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera()
285 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testNfcFeatures()
299 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testScreenFeatures()
300 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)); in testScreenFeatures()
350 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE_ECG)) { in testSensorFeatures()
359 } else if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE)) { in testSensorFeatures()
[all …]
DUiModeManagerTest.java69 return getContext().getPackageManager().hasSystemFeature( in isAutomotive()
75 return pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in isTelevision()
76 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTelevision()
80 return getContext().getPackageManager().hasSystemFeature( in isWatch()
DActivityKeyboardShortcutsTest.java95 return !mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) && in keyboardShortcutsSupported()
96 !mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_EMBEDDED); in keyboardShortcutsSupported()
/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/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/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.java248 return pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in isRestrictionValid()
267 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
269 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isRestrictionValid()
271 return pm.hasSystemFeature(PackageManager.FEATURE_WIFI); in isRestrictionValid()
274 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
276 return pm.hasSystemFeature(PackageManager.FEATURE_NFC); in isRestrictionValid()
278 return pm.hasSystemFeature(PackageManager.FEATURE_LOCATION); in isRestrictionValid()
280 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
282 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java230 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCreateForPhoneAccountHandle()
292 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in verifyDeviceId()
299 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in verifyDeviceId()
302 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in verifyDeviceId()
305 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET)) { in verifyDeviceId()
448 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetNetworkCountryIso()
460 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSimCountryIso()
509 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetImei()
521 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetImeiForSlot()
544 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetMeid()
[all …]
DSmsMessageTest.java82 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu()
83 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu()
162 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail()
163 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail()
205 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData()
206 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData()
224 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu()
268 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway()
269 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testEmailGateway()
300 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCalculateLength()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DVerifiedBootTest.java40 boolean isRAMNormal = pm.hasSystemFeature(PackageManager.FEATURE_RAM_NORMAL); in testVerifiedBootSupport()
45 pm.hasSystemFeature(PackageManager.FEATURE_VERIFIED_BOOT)); in testVerifiedBootSupport()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java91 assumeFalse(getInstrumentation().getContext().getPackageManager().hasSystemFeature( in assumeBasics()
95 assumeFalse(pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in assumeBasics()
96 || pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in assumeBasics()
97 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK)); in assumeBasics()
/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/tests/tests/net/src/android/net/cts/
DAirplaneModeTest.java40 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
41 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
DTheaterModeTest.java39 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
40 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
/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.java113 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_audioTrack_preferredDevice()
142 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_audioTrack_incallMusicRoutingPermissions()
325 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_RoutingListener()
389 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_preferredDevice()
513 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_audioRecord_getRoutedDevice()
572 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_preferredDevice()
602 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_getRoutedDevice()
622 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_MediaPlayer_RoutingListener()
657 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_MediaPlayer_RoutingChangedCallback()
700 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_mediaPlayer_incallMusicRoutingPermissions()
[all …]
/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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAudioRestrictionTest.java48 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in testDisallowAdjustVolume_muted()
81 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in testDisallowAdjustVolume()
120 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testDisallowUnmuteMicrophone()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationTest.java86 return pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in isRotationSupported()
87 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in isRotationSupported()
/cts/tests/tests/tv/src/android/media/tv/cts/
DUtils.java10 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_TV); in hasTvInputFramework()
/cts/tests/sensor/src/android/hardware/cts/
DSensorSupportTest.java47 mAreHifiSensorsSupported = pm.hasSystemFeature(PackageManager.FEATURE_HIFI_SENSORS); in setUp()
48 …mVrHighPerformanceModeSupported = pm.hasSystemFeature(PackageManager.FEATURE_VR_MODE_HIGH_PERFORMA… in setUp()
/cts/tests/tests/permission2/src/android/permission2/cts/
DNoProcessOutgoingCallPermissionTest.java58 if (!pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) || in testProcessOutgoingCall()
59 !pm.hasSystemFeature(PackageManager.FEATURE_SIP_VOIP)) { in testProcessOutgoingCall()
/cts/tests/tests/tv/src/android/tv/settings/cts/
DUtils.java26 return context.getPackageManager().hasSystemFeature(feature); in hasFeature()

12345678910