Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiEntryGroupPreferenceControllerTest.java89 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available()
99 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneWrite()
111 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneRead()
123 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneHidden()
135 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing()
147 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneWrite()
161 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneRead()
175 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneHidden()
189 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing()
201 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneWrite()
[all …]
DWifiStateSwitchPreferenceControllerTest.java144 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available()
153 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneWrite()
164 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneRead()
175 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneHidden()
186 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing()
197 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneWrite()
210 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneRead()
223 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneHidden()
236 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiNotAvailable_unsupportedOnDevice()
245 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiNotAvailable_unsupportedOnDevice_zoneWrite()
[all …]
DAddWifiPreferenceControllerTest.java101 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in setUp()
106 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiFeatureDisabled()
113 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiFeatureDisabled_zoneWrite()
122 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiFeatureDisabled_zoneRead()
131 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in getAvailabilityStatus_wifiFeatureDisabled_zoneHidden()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DDeviceRegionProviderTest.java65 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in testGbEmptyEeaCountriesList()
78 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in testChEmptyEeaCountriesList()
91 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in testUsEmptyEeaCountriesList()
102 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in isGbDeviceTrue()
113 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in isChDeviceTrue()
124 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in isEuDeviceTrue()
135 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in isEuDeviceFalse()
146 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in noSimCardInstalledTest()
155 doReturn(false).when(mPackageManager).hasSystemFeature(anyString()); in telephonyManagerDoesntExistTest()
163 doReturn(true).when(mPackageManager).hasSystemFeature(anyString()); in telephonyManagerNotAccessibleTest()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DBluetoothMacAddressPreferenceControllerTest.java83 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in onCreate_setsAddress()
92 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice()
100 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice_zoneWrite()
109 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice_zoneRead()
118 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice_zoneHidden()
127 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing()
135 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing_zoneWrite()
144 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing_zoneRead()
153 when(mMockPm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing_zoneHidden()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiFrameworkInitializer.java80 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
92 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
104 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
116 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
128 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
140 if (!context.getPackageManager().hasSystemFeature( in registerServiceWrappers()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DDeviceUtils.java32 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isOdpSupported()
33 && !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in isOdpSupported()
35 && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isOdpSupported()
37 && !pm.hasSystemFeature(PackageManager.FEATURE_RAM_LOW); in isOdpSupported()
/packages/modules/OnDevicePersonalization/tests/testutils/src/com/android/ondevicepersonalization/testing/utils/
DDeviceSupportHelper.java34 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isDeviceSupported()
35 && !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in isDeviceSupported()
37 && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isDeviceSupported()
39 && !pm.hasSystemFeature(PackageManager.FEATURE_RAM_LOW); in isDeviceSupported()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DHealthConnectBaseTest.kt53 return (!pm.hasSystemFeature(PackageManager.FEATURE_EMBEDDED) && in isHardwareSupported()
54 !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) && in isHardwareSupported()
55 !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) && in isHardwareSupported()
56 !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) in isHardwareSupported()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthServicesInitializer.java57 return (!pm.hasSystemFeature(PackageManager.FEATURE_EMBEDDED) in isHardwareSupported()
58 && !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isHardwareSupported()
59 && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isHardwareSupported()
60 && !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in isHardwareSupported()
/packages/apps/Camera2/src/com/android/camera/
DSetActivitiesCameraReceiver.java54 return pm.hasSystemFeature(PackageManager.FEATURE_CAMERA) in hasCamera()
55 || pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) in hasCamera()
56 || pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL); in hasCamera()
61 return pm.hasSystemFeature(PackageManager.FEATURE_CAMERA); in hasBackCamera()
/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/test_utils/
DTestUtils.java52 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in hasBluetooth()
162 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); in isBleSupported()
172 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAutomotive()
182 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()
193 return pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in isTv()
194 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTv()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/
DUiBaseTest.java82 return !pm.hasSystemFeature(PackageManager.FEATURE_EMBEDDED) in isHardwareSupported()
83 && !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isHardwareSupported()
84 && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isHardwareSupported()
85 && !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isHardwareSupported()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DUwbTogglePreferenceControllerTest.java81 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_UWB)).thenReturn(false); in getDefaultAvailabilityStatus_noAvailableOnDevice()
91 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_UWB)).thenReturn(true); in testDefaultAvailabilityStatus_availableOnDevice()
101 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_UWB)).thenReturn(true); in testUpdateState_stateChecked()
111 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_UWB)).thenReturn(true); in testUpdateState_stateNotChecked()
121 when(mMockPackageManager.hasSystemFeature(PackageManager.FEATURE_UWB)).thenReturn(true); in testHandlePreferenceChanged_enableUWB()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectUiTestHelper.kt80 return (!pm.hasSystemFeature(PackageManager.FEATURE_EMBEDDED) && in isHardwareSupported()
81 !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) && in isHardwareSupported()
82 !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) && in isHardwareSupported()
83 !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) in isHardwareSupported()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
DDeviceUtils.java24 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTelevision()
28 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWear()
32 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/slices/
DFaceSetupSliceTest.java57 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(false); in getSlice_noFaceManager_shouldReturnNull()
67 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_noReEnroll_shouldReturnNull()
82 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceNotEnrolled_shouldReturnSlice()
93 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_shouldReEnroll_shouldReturnSlice()
106 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_musteEnroll_shouldReturnSlice()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkManagerTest.java71 assumeTrue(mPackageManager.hasSystemFeature("android.hardware.thread_network")); in getManager_hasThreadFeatureOnVOrHigher_returnsNonNull()
80 assumeFalse(mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)); in getManager_onUButNotTv_returnsNull()
89 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)); in getManager_onUAndTv_returnsNonNull()
96 assumeFalse(mPackageManager.hasSystemFeature("android.hardware.thread_network")); in getManager_noThreadFeature_returnsNull()
/packages/modules/Connectivity/remoteauth/tests/unit/src/com/android/server/remoteauth/ranging/
DRangingManagerTest.java118 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(false); in setUp()
131 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(true); in testConstruction_withUwbEnabled()
141 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(true); in testShutdown_withUwbEnabled()
161 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(true); in testGetRangingCapabilities_withUwbEnabled()
187 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(true); in testGetRangingCapabilities_multipleCalls()
215 when(mPackageManager.hasSystemFeature(FEATURE_UWB)).thenReturn(true); in testCreateSession_uwbSession()
/packages/apps/Settings/src/com/android/settings/privacy/
DAppDataSharingUpdatesPreferenceController.java63 && !packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in isPrivacySafetyLabelChangeNotificationsEnabled()
64 && !packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isPrivacySafetyLabelChangeNotificationsEnabled()
65 && !packageManager.hasSystemFeature(PackageManager.FEATURE_WATCH); in isPrivacySafetyLabelChangeNotificationsEnabled()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt84 doReturn(true).`when`(mPm).hasSystemFeature(FEATURE_WIFI) in <lambda>()
85 doReturn(true).`when`(mPm).hasSystemFeature(FEATURE_WIFI_DIRECT) in <lambda>()
86 doReturn(true).`when`(mPm).hasSystemFeature(FEATURE_ETHERNET) in <lambda>()
108 doReturn(false).`when`(mPm).hasSystemFeature(FEATURE_ETHERNET) in testSupportedTypes_NoEthernet()
109 doReturn(false).`when`(mPm).hasSystemFeature(FEATURE_USB_HOST) in testSupportedTypes_NoEthernet()
128 doReturn(false).`when`(mPm).hasSystemFeature(FEATURE_WIFI_DIRECT) in testSupportedTypes_NoWifiDirect()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DDeviceInfoUtils.kt97 return (!pm.hasSystemFeature(PackageManager.FEATURE_EMBEDDED) && in isHealthConnectAvailable()
98 !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) && in isHealthConnectAvailable()
99 !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) && in isHealthConnectAvailable()
100 !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) in isHealthConnectAvailable()
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DPermissionUtils.kt29 context.packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in isAutomotive()
32 context.packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isAutomotive()
35 context.packageManager.hasSystemFeature(PackageManager.FEATURE_WATCH) in isAutomotive()
/packages/modules/OnDevicePersonalization/systemservice/java/com/android/server/ondevicepersonalization/
DOnDevicePersonalizationSystemService.java181 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isOdpSupported()
182 && !pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in isOdpSupported()
184 && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isOdpSupported()
186 && !pm.hasSystemFeature(PackageManager.FEATURE_RAM_LOW); in isOdpSupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DPaymentSettingsTest.java81 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(false); in getNonIndexableKey_noNFC_allKeysAdded()
92 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexableKey_NFC_foregroundKeyAdded()
102 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexableKey_primaryUser_returnsTrue()
112 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexableKey_guestUser_returnsFalse()

12345678910>>...17