Searched refs:workProfileUserId (Results 1 – 3 of 3) sorted by relevance
1192 final int workProfileUserId = 10; in test_bubbleViewInfoGetPackageForUser() local1193 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()
931 private boolean canAccessCrossProfileCalendar(int workProfileUserId) { in canAccessCrossProfileCalendar() argument938 return workProfileUserId != UserHandle.USER_NULL in canAccessCrossProfileCalendar()940 getCallingPackageName(), workProfileUserId); in canAccessCrossProfileCalendar()963 final int workProfileUserId = getWorkProfileUserId(); in queryWorkProfileProvider() local964 if (!canAccessCrossProfileCalendar(workProfileUserId)) { in queryWorkProfileProvider()969 localUri, workProfileUserId).buildUpon().build(); in queryWorkProfileProvider()
16657 final int workProfileUserId = getManagedUserId(caller.getUserId());16658 if (workProfileUserId < 0) {16661 if (!isPackageAllowedToAccessCalendarForUser(packageName, workProfileUserId)) {16675 mContext.startActivityAsUser(intent, UserHandle.of(workProfileUserId));