Home
last modified time | relevance | path

Searched refs:parentUserId (Results 1 – 18 of 18) sorted by relevance

/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DOwnerShellData.java33 public final @UserIdInt int parentUserId; field in OwnerShellData
41 private OwnerShellData(@UserIdInt int userId, @UserIdInt int parentUserId, ComponentName admin, in OwnerShellData() argument
45 this.parentUserId = parentUserId; in OwnerShellData()
51 Preconditions.checkArgument(parentUserId != USER_NULL, in OwnerShellData()
53 Preconditions.checkArgument(parentUserId != userId, in OwnerShellData()
72 if (parentUserId != USER_NULL) { in toString()
73 sb.append(",parentUserId=").append(parentUserId); in toString()
93 static OwnerShellData forManagedProfileOwner(@UserIdInt int userId, @UserIdInt int parentUserId, in forManagedProfileOwner() argument
95 return new OwnerShellData(userId, parentUserId, admin, /* isDeviceOwner= */ false, in forManagedProfileOwner()
H A DCertificateMonitor.java181 int parentUserId = userHandle.getIdentifier(); in buildNotification() local
187 parentUserId = mService.getProfileParentId(userHandle.getIdentifier()); in buildNotification()
213 null, UserHandle.of(parentUserId)); in buildNotification()
H A DDevicePolicyManagerServiceShellCommand.java222 pw.printf(",ManagedProfileOwner(parentUserId=%d)", owner.parentUserId); in runListOwners()
H A DDevicePolicyManagerService.java1299 int parentUserId = mUserManagerInternal.getProfileParentId(userId); in listAllOwners() local
1300 boolean isProfile = parentUserId != userId; in listAllOwners()
1305 parentUserId, admin.info.getComponent()); in listAllOwners()
8825 final int parentUserId = getProfileParentId(userHandle);
8829 if (parentUserId != userHandle && mUserManager.hasUserRestriction(
8831 UserHandle.of(parentUserId))) {
11552 final int parentUserId = getProfileParentId(caller.getUserId());
11558 parentUserId)
11568 if (isSystemApp(mIPackageManager, packageName, parentUserId)) {
16891 final int parentUserId = getProfileParentId(profileUserId);
[all …]
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/devicepolicy/
H A DOwnerShellDataTest.java54 assertWithMessage("dto(%s).parentUserId", dto).that(dto.parentUserId) in testForDeviceOwner()
81 assertWithMessage("dto(%s).parentUserId", dto).that(dto.parentUserId) in testForUserProfileOwner()
120 assertWithMessage("dto(%s).parentUserId", dto).that(dto.parentUserId) in testForManagedProfileOwner()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
H A DWifiConfigHelper.java303 private static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument
304 final int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId()
306 if (profileId != parentUserId && um.isManagedProfile(profileId)) { in getManagedProfileId()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DCreateAndProvisionManagedProfileTask.java141 private void takeAppsSnapshots(@UserIdInt int parentUserId, boolean leaveAllSystemAppsEnabled) { in takeAppsSnapshots() argument
145 mCrossProfileAppsSnapshot.takeNewSnapshot(parentUserId); in takeAppsSnapshots()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerInternal.java314 @UserIdInt int parentUserId, @UserIdInt int profileUserId); in setDefaultCrossProfileIntentFilters()
H A DUserManagerService.java1027 int parentUserId = profile.profileGroupId; in getProfileParentLU() local
1028 if (parentUserId == userId || parentUserId == UserInfo.NO_PROFILE_GROUP_ID) { in getProfileParentLU()
1031 return getUserInfoLU(parentUserId); in getProfileParentLU()
3801 Bundle profileRestrictions, @UserIdInt int parentUserId) { in setDefaultCrossProfileIntentFilters() argument
4035 name, UserManager.USER_TYPE_FULL_RESTRICTED, 0, parentUserId, null); in createRestrictedProfileWithThrow()
4437 private void sendProfileRemovedBroadcast(int parentUserId, int removedUserId) { in sendProfileRemovedBroadcast() argument
4441 final UserHandle parentHandle = new UserHandle(parentUserId); in sendProfileRemovedBroadcast()
5718 @UserIdInt int parentUserId, @UserIdInt int profileUserId) { in setDefaultCrossProfileIntentFilters()
5722 profileUserId, userTypeDetails, restrictions, parentUserId); in setDefaultCrossProfileIntentFilters()
5838 int getFreeProfileBadgeLU(int parentUserId, String userType) { in getFreeProfileBadgeLU() argument
[all …]
H A DPackageManagerShellCommand.java2623 int parentUserId = userId >= 0 ? userId : UserHandle.USER_SYSTEM; in runCreateUser() local
2624 info = um.createRestrictedProfileWithThrow(name, parentUserId); in runCreateUser()
2625 accm.addSharedAccountsFromParentUser(parentUserId, userId, in runCreateUser()
H A DPackageManagerService.java2028 int flags, int sourceUserId, int parentUserId); in getCrossProfileDomainPreferredLpr() argument
2959 String resolvedType, int flags, int sourceUserId, int parentUserId) { in getCrossProfileDomainPreferredLpr() argument
2965 resolvedType, flags, parentUserId); in getCrossProfileDomainPreferredLpr()
2987 .approvalLevelForDomain(ps, intent, flags, parentUserId); in getCrossProfileDomainPreferredLpr()
2991 new WatchedIntentFilter(), sourceUserId, parentUserId), approvalLevel); in getCrossProfileDomainPreferredLpr()
5489 String resolvedType, int flags, int sourceUserId, int parentUserId) { in getCrossProfileDomainPreferredLpr() argument
5493 flags, sourceUserId, parentUserId); in getCrossProfileDomainPreferredLpr()
10948 String resolvedType, int flags, int sourceUserId, int parentUserId) { in getCrossProfileDomainPreferredLpr() argument
10950 resolvedType, flags, sourceUserId, parentUserId); in getCrossProfileDomainPreferredLpr()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowUtils.java107 protected static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument
/aosp12/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java1465 int parentUserId = UserManager.isSplitSystemUser() in syncSharedAccounts() local
1468 if (parentUserId < 0) { in syncSharedAccounts()
1475 copyAccountToUser(null /*no response*/, sa, parentUserId, userId); in syncSharedAccounts()
1766 final int parentUserId){ in completeCloningAccount() argument
2172 int parentUserId = accounts.userId; in renameAccountInternal() local
2173 if (canHaveProfile(parentUserId)) { in renameAccountInternal()
2200 private boolean canHaveProfile(final int parentUserId) { in canHaveProfile() argument
2201 final UserInfo userInfo = getUserManager().getUserInfo(parentUserId); in canHaveProfile()
2434 int parentUserId = accounts.userId; in removeAccountInternal() local
2435 if (canHaveProfile(parentUserId)) { in removeAccountInternal()
[all …]
/aosp12/frameworks/base/core/java/android/accounts/
H A DIAccountManager.aidl80 void addSharedAccountsFromParentUser(int parentUserId, int userId, String opPackageName); in addSharedAccountsFromParentUser() argument
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DUtils.java461 public static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument
462 final int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId()
464 if (profileId != parentUserId) { in getManagedProfileId()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DUserController.java2497 final int parentUserId = mUserProfileGroupIds.get(userId, UserInfo.NO_PROFILE_GROUP_ID);
2498 if (parentUserId == UserInfo.NO_PROFILE_GROUP_ID) {
2501 return isUserRunning(parentUserId, 0);
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java1429 int parentUserId = mSecurityPolicy.resolveProfileParentLocked(userId); in unlockUser() local
1430 if (parentUserId == mCurrentUserId) { in unlockUser()
/aosp12/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java3426 private void removeWidgetsForPackageLocked(String pkgName, int userId, int parentUserId) { in removeWidgetsForPackageLocked() argument
3433 deleteWidgetsLocked(provider, parentUserId); in removeWidgetsForPackageLocked()