Home
last modified time | relevance | path

Searched refs:workProfile (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettings.java130 final UserHandle workProfile = getWorkProfile(userManager); in collectConfigurableApps() local
131 if (workProfile == null) { in collectConfigurableApps()
134 final UserHandle personalProfile = userManager.getProfileParent(workProfile); in collectConfigurableApps()
141 packageManager, personalProfile, workProfile)) { in collectConfigurableApps()
151 PackageManager packageManager, UserHandle personalProfile, UserHandle workProfile) { in getAllInstalledPackages() argument
155 GET_ACTIVITIES, workProfile.getIdentifier()); in getAllInstalledPackages()
172 UserHandle workProfile = getWorkProfile(userManager); in getNumberOfEnabledApps() local
173 if (workProfile == null) { in getNumberOfEnabledApps()
176 UserHandle personalProfile = userManager.getProfileParent(workProfile); in getNumberOfEnabledApps()
DInteractAcrossProfilesDetails.java170 private void addAppTitleAndIcons(UserHandle personalProfile, UserHandle workProfile) { in addAppTitleAndIcons() argument
192 .getBadgedIcon(mPackageInfo.applicationInfo, workProfile.getIdentifier()) in addAppTitleAndIcons()
301 UserHandle workProfile = InteractAcrossProfilesSettings.getWorkProfile(userManager); in isInteractAcrossProfilesEnabled() local
302 if (workProfile == null) { in isInteractAcrossProfilesEnabled()
305 UserHandle personalProfile = userManager.getProfileParent(workProfile); in isInteractAcrossProfilesEnabled()
309 && isInteractAcrossProfilesEnabledInProfile(context, packageName, workProfile); in isInteractAcrossProfilesEnabled()
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
DSpecialAppAccessListViewModel.java49 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessListViewModel() local
51 if (workProfile == null) { in SpecialAppAccessListViewModel()
54 RoleListLiveData workLiveData = new RoleListLiveData(false, workProfile, application); in SpecialAppAccessListViewModel()
DSpecialAppAccessViewModel.java67 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessViewModel() local
69 if (workProfile == null) { in SpecialAppAccessViewModel()
72 RoleLiveData workRoleLiveData = new RoleLiveData(role, workProfile, application); in SpecialAppAccessViewModel()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DWorkTabTest.java95 UserHandle workProfile = getFromLauncher(l -> { in toggleWorks() local
102 l -> userManager.requestQuietModeEnabled(true, workProfile)); in toggleWorks()
104 assertTrue(userManager.isQuietModeEnabled(workProfile)); in toggleWorks()
112 l -> l.getSystemService(UserManager.class).isQuietModeEnabled(workProfile)); in toggleWorks()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java304 UserInfo workProfile = newUser(10); in testHasInitialUser_hasOnlyWorkProfile() local
305 workProfile.userType = UserManager.USER_TYPE_PROFILE_MANAGED; in testHasInitialUser_hasOnlyWorkProfile()
306 assertThat(workProfile.isManagedProfile()).isTrue(); // Sanity check in testHasInitialUser_hasOnlyWorkProfile()
308 mockGetUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()