/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | UserInfoHelper.java | 105 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
|
D | SystemUserInfoHelper.java | 169 protected int[] getProfileIds(@UserIdInt int userId) { in getProfileIds() method in SystemUserInfoHelper
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeUserInfoHelper.java | 125 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/ |
D | UserManagerServiceCreateProfileTest.java | 117 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/ |
D | ShadowUserManager.java | 46 public int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly) { in getProfileIds() method in ShadowUserManager
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationHistoryManagerTest.java | 109 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()
|
D | ArchiveTest.java | 77 when(mUm.getProfileIds(anyInt(), anyBoolean())).thenReturn( in setUp()
|
D | ValidateNotificationPeopleTest.java | 214 when(mockUserManager.getProfileIds(personalUserId, /* enabledOnly= */ true)) in testSearchContacts_workContact_queriesWorkContactProvider()
|
D | NotificationManagerServiceTest.java | 646 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/ |
D | TvUserManager.java | 90 int[] userIds = mUserManager.getProfileIds(mUserId, enabledOnly); in getUserProfiles()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerInternal.java | 363 public abstract @NonNull int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly); in getProfileIds() method in UserManagerInternal
|
D | DeletePackageHelper.java | 833 int[] childUserIds = mUserManagerInternal.getProfileIds(userId, true); in deletePackageVersionedInternal()
|
D | UserManagerService.java | 1458 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/ |
D | IUserManager.aidl | 67 int[] getProfileIds(int userId, boolean enabledOnly); in getProfileIds() method
|
D | UserManager.java | 5386 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/ |
D | BackupManagerServiceTest.java | 680 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/ |
D | RecentTasks.java | 745 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/ |
D | InputMethodManagerServiceTestBase.java | 207 when(mMockUserManagerInternal.getProfileIds(anyInt(), anyBoolean())) in setUp()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 292 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/ |
D | ValidateNotificationPeople.java | 682 userManager.getProfileIds(context.getUserId(), /* enabledOnly= */ true); in findWorkUserId()
|
D | NotificationManagerService.java | 799 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/ |
D | SystemServicesTestRule.java | 640 doReturn(TEST_USER_PROFILE_IDS).when(ums).getProfileIds(anyInt(), eq(true));
|
D | RecentTasksTest.java | 1599 Set<Integer> getProfileIds(int userId) { in getProfileIds() method in RecentTasksTest.TestRecentTasks
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 1470 userIds = getUserManager().getProfileIds(callingUserId, false); in getUserForAncestralSerialNumber()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 1153 public int[] getProfileIds(UserManager userManager, int userId) { in getProfileIds() method in BrightnessTrackerTest.TestInjector
|