Searched refs:userList (Results 1 – 5 of 5) sorted by relevance
111 List<Preference> userList = provider.createProfileList(); in testCreateUserList_repeatedGuestUserNotShown() local112 assertThat(userList.size()).isEqualTo(4); // 3 real users + guest item. in testCreateUserList_repeatedGuestUserNotShown()113 assertThat(userList.get(0).getTitle()).isEqualTo( in testCreateUserList_repeatedGuestUserNotShown()115 assertThat(userList.get(1).getTitle()).isEqualTo(TEST_OTHER_USER_1_NAME); in testCreateUserList_repeatedGuestUserNotShown()116 assertThat(userList.get(2).getTitle()).isEqualTo(TEST_OTHER_USER_2_NAME); in testCreateUserList_repeatedGuestUserNotShown()123 List<Preference> userList = provider.createProfileList(); in testCreateUserList_guestShownAsSeparateLastElement() local124 assertThat(userList.get(userList.size() - 1).getTitle()).isEqualTo( in testCreateUserList_guestShownAsSeparateLastElement()133 List<Preference> userList = provider.createProfileList(); in testCreateUserList_currentUserNotShown() local134 assertThat(userList.size()).isEqualTo(3); // 3 real users + guest item. in testCreateUserList_currentUserNotShown()135 assertThat(userList.get(0).getTitle()).isEqualTo(TEST_OTHER_USER_1_NAME); in testCreateUserList_currentUserNotShown()[all …]
25 class FakeUserRepository(userList: List<User>) : UserRepository { in <lambda>()28 private val userState = MutableStateFlow(userList.map { UserState(it, available = true) }) in <lambda>()31 override val users = userState.map { userList -> userList.map { it.user } } in <lambda>() method
372 List<Integer> userList = new ArrayList<>(); in setUserInfo() local389 userList.add(userId); in setUserInfo()396 if (userList.isEmpty()) { in setUserInfo()401 Integer[] userArray = userList.toArray(Integer[]::new); in setUserInfo()
1892 List<UserHandle> userList = new ArrayList<>();1893 userList.add(userHandle);1899 userList.add(mProfiles.getCloneHandle());1901 return userList;
1175 List<UserHandle> userList = new ArrayList<>(); in getResolverRankerServiceUserHandleListInternal() local1176 userList.add(userHandle); in getResolverRankerServiceUserHandleListInternal()1182 userList.add(mProfiles.getCloneHandle()); in getResolverRankerServiceUserHandleListInternal()1184 return userList; in getResolverRankerServiceUserHandleListInternal()