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/profiles/
DProfileDetailsActionButtonsPreferenceControllerTest.java106 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_userIsViewingSelf_renameButtonShown()
118 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_userIsNotViewingSelf_renameButtonHidden()
130 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingNonAdmin_makeAdminButtonShown()
144 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingAdmin_makeAdminButtonHidden()
160 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isAdminViewingSelf_makeManageOtherProfilesButtonShown()
178 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_isAdminViewingOther_makeManageOtherProfilesButtonHidden()
195 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isNonAdmin_makeManageOtherProfilesButtonHidden()
211 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onStart_isOnlyProfile_makeAddAProfileButtonShown()
225 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_profileIsRemovable_deleteButtonShown()
238 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onStart_profileIsNotRemovable_deleteButtonHidden()
[all …]
DRemoveProfileHandlerTest.java76 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in userNotRestricted_canRemoveProfile()
84 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in userRestricted_cannotRemoveProfile()
95 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in viewingSystemUser_cannotRemoveProfile()
124 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in showConfirmRemoveProfileDialog_showsConfirmationDialog()
136 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onDeleteConfirmed_removeProfile()
150 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onDeleteConfirmed_lastAdmin_launchChooseNewAdminFragment()
DProfileDetailsDeletePreferenceControllerTest.java82 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userNotRestricted_deleteButtonShown()
93 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userRestricted_deleteButtonHidden()
106 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()
118 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
130 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in onCreate_isDemoUser_deleteButtonHidden()
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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountGroupPreferenceControllerTest.java82 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_cannotModifyAccounts_notAvailable()
95 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in getAvailabilityStatus_currentUser_canModifyAccounts_available()
108 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_canModifyAccounts_notAvailable()
121 when(mMockProfileHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in getAvailabilityStatus_notCurrentUser_cannotModifyAccounts_notAvailable()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceController.java130 && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal()
134 || mUserManager.isAdminUser() && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal()
149 .setVisible(mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal()
184 && !mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal()
DProfileHelper.java152 if (!mUserManager.isAdminUser() && !isCurrentProcessUser(userInfo)) { in removeProfile()
399 public boolean isCurrentProcessUser(UserInfo userInfo) { in isCurrentProcessUser() method in ProfileHelper
DProfileUtils.java52 return ProfileHelper.getInstance(context).isCurrentProcessUser(userInfo) in getProfileDisplayName()
DProfileDetailsHeaderPreferenceController.java65 return mProfileHelper.isCurrentProcessUser(getUserInfo()) in getSummary()
DProfileDetailsDeletePreferenceController.java80 && mProfileHelper.isCurrentProcessUser(getUserInfo())); in updateState()
DProfilesPreferenceProvider.java140 return ProfileHelper.getInstance(mContext).isCurrentProcessUser(userInfo); in isCurrentProfile()
/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/accounts/
DAccountGroupPreferenceController.java48 boolean isCurrentUser = getProfileHelper().isCurrentProcessUser(getUserInfo()); in getAvailabilityStatus()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfilesListPreferenceControllerTest.java80 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
DProfilesPreferenceProviderTest.java87 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
DProfilesBasePreferenceControllerTest.java98 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()