Home
last modified time | relevance | path

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

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DTopLevelSecurityPreferenceControllerTest.java60 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_hasFace_hasStaticSummary()
71 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_hasFingerPrint_hasStaticSummary()
73 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in geSummary_hasFingerPrint_hasStaticSummary()
84 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in geSummary_noFpFeature_shouldSetSummaryWithNoBiometrics()
86 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_noFpFeature_shouldSetSummaryWithNoBiometrics()
96 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_noFpHardware_shouldSetSummaryWithNoBiometrics()
98 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in geSummary_noFpHardware_shouldSetSummaryWithNoBiometrics()
109 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in geSummary_noFaceFeature_shouldSetSummaryWithNoBiometrics()
111 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_noFaceFeature_shouldSetSummaryWithNoBiometrics()
121 when(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) in geSummary_noFaceHardware_shouldSetSummaryWithNoBiometrics()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DFaceSetupSliceTest.java61 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(false); in getSlice_noFaceManager_shouldReturnNull()
70 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_noReEnroll_shouldReturnNull()
83 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceNotEnrolled_shouldReturnSlice()
94 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_shouldReEnroll_shouldReturnSlice()
107 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in getSlice_faceEnrolled_musteEnroll_shouldReturnSlice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DPaymentSettingsTest.java76 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(false); in getNonIndexableKey_noNFC_allKeysAdded()
87 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexableKey_NFC_foregroundKeyAdded()
97 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexableKey_primaryUser_returnsTrue()
107 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getNonIndexabkeKey_guestUser_returnsFalse()
DNfcForegroundPreferenceControllerTest.java76 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(false); in getAvailabilityStatus_noNFC_DISABLED()
84 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getAvailabilityStatus_noPaymentBackend_DISABLED()
92 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getAvailabilityStatus_noPaymentApps_DISABLED()
106 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in initPaymentApps()
DNfcPaymentPreferenceControllerTest.java71 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(false); in getAvailabilityStatus_noNFC_DISABLED()
79 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getAvailabilityStatus_noPaymentApps_DISABLED()
94 when(mManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true); in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
DAndroidBeamPreferenceControllerTest.java85 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM)).thenReturn(true); in setUp()
105 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM)).thenReturn(false); in isAvailable_noNfcFeature_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DSavedDeviceGroupControllerTest.java96 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_noBluetoothDockFeature_returnUnSupported()
105 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_BluetoothFeature_returnSupported()
114 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_haveDockFeature_returnSupported()
DPreviouslyConnectedDevicePreferenceControllerTest.java99 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_noBluetoothDockFeature_returnUnSupported()
108 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_hasBluetoothFeature_returnSupported()
117 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in getAvailabilityStatus_haveDockFeature_returnSupported()
DAvailableMediaDeviceGroupControllerTest.java99 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in setUp()
176 doReturn(false).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_noBluetoothFeature_returnUnSupported()
184 doReturn(true).when(mPackageManager).hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in testGetAvailabilityStatus_BluetoothFeature_returnSupported()
DDiscoverableFooterPreferenceControllerTest.java95 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(false); in getAvailabilityStatus_noBluetoothFeature_returnUnSupported()
103 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)).thenReturn(true); in getAvailabilityStatus_BluetoothFeature_returnAvailable()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DConnectedDeviceGroupController.java93 return (packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) in getAvailabilityStatus()
94 || packageManager.hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY) in getAvailabilityStatus()
95 || packageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in getAvailabilityStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordControllerTest.java84 when(mPackageManager.hasSystemFeature(eq(FEATURE_FINGERPRINT))).thenReturn(true); in setUp()
87 when(mPackageManager.hasSystemFeature(eq(FEATURE_FACE))).thenReturn(true); in setUp()
133 when(mPackageManager.hasSystemFeature(eq(FEATURE_FINGERPRINT))).thenReturn(false); in launchChooseLockWithoutFingerprint_noFingerprintFeature()
147 when(mPackageManager.hasSystemFeature(eq(FEATURE_FACE))).thenReturn(false); in launchChooseLockWithoutFace_no_FaceFeature()
/packages/apps/PermissionController/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/
DDefaultPaymentSettingsPreferenceController.java42 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC) in getAvailabilityStatus()
43 || !mPackageManager.hasSystemFeature( in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceController.java42 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC) in getAvailabilityStatus()
43 || !mPackageManager.hasSystemFeature( in getAvailabilityStatus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollActivity.java47 if (pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) { in onCreate()
49 } else if (pm.hasSystemFeature(PackageManager.FEATURE_FACE)) { in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/
DDefaultPaymentSettingsPreferenceControllerTest.java64 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in isAvailable_hasNfc_shouldReturnTrue()
73 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in isAvailable_noNfcAdapter_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollActivity.java57 if (pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) { in onCreate()
65 } else if (pm.hasSystemFeature(PackageManager.FEATURE_FACE)) { in onCreate()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java577 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in openEmergencyAlertNotification()
606 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in addToNotificationBar()
619 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in addToNotificationBar()
650 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in addToNotificationBar()
680 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in addToNotificationBar()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java120 public static void setHasSystemFeature(boolean hasSystemFeature) { in setHasSystemFeature() argument
121 sHasSystemFeature = hasSystemFeature; in setHasSystemFeature()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wfd/
DWifiDisplaySettingsTest.java62 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT)).thenReturn(true); in setUp()
97 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT)) in isAvailable_noWifiDirectFeature_shouldReturnFalse()
/packages/apps/Dialer/java/com/android/dialer/oem/
DMotorolaUtils.java77 return context.getPackageManager().hasSystemFeature(HIDDEN_MENU_FEATURE) in isSupportingHiddenMenu()
145 && context.getPackageManager().hasSystemFeature(HD_CALL_FEATRURE); in isSupportingSprintHdCodec()
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java115 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE) in dispatchSetNewPasswordIntent()
121 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT) in dispatchSetNewPasswordIntent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSetNewPasswordController.java115 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE) in dispatchSetNewPasswordIntent()
121 } else if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT) in dispatchSetNewPasswordIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAutoRotatePreferenceControllerTest.java157 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in enableAutoRotationPreference()
164 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in disableAutoRotationPreference()

123456