Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/emergencynumber/
DEmergencyNumberUtilsTest.java84 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/
DDeviceUtils.java30 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/
DFlickerTestBase.kt48 hasSystemFeature(FEATURE_LEANBACK) || hasSystemFeature(FEATURE_LEANBACK_ONLY) in <lambda>()
/frameworks/base/services/java/com/android/server/
DSystemServer.java1278 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/
DSetPersistentVrThreadTest.java88 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/
DBaseAppHelper.kt47 hasSystemFeature(FEATURE_LEANBACK) || hasSystemFeature(FEATURE_LEANBACK_ONLY) in <lambda>()
/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/tests/src/com/android/systemui/qs/tiles/
DNfcTileTest.java104 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/
DCriticalNotificationExtractorTest.java56 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/
DLocationShellCommand.java147 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/
DConnectivitySubsystemsRecoveryManager.java98 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/
DIPackageManagerNative.aidl125 boolean hasSystemFeature(in String featureName, in int version); in hasSystemFeature() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt69 `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/
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/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
DLocationSettingsTest.java70 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/
DKeyguardModule.java141 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/
DNfcAdapter.java540 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/
DConsumerIrService.java49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsRequestReceiver.kt58 if (!context.packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)) { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DQuickAccessWalletTile.java204 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/
DSuspendPackagesTest.java517 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/
DSideFpsEventHandler.java119 if (!pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) return; in onFingerprintSensorReady()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneFactory.java204 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/
DSipManager.java170 return context.getPackageManager().hasSystemFeature( in isApiSupported()
178 return context.getPackageManager().hasSystemFeature( in isVoipSupported()

1234567