Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DRemoveProfileHandlerTest.java77 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isTrue(); in userNotRestricted_canRemoveProfile()
88 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in userRestricted_cannotRemoveProfile()
96 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in viewingSystemUser_cannotRemoveProfile()
104 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in isDemoUser_cannotRemoveProfile()
DProfileDetailsActionButtonsPreferenceControllerTest.java165 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()
324 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onDeleteButtonClicked_showsConfirmationDialog()
DProfileDetailsDeletePreferenceControllerTest.java109 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()
121 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsDeletePreferenceController.java79 preference.setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in updateState()
DRemoveProfileHandler.java102 public boolean canRemoveProfile(UserInfo userInfo) { in canRemoveProfile() method in RemoveProfileHandler
DProfileDetailsActionButtonsPreferenceController.java183 .setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in onStartInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DDeleteUserPreferenceController.java82 return mRemoveProfileHandler.canRemoveProfile(mUserInfo) ? AVAILABLE in getAvailabilityStatus()