Home
last modified time | relevance | path

Searched refs:restrictedPreference (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/
DBiometricFaceStatusPreferenceControllerTest.java128 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in faceDisabled_whenAdminAndNoFingerprintsEnrolled() local
129 mController.updateState(restrictedPreference); in faceDisabled_whenAdminAndNoFingerprintsEnrolled()
131 verify(restrictedPreference).setDisabledByAdmin(any()); in faceDisabled_whenAdminAndNoFingerprintsEnrolled()
142 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in faceNotDisabled_whenAdminAndFingerprintsEnrolled() local
143 mController.updateState(restrictedPreference); in faceNotDisabled_whenAdminAndFingerprintsEnrolled()
145 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in faceNotDisabled_whenAdminAndFingerprintsEnrolled()
146 verify(restrictedPreference).setEnabled(true); in faceNotDisabled_whenAdminAndFingerprintsEnrolled()
153 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in faceNotDisabled_whenNoAdmin() local
154 mController.updateState(restrictedPreference); in faceNotDisabled_whenNoAdmin()
156 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in faceNotDisabled_whenNoAdmin()
[all …]
DBiometricFingerprintStatusPreferenceControllerTest.java130 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled() local
131 mController.updateState(restrictedPreference); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled()
133 verify(restrictedPreference).setDisabledByAdmin(any()); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled()
144 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled() local
145 mController.updateState(restrictedPreference); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled()
147 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled()
148 verify(restrictedPreference).setEnabled(true); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled()
155 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in fingerprintNotDisabled_whenNoAdmin() local
156 mController.updateState(restrictedPreference); in fingerprintNotDisabled_whenNoAdmin()
158 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in fingerprintNotDisabled_whenNoAdmin()
[all …]
DCombinedBiometricStatusPreferenceControllerTest.java100 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local
103 mController.mPreference = restrictedPreference; in updateState_parentalConsentRequired_preferenceDisabled()
105 verify(restrictedPreference).setDisabledByAdmin(eq(admin)); in updateState_parentalConsentRequired_preferenceDisabled()
108 verify(restrictedPreference).setDisabledByAdmin(eq(null)); in updateState_parentalConsentRequired_preferenceDisabled()
/packages/apps/Settings/src/com/android/settings/development/
DVerifyAppsOverUsbPreferenceController.java100 final RestrictedSwitchPreference restrictedPreference = in updateState() local
103 restrictedPreference.setChecked(false); in updateState()
104 restrictedPreference.setDisabledByAdmin(null); in updateState()
105 restrictedPreference.setEnabled(false); in updateState()
112 restrictedPreference.setChecked(true); in updateState()
113 restrictedPreference.setDisabledByAdmin(enforcingAdmin); in updateState()
117 restrictedPreference.setEnabled(true); in updateState()
121 restrictedPreference.setChecked(checked); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DFaceStatusPreferenceControllerTest.java158 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local
161 mController.mPreference = restrictedPreference; in updateState_parentalConsentRequired_preferenceDisabled()
163 verify(restrictedPreference).setDisabledByAdmin(eq(admin)); in updateState_parentalConsentRequired_preferenceDisabled()
168 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in updateState_parentalConsentRequired_preferenceDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusPreferenceControllerTest.java157 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local
160 mController.mPreference = restrictedPreference; in updateState_parentalConsentRequired_preferenceDisabled()
162 verify(restrictedPreference).setDisabledByAdmin(eq(admin)); in updateState_parentalConsentRequired_preferenceDisabled()
167 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in updateState_parentalConsentRequired_preferenceDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentListPreferenceControllerTest.java201 RestrictedPreference restrictedPreference = (RestrictedPreference) preference; in onResume_shouldShowDisabledByAdminRestrictedPreference() local
202 assertThat(restrictedPreference.isDisabledByAdmin()).isTrue(); in onResume_shouldShowDisabledByAdminRestrictedPreference()
216 final RestrictedPreference restrictedPreference = in onResume_restrictedPreferenceShouldUseAdminDisabledSummary() local
219 inflater.inflate(restrictedPreference.getLayoutResource(), null)); in onResume_restrictedPreferenceShouldUseAdminDisabledSummary()
221 restrictedPreference.onBindViewHolder(viewHolder); in onResume_restrictedPreferenceShouldUseAdminDisabledSummary()