/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/services/java/com/android/server/ |
D | SystemServer.java | 837 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/ |
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/services/core/java/com/android/server/deviceidle/ |
D | TvConstraintController.java | 47 mBluetoothConstraint = pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in TvConstraintController()
|
/frameworks/base/core/java/android/nfc/ |
D | NfcAdapter.java | 476 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/ |
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/core/java/com/android/server/notification/ |
D | CriticalNotificationExtractor.java | 60 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in supportsCriticalNotifications()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
|
/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/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/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsMmTelManagerTests.java | 64 doReturn(true).when(mMockPackageManager).hasSystemFeature( in setUp()
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipManager.java | 148 return context.getPackageManager().hasSystemFeature( in isApiSupported() 156 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 513 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/ |
D | NfcTile.java | 68 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC); in isAvailable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 147 return packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTv()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackend.java | 93 final boolean hasTelephony = mAppContext.getPackageManager().hasSystemFeature( in isDefaultActiveApp()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | IdleController.java | 86 final boolean isCar = mContext.getPackageManager().hasSystemFeature( in initIdleStateTracking()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | MtpNotificationManager.java | 132 return !packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) && in shouldShowNotification()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 344 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate() 362 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()
|