Home
last modified time | relevance | path

Searched refs:mRemoveProfileHandler (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DRemoveProfileHandlerTest.java56 private RemoveProfileHandler mRemoveProfileHandler; field in RemoveProfileHandlerTest
68 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 …]
DProfileDetailsDeletePreferenceControllerTest.java54 private RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsDeletePreferenceControllerTest
72 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()
DProfileDetailsActionButtonsPreferenceControllerTest.java80 private RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsActionButtonsPreferenceControllerTest
93 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()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsDeletePreferenceController.java40 private final RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsDeletePreferenceController
57 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()
DProfileDetailsActionButtonsPreferenceController.java71 private final RemoveProfileHandler mRemoveProfileHandler; field in ProfileDetailsActionButtonsPreferenceController
90 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()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DDeleteUserPreferenceController.java40 private final RemoveProfileHandler mRemoveProfileHandler; field in DeleteUserPreferenceController
55 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()