Searched refs:canRemoveProfile (Results 1 – 6 of 6) sorted by relevance
84 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(true); in onCreate_canRemoveProfile_preferenceEnabled()92 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(false); in onCreate_cannotRemoveProfile_preferenceDisabled()105 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(false); in onClick_preferenceDisabled_showsToast()120 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(true); in onClick_preferenceEnabled_showsDialog()
106 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isTrue(); in userNotRestricted_canRemoveProfile()114 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in userRestricted_cannotRemoveProfile()122 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in viewingForegroundUser_cannotRemoveProfile()129 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in viewingSystemUser_cannotRemoveProfile()137 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in isDemoUser_cannotRemoveProfile()
170 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_isAdminViewingSelf_manageOtherProfilesButtonShown()239 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_profileIsRemovable_deleteButtonShown()268 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsViewingSelf_deleteButtonHidden()283 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsNotViewingSelf_deleteButtonShown()339 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onDeleteButtonClicked_showsConfirmationDialog()
134 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()146 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
115 public boolean canRemoveProfile(UserInfo userInfo) { in canRemoveProfile() method in RemoveProfileHandler145 if (canRemoveProfile(userInfo) && allowCurrentProcess) { in getAvailabilityStatus()
83 return mRemoveProfileHandler.canRemoveProfile(mUserInfo) ? AVAILABLE in getDefaultAvailabilityStatus()