Lines Matching refs:UserId

48 import com.android.documentsui.base.UserId;
68 List<UserId> getUserIds(); in getUserIds()
73 Map<UserId, String> getUserIdToLabelMap(); in getUserIdToLabelMap()
80 Map<UserId, Drawable> getUserIdToBadgeMap(); in getUserIdToBadgeMap()
86 Map<UserId, Boolean> getCanForwardToProfileIdMap(Intent intent); in getCanForwardToProfileIdMap()
97 void onProfileActionStatusChange(String action, UserId userId); in onProfileActionStatusChange()
122 private final UserId mCurrentUser;
131 private final List<UserId> mUserIds = new ArrayList<>();
136 private final Map<UserId, String> mUserIdToLabelMap = new HashMap<>();
141 private final Map<UserId, Drawable> mUserIdToBadgeMap = new HashMap<>();
147 private final Map<UserId, Boolean> mCanFrowardToProfileIdMap = new HashMap<>();
171 this(context, UserId.CURRENT_USER, in RuntimeUserManagerState()
177 RuntimeUserManagerState(Context context, UserId currentUser, boolean isDeviceSupported, in RuntimeUserManagerState()
196 public List<UserId> getUserIds() { in getUserIds()
206 public Map<UserId, String> getUserIdToLabelMap() { in getUserIdToLabelMap()
216 public Map<UserId, Drawable> getUserIdToBadgeMap() { in getUserIdToBadgeMap()
226 public Map<UserId, Boolean> getCanForwardToProfileIdMap(Intent intent) { in getCanForwardToProfileIdMap()
237 public void onProfileActionStatusChange(String action, UserId userId) { in onProfileActionStatusChange()
297 for (UserId userId : getUserIds()) { in areHiddenInQuietModeProfilesPresent()
308 private List<UserId> getUserIdsInternal() { in getUserIdsInternal()
309 final List<UserId> result = new ArrayList<>(); in getUserIdsInternal()
337 private void getUserIdsInternalPostV(List<UserHandle> userProfiles, List<UserId> result) { in getUserIdsInternalPostV()
340 result.add(UserId.of(userHandle)); in getUserIdsInternalPostV()
348 result.add(UserId.of(userHandle)); in getUserIdsInternalPostV()
363 return !UserId.of(userHandle).isQuietModeEnabled(mContext) in isProfileAllowed()
370 private void getUserIdsInternalPreV(List<UserHandle> userProfiles, List<UserId> result) { in getUserIdsInternalPreV()
372 UserId systemUser = null; in getUserIdsInternalPreV()
373 UserId managedUser = null; in getUserIdsInternalPreV()
376 systemUser = UserId.of(userHandle); in getUserIdsInternalPreV()
378 managedUser = UserId.of(userHandle); in getUserIdsInternalPreV()
387 Log.w(TAG, "The current user " + UserId.CURRENT_USER in getUserIdsInternalPreV()
408 List<UserId> userIds = getUserIds(); in getUserIdToLabelMapInternalPostV()
409 for (UserId userId : userIds) { in getUserIdToLabelMapInternalPostV()
421 List<UserId> userIds = getUserIds(); in getUserIdToLabelMapInternalPreV()
422 for (UserId userId : userIds) { in getUserIdToLabelMapInternalPreV()
438 private String getProfileLabel(UserId userId) { in getProfileLabel()
491 List<UserId> userIds = getUserIds(); in getUserIdToBadgeMapInternalPostV()
492 for (UserId userId : userIds) { in getUserIdToBadgeMapInternalPostV()
505 List<UserId> userIds = getUserIds(); in getUserIdToBadgeMapInternalPreV()
506 for (UserId userId : userIds) { in getUserIdToBadgeMapInternalPreV()
518 private Drawable getProfileBadge(UserId userId) { in getProfileBadge()
558 List<UserId> parentOrDelegatedFromParent = new ArrayList<>(); in getCanForwardToProfileIdMapInternal()
559 List<UserId> canForwardToProfileIds = new ArrayList<>(); in getCanForwardToProfileIdMapInternal()
560 List<UserId> noDelegation = new ArrayList<>(); in getCanForwardToProfileIdMapInternal()
562 List<UserId> userIds = getUserIds(); in getCanForwardToProfileIdMapInternal()
563 for (UserId userId : userIds) { in getCanForwardToProfileIdMapInternal()
587 UserId needToCheck = null; in getCanForwardToProfileIdMapInternal()
594 needToCheck = UserId.of(parentProfile); in getCanForwardToProfileIdMapInternal()
611 for (UserId userId : userIds) { in getCanForwardToProfileIdMapInternal()
641 List<UserId> userIds = getUserIds(); in getCanForwardToProfileIdMapPreV()
642 for (UserId userId : userIds) { in getCanForwardToProfileIdMapPreV()