/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | WifiEntryGroupPreferenceControllerTest.java | 89 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 …]
|
D | WifiStateSwitchPreferenceControllerTest.java | 144 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 …]
|
D | AddWifiPreferenceControllerTest.java | 101 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/ |
D | DeviceRegionProviderTest.java | 65 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/ |
D | BluetoothMacAddressPreferenceControllerTest.java | 83 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/ |
D | WifiFrameworkInitializer.java | 80 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/ |
D | DeviceUtils.java | 32 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/ |
D | DeviceSupportHelper.java | 34 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/ |
D | HealthConnectBaseTest.kt | 53 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/ |
D | HealthServicesInitializer.java | 57 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/ |
D | SetActivitiesCameraReceiver.java | 54 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/ |
D | TestUtils.java | 52 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/ |
D | UiBaseTest.java | 82 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/ |
D | UwbTogglePreferenceControllerTest.java | 81 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/ |
D | HealthConnectUiTestHelper.kt | 80 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/ |
D | DeviceUtils.java | 24 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/ |
D | FaceSetupSliceTest.java | 57 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/ |
D | ThreadNetworkManagerTest.java | 71 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/ |
D | RangingManagerTest.java | 118 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/ |
D | AppDataSharingUpdatesPreferenceController.java | 63 && !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/ |
D | LegacyTypeTrackerTest.kt | 84 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/ |
D | DeviceInfoUtils.kt | 97 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/ |
D | PermissionUtils.kt | 29 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/ |
D | OnDevicePersonalizationSystemService.java | 181 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/ |
D | PaymentSettingsTest.java | 81 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()
|