Searched refs:privateProfile (Results 1 – 8 of 8) sorted by relevance
44 private val privateProfile = Profile(Profile.Type.PRIVATE, privateUser) constant in com.android.intentresolver.ProfileHelperTest53 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 …]
65 UserHandle privateProfile = UserUtils.getPrivateProfile(application); in DefaultAppListViewModel() local66 if (privateProfile != null && Utils.shouldShowInSettings( in DefaultAppListViewModel()67 privateProfile, application.getSystemService(UserManager.class))) { in DefaultAppListViewModel()68 mPrivateProfile = privateProfile; in DefaultAppListViewModel()
128 final UserHandle privateProfile = Utils.getProfileOfType(mUserManager, in getLocationServices() local130 if (privateProfile != null && mLocationEnabler in getLocationServices()131 .getShareLocationEnforcedAdmin(privateProfile.getIdentifier()) == null) { in getLocationServices()132 userHandles.add(privateProfile); in getLocationServices()
49 final UserHandle privateProfile = Utils.getProfileOfType(mUserManager, in injectLocationServices() local51 if (privateProfile == null) { in injectLocationServices()61 if (entry.getKey() == privateProfile.getIdentifier()) { in injectLocationServices()
60 val privateProfile = profiles.singleOrNull { it.type == Profile.Type.PRIVATE } in <lambda>() constant64 val privateHandle = privateProfile?.primary?.handle71 val privateProfilePresent = privateProfile != null
239 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 …]
855 UserHandle privateProfile = sDeviceState.privateProfile().userHandle(); in openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace() local856 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()
46 val privateProfile = Profile(PRIVATE, privateUser) constant in com.android.intentresolver.domain.interactor.UserInteractorTest