Searched refs:startForegroundUser (Results 1 – 2 of 2) sorted by relevance
773 assertThat(mSetter.startForegroundUser(10)).isTrue(); in testStartForegroundUser_ok()780 assertThat(mSetter.startForegroundUser(10)).isFalse(); in testStartForegroundUser_fail()787 assertThat(mSetter.startForegroundUser(10)).isFalse(); in testStartForegroundUser_remoteException()795 assertThat(mSetter.startForegroundUser(UserHandle.USER_SYSTEM)).isTrue(); in testStartForegroundUser_nonHeadlessSystemUser()802 assertThat(mSetter.startForegroundUser(UserHandle.USER_SYSTEM)).isFalse(); in testStartForegroundUser_headlessSystemUser()1061 doReturn(true).when(mSetter).startForegroundUser(userId); in expectSwitchUser()1064 when(mSetter.startForegroundUser(userId)).thenReturn(false); in expectSwitchUserFails()1068 when(mSetter.startForegroundUser(userId)) in expectSwitchUserThrowsException()1106 verify(mSetter).startForegroundUser(userId); in verifyUserSwitched()1111 verify(mSetter, never()).startForegroundUser(anyInt()); in verifyUserNeverSwitched()
445 if (!startForegroundUser(actualUserId)) { in switchUser()648 boolean startForegroundUser(@UserIdInt int userId) { in startForegroundUser() method in InitialUserSetter