Home
last modified time | relevance | path

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

123456

/frameworks/base/services/java/com/android/server/
DSystemServer.java871 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/
DDeviceUtils.java30 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/
DBiometricManager.java79 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/
DSetPersistentVrThreadTest.java88 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/
DRotationPolicy.java60 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/
DPipUI.java45 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/
DCriticalNotificationExtractorTest.java56 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/
DKeymasterUtils.java132 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/
DWifiAwareServiceImpl.java310 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/
DNfcAdapter.java511 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/
DSystemUIModule.java46 if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) { in provideKeyguardLiftController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricDialogImpl.java152 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/
DWindowManagerServiceTests.java56 return getInstrumentation().getTargetContext().getPackageManager().hasSystemFeature( in isAutomotive()
/frameworks/base/services/core/java/com/android/server/deviceidle/
DTvConstraintController.java47 mBluetoothConstraint = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in TvConstraintController()
/frameworks/base/services/core/java/com/android/server/notification/
DCriticalNotificationExtractor.java60 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in supportsCriticalNotifications()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java142 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/
DConsumerIrService.java49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotController.java122 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/
DSuspendPackagesTest.java515 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/
DImsMmTelManagerTests.java64 doReturn(true).when(mMockPackageManager).hasSystemFeature( in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneFactory.java183 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/
DSipManager.java168 return context.getPackageManager().hasSystemFeature( in isApiSupported()
176 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBypassController.kt74 hasFaceFeature = context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNfcTile.java70 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC); in isAvailable()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DFeatureConnectorTest.java152 doReturn(isSupported).when(mPackageManager).hasSystemFeature( in setImsSupportedFeature()

123456