/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | LockScreenSafetySourceTest.java | 67 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in LockScreenSafetySourceTest 77 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 91 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(false); in setSafetySourceData_whenScreenLockEnabled_safetyCenterDisabled_doesNotSetData() 97 verify(mSafetyCenterManagerWrapper, never()) in setSafetySourceData_whenScreenLockEnabled_safetyCenterDisabled_doesNotSetData() 103 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_whenScreenLockIsDisabled_setsNullData() 109 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_whenScreenLockIsDisabled_setsNullData() 117 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_setsDataForLockscreenSafetySource() 122 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_setsDataForLockscreenSafetySource() 130 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 135 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_setsDataWithCorrectSafetyEvent() [all …]
|
D | SafetySourceBroadcastReceiverTest.java | 64 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in SafetySourceBroadcastReceiverTest 76 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 86 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(false); in onReceive_onRefresh_whenSafetyCenterIsDisabled_doesNotSetData() 97 verify(mSafetyCenterManagerWrapper, never()) in onReceive_onRefresh_whenSafetyCenterIsDisabled_doesNotSetData() 103 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoIntentAction_doesNotSetData() 113 verify(mSafetyCenterManagerWrapper, never()) in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoIntentAction_doesNotSetData() 119 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNullSourceIds_doesNotSetData() 127 verify(mSafetyCenterManagerWrapper, never()) in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNullSourceIds_doesNotSetData() 133 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoSourceIds_doesNotSetData() 142 verify(mSafetyCenterManagerWrapper, never()) in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoSourceIds_doesNotSetData() [all …]
|
D | BiometricsSafetySourceTest.java | 85 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in BiometricsSafetySourceTest 105 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 115 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(false); in setSafetyData_whenSafetyCenterIsDisabled_doesNotSetData() 119 verify(mSafetyCenterManagerWrapper, never()) in setSafetyData_whenSafetyCenterIsDisabled_doesNotSetData() 125 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_whenSafetyCenterIsEnabled_withoutBiometrics_setsNullData() 131 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_whenSafetyCenterIsEnabled_withoutBiometrics_setsNullData() 138 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_setsDataForBiometricSource() 146 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_setsDataForBiometricSource() 153 when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 161 verify(mSafetyCenterManagerWrapper) in setSafetySourceData_setsDataWithCorrectSafetyEvent() [all …]
|
D | MoreSecurityPrivacyFragmentSettingsTest.java | 51 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in MoreSecurityPrivacyFragmentSettingsTest 62 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 75 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(true); in whenSafetyCenterIsEnabled_pageIndexIncluded() 88 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(false); in whenSafetyCenterIsDisabled_pageIndexExcluded()
|
D | TopLevelSafetyCenterEntryPreferenceControllerTest.java | 56 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in TopLevelSafetyCenterEntryPreferenceControllerTest 63 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 120 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in getAvailabilityStatus_whenSafetyCenterDisabled_returnsUnavailable() 128 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in getAvailabilityStatus_whenSafetyCenterEnabled_returnsAvailable()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/privatespace/ |
D | PrivateSpaceSafetySourceTest.java | 61 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in PrivateSpaceSafetySourceTest 69 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 81 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(false); in onDeviceRebootedEvent_whenSafetyCenterDisabled_doesNotSetData() 85 verify(mSafetyCenterManagerWrapper, never()).setSafetySourceData( in onDeviceRebootedEvent_whenSafetyCenterDisabled_doesNotSetData() 92 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(true); in onDeviceRebootedEvent_whenSafetyCenterEnabled_setsData() 98 verify(mSafetyCenterManagerWrapper).setSafetySourceData( in onDeviceRebootedEvent_whenSafetyCenterEnabled_setsData() 105 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(true); in setSafetySourceData_whenFeatureDisabled_setsNullData() 112 verify(mSafetyCenterManagerWrapper).setSafetySourceData( in setSafetySourceData_whenFeatureDisabled_setsNullData() 121 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(true); in setSafetySourceData_setsEnabled() 128 verify(mSafetyCenterManagerWrapper).setSafetySourceData( in setSafetySourceData_setsEnabled() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/privacy/ |
D | PrivacyDashboardActivityTest.java | 50 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in PrivacyDashboardActivityTest 58 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 65 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in onCreate_whenSafetyCenterEnabled_redirectsToSafetyCenter() 76 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in onCreateWithAdvancedIntent_whenSafetyCenterEnabled_doesntRedirectToSafetyCenter() 85 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in onCreate_whenSafetyCenterDisabled_doesntRedirectToSafetyCenter() 94 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in onCreateWithAdvancedIntent_whenSafetyCenterDisabled_doesntRedirectToSafetyCenter() 102 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in startActivityUsingIntent()
|
D | TopLevelPrivacyEntryPreferenceControllerTest.java | 46 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in TopLevelPrivacyEntryPreferenceControllerTest 51 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 60 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in getAvailabilityStatus_whenSafetyCenterEnabled_returnsUnavailable() 68 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in getAvailabilityStatus_whenSafetyCenterDisabled_returnsAvailable()
|
D | PrivacyDashboardFragmentTest.java | 49 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in PrivacyDashboardFragmentTest 61 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 68 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(true); in whenSafetyCenterIsEnabled_pageIndexExcluded()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/security/ |
D | SecurityAdvancedSettingsTest.java | 59 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in SecurityAdvancedSettingsTest 69 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 84 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(true); in getCategoryKey_whenSafetyCenterIsEnabled_returnsSecurity() 92 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in getCategoryKey_whenAlternativeFragmentPresented_returnsAlternative() 101 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in getCategoryKey_whenNoAlternativeFragmentPresented_returnsLegacy() 110 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(true); in whenSafetyCenterIsEnabled_pageIndexExcluded()
|
D | TopLevelSecurityEntryPreferenceControllerTest.java | 58 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in TopLevelSecurityEntryPreferenceControllerTest 65 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 131 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in getAvailabilityStatus_whenSafetyCenterEnabled_returnsUnavailable() 139 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in getAvailabilityStatus_whenSafetyCenterDisabled_returnsAvailable()
|
D | SecurityDashboardActivityTest.java | 59 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in SecurityDashboardActivityTest 66 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 132 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(true); in onCreate_whenSafetyCenterEnabled_redirectsToSafetyCenter() 143 when(mSafetyCenterManagerWrapper.isEnabled(any(Context.class))).thenReturn(false); in onCreate_whenSafetyCenterDisabled_doesntRedirectToSafetyCenter()
|
D | SecuritySettingsTest.java | 83 private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in SecuritySettingsTest 95 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setup() 136 when(mSafetyCenterManagerWrapper.isEnabled(any())).thenReturn(false); in noAlternativeFragmentAvailableAndSafetyCenterIsDisabled_pageIndexIncluded()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintUpdaterTest.java | 60 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in FingerprintUpdaterTest 74 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 118 verify(mSafetyCenterManagerWrapper).isEnabled(mContext); in enroll_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 138 verify(mSafetyCenterManagerWrapper, never()).isEnabled(any()); in enroll_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 168 verify(mSafetyCenterManagerWrapper).isEnabled(mContext); in remove_onRemovalSuccess_invokedInteractionWithSafetyCenter()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/face/ |
D | FaceUpdaterTest.java | 75 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in FaceUpdaterTest 89 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 140 verify(mSafetyCenterManagerWrapper, atLeast(1)).isEnabled(mContext); in enroll_firstVersion_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 162 verify(mSafetyCenterManagerWrapper, never()).isEnabled(any()); in enroll_firstVersion_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 213 verify(mSafetyCenterManagerWrapper).isEnabled(mContext); in enroll_secondVersion_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 235 verify(mSafetyCenterManagerWrapper, never()).isEnabled(any()); in enroll_secondVersion_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 265 verify(mSafetyCenterManagerWrapper).isEnabled(mContext); in remove_onRemovalSuccess_invokedInteractionWithSafetyCenter()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/ |
D | CategoryManagerTest.java | 62 @Mock private SafetyCenterManagerWrapper mSafetyCenterManagerWrapper; field in CategoryManagerTest 75 SafetyCenterManagerWrapper.sInstance = mSafetyCenterManagerWrapper; in setUp() 145 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(true); in mergeSecurityPrivacyKeys_safetyCenterEnabled_shouldNotChangeOtherKeys() 172 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(true); in mergeSecurityPrivacyKeys_safetyCenterEnabled_shouldChangeSecurityPrivacyKeys() 202 when(mSafetyCenterManagerWrapper.isEnabled(mContext)).thenReturn(false); in mergeSecurityPrivacyKeys_safetyCenterDisabled_shouldNotChangeSecurityPrivacyKeys()
|