Searched refs:restrictedPreference (Results 1 – 7 of 7) sorted by relevance
128 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in faceDisabled_whenAdminAndNoFingerprintsEnrolled() local129 mController.updateState(restrictedPreference); in faceDisabled_whenAdminAndNoFingerprintsEnrolled()131 verify(restrictedPreference).setDisabledByAdmin(any()); in faceDisabled_whenAdminAndNoFingerprintsEnrolled()142 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in faceNotDisabled_whenAdminAndFingerprintsEnrolled() local143 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() local154 mController.updateState(restrictedPreference); in faceNotDisabled_whenNoAdmin()156 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in faceNotDisabled_whenNoAdmin()[all …]
130 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled() local131 mController.updateState(restrictedPreference); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled()133 verify(restrictedPreference).setDisabledByAdmin(any()); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled()144 final RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled() local145 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() local156 mController.updateState(restrictedPreference); in fingerprintNotDisabled_whenNoAdmin()158 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in fingerprintNotDisabled_whenNoAdmin()[all …]
100 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local103 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()
100 final RestrictedSwitchPreference restrictedPreference = in updateState() local103 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()
158 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local161 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()
157 RestrictedPreference restrictedPreference = mock(RestrictedPreference.class); in updateState_parentalConsentRequired_preferenceDisabled() local160 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()
201 RestrictedPreference restrictedPreference = (RestrictedPreference) preference; in onResume_shouldShowDisabledByAdminRestrictedPreference() local202 assertThat(restrictedPreference.isDisabledByAdmin()).isTrue(); in onResume_shouldShowDisabledByAdminRestrictedPreference()216 final RestrictedPreference restrictedPreference = in onResume_restrictedPreferenceShouldUseAdminDisabledSummary() local219 inflater.inflate(restrictedPreference.getLayoutResource(), null)); in onResume_restrictedPreferenceShouldUseAdminDisabledSummary()221 restrictedPreference.onBindViewHolder(viewHolder); in onResume_restrictedPreferenceShouldUseAdminDisabledSummary()