/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | TopLevelSecurityPreferenceControllerTest.java | 60 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/ |
D | FaceSetupSliceTest.java | 61 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/ |
D | PaymentSettingsTest.java | 76 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()
|
D | NfcForegroundPreferenceControllerTest.java | 76 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()
|
D | NfcPaymentPreferenceControllerTest.java | 71 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()
|
D | AndroidBeamPreferenceControllerTest.java | 85 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/ |
D | SavedDeviceGroupControllerTest.java | 96 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()
|
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 99 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()
|
D | AvailableMediaDeviceGroupControllerTest.java | 99 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()
|
D | DiscoverableFooterPreferenceControllerTest.java | 95 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/ |
D | ConnectedDeviceGroupController.java | 93 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/ |
D | SetNewPasswordControllerTest.java | 84 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/ |
D | DeviceUtils.java | 30 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/ |
D | DefaultPaymentSettingsPreferenceController.java | 42 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC) in getAvailabilityStatus() 43 || !mPackageManager.hasSystemFeature( in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/ |
D | DefaultPaymentSettingsPreferenceController.java | 42 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC) in getAvailabilityStatus() 43 || !mPackageManager.hasSystemFeature( in getAvailabilityStatus()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/ |
D | BiometricEnrollActivity.java | 47 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/ |
D | DefaultPaymentSettingsPreferenceControllerTest.java | 64 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/ |
D | BiometricEnrollActivity.java | 57 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/ |
D | CellBroadcastAlertService.java | 577 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/ |
D | ShadowRestrictedLockUtilsInternal.java | 120 public static void setHasSystemFeature(boolean hasSystemFeature) { in setHasSystemFeature() argument 121 sHasSystemFeature = hasSystemFeature; in setHasSystemFeature()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wfd/ |
D | WifiDisplaySettingsTest.java | 62 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/ |
D | MotorolaUtils.java | 77 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/ |
D | SetNewPasswordController.java | 115 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/ |
D | SetNewPasswordController.java | 115 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/ |
D | AutoRotatePreferenceControllerTest.java | 157 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in enableAutoRotationPreference() 164 when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true); in disableAutoRotationPreference()
|