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.java43 private AddProfileHandler mAddProfileHandler; field in AddProfilePreferenceController
51 mAddProfileHandler = new AddProfileHandler(context, fragmentController, this); in AddProfilePreferenceController()
62 mAddProfileHandler.onCreateInternal(); in onCreateInternal()
74 mAddProfileHandler.onStopInternal(); in onStopInternal()
79 mAddProfileHandler.onDestroyInternal(); in onDestroyInternal()
84 mAddProfileHandler.updateState(preference); in updateState()
108 if (mAddProfileHandler.canAddProfiles(mUserManager)) { in handlePreferenceClicked()
109 mAddProfileHandler.showAddProfileDialog(); in handlePreferenceClicked()
117 if (mUserManager.isDemoUser() || mAddProfileHandler.canAddProfiles(mUserManager)) { in getAvailabilityStatus()
DProfileDetailsActionButtonsPreferenceController.java59 private AddProfileHandler mAddProfileHandler; field in ProfileDetailsActionButtonsPreferenceController
92 mAddProfileHandler = new AddProfileHandler(context, fragmentController, this); in ProfileDetailsActionButtonsPreferenceController()
105 mAddProfileHandler.onCreateInternal(); in onCreateInternal()
131 && mAddProfileHandler.canAddProfiles(mUserManager) in onStartInternal()
166 mAddProfileHandler.showAddProfileDialog(); in onStartInternal()
197 mAddProfileHandler.onStopInternal(); in onStopInternal()
203 mAddProfileHandler.onDestroyInternal(); in onDestroyInternal()
208 mAddProfileHandler.updateState(preference); in updateState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfileHandlerTest.java65 private AddProfileHandler mAddProfileHandler; field in AddProfileHandlerTest
87 mAddProfileHandler = new AddProfileHandler(mContext, in setUp()
89 mAddProfileHandler.setCarUserManager(mCarUserManager); in setUp()
97 assertThat(mAddProfileHandler.canAddProfiles(mUserManager)).isFalse(); in userRestricted_canNotAddProfile()
104 assertThat(mAddProfileHandler.canAddProfiles(mUserManager)).isTrue(); in userNotRestricted_canAddProfile()
118 mAddProfileHandler.mConfirmCreateNewProfileListener.onConfirm(/* arguments= */ null); in newProfileConfirmed_invokesCreateNewUser()
120 mAddProfileHandler.mAddNewProfileTask.get(ADD_PROFILE_TASK_TIMEOUT, TimeUnit.SECONDS); in newProfileConfirmed_invokesCreateNewUser()
130 mAddProfileHandler.showAddProfileDialog(); in testCallOnClick_showAddProfileDialog()