Lines Matching refs:myUserId
443 final int myUserId = UserHandle.myUserId(); in getManagedProfileWithDisabled() local
444 final List<UserInfo> profiles = userManager.getProfiles(myUserId); in getManagedProfileWithDisabled()
449 && profile.getUserHandle().getIdentifier() != myUserId) { in getManagedProfileWithDisabled()
481 return UserHandle.myUserId(); in getCurrentUserId()
501 final UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser()
561 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()
691 final int userId = bundle.getInt(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in getUserIdFromBundle()
705 if (UserHandle.myUserId() == UserHandle.USER_SYSTEM) { in enforceSystemUser()
709 + "USER_SYSTEM, but current user is " + UserHandle.myUserId()); in enforceSystemUser()
719 final int[] profileIds = um.getProfileIdsWithDisabled(UserHandle.myUserId()); in enforceSameOwner()
724 + UserHandle.myUserId()); in enforceSameOwner()
731 return getCredentialOwnerUserId(context, UserHandle.myUserId()); in getCredentialOwnerUserId()