/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowUserManager.java | 34 private final Map<Integer, Set<Integer>> profileIds = new HashMap<>(); field in ShadowUserManager 47 if (!profileIds.containsKey(userId)) { in getProfileIds() 50 return profileIds.get(userId).stream().mapToInt(Number::intValue).toArray(); in getProfileIds() 58 profileIds.put(userId, profileGroup); in addProfileIds()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAssistantsTest.java | 107 IntArray profileIds = new IntArray(); in setUp() local 108 profileIds.add(0); in setUp() 109 profileIds.add(11); in setUp() 110 profileIds.add(10); in setUp() 111 profileIds.add(12); in setUp() 112 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); in setUp()
|
D | SnoozeHelperTest.java | 455 IntArray profileIds = new IntArray(); 456 profileIds.add(UserHandle.USER_CURRENT); 457 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); 477 IntArray profileIds = new IntArray(); 478 profileIds.add(UserHandle.USER_CURRENT); 479 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); 494 IntArray profileIds = new IntArray(); 495 profileIds.add(UserHandle.USER_CURRENT); 496 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); 515 IntArray profileIds = new IntArray(); [all …]
|
D | ManagedServicesTest.java | 133 IntArray profileIds = new IntArray(); in setUp() local 134 profileIds.add(0); in setUp() 135 profileIds.add(11); in setUp() 136 profileIds.add(10); in setUp() 137 profileIds.add(12); in setUp() 138 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); in setUp()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 423 final int[] profileIds = 426 for (int profileId : profileIds) { 580 final int[] profileIds = mInjector.getUserManager().getProfileIds( 582 if (profileIds.length < 2) { 585 if (isProfileOwner(packageName, profileIds)) { 590 && !isPlatformSignedAppWithNonUserConfigurablePermission(packageName, profileIds); 594 String packageName, int[] profileIds) { 596 && isPlatformSignedAppWithAutomaticProfilesPermission(packageName, profileIds); 606 String packageName, int[] profileIds) { 607 for (int userId : profileIds) { [all …]
|
D | UserManagerService.java | 835 IntArray profileIds = getProfileIdsLU(userId, userType, enabledOnly); in getProfilesLU() local 836 ArrayList<UserInfo> users = new ArrayList<>(profileIds.size()); in getProfilesLU() 837 for (int i = 0; i < profileIds.size(); i++) { in getProfilesLU() 838 int profileId = profileIds.get(i); in getProfilesLU()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RunningTasks.java | 56 ArraySet<Integer> profileIds) { in getTasks() argument 67 mProfileIds = profileIds; in getTasks()
|
D | RecentTasks.java | 677 Set<Integer> profileIds = getProfileIds(userId); in removeAllVisibleTasks() local 680 if (!profileIds.contains(task.mUserId)) continue; in removeAllVisibleTasks() 851 int[] profileIds = mService.getUserManager().getProfileIds(userId, false /* enabledOnly */); in getProfileIds() local 852 for (int i = 0; i < profileIds.length; i++) { in getProfileIds() 853 userIds.add(Integer.valueOf(profileIds[i])); in getProfileIds()
|
D | RootWindowContainer.java | 3499 ArraySet<Integer> profileIds) { in getRunningTasks() argument 3501 callingUid, allowed, crossUser, profileIds); in getRunningTasks()
|
D | ActivityTaskManagerService.java | 2686 final int[] profileIds = getUserManager().getProfileIds( in getFilteredTasks() local 2689 for (int i = 0; i < profileIds.length; i++) { in getFilteredTasks() 2690 callingProfileIds.add(profileIds[i]); in getFilteredTasks()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 495 int[] profileIds = mUserManager.getEnabledProfileIds(userId); in reloadWidgetsMaskedStateForGroup() local 496 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup() 718 final int[] profileIds = mSecurityPolicy.getEnabledGroupProfileIds(userId); in ensureGroupStateLoadedLocked() local 724 final int profileIdCount = profileIds.length; in ensureGroupStateLoadedLocked() 726 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() 728 profileIds[i] = LOADED_PROFILE_ID; in ensureGroupStateLoadedLocked() 741 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() 2154 final int[] profileIds = mSecurityPolicy.getEnabledGroupProfileIds(userId); in scheduleNotifyGroupHostsForProvidersChangedLocked() local 2161 final int M = profileIds.length; in scheduleNotifyGroupHostsForProvidersChangedLocked() 2163 final int profileId = profileIds[j]; in scheduleNotifyGroupHostsForProvidersChangedLocked() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RecentTasksTest.java | 1322 Set<Integer> profileIds = new HashSet<>(); in getProfileIds() local 1323 profileIds.add(TEST_USER_0_ID); in getProfileIds() 1324 profileIds.add(TEST_QUIET_USER_ID); in getProfileIds() 1325 return profileIds; in getProfileIds() 1394 ArraySet<Integer> profileIds) { in getTasks() argument 1397 crossUser, profileIds); in getTasks()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 426 final int[] profileIds = in findWorkUserId() local 428 for (int profileId : profileIds) { in findWorkUserId()
|
D | NotificationManagerService.java | 2398 IntArray profileIds = mUserProfiles.getCurrentProfileIds(); 2399 int N = profileIds.size(); 2401 int profileId = profileIds.get(i);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 673 final int profileIds[] = mUm.getProfileIdsWithDisabled(UserHandle.myUserId()); in addUser() local 674 if (ArrayUtils.contains(profileIds, userId)) { in addUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialog.java | 1210 final int[] profileIds = mUserManager.getEnabledProfileIds(currentUserId); 1211 for (final int id : profileIds) {
|