Home
last modified time | relevance | path

Searched refs:isCurrentProcessUser (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountGroupPreferenceControllerTest.java92 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available()
105 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneWrite()
120 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneRead()
135 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneHidden()
150 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_notAvailable()
162 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneWrite()
176 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneRead()
190 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneHidden()
204 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable()
217 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable_zoneWrite()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceControllerTest.java109 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_userIsViewingSelf_renameButtonShown()
121 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_userIsNotViewingSelf_renameButtonHidden()
133 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingNonAdmin_makeAdminButtonShown()
147 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingAdmin_makeAdminButtonHidden()
163 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isAdminViewingSelf_manageOtherProfilesButtonShown()
183 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingOther_manageOtherProfilesButtonHidden()
200 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isNonAdmin_addAProfileButtonShown()
218 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isAdmin_isOnlyProfile_makeAddAProfileButtonShown()
234 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_profileIsRemovable_deleteButtonShown()
247 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_profileIsNotRemovable_deleteButtonHidden()
[all …]
DProfileDetailsDeletePreferenceControllerTest.java93 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userNotRestricted_deleteButtonShown()
104 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userRestrictedByUm_deleteButtonHidden()
117 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userRestrictedByDpm_deleteButtonVisible()
131 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()
143 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
155 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_isDemoUser_deleteButtonHidden()
167 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_isDemoUserAndRestrictedByDpm_deleteButtonHidden()
183 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in disabledClick_restrictedByDpm_dialog()
DProfileDetailsHeaderPreferenceControllerTest.java78 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onCreate_elementHasTitle()
108 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onCreate_isAdmin_notCurrentProfile()
120 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_isAdmin_currentProfile()
DProfilesListPreferenceControllerTest.java99 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
DRemoveProfileHandlerTest.java240 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(isCurrentProcess); in mockCurrentUserInfo()
DProfilesBasePreferenceControllerTest.java105 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java70 public boolean isCurrentProcessUser(UserInfo userInfo) { in isCurrentProcessUser() method in ShadowUserHelper
71 return sInstance.isCurrentProcessUser(userInfo); in isCurrentProcessUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceController.java136 && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal()
141 || mUserManager.isAdminUser() && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal()
161 .setVisible(mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal()
DProfileUtils.java52 return ProfileHelper.getInstance(context).isCurrentProcessUser(userInfo) in getProfileDisplayName()
DProfileDetailsHeaderPreferenceController.java65 return mProfileHelper.isCurrentProcessUser(getUserInfo()) in getSummary()
DProfilesPreferenceProvider.java140 return ProfileHelper.getInstance(mContext).isCurrentProcessUser(userInfo); in isCurrentProfile()
DProfileHelper.java161 if (!mUserManager.isAdminUser() && !isCurrentProcessUser(userInfo)) { in removeProfile()
440 public boolean isCurrentProcessUser(UserInfo userInfo) { in isCurrentProcessUser() method in ProfileHelper
DRemoveProfileHandler.java144 !(availableForCurrentProcessUser ^ mProfileHelper.isCurrentProcessUser(userInfo)); in getAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountGroupPreferenceController.java60 boolean isCurrentUser = profileHelper.isCurrentProcessUser(getUserInfo()); in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfilesPreferenceProviderTest.java87 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()