Home
last modified time | relevance | path

Searched refs:workProfileUserId (Results 1 – 3 of 3) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
H A DBubblesTest.java1192 final int workProfileUserId = 10; in test_bubbleViewInfoGetPackageForUser() local
1193 final UserHandle workUser = new UserHandle(workProfileUserId); in test_bubbleViewInfoGetPackageForUser()
1196 final Bubble bubble = createBubble(workProfileUserId, workPkg); in test_bubbleViewInfoGetPackageForUser()
1197 assertEquals(workProfileUserId, bubble.getUser().getIdentifier()); in test_bubbleViewInfoGetPackageForUser()
/aosp12/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java931 private boolean canAccessCrossProfileCalendar(int workProfileUserId) { in canAccessCrossProfileCalendar() argument
938 return workProfileUserId != UserHandle.USER_NULL in canAccessCrossProfileCalendar()
940 getCallingPackageName(), workProfileUserId); in canAccessCrossProfileCalendar()
963 final int workProfileUserId = getWorkProfileUserId(); in queryWorkProfileProvider() local
964 if (!canAccessCrossProfileCalendar(workProfileUserId)) { in queryWorkProfileProvider()
969 localUri, workProfileUserId).buildUpon().build(); in queryWorkProfileProvider()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java16657 final int workProfileUserId = getManagedUserId(caller.getUserId());
16658 if (workProfileUserId < 0) {
16661 if (!isPackageAllowedToAccessCalendarForUser(packageName, workProfileUserId)) {
16675 mContext.startActivityAsUser(intent, UserHandle.of(workProfileUserId));