Searched refs:setSwitchUserId (Results 1 – 3 of 3) sorted by relevance
135 assertThrows(IllegalArgumentException.class, () -> builder.setSwitchUserId(USER_ID)); in testInitialUserInfoBuilder_invalidSetSwitchUserId()159 .setSwitchUserId(USER_ID) in testSwitchUser_ok_nonGuest()174 .setSwitchUserId(UserHandle.USER_SYSTEM) in testSwitchUser_ok_systemUser()193 .setSwitchUserId(USER_ID) in testSwitchUser_ok_guestReplaced()211 .setSwitchUserId(USER_ID) in testSwitchUser_ok_guestDoesNotNeedToBeReplaced()229 .setSwitchUserId(USER_ID) in testSwitchUser_fail_guestReplacementFailed()244 .setSwitchUserId(USER_ID) in testSwitchUser_fail_switchFail()257 .setSwitchUserId(USER_ID) in testSwitchUser_fail_userDoesntExist()271 .setSwitchUserId(USER_ID) in testSwitchUser_fail_switchThrowsException()285 .setSwitchUserId(CURRENT_USER_ID) in testSwitchUser_ok_targetIsCurrentUser()
189 public Builder setSwitchUserId(@UserIdInt int userId) { in setSwitchUserId() method in InitialUserSetter.Builder367 .setSwitchUserId(newUser.id) in replaceUser()391 .setSwitchUserId(userId) in executeDefaultBehavior()545 .setSwitchUserId(result.first.id) in createAndSwitchUser()
839 .setSwitchUserId(userId) in initBootUser()