Home
last modified time | relevance | path

Searched refs:isSameProfileGroup (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
H A DActionDisabledLearnMoreButtonLauncher.java60 if (isSameProfileGroup(context, enforcementAdminUserId) in setupLearnMoreButtonToShowAdminPolicies()
102 protected boolean isSameProfileGroup(Context context, int enforcementAdminUserId) { in isSameProfileGroup() method in ActionDisabledLearnMoreButtonLauncher
105 return um.isSameProfileGroup(enforcementAdminUserId, um.getUserHandle()); in isSameProfileGroup()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DConfigurationMapTest.java115 when(mUserManager.isSameProfileGroup(any(), any())).thenReturn(false); in setUp()
117 when(mUserManager.isSameProfileGroup(UserHandle.SYSTEM, in setUp()
120 when(mUserManager.isSameProfileGroup(UserHandle.of(SYSTEM_MANAGE_PROFILE_USER_ID), in setUp()
176 || mUserManager.isSameProfileGroup(currentUser, creatorUser)) { in verifyGetters()
H A DWifiConfigManagerTest.java6252 when(mUserManager.isSameProfileGroup(any(), any())).thenReturn(false); in testConnectToExistingNetworkFailure_UidDoesNotBelongToCurrentUser()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/
H A DActionDisabledByAdminControllerTestUtils.java81 protected boolean isSameProfileGroup(Context context, int enforcementAdminUserId) { in createLearnMoreButtonLauncher() method in ActionDisabledByAdminControllerTestUtils
H A DActionDisabledLearnMoreButtonLauncherTest.java212 when(mUserManager.isSameProfileGroup(ENFORCEMENT_ADMIN_USER_ID, CONTEXT_USER_ID)) in mockSameProfileGroup()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DConfigurationMap.java61 || mUserManager.isSameProfileGroup(currentUser, creatorUser)) { in put()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DUserController.java2069 final boolean isSameProfileGroup = isSameProfileGroup(callingUserId, targetUserId);
2070 if (mInjector.isCallerRecents(callingUid) && isSameProfileGroup) {
2082 allowMode, isSameProfileGroup, callingPid, callingUid, callerPackage)) {
2095 allow = isSameProfileGroup;
2119 if (allowMode == ALLOW_NON_FULL || isSameProfileGroup) {
2123 if (isSameProfileGroup
2149 int allowMode, boolean isSameProfileGroup, int callingPid, int callingUid,
2154 if (!isSameProfileGroup) {
2478 boolean isSameProfileGroup(int callingUserId, int targetUserId) {
H A DActiveServices.java2894 || !mAm.mUserController.isSameProfileGroup(callingUserId, userId)) { in maybeLogBindCrossProfileService()
H A DActivityManagerService.java15183 if (!mUserController.isSameProfileGroup(userId, UserHandle.getCallingUserId()) in isUserRunning()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileAppsServiceImpl.java164 || !isSameProfileGroup(callerUserId, userId)) { in startActivityAsUser()
704 private boolean isSameProfileGroup(@UserIdInt int callerUserId, @UserIdInt int userId) {
706 mInjector.getUserManager().isSameProfileGroup(callerUserId, userId));
H A DPackageManagerService.java2088 boolean isSameProfileGroup(@UserIdInt int callerUserId, @UserIdInt int userId); in isSameProfileGroup() method
4291 return mUserManager.isSameProfileGroup(callingUserId, targetUserId); in isRecentsAccessingChildProfiles()
4297 public final boolean isSameProfileGroup(@UserIdInt int callerUserId, in isSameProfileGroup() method in PackageManagerService.ComputerEngine
4583 final boolean isSameProfileGroup = isSameProfileGroup(callingUserId, userId); in enforceCrossUserOrProfilePermission()
4584 if (isSameProfileGroup && PermissionChecker.checkPermissionForPreflight( in enforceCrossUserOrProfilePermission()
4594 callingUid, userId, message, requireFullPermission, isSameProfileGroup); in enforceCrossUserOrProfilePermission()
5745 public final boolean isSameProfileGroup(@UserIdInt int callerUserId, in isSameProfileGroup() method in PackageManagerService.ComputerTracker
5749 return current.mComputer.isSameProfileGroup(callerUserId, userId); in isSameProfileGroup()
12518 return mComputer.isSameProfileGroup(callerUserId, userId); in isSameProfileGroup()
12544 boolean isSameProfileGroup) { in buildInvalidCrossUserOrProfilePermissionMessage() argument
[all …]
H A DUserManagerService.java982 public boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() method in UserManagerService
/aosp12/frameworks/base/core/java/android/os/
H A DIUserManager.aidl65 boolean isSameProfileGroup(int userId, int otherUserHandle); in isSameProfileGroup() method
H A DUserManager.java3680 public boolean isSameProfileGroup(@NonNull UserHandle user, @NonNull UserHandle otherUser) { in isSameProfileGroup() method in UserManager
3681 return isSameProfileGroup(user.getIdentifier(), otherUser.getIdentifier()); in isSameProfileGroup()
3692 public boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() method in UserManager
3694 return mService.isSameProfileGroup(userId, otherUserId); in isSameProfileGroup()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowUserManager.java171 protected boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() method in ShadowUserManager
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
H A DActionDisabledByAdminDialogHelper.java90 if (um.isSameProfileGroup(getEnforcementAdminUserId(mEnforcedAdmin), um.getUserHandle())) { in maybeSetLearnMoreButton()
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
H A DLocationPermissionCheckerTest.java167 when(mMockUserManager.isSameProfileGroup(UserHandle.SYSTEM, in setupMockInterface()
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbService.java287 if (mUserManager.isSameProfileGroup(user, mCurrentUserId)) { in openDevice()
324 if (mUserManager.isSameProfileGroup(user, mCurrentUserId)) { in openAccessory()
H A DUsbProfileGroupSettingsManager.java191 if (!mUserManager.isSameProfileGroup(mParentUser.getIdentifier(), in onPackageAdded()
201 if (!mUserManager.isSameProfileGroup(mParentUser.getIdentifier(), in onPackageRemoved()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DWifiPermissionsUtil.java444 || mUserManager.isSameProfileGroup(currentUser, callingUser); in isCurrentProfile()
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsActor.java243 public boolean isSameProfileGroup(int userId, int otherUserId) { in isSameProfileGroup() method in ContactsActor.MockUserManager
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DWifiPermissionsUtilTest.java1375 when(mMockUserManager.isSameProfileGroup(UserHandle.SYSTEM,
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DPhoneAccountRegistrar.java624 return UserManager.get(mContext).isSameProfileGroup(userHandle.getIdentifier(), in isVisibleForUser()
/aosp12/frameworks/base/core/api/
H A Dsystem-current.txt8692 …ermission(android.Manifest.permission.MANAGE_USERS) public boolean isSameProfileGroup(@NonNull and…
/aosp12/frameworks/base/services/
H A Dart-profile9368 HSPLcom/android/server/am/UserController;->isSameProfileGroup(II)Z+]Landroid/util/SparseIntArray;La…
30593 HPLcom/android/server/pm/PackageManagerService$ComputerEngine;->isSameProfileGroup(II)Z+]Lcom/andro…
31434 HPLcom/android/server/pm/PackageManagerService;->isSameProfileGroup(II)Z
33396 HSPLcom/android/server/pm/UserManagerService;->isSameProfileGroup(II)Z

12