Home
last modified time | relevance | path

Searched refs:getProfileParent (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java108 targetUserId = getProfileParent(); in onCreate()
363 private int getProfileParent() { in getProfileParent() method in IntentForwarderActivity
364 UserInfo parent = mInjector.getUserManager().getProfileParent(UserHandle.myUserId()); in getProfileParent()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java279 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded()
298 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendedByAdminPackage()
390 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptLockedManagedProfileIfNeeded()
/frameworks/base/services/core/java/com/android/server/audio/
DSystemServerAdapter.java125 final UserInfo profileParent = userManager.getProfileParent(userId); in registerUserStartedReceiver()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java94 UserInfo parentUserInfo = mUserManager.getProfileParent(user.getIdentifier()); in getSettingsForProfileGroup()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java190 assertThat(mUserManager.getProfileParent(primaryUserId)).isNull(); in testCloneUser()
191 UserInfo parentProfileInfo = mUserManager.getProfileParent(userInfo.id); in testCloneUser()
195 assertThat(mUserManager.getProfileParent(primaryUserId)).isNull(); in testCloneUser()
513 assertThat(mUserManager.getProfileParent(primaryUserId)).isNull(); in testGetProfileParent()
514 UserInfo parentProfileInfo = mUserManager.getProfileParent(userInfo.id); in testGetProfileParent()
518 assertThat(mUserManager.getProfileParent(primaryUserId)).isNull(); in testGetProfileParent()
/frameworks/base/services/core/java/com/android/server/locksettings/
DManagedProfilePasswordCache.java86 UserInfo parent = mUserManager.getProfileParent(userId); in storePassword()
DLockSettingsService.java390 final int parentId = mUserManager.getProfileParent(profileUserId).id; in tieProfileLockIfNecessary()
658 UserInfo parent = mUserManager.getProfileParent(userId); in maybeShowEncryptionNotificationForUser()
1708 verifyCredential(savedCredential, mUserManager.getProfileParent(userId).id, in setLockCredential()
2328 final int parentProfileId = mUserManager.getProfileParent(userId).id; in verifyTiedProfileChallenge()
/frameworks/base/core/java/android/os/
DIUserManager.aidl69 UserInfo getProfileParent(int userId); in getProfileParent() method
DUserManager.java4438 public UserInfo getProfileParent(@UserIdInt int userId) { in getProfileParent() method in UserManager
4440 return mService.getProfileParent(userId); in getProfileParent()
4460 public @Nullable UserHandle getProfileParent(@NonNull UserHandle user) { in getProfileParent() method in UserManager
4461 UserInfo info = getProfileParent(user.getIdentifier()); in getProfileParent()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java98 when(mockUserManager.getProfileParent(eq(2))).thenReturn(new UserInfo(1, "name", 0)); in setUp()
100 when(mockUserManager.getProfileParent(eq(3))).thenReturn(new UserInfo(0, "name", 0)); in setUp()
DBaseLockSettingsServiceTests.java200 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java273 when(userManager.getProfileParent(anyInt())).thenAnswer( in addUser()
280 when(userManager.getProfileParent(any(UserHandle.class))).thenAnswer( in addUser()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java213 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java246 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java152 when(mUserManager.getProfileParent(TEST_USER_ID)).thenReturn(PARENT_USER_INFO); in setUp()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java3698 final int parentId = mSecurityPolicy.getProfileParent(userId); in onCrossProfileWidgetProvidersChanged()
3743 UserInfo parentInfo = mUserManager.getProfileParent(userId); in isProfileWithLockedParent()
3758 UserInfo parentInfo = mUserManager.getProfileParent(userId); in isProfileWithUnlockedParent()
4018 return getProfileParent(profileId) == parentId; in isParentOrProfile()
4027 final int parentId = getProfileParent(profileId); in isProviderInCallerOrInProfileAndWhitelListed()
4046 public int getProfileParent(int profileId) { in getProfileParent() method in AppWidgetServiceImpl.SecurityPolicy
4049 UserInfo parent = mUserManager.getProfileParent(profileId); in getProfileParent()
4060 final int parentId = mSecurityPolicy.getProfileParent(profileId); in getGroupParent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java506 UserInfo parent = mUserManager.getProfileParent(userId); in resolveProfileParentLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryManagerTest.java115 when(mUserManager.getProfileParent(userProfile.id)).thenReturn(userSystem); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java496 final UserInfo profileParent = mUserManager.getProfileParent(userId); in showBouncerForRemoteInput()
/frameworks/base/services/core/java/com/android/server/pm/
DComputer.java200 UserInfo getProfileParent(int userId); in getProfileParent() method
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java610 final UserInfo parent = mInjector.getUserManager().getProfileParent(userId); in finishUserBoot()
735 UserInfo parent = mInjector.getUserManager().getProfileParent(userId); in finishUserUnlocked()
1311 UserInfo parent = mInjector.getUserManager().getProfileParent(userId);
1817 final UserInfo parent = mInjector.getUserManager().getProfileParent(testUserId);
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java459 verify(mMockUserManager).getProfileParent(userId); in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent()
/frameworks/base/media/java/android/media/
DRingtoneManager.java457 final UserInfo parentInfo = um.getProfileParent(mContext.getUserId()); in getParentProfileRingtones()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java131 final UserInfo parentUser = um.getProfileParent(adminUserId); in checkIfRestrictionEnforced()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java1055 UserInfo parent = mUserManager.getProfileParent(userId); in resolveCallingProfileParentLocked()

12