Home
last modified time | relevance | path

Searched refs:mAddProfileHandler (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddProfilePreferenceController.java44 private AddProfileHandler mAddProfileHandler; field in AddProfilePreferenceController
52 mAddProfileHandler = new AddProfileHandler(context, fragmentController, this); in AddProfilePreferenceController()
63 mAddProfileHandler.onCreateInternal(); in onCreateInternal()
72 mAddProfileHandler.runClickableWhileDisabled()); in onCreateInternal()
77 mAddProfileHandler.onStopInternal(); in onStopInternal()
82 mAddProfileHandler.onDestroyInternal(); in onDestroyInternal()
87 mAddProfileHandler.updateState(preference); in updateState()
100 mAddProfileHandler.runClickableWhileDisabled(); in handlePreferenceClicked()
105 if (mAddProfileHandler.canAddProfiles(mUserManager)) { in handlePreferenceClicked()
106 mAddProfileHandler.showAddProfileDialog(); in handlePreferenceClicked()
[all …]
DProfileDetailsActionButtonsPreferenceController.java63 private AddProfileHandler mAddProfileHandler; field in ProfileDetailsActionButtonsPreferenceController
96 mAddProfileHandler = new AddProfileHandler(context, fragmentController, this); in ProfileDetailsActionButtonsPreferenceController()
109 mAddProfileHandler.onCreateInternal(); in onCreateInternal()
178 mAddProfileHandler.runClickableWhileDisabled(); in onStartInternal()
180 mAddProfileHandler.showAddProfileDialog(); in onStartInternal()
216 mAddProfileHandler.onStopInternal(); in onStopInternal()
222 mAddProfileHandler.onDestroyInternal(); in onDestroyInternal()
227 mAddProfileHandler.updateState(preference); in updateState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfileHandlerTest.java75 private AddProfileHandler mAddProfileHandler; field in AddProfileHandlerTest
98 mAddProfileHandler = new AddProfileHandler(mContext, in setUp()
100 mAddProfileHandler.setCarUserManager(mCarUserManager); in setUp()
108 assertThat(mAddProfileHandler.canAddProfiles(mUserManager)).isFalse(); in userRestricted_canNotAddProfile()
115 assertThat(mAddProfileHandler.canAddProfiles(mUserManager)).isTrue(); in userNotRestricted_canAddProfile()
131 mAddProfileHandler.mConfirmCreateNewProfileListener.onConfirm(/* arguments= */ null); in newProfileConfirmed_invokesCreateNewUser()
133 mAddProfileHandler.mAddNewProfileTask.get(ADD_PROFILE_TASK_TIMEOUT, TimeUnit.SECONDS); in newProfileConfirmed_invokesCreateNewUser()
143 mAddProfileHandler.showAddProfileDialog(); in testCallOnClick_showAddProfileDialog()
152 assertThat(mAddProfileHandler.getAddProfilePreferenceAvailabilityStatus(mContext)) in getAddProfilePreferenceAvailabilityStatus_demoUser_available()
162 assertThat(mAddProfileHandler.getAddProfilePreferenceAvailabilityStatus(mContext)) in getAddProfilePreferenceAvailabilityStatus_notRestricted_available()
[all …]