Home
last modified time | relevance | path

Searched refs:managedProfileUserId (Results 1 – 14 of 14) sorted by relevance

/packages/services/Telephony/src/com/android/phone/
DErrorDialogActivity.java60 int managedProfileUserId = in showDialog() local
63 if (managedProfileUserId == UserHandle.USER_NULL) { in showDialog()
70 .getSmsRoleHolder(managedProfileUserId); in showDialog()
90 managedProfileUserId)) { in showDialog()
93 } else if (canStartActivityAsUser(marketIntent, managedProfileUserId)) { in showDialog()
110 managedProfileUserId, in showDialog()
138 private boolean canStartActivityAsUser(Intent intent, int managedProfileUserId) { in canStartActivityAsUser() argument
143 managedProfileUserId) in canStartActivityAsUser()
147 private void switchToManagedProfile(int managedProfileUserId, Intent intent) { in switchToManagedProfile() argument
151 UserHandle.of(managedProfileUserId)); in switchToManagedProfile()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelper.java87 int managedProfileUserId = UserHandle.USER_NULL; in markUserProvisioningStateInitiallyDone() local
96 managedProfileUserId = mUtils.getManagedProfile(mContext).getIdentifier(); in markUserProvisioningStateInitiallyDone()
128 setUserProvisioningState(newProfileState, managedProfileUserId); in markUserProvisioningStateInitiallyDone()
146 final int managedProfileUserId = mUtils.getManagedProfile(mContext).getIdentifier(); in markUserProvisioningStateFinalized() local
147 setUserProvisioningState(STATE_USER_SETUP_FINALIZED, managedProfileUserId); in markUserProvisioningStateFinalized()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSoundWorkSettingsControllerTest.java172 final int managedProfileUserId = 10; in onResume_shouldSetUserIdToPreference() local
174 .thenReturn(managedProfileUserId); in onResume_shouldSetUserIdToPreference()
183 .setUserId(managedProfileUserId); in onResume_shouldSetUserIdToPreference()
185 .setUserId(managedProfileUserId); in onResume_shouldSetUserIdToPreference()
187 .setUserId(managedProfileUserId); in onResume_shouldSetUserIdToPreference()
/packages/apps/Settings/src/com/android/settings/gestures/
DDoubleTwistPreferenceController.java105 final int managedProfileUserId = getManagedProfileId(userManager); in setDoubleTwistPreference() local
106 if (managedProfileUserId != UserHandle.USER_NULL) { in setDoubleTwistPreference()
109 managedProfileUserId); in setDoubleTwistPreference() local
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java148 final int managedProfileUserId = getManagedProfileUserId(); in isAlwaysOnVpnSetInManagedProfile() local
149 return managedProfileUserId != UserHandle.USER_NULL && in isAlwaysOnVpnSetInManagedProfile()
150 VpnUtils.isAlwaysOnVpnSet(mVm, managedProfileUserId); in isAlwaysOnVpnSetInManagedProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java139 final int managedProfileUserId = getManagedProfileUserId(); in isAlwaysOnVpnSetInManagedProfile() local
140 return managedProfileUserId != UserHandle.USER_NULL && (mVm.getAlwaysOnVpnPackageForUser( in isAlwaysOnVpnSetInManagedProfile()
141 managedProfileUserId) != null); in isAlwaysOnVpnSetInManagedProfile()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java142 final int managedProfileUserId = getManagedProfileUserId(); in isAlwaysOnVpnSetInManagedProfile() local
143 return managedProfileUserId != UserHandle.USER_NULL && (mVm.getAlwaysOnVpnPackageForUser( in isAlwaysOnVpnSetInManagedProfile()
144 managedProfileUserId) != null); in isAlwaysOnVpnSetInManagedProfile()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelper.java123 public boolean isPackageAllowedToAccessCalendar(String packageName, int managedProfileUserId) { in isPackageAllowedToAccessCalendar() argument
125 mContext, managedProfileUserId); in isPackageAllowedToAccessCalendar()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DMockCrossProfileCalendarHelper.java36 public boolean isPackageAllowedToAccessCalendar(String packageName, int managedProfileUserId) { in isPackageAllowedToAccessCalendar() argument
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DWorkPolicyInfo.kt101 UserHandle.of(workPolicyUtils.managedProfileUserId) in createSafetySourceDataForWorkPolicy()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java731 final int managedProfileUserId = in updateTTSSetting() local
733 if (managedProfileUserId != UserHandle.USER_NULL) { in updateTTSSetting()
734 Secure.putIntForUser(getContentResolver(), key, value, managedProfileUserId); in updateTTSSetting() local
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationInsideSuwControllerTest.java372 final int managedProfileUserId = MANAGED_PROFILE_USER_HANDLE.getIdentifier(); in testCorpOwnedManagedProfileDuringSuw() local
373 when(mDevicePolicyManager.getProfileOwnerAsUser(managedProfileUserId)) in testCorpOwnedManagedProfileDuringSuw()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java742 int managedProfileUserId = 10; in testCanCurrentUserBlockUsers_managedProfile() local
743 doReturn(managedProfileUserId).when(mMockContext).getUserId(); in testCanCurrentUserBlockUsers_managedProfile()
744 doReturn(true).when(mMockUserManager).isManagedProfile(eq(managedProfileUserId)); in testCanCurrentUserBlockUsers_managedProfile()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java2169 int managedProfileUserId = getManagedProfileUserId(mContext, in startOutgoingCall()
2171 if (managedProfileUserId != UserHandle.USER_NULL in startOutgoingCall()
2175 UserHandle.of(managedProfileUserId), in startOutgoingCall()
2179 callUri, initiatingUser, managedProfileUserId); in startOutgoingCall()
2385 int managedProfileUserId) { in showSwitchToManagedProfileDialog() argument
2390 mDefaultDialerCache.getDefaultDialerApplication(managedProfileUserId))) { in showSwitchToManagedProfileDialog()
2394 return maybeShowErrorDialog(callUri, managedProfileUserId, initiatingUser); in showSwitchToManagedProfileDialog()
2398 if (userManager.isQuietModeEnabled(UserHandle.of(managedProfileUserId))) { in showSwitchToManagedProfileDialog()
2402 return maybeShowErrorDialog(callUri, managedProfileUserId, initiatingUser); in showSwitchToManagedProfileDialog()
2449 int managedProfileUserId, in maybeShowErrorDialog() argument
[all …]