/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 871 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) { in startCoreServices() 942 boolean isWatch = context.getPackageManager().hasSystemFeature( in startOtherServices() 945 boolean isArc = context.getPackageManager().hasSystemFeature( in startOtherServices() 948 boolean enableVrService = context.getPackageManager().hasSystemFeature( in startOtherServices() 1102 } else if (!context.getPackageManager().hasSystemFeature in startOtherServices() 1375 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1387 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1395 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1402 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1409 if (context.getPackageManager().hasSystemFeature( in startOtherServices() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | DeviceUtils.java | 30 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWear() 34 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | BiometricManager.java | 79 return pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT) in hasBiometrics() 80 || pm.hasSystemFeature(PackageManager.FEATURE_IRIS) in hasBiometrics() 81 || pm.hasSystemFeature(PackageManager.FEATURE_FACE); in hasBiometrics()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 88 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPISuccess() 125 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPIFailure() 138 if (!mActivity.getPackageManager().hasSystemFeature( in testSetVrThreadAPIFailsInPersistentMode()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 60 return pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_ACCELEROMETER) in isRotationSupported() 61 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in isRotationSupported() 62 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in isRotationSupported()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/ |
D | PipUI.java | 45 mSupportsPip = pm.hasSystemFeature(FEATURE_PICTURE_IN_PICTURE); in start() 56 mPipManager = pm.hasSystemFeature(FEATURE_LEANBACK_ONLY) in start()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | CriticalNotificationExtractorTest.java | 56 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically_nonsupporting() 74 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeymasterUtils.java | 132 if (pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) { in addUserAuthArgs() 136 if (pm.hasSystemFeature(PackageManager.FEATURE_FACE)) { in addUserAuthArgs()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 310 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)); in publish() 330 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)); in updatePublish() 360 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)); in subscribe() 380 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)); in updateSubscribe()
|
/frameworks/base/core/java/android/nfc/ |
D | NfcAdapter.java | 511 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM, 0); in hasBeamFeature() 531 return pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0); in hasNfcFeature() 550 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0) in hasNfcHceFeature() 551 || pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF, 0); in hasNfcHceFeature() 574 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC, 0)) { in getSupportedOffHostSecureElements() 577 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_ESE, 0)) { in getSupportedOffHostSecureElements()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIModule.java | 46 if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) { in provideKeyguardLiftController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricDialogImpl.java | 152 if (pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT) in start() 153 || pm.hasSystemFeature(PackageManager.FEATURE_FACE) in start() 154 || pm.hasSystemFeature(PackageManager.FEATURE_IRIS)) { in start()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowManagerServiceTests.java | 56 return getInstrumentation().getTargetContext().getPackageManager().hasSystemFeature( in isAutomotive()
|
/frameworks/base/services/core/java/com/android/server/deviceidle/ |
D | TvConstraintController.java | 47 mBluetoothConstraint = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in TvConstraintController()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CriticalNotificationExtractor.java | 60 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in supportsCriticalNotifications()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 142 when(mPackageManagerMock.hasSystemFeature(PackageManager.FEATURE_WIFI_AWARE)) in setup() 144 when(mPackageManagerMock.hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)) in setup() 270 when(mPackageManagerMock.hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)).thenReturn( in testFailOnPublishRangingWithoutRttFeature() 287 when(mPackageManagerMock.hasSystemFeature(PackageManager.FEATURE_WIFI_RTT)).thenReturn( in testFailOnSubscribeRangingWithoutRttFeature()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotController.java | 122 mIsRunningOnTv = mService.mContext.getPackageManager().hasSystemFeature( in TaskSnapshotController() 124 mIsRunningOnIoT = mService.mContext.getPackageManager().hasSystemFeature( in TaskSnapshotController() 126 mIsRunningOnWear = mService.mContext.getPackageManager().hasSystemFeature( in TaskSnapshotController()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 515 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenProfileOwner() 522 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenDeviceOwner() 529 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingDeviceOwner() 543 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingProfileOwner()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsMmTelManagerTests.java | 64 doReturn(true).when(mMockPackageManager).hasSystemFeature( in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneFactory.java | 183 if (context.getPackageManager().hasSystemFeature( in makeDefaultPhone() 222 if (context.getPackageManager().hasSystemFeature( in makeDefaultPhone() 284 if (context.getPackageManager().hasSystemFeature( in onMultiSimConfigChanged()
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipManager.java | 168 return context.getPackageManager().hasSystemFeature( in isApiSupported() 176 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardBypassController.kt | 74 hasFaceFeature = context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NfcTile.java | 70 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC); in isAvailable()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | FeatureConnectorTest.java | 152 doReturn(isSupported).when(mPackageManager).hasSystemFeature( in setImsSupportedFeature()
|