Home
last modified time | relevance | path

Searched refs:userList (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfilesPreferenceProviderTest.java111 List<Preference> userList = provider.createProfileList(); in testCreateUserList_repeatedGuestUserNotShown() local
112 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() local
124 assertThat(userList.get(userList.size() - 1).getTitle()).isEqualTo( in testCreateUserList_guestShownAsSeparateLastElement()
133 List<Preference> userList = provider.createProfileList(); in testCreateUserList_currentUserNotShown() local
134 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 …]
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/data/repository/
DFakeUserRepository.kt25 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
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioUserAssignmentFragment.java372 List<Integer> userList = new ArrayList<>(); in setUserInfo() local
389 userList.add(userId); in setUserInfo()
396 if (userList.isEmpty()) { in setUserInfo()
401 Integer[] userArray = userList.toArray(Integer[]::new); in setUserInfo()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverActivity.java1892 List<UserHandle> userList = new ArrayList<>();
1893 userList.add(userHandle);
1899 userList.add(mProfiles.getCloneHandle());
1901 return userList;
DChooserActivity.java1175 List<UserHandle> userList = new ArrayList<>(); in getResolverRankerServiceUserHandleListInternal() local
1176 userList.add(userHandle); in getResolverRankerServiceUserHandleListInternal()
1182 userList.add(mProfiles.getCloneHandle()); in getResolverRankerServiceUserHandleListInternal()
1184 return userList; in getResolverRankerServiceUserHandleListInternal()