Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DEditUserNameEntryPreferenceControllerTest.java87 when(mCarUserManagerHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in testOnButtonClick_isCurrentUser_launchesEditUsernameFragment()
98 when(mCarUserManagerHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in testOnButtonClick_isNotCurrentUser_doesNothing()
109 when(mCarUserManagerHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in testRefreshUi_elementHasTitle()
139 when(mCarUserManagerHelper.isCurrentProcessUser(userInfo)).thenReturn(false); in testRefreshUi_isAdmin_notCurrentUser()
151 when(mCarUserManagerHelper.isCurrentProcessUser(userInfo)).thenReturn(true); in testRefreshUi_isAdmin_currentUser()
DUsersListPreferenceControllerTest.java74 when(mCarUserManagerHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
DUsersPreferenceProviderTest.java82 doReturn(true).when(mCarUserManagerHelper).isCurrentProcessUser(TEST_CURRENT_USER); in setUp()
DUsersBasePreferenceControllerTest.java93 when(mCarUserManagerHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp()
/packages/services/Car/tests/robotests/src/com/android/car/users/
DCarUserManagerHelperRoboTest.java164 assertThat(mHelper.isCurrentProcessUser(user1)).isTrue(); in testIsUserRunningCurrentProcess()
165 assertThat(mHelper.isCurrentProcessUser(user2)).isFalse(); in testIsUserRunningCurrentProcess()
168 assertThat(mHelper.isCurrentProcessUser(user2)).isTrue(); in testIsUserRunningCurrentProcess()
169 assertThat(mHelper.isCurrentProcessUser(user1)).isFalse(); in testIsUserRunningCurrentProcess()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DEditUserNameEntryPreferenceController.java53 if (!getCarUserManagerHelper().isCurrentProcessUser(getUserInfo())) { in updateState()
64 return getCarUserManagerHelper().isCurrentProcessUser(getUserInfo()) in getSummary()
DUserUtils.java50 return carUserManagerHelper.isCurrentProcessUser(userInfo) ? context.getString( in getUserDisplayName()
DUsersPreferenceProvider.java145 return mCarUserManagerHelper.isCurrentProcessUser(userInfo); in isCurrentUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java72 protected boolean isCurrentProcessUser(UserInfo userInfo) { in isCurrentProcessUser() method in ShadowCarUserManagerHelper
73 return sMockInstance.isCurrentProcessUser(userInfo); in isCurrentProcessUser()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java556 public boolean isCurrentProcessUser(UserInfo userInfo) { in isCurrentProcessUser() method in CarUserManagerHelper
886 if (!isCurrentProcessAdminUser() && !isCurrentProcessUser(userInfo)) { in removeUser()