/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/emergencynumber/ |
D | EmergencyNumberUtilsTest.java | 84 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in getDefaultPoliceNumber_noTelephony_shouldReturnDefault() 93 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getDefaultPoliceNumber_hasTelephony_shouldLoadFromTelephony() 104 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasUserOverride_shouldLoadFromUserOverride() 119 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_noUserOverride_shouldLoadFromTelephony() 130 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasCarrierPrefix_shouldRemovePrefix()
|
/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/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
D | FlickerTestBase.kt | 48 hasSystemFeature(FEATURE_LEANBACK) || hasSystemFeature(FEATURE_LEANBACK_ONLY) in <lambda>()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 1278 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) { in startCoreServices() 1359 boolean isWatch = context.getPackageManager().hasSystemFeature( in startOtherServices() 1362 boolean isArc = context.getPackageManager().hasSystemFeature( in startOtherServices() 1365 boolean enableVrService = context.getPackageManager().hasSystemFeature( in startOtherServices() 1532 } else if (!context.getPackageManager().hasSystemFeature in startOtherServices() 1853 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1866 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1874 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1882 if (context.getPackageManager().hasSystemFeature( in startOtherServices() 1890 if (context.getPackageManager().hasSystemFeature( in startOtherServices() [all …]
|
/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/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | BaseAppHelper.kt | 47 hasSystemFeature(FEATURE_LEANBACK) || hasSystemFeature(FEATURE_LEANBACK_ONLY) in <lambda>()
|
/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/tests/src/com/android/systemui/qs/tiles/ |
D | NfcTileTest.java | 104 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in testIsAvailable_stockWithoutNfc_returnsFalse() 112 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in testIsAvailable_stockWithNfc_returnsTrue()
|
/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/services/core/java/com/android/server/location/ |
D | LocationShellCommand.java | 147 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleIsAdasGnssLocationEnabled() 169 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleSetAdasGnssLocationEnabled() 355 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in onHelp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/connectivity/ |
D | ConnectivitySubsystemsRecoveryManager.java | 98 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)) { in ConnectivitySubsystemsRecoveryManager() 105 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in ConnectivitySubsystemsRecoveryManager()
|
/frameworks/native/libs/binder/aidl/android/content/pm/ |
D | IPackageManagerNative.aidl | 125 boolean hasSystemFeature(in String featureName, in int version); in hasSystemFeature() method
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiverTest.kt | 69 `when`(packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)).thenReturn(true) in setUp() 151 `when`(packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)).thenReturn(false) in testFeatureDisabled_activityNotStarted()
|
/frameworks/base/apex/jobscheduler/service/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/base/services/tests/mockingservicestests/src/com/android/server/location/settings/ |
D | LocationSettingsTest.java | 70 doReturn(true).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in setUp() 158 doReturn(false).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in testNonAutomotive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/dagger/ |
D | KeyguardModule.java | 141 if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) { in provideKeyguardLiftController() 161 if (faceManager == null || !packageManager.hasSystemFeature(PackageManager.FEATURE_FACE)) { in provideFaceAuthScreenBrightnessController()
|
/frameworks/base/core/java/android/nfc/ |
D | NfcAdapter.java | 540 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM, 0); in hasBeamFeature() 560 return pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0); in hasNfcFeature() 579 return pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0) in hasNfcHceFeature() 580 || pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF, 0); in hasNfcHceFeature() 603 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC, 0)) { in getSupportedOffHostSecureElements() 606 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_ESE, 0)) { in getSupportedOffHostSecureElements()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiver.kt | 58 if (!context.packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)) { in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | QuickAccessWalletTile.java | 204 return mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION) in isAvailable() 205 && !mPackageManager.hasSystemFeature(FEATURE_CHROME_OS) in isAvailable()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 517 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenProfileOwner() 524 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenDeviceOwner() 531 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingDeviceOwner() 545 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingProfileOwner()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SideFpsEventHandler.java | 119 if (!pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) return; in onFingerprintSensorReady()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneFactory.java | 204 if (context.getPackageManager().hasSystemFeature( in makeDefaultPhone() 243 if (context.getPackageManager().hasSystemFeature( in makeDefaultPhone() 306 if (context.getPackageManager().hasSystemFeature( in onMultiSimConfigChanged()
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipManager.java | 170 return context.getPackageManager().hasSystemFeature( in isApiSupported() 178 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
|