/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 139 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber() 151 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber() 163 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail() 175 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testChangePhoneAccounts() 186 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallAccessibilitySettings() 197 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallSettings() 208 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowRespondViaSmsSettings() 219 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCamera() 220 || packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) { in testCamera() 253 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testContactsCallLogs() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 155 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() 334 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testNfcFeatures() 349 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testScreenFeatures() 350 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)); in testScreenFeatures() 402 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE_ECG)) { in testSensorFeatures() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FeatureUtil.java | 43 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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FeatureUtil.java | 44 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/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 276 return mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in hasCellular() 375 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testListen() 472 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testTelephonyManager() 676 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetRadioHalVersion() 690 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCreateForPhoneAccountHandle() 758 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetMaxNumberOfSimultaneouslyActiveSims() 787 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in verifyDeviceId() 794 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in verifyDeviceId() 797 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in verifyDeviceId() 800 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET)) { in verifyDeviceId() [all …]
|
D | SmsMessageTest.java | 93 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu() 94 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu() 177 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail() 178 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail() 221 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData() 222 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData() 241 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 …]
|
D | SipProfileTest.java | 41 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP) in testSetCallingUid() 42 || !mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP_VOIP)) { in testSetCallingUid()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | IntentFiltersTestHelper.java | 163 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 …]
|
D | UserRestrictions.java | 237 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/framework/base/windowmanager/util/src/android/server/wm/ |
D | BarTestUtils.java | 66 getInstrumentation().getContext().getPackageManager().hasSystemFeature( in assumeHasColoredBars() 69 assumeFalse("No bars on watches and TVs", pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in assumeHasColoredBars() 70 || pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in assumeHasColoredBars() 71 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK)); in assumeHasColoredBars() 74 pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in assumeHasColoredBars()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 156 if (pm.hasSystemFeature("android.hardware.type.television") in supportedHardware() 157 || pm.hasSystemFeature("android.hardware.type.watch") in supportedHardware() 158 || pm.hasSystemFeature("android.hardware.type.automotive")) { in supportedHardware() 166 if (pm.hasSystemFeature("android.hardware.type.television") in supportedHardwareForScopedDirectoryAccess() 167 || pm.hasSystemFeature("android.hardware.type.watch") in supportedHardwareForScopedDirectoryAccess() 168 || pm.hasSystemFeature("android.hardware.type.automotive")) { in supportedHardwareForScopedDirectoryAccess() 176 return pm.hasSystemFeature("android.hardware.type.television"); in isTelevision()
|
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/ |
D | BiometricManagerTest.java | 37 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/ |
D | PreconditionsTest.java | 39 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/ |
D | VrFeaturesTest.java | 33 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/nfc/ |
D | NfcTestActivity.java | 58 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_BEAM)) { in onCreate() 77 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate() 82 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in onCreate() 92 … if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF)) { in onCreate() 102 …if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC))… in onCreate()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 42 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/media/src/android/media/cts/ |
D | RoutingTest.java | 119 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 …]
|
D | EnumDevicesTest.java | 67 if (pkgMgr.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in test_getDevices() 90 if (pkgMgr.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices() 105 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT) && in test_getDevices() 106 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in test_getDevices()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | WifiSliceTest.java | 65 mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); 141 return pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isCar() 146 return pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in isTv() 147 && pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTv()
|
/cts/tests/tests/systemintents/src/android/systemintents/cts/ |
D | TestSystemIntents.java | 89 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/wifi/src/android/net/wifi/cts/ |
D | WifiFeature.java | 25 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); in isWifiSupported() 30 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT); in isP2pSupported()
|
/cts/tests/tests/net/api23Test/src/android/net/cts/api23test/ |
D | ConnectivityManagerApi23Test.java | 61 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/security/src/android/security/cts/ |
D | VerifiedBootTest.java | 30 if (pm.hasSystemFeature(PackageManager.FEATURE_RAM_NORMAL)) { in isLowRamExempt() 55 pm.hasSystemFeature(PackageManager.FEATURE_VERIFIED_BOOT)); in testVerifiedBootSupport()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 152 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)); in testCameraManagerGetDeviceIdList() 166 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)); in testCameraManagerGetDeviceIdList() 169 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)); in testCameraManagerGetDeviceIdList() 173 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraManagerGetDeviceIdList() 180 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)) { in testCameraManagerGetDeviceIdList() 191 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)); in testCameraManagerGetDeviceIdList() 194 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCameraManagerGetDeviceIdList() 195 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) in testCameraManagerGetDeviceIdList() 196 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraManagerGetDeviceIdList()
|
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/ |
D | WebViewDeviceSideStartupTest.java | 135 if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) { in runCurrentWebViewPackageTest() 222 if (!pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) return; in testGetWebViewLooperOnUiThread() 233 if (!pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) return; in testGetWebViewLooperCreatedOnUiThreadFromInstrThread() 252 if (!pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) return; in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()
|