Home
last modified time | relevance | path

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

123456

/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/services/java/com/android/server/
DSystemServer.java837 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) { in startCoreServices()
909 boolean isWatch = context.getPackageManager().hasSystemFeature( in startOtherServices()
912 boolean isArc = context.getPackageManager().hasSystemFeature( in startOtherServices()
915 boolean enableVrService = context.getPackageManager().hasSystemFeature( in startOtherServices()
1068 } else if (!context.getPackageManager().hasSystemFeature in startOtherServices()
1324 if (context.getPackageManager().hasSystemFeature( in startOtherServices()
1336 if (context.getPackageManager().hasSystemFeature( in startOtherServices()
1344 if (context.getPackageManager().hasSystemFeature( in startOtherServices()
1351 if (context.getPackageManager().hasSystemFeature( in startOtherServices()
1358 if (context.getPackageManager().hasSystemFeature( in startOtherServices()
[all …]
/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/services/core/java/com/android/server/deviceidle/
DTvConstraintController.java47 mBluetoothConstraint = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in TvConstraintController()
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java476 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM, 0); in hasBeamFeature()
496 return pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0); in hasNfcFeature()
515 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0) in hasNfcHceFeature()
516 || pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF, 0); in hasNfcHceFeature()
539 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC, 0)) { in getSupportedOffHostSecureElements()
542 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_ESE, 0)) { in getSupportedOffHostSecureElements()
/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/core/java/com/android/server/notification/
DCriticalNotificationExtractor.java60 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in supportsCriticalNotifications()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
/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/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/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsMmTelManagerTests.java64 doReturn(true).when(mMockPackageManager).hasSystemFeature( in setUp()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipManager.java148 return context.getPackageManager().hasSystemFeature( in isApiSupported()
156 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java513 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenProfileOwner()
520 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenDeviceOwner()
527 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingDeviceOwner()
541 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingProfileOwner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNfcTile.java68 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC); in isAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java147 return packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTv()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackend.java93 final boolean hasTelephony = mAppContext.getPackageManager().hasSystemFeature( in isDefaultActiveApp()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DIdleController.java86 final boolean isCar = mContext.getPackageManager().hasSystemFeature( in initIdleStateTracking()
/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java132 return !packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) && in shouldShowNotification()
/frameworks/base/core/java/android/app/
DLauncherActivity.java344 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()
362 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()

123456