/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/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/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 138 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/ |
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() 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 …]
|
D | UiModeManagerTest.java | 156 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/ |
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/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/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 375 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 …]
|
D | SmsMessageTest.java | 92 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/ |
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/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/net/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/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() 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/ |
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/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcTestActivity.java | 56 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/ |
D | EnumDevicesTest.java | 66 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()
|
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 …]
|
/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/tests/systemui/src/android/systemui/cts/ |
D | LightBarTestBase.java | 117 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/ |
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/net/src/android/net/cts/ |
D | TheaterModeTest.java | 38 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup() 39 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
|
D | AirplaneModeTest.java | 41 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup() 42 || mContext.getPackageManager().hasSystemFeature(FEATURE_WIFI)); in setup()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanResultTest.java | 46 hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) return; in testScanResultParceling() 67 hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) return; in testDescribeContents()
|