Home
last modified time | relevance | path

Searched refs:users (Results 1 – 25 of 236) sorted by relevance

12345678910

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt47 val users by collectLastValue(repo.users) in <lambda>() constant
49 assertWithMessage("collectLastValue(repo.users)").that(users).isNotNull() in <lambda>()
50 assertThat(users) in <lambda>()
57 val users by collectLastValue(repo.users) in <lambda>() constant
59 assertWithMessage("collectLastValue(repo.users)").that(users).isNotNull() in <lambda>()
60 assertThat(users).hasSize(1) in <lambda>()
63 assertThat(users).hasSize(2) in <lambda>()
64 assertThat(users).contains(User(profile.identifier, Role.WORK)) in <lambda>()
70 val users by collectLastValue(repo.users) in <lambda>() constant
72 assertWithMessage("collectLastValue(repo.users)").that(users).isNotNull() in <lambda>()
[all …]
DFakeUserRepositoryTest.kt38 val users by collectLastValue(repo.users) in <lambda>() constant
39 assertThat(users).containsExactly(personalUser, workUser, privateUser) in <lambda>()
46 val users by collectLastValue(repo.users) in <lambda>() constant
47 assertThat(users).isEmpty() in <lambda>()
50 assertThat(users).containsExactly(personalUser) in <lambda>()
53 assertThat(users).containsExactly(personalUser, workUser) in <lambda>()
60 val users by collectLastValue(repo.users) in <lambda>() constant
62 assertThat(users).containsExactly(personalUser) in <lambda>()
65 assertThat(users).isEmpty() in <lambda>()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUsersSpinner.java16 package com.google.android.car.kitchensink.users;
53 public void init(List<UserInfo> users) { in init() argument
54 Log.v(TAG, "init(): " + users.size() + " users (" + users + ")"); in init()
55 int size = users.size(); in init()
57 users.toArray(mUsers); in init()
DExistingUsersView.java16 package com.google.android.car.kitchensink.users;
66 List<UserInfo> users = mUserManager.getUsers(/*excludePartial= */ false, in updateState() local
68 mNumberUsers.setText(users.size() + " existing users"); in updateState()
69 mExistingUsers.init(users); in updateState()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java276 public static void mockUmGetAliveUsers(UserManager um, UserInfo... users) { in mockUmGetAliveUsers() argument
278 when(um.getAliveUsers()).thenReturn(UserTestingHelper.toList(users)); in mockUmGetAliveUsers()
287 List<UserInfo> users = UserTestingHelper.newUsers(userIds); in mockUmGetAliveUsers() local
288 when(um.getAliveUsers()).thenReturn(users); in mockUmGetAliveUsers()
295 UserHandle... users) { in mockUmGetUserHandles() argument
296 Objects.requireNonNull(users); in mockUmGetUserHandles()
297 mockUmGetUserHandles(um, excludeDying, UserTestingHelper.toList(users)); in mockUmGetUserHandles()
304 List<UserHandle> users) { in mockUmGetUserHandles() argument
306 Objects.requireNonNull(users); in mockUmGetUserHandles()
307 when(um.getUserHandles(excludeDying)).thenReturn(users); in mockUmGetUserHandles()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/domain/interactor/
DUserInteractor.kt41 userRepository.users.map { users -> in <lambda>() method
42 users.mapNotNull { user -> in <lambda>()
46 Profile(Type.PERSONAL, user, users.firstOrNull { it.role == Role.CLONE }) in <lambda>()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserHandleHelperUnitTest.java68 List<UserHandle> users = Arrays.asList(UserHandle.of(100), UserHandle.of(101), in testGetExistingUserHandle() local
70 mockGetUserHandles(false, users); in testGetExistingUserHandle()
83 List<UserHandle> users = Arrays.asList(UserHandle.of(100), UserHandle.of(101), in testGetEnabledProfiles() local
85 when(mUserManager.getEnabledProfiles()).thenReturn(users); in testGetEnabledProfiles()
88 mContextUser.getIdentifier())).containsExactlyElementsIn(users); in testGetEnabledProfiles()
DExperimentalCarUserServiceTest.java260 List<UserHandle> users = new ArrayList<>(Arrays.asList( in prepareUserList() local
273 associateParentChild(users.get(0), users.get(2)); in prepareUserList()
275 associateParentChild(users.get(3), users.get(7)); in prepareUserList()
277 associateParentChild(users.get(3), users.get(8)); in prepareUserList()
278 return users; in prepareUserList()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserRepository.kt61 val users: Flow<List<User>> in <lambda>() constant
188 private suspend fun handleEvent(users: UserStates, event: UserEvent): UserStates { in handleEvent()
193 is ProfileAdded -> handleProfileAdded(event, users) in handleEvent()
194 is ProfileRemoved -> handleProfileRemoved(event, users) in handleEvent()
195 is AvailabilityChange -> handleAvailability(event, users) in handleEvent()
198 users in handleEvent()
208 override val users: Flow<List<User>> = constant
/packages/services/Mms/src/com/android/mms/service/
DDownloadRequest.java216 int[] users = null; in notifyOfDownload() local
218 users = ActivityManager.getService().getRunningUserIds(); in notifyOfDownload()
221 if (users == null) { in notifyOfDownload()
222 users = new int[] {UserHandle.ALL.getIdentifier()}; in notifyOfDownload()
229 for (int i = users.length - 1; i >= 0; i--) { in notifyOfDownload()
230 UserHandle targetUser = new UserHandle(users[i]); in notifyOfDownload()
231 if (users[i] != UserHandle.USER_SYSTEM) { in notifyOfDownload()
237 UserInfo info = userManager.getUserInfo(users[i]); in notifyOfDownload()
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesController.java217 List<UserHandle> users = getUserProfiles(); in onPreferenceClick() local
218 if (users.size() <= 1) { in onPreferenceClick()
221 createAndShowProfileSelectDialog(intent, users); in onPreferenceClick()
343 Intent intent, List<UserHandle> users) { in createProfileDialogClickCallback() argument
346 intent.putExtra(Intent.EXTRA_USER, users.get(position)); in createProfileDialogClickCallback()
350 users.get(position).getIdentifier()); in createProfileDialogClickCallback()
357 private void createAndShowProfileSelectDialog(Intent intent, List<UserHandle> users) { in createAndShowProfileSelectDialog() argument
360 users, in createAndShowProfileSelectDialog()
361 createProfileDialogClickCallback(intent, users)); in createAndShowProfileSelectDialog()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfileTest.java17 package com.android.tv.settings.users;
137 private UserSetter addOtherUsers(UserInfo... users) { in addOtherUsers() argument
138 for (UserInfo user : users) { in addOtherUsers()
141 mUsers.addAll(Arrays.asList(users)); in addOtherUsers()
/packages/apps/Settings/aconfig/accessibility/
Daccessibility_flags.aconfig23 description: "Allows users to control hearing aid preset in the Bluetooth device details page."
30 …description: "Allows users to control hearing aid volume offset in the Bluetooth device details pa…
54 description: "Allows users to control color contrast in the Accessibility settings page."
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DShortcutConfigActivityInfo.java159 final List<UserHandle> users; in queryList() local
162 users = UserCache.INSTANCE.get(context).getUserProfiles(); in queryList()
165 users = Collections.singletonList(packageUser.mUser); in queryList()
169 for (UserHandle user : users) { in queryList()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java136 public static List<UserInfo> toList(@NonNull UserInfo... users) { in toList() argument
137 return Arrays.stream(users).collect(Collectors.toList()); in toList()
144 public static List<UserHandle> toList(@NonNull UserHandle... users) { in toList() argument
145 return Arrays.stream(users).collect(Collectors.toList()); in toList()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountDashboardFragment.java42 import com.android.settings.users.AutoSyncDataPreferenceController;
43 import com.android.settings.users.AutoSyncPersonalDataPreferenceController;
44 import com.android.settings.users.AutoSyncPrivateDataPreferenceController;
45 import com.android.settings.users.AutoSyncWorkDataPreferenceController;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DBaseSecurityFragment.java55 import com.android.tv.settings.users.AppRestrictionsFragment;
56 import com.android.tv.settings.users.RestrictedProfileModel;
57 import com.android.tv.settings.users.RestrictedProfilePinDialogFragment;
58 import com.android.tv.settings.users.RestrictedProfilePinStorage;
59 import com.android.tv.settings.users.UserSwitchListenerService;
/packages/modules/Virtualization/virtualizationservice/src/
Dmaintenance.rs226 let mut users: Vec<i32> = owners.iter().map(|(u, _a)| *u).collect(); in reconcile() localVariable
227 users.sort(); in reconcile()
228 users.dedup(); in reconcile()
230 .doUsersExist(&users) in reconcile()
231 .context(format!("failed to determine if {} users exist", users.len()))?; in reconcile()
232 if users_exist.len() != users.len() { in reconcile()
233 error!("callback returned {} bools for {} inputs!", users_exist.len(), users.len()); in reconcile()
237 for (user_id, present) in users.into_iter().zip(users_exist.into_iter()) { in reconcile()
/packages/apps/Settings/src/com/android/settings/location/
DTopLevelLocationPreferenceController.java84 final List<UserHandle> users = mContext.getSystemService( in updateState() local
86 loadingInProgress.set(users.size()); in updateState()
87 for (UserHandle user : users) { in updateState()
DAppLocationPermissionPreferenceController.java110 final List<UserHandle> users = mContext.getSystemService( in updateState() local
112 loadingInProgress.set(2 * users.size()); in updateState()
113 for (UserHandle user : users) { in updateState()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DApiWrapper.java83 Map<UserHandle, UserIconInfo> users = new ArrayMap<>(); in queryAllUsers() local
97 users.put(user, info); in queryAllUsers()
100 return users; in queryAllUsers()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DManageCameraPermissionsPreferenceController.java95 List<UserHandle> users = mUserManager.getUserProfiles(); in updateState() local
97 mLoadingInProgress.set(2 * users.size()); in updateState()
98 for (UserHandle user : users) { in updateState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DAllPackageInfosLiveData.kt35 UsersLiveData.value?.let { users -> in <lambda>() method
37 setSourcesToDifference(users, userPackageInfosLiveDatas, getLiveData) in <lambda>()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java25 import static com.android.systemui.car.users.CarSystemUIUserUtil.getCurrentUserHandle;
266 public UserAdapter(Context context, List<UserRecord> users) { in UserAdapter() argument
269 updateUsers(users); in UserAdapter()
284 public void updateUsers(List<UserRecord> users) { in updateUsers() argument
285 mUsers = users; in updateUsers()
368 List<UserInfo> users = mUserManager.getAliveUsers(); in getMaxSupportedRealUsers() local
372 for (UserInfo user : users) { in getMaxSupportedRealUsers()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DUserManagerHelper.java84 List<UserInfo> users = userManager.getUsers(excludePartial, excludeDying, in getUserHandles() local
87 List<UserHandle> result = new ArrayList<>(users.size()); in getUserHandles()
88 for (UserInfo user : users) { in getUserHandles()

12345678910