Searched refs:workProfile (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/ |
D | InteractAcrossProfilesSettings.java | 130 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()
|
D | InteractAcrossProfilesDetails.java | 170 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/ |
D | SpecialAppAccessListViewModel.java | 49 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessListViewModel() local 51 if (workProfile == null) { in SpecialAppAccessListViewModel() 54 RoleListLiveData workLiveData = new RoleListLiveData(false, workProfile, application); in SpecialAppAccessListViewModel()
|
D | SpecialAppAccessViewModel.java | 67 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_disabled/ |
D | WorkTabTest.java | 119 UserHandle workProfile = getFromLauncher(l -> { in toggleWorks() local 126 l -> userManager.requestQuietModeEnabled(true, workProfile)); in toggleWorks() 128 assertTrue(userManager.isQuietModeEnabled(workProfile)); in toggleWorks() 136 l -> l.getSystemService(UserManager.class).isQuietModeEnabled(workProfile)); in toggleWorks()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | InitialUserSetterTest.java | 925 UserInfo workProfile = newUser(10); in testHasInitialUser_hasOnlyWorkProfile() local 926 workProfile.userType = UserManager.USER_TYPE_PROFILE_MANAGED; in testHasInitialUser_hasOnlyWorkProfile() 927 assertThat(workProfile.isManagedProfile()).isTrue(); // Confidence check in testHasInitialUser_hasOnlyWorkProfile() 929 mockGetAliveUsers(systemUser, workProfile); in testHasInitialUser_hasOnlyWorkProfile()
|