Searched refs:mRemoveProfileHandler (Results 1 – 6 of 6) sorted by relevance
56 private RemoveProfileHandler mRemoveProfileHandler; field in RemoveProfileHandlerTest68 mRemoveProfileHandler = new RemoveProfileHandler( in setUp()75 mRemoveProfileHandler.setUserInfo(userInfo); in userNotRestricted_canRemoveProfile()77 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isTrue(); in userNotRestricted_canRemoveProfile()83 mRemoveProfileHandler.setUserInfo(userInfo); in userRestricted_cannotRemoveProfile()88 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in userRestricted_cannotRemoveProfile()94 mRemoveProfileHandler.setUserInfo(userInfo); in viewingSystemUser_cannotRemoveProfile()96 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in viewingSystemUser_cannotRemoveProfile()102 mRemoveProfileHandler.setUserInfo(userInfo); in isDemoUser_cannotRemoveProfile()104 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in isDemoUser_cannotRemoveProfile()[all …]
54 private RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsDeletePreferenceControllerTest72 mRemoveProfileHandler = new RemoveProfileHandler( in setUp()76 mMockProfileHelper, mRemoveProfileHandler); in setUp()109 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()121 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
80 private RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsActionButtonsPreferenceControllerTest93 mMockProfileHelper, mMockUserManager, mRemoveProfileHandler); in setUp()165 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_isAdminViewingSelf_makeManageOtherProfilesButtonShown()228 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_profileIsRemovable_deleteButtonShown()255 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsViewingSelf_deleteButtonHidden()268 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsNotViewingSelf_deleteButtonShown()285 verify(mRemoveProfileHandler).resetListeners(); in onCreate_hasPreviousDeleteDialog_dialogListenerSet()324 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onDeleteButtonClicked_showsConfirmationDialog()330 verify(mRemoveProfileHandler).showConfirmRemoveProfileDialog(); in onDeleteButtonClicked_showsConfirmationDialog()
40 private final RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsDeletePreferenceController57 mRemoveProfileHandler = removeProfileHandler; in ProfileDetailsDeletePreferenceController()68 mRemoveProfileHandler.resetListeners(); in onCreateInternal()74 mRemoveProfileHandler.setUserInfo(userInfo); in setUserInfo()79 preference.setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in updateState()85 mRemoveProfileHandler.showConfirmRemoveProfileDialog(); in handlePreferenceClicked()
71 private final RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsActionButtonsPreferenceController90 mRemoveProfileHandler = removeProfileHandler; in ProfileDetailsActionButtonsPreferenceController()116 mRemoveProfileHandler.resetListeners(); in onCreateInternal()183 .setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in onStartInternal()185 .setOnClickListener(v -> mRemoveProfileHandler.showConfirmRemoveProfileDialog()); in onStartInternal()191 mRemoveProfileHandler.setUserInfo(userInfo); in setUserInfo()
40 private final RemoveProfileHandler mRemoveProfileHandler; field in DeleteUserPreferenceController55 mRemoveProfileHandler = removeProfileHandler; in DeleteUserPreferenceController()57 mRemoveProfileHandler.setUserInfo(mUserInfo); in DeleteUserPreferenceController()63 mRemoveProfileHandler.resetListeners(); in onCreateInternal()76 mRemoveProfileHandler.showConfirmRemoveProfileDialog(); in handlePreferenceClicked()82 return mRemoveProfileHandler.canRemoveProfile(mUserInfo) ? AVAILABLE in getAvailabilityStatus()