Home
last modified time | relevance | path

Searched refs:privateProfile (Results 1 – 8 of 8) sorted by relevance

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DProfileHelperTest.kt44 private val privateProfile = Profile(Profile.Type.PRIVATE, privateUser) constant in com.android.intentresolver.ProfileHelperTest
53 privateProfile: Profile? = null in assertProfiles()
78 privateProfile?.also { in assertProfiles()
80 assertThat(helper.privateProfile).isEqualTo(it) in assertProfiles()
85 assertThat(helper.privateProfile).isNull() in assertProfiles()
217 assertProfiles(helper, personalProfile = personalProfile, privateProfile = privateProfile) in <lambda>()
223 assertThat(helper.getQueryIntentsHandle(privateProfile.primary.handle)) in <lambda>()
224 .isEqualTo(privateProfile.primary.handle) in <lambda>()
241 assertProfiles(helper, personalProfile = personalProfile, privateProfile = privateProfile) in <lambda>()
247 assertThat(helper.getQueryIntentsHandle(privateProfile.primary.handle)) in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppListViewModel.java65 UserHandle privateProfile = UserUtils.getPrivateProfile(application); in DefaultAppListViewModel() local
66 if (privateProfile != null && Utils.shouldShowInSettings( in DefaultAppListViewModel()
67 privateProfile, application.getSystemService(UserManager.class))) { in DefaultAppListViewModel()
68 mPrivateProfile = privateProfile; in DefaultAppListViewModel()
/packages/apps/Settings/src/com/android/settings/location/
DLocationInjectedServiceBasePreferenceController.java128 final UserHandle privateProfile = Utils.getProfileOfType(mUserManager, in getLocationServices() local
130 if (privateProfile != null && mLocationEnabler in getLocationServices()
131 .getShareLocationEnforcedAdmin(privateProfile.getIdentifier()) == null) { in getLocationServices()
132 userHandles.add(privateProfile); in getLocationServices()
DLocationInjectedServicesForPrivateProfilePreferenceController.java49 final UserHandle privateProfile = Utils.getProfileOfType(mUserManager, in injectLocationServices() local
51 if (privateProfile == null) { in injectLocationServices()
61 if (entry.getKey() == privateProfile.getIdentifier()) { in injectLocationServices()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DProfileHelper.kt60 val privateProfile = profiles.singleOrNull { it.type == Profile.Type.PRIVATE } in <lambda>() constant
64 val privateHandle = privateProfile?.primary?.handle
71 val privateProfilePresent = privateProfile != null
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/
DSafetyCenterMultiUsersTest.kt239 safetyCenterEntryOkForPrivate(DYNAMIC_DISABLED_ID, deviceState.privateProfile().id())
242 get() = safetyCenterEntryOkForPrivate(DYNAMIC_HIDDEN_ID, deviceState.privateProfile().id())
289 userId = deviceState.privateProfile().id(),
294 deviceState.privateProfile().userHandle(),
335 deviceState.privateProfile().userHandle(), in createStaticEntry()
952 val privateProfileId = deviceState.privateProfile().id() in getSafetyCenterData_withComplexConfigWithAllDataProvided_returnsAllDataProvided()
1250 getSafetyCenterManagerForUser(deviceState.privateProfile().userHandle()) in getSafetyCenterData_afterPrivateProfileRemoved_returnsDefaultData()
1269 deviceState.privateProfile().id(), in getSafetyCenterData_afterPrivateProfileRemoved_returnsDefaultData()
1273 deviceState.privateProfile().userHandle() in getSafetyCenterData_afterPrivateProfileRemoved_returnsDefaultData()
1294 deviceState.privateProfile().remove() in getSafetyCenterData_afterPrivateProfileRemoved_returnsDefaultData()
[all …]
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java855 UserHandle privateProfile = sDeviceState.privateProfile().userHandle(); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace() local
856 assertThat(privateProfile).isNotNull(); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
857 installPackage(APP_APK_PATH, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
858 installPackage(APP_FOR_PROFILE_APK_PATH, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
859 addRoleHolderAsUser(ROLE_NAME, APP_FOR_PROFILE_PACKAGE_NAME, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
874 assertIsRoleHolderAsUser(ROLE_NAME, APP_PACKAGE_NAME, true, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
879 uninstallPackage(APP_PACKAGE_NAME, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
880 uninstallPackage(APP_FOR_PROFILE_APK_PATH, privateProfile); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt46 val privateProfile = Profile(PRIVATE, privateUser) constant in com.android.intentresolver.domain.interactor.UserInteractorTest