Home
last modified time | relevance | path

Searched refs:getProfileIds (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/location/injector/
DUserInfoHelper.java105 int[] fromUserIds = getProfileIds(fromUserId); in dispatchOnCurrentUserChanged()
106 int[] toUserIds = getProfileIds(toUserId); in dispatchOnCurrentUserChanged()
164 protected abstract int[] getProfileIds(@UserIdInt int userId); in getProfileIds() method in UserInfoHelper
DSystemUserInfoHelper.java169 protected int[] getProfileIds(@UserIdInt int userId) { in getProfileIds() method in SystemUserInfoHelper
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeUserInfoHelper.java125 return ArrayUtils.contains(getProfileIds(mCurrentUserId), userId); in isCurrentUserId()
144 protected int[] getProfileIds(int userId) { in getProfileIds() method in FakeUserInfoHelper
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java117 int[] users = mUserManagerService.getProfileIds(UserHandle.USER_SYSTEM, userType1, in testGetProfileIds_specifyType()
122 users = mUserManagerService.getProfileIds(secondaryUser.id, userType1, in testGetProfileIds_specifyType()
128 users = mUserManagerService.getProfileIds(profile.id, userType1, false, /* excludeHidden */ in testGetProfileIds_specifyType()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowUserManager.java46 public int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly) { in getProfileIds() method in ShadowUserManager
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryManagerTest.java109 when(mUserManager.getProfileIds(userSystem.id, true)).thenReturn(mProfiles); in setUp()
110 when(mUserManager.getProfileIds(userFullSecondary.id, true)) in setUp()
112 when(mUserManager.getProfileIds(userProfile.id, true)) in setUp()
206 when(mUserManager.getProfileIds(MIN_SECONDARY_USER_ID, true)).thenReturn(mProfiles); in testAddProfile_historyEnabledInPrimary()
207 when(mUserManager.getProfileIds(userProfile.id, true)) in testAddProfile_historyEnabledInPrimary()
DArchiveTest.java77 when(mUm.getProfileIds(anyInt(), anyBoolean())).thenReturn( in setUp()
DValidateNotificationPeopleTest.java214 when(mockUserManager.getProfileIds(personalUserId, /* enabledOnly= */ true)) in testSearchContacts_workContact_queriesWorkContactProvider()
DNotificationManagerServiceTest.java646 when(mUm.getProfileIds(eq(mUserId), eq(false))).thenReturn(new int[] { mUserId }); in setUp()
4985 when(mUm.getProfileIds(userId, false)).thenReturn(new int[]{userId}); in testSetNASMigrationDoneAndResetDefault_enableNAS()
4997 when(mUm.getProfileIds(userId, false)).thenReturn(new int[]{userId}); in testSetNASMigrationDoneAndResetDefault_disableNAS()
5013 when(mUm.getProfileIds(userId1, false)).thenReturn(new int[]{userId1, userId2}); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5027 when(mUm.getProfileIds(userId1, false)).thenReturn(new int[]{userId1}); in testSetNASMigrationDoneAndResetDefault_multiUser()
5028 when(mUm.getProfileIds(userId2, false)).thenReturn(new int[]{userId2}); in testSetNASMigrationDoneAndResetDefault_multiUser()
9161 when(mUm.getProfileIds(userId, false)).thenReturn(new int[]{userId}); in testNASSettingUpgrade_userSetNull()
9180 when(mUm.getProfileIds(userId, false)).thenReturn(new int[]{userId}); in testNASSettingUpgrade_userSet()
9202 when(mUm.getProfileIds(userId1, false)).thenReturn(new int[]{userId1}); in testNASSettingUpgrade_multiUser()
9203 when(mUm.getProfileIds(userId2, false)).thenReturn(new int[]{userId2}); in testNASSettingUpgrade_multiUser()
[all …]
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java90 int[] userIds = mUserManager.getProfileIds(mUserId, enabledOnly); in getUserProfiles()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerInternal.java363 public abstract @NonNull int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly); in getProfileIds() method in UserManagerInternal
DDeletePackageHelper.java833 int[] childUserIds = mUserManagerInternal.getProfileIds(userId, true); in deletePackageVersionedInternal()
DUserManagerService.java1458 public int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly) { in getProfileIds() method in UserManagerService
1459 return getProfileIds(userId, null, enabledOnly, /* excludeHidden */ false); in getProfileIds()
1470 public int[] getProfileIds(@UserIdInt int userId, @Nullable String userType, in getProfileIds() method in UserManagerService
1557 return getProfileIds(userId, null, enabledOnly, /* excludeHidden */ true); in getProfileIdsExcludingHidden()
3795 final int userTypeCount = getProfileIds(userId, userType, false, /* excludeHidden */ in getRemainingCreatableProfileCount()
7638 public @NonNull int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly) {
/frameworks/base/core/java/android/os/
DIUserManager.aidl67 int[] getProfileIds(int userId, boolean enabledOnly); in getProfileIds() method
DUserManager.java5386 int[] userIds = getProfileIds(getContextUserIfAppropriate(), true /* enabledOnly */); in getUserProfiles()
5440 final int[] userIds = getProfileIds(mUserId, enabledOnly); in getProfiles()
5468 public @NonNull int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly) { in getProfileIds() method in UserManager
5470 return mService.getProfileIds(userId, enabledOnly); in getProfileIds()
5486 return getProfileIds(userId, false /* enabledOnly */); in getProfileIdsWithDisabled()
5498 return getProfileIds(userId, true /* enabledOnly */); in getEnabledProfileIds()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DBackupManagerServiceTest.java680 when(mUserManagerMock.getProfileIds(UserHandle.getCallingUserId(), false)) in testGetUserForAncestralSerialNumber_forSystemUser()
693 when(mUserManagerMock.getProfileIds(UserHandle.getCallingUserId(), false)) in testGetUserForAncestralSerialNumber_forNonSystemUser()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java745 Set<Integer> profileIds = getProfileIds(userId); in removeAllVisibleTasks()
922 Set<Integer> getProfileIds(int userId) { in getProfileIds() method in RecentTasks
924 int[] profileIds = mService.getUserManager().getProfileIds(userId, false /* enabledOnly */); in getProfileIds()
956 final Set<Integer> includedUsers = getProfileIds(userId); in getRecentTasksImpl()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodManagerServiceTestBase.java207 when(mMockUserManagerInternal.getProfileIds(anyInt(), anyBoolean())) in setUp()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java292 int[] profiles = mInjector.getProfileIds(mUserManager, userId); in getEvents()
1129 public int[] getProfileIds(UserManager userManager, int userId) { in getProfileIds() method in BrightnessTracker.Injector
1131 return userManager.getProfileIds(userId, false); in getProfileIds()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java682 userManager.getProfileIds(context.getUserId(), /* enabledOnly= */ true); in findWorkUserId()
DNotificationManagerService.java799 for (int user : um.getProfileIds(ActivityManager.getCurrentUser(), false)) { in getArray()
953 for (int profileId : mUm.getProfileIds(baseUserId, false)) { in setNASMigrationDone()
2882 int[] userIds = mUmInternal.getProfileIds(mAmi.getCurrentUserId(), true);
4546 for (int user : mUm.getProfileIds(userId, false)) {
4684 for (int user : mUm.getProfileIds(ActivityManager.getCurrentUser(), false)) {
5253 for (int userId : mUm.getProfileIds(info.userid, false)) {
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java640 doReturn(TEST_USER_PROFILE_IDS).when(ums).getProfileIds(anyInt(), eq(true));
DRecentTasksTest.java1599 Set<Integer> getProfileIds(int userId) { in getProfileIds() method in RecentTasksTest.TestRecentTasks
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1470 userIds = getUserManager().getProfileIds(callingUserId, false); in getUserForAncestralSerialNumber()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessTrackerTest.java1153 public int[] getProfileIds(UserManager userManager, int userId) { in getProfileIds() method in BrightnessTrackerTest.TestInjector

12