Home
last modified time | relevance | path

Searched refs:userContext (Results 1 – 18 of 18) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java70 Context userContext = isWorkContact(incomingCall) ? in getRingtone() local
76 if(ringtoneUri != null && userContext != null) { in getRingtone()
78 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, volumeShaperConfig); in getRingtone()
83 Context contextToUse = hasDefaultRingtoneForUser(userContext) ? userContext : mContext; in getRingtone()
145 private boolean hasDefaultRingtoneForUser(Context userContext) { in hasDefaultRingtoneForUser() argument
146 if(userContext == null) { in hasDefaultRingtoneForUser()
149 return !TextUtils.isEmpty(Settings.System.getStringForUser(userContext.getContentResolver(), in hasDefaultRingtoneForUser()
150 Settings.System.RINGTONE, userContext.getUserId())); in hasDefaultRingtoneForUser()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java52 Context userContext = getUserContext(); in AppPreference() local
53 PackageManager pm = userContext.getPackageManager(); in AppPreference()
60 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference()
DVpnSettings.java382 Context userContext = getActivity().createPackageContextAsUser( in onPreferenceClick() local
384 PackageManager pm = userContext.getPackageManager(); in onPreferenceClick()
387 userContext.startActivityAsUser(appIntent, user); in onPreferenceClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppPreference.java52 Context userContext = getUserContext(); in AppPreference() local
53 PackageManager pm = userContext.getPackageManager(); in AppPreference()
60 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference()
DVpnSettings.java383 Context userContext = getActivity().createPackageContextAsUser( in onPreferenceClick() local
385 PackageManager pm = userContext.getPackageManager(); in onPreferenceClick()
388 userContext.startActivityAsUser(appIntent, user); in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/location/
DAppLocationPermissionPreferenceController.java96 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState() local
98 if (userContext == null) { in updateState()
107 userContext.getSystemService(PermissionControllerManager.class); in updateState()
DTopLevelLocationPreferenceController.java87 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState() local
89 if (userContext == null) { in updateState()
96 userContext.getSystemService(PermissionControllerManager.class); in updateState()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DAssistantRoleBehavior.java114 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUser() local
115 ActivityManager userActivityManager = userContext.getSystemService(ActivityManager.class); in getQualifyingPackagesAsUser()
116 PackageManager userPackageManager = userContext.getPackageManager(); in getQualifyingPackagesAsUser()
DRequiredBroadcastReceiver.java48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local
49 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
DRequiredActivity.java48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local
49 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
DRequiredContentProvider.java48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local
49 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
DRequiredService.java48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local
49 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
DBrowserRoleBehavior.java92 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUserInternal() local
93 PackageManager userPackageManager = userContext.getPackageManager(); in getQualifyingPackagesAsUserInternal()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeEventRuleSettings.java189 final Context userContext = getContextForUser(context, user); in getCalendars() local
190 if (userContext != null) { in getCalendars()
191 addCalendars(userContext, calendars); in getCalendars()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeEventRuleSettings.java189 final Context userContext = getContextForUser(context, user); in getCalendars() local
190 if (userContext != null) { in getCalendars()
191 addCalendars(userContext, calendars); in getCalendars()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java172 Context userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), in getNameForVpnConfig() local
174 return VpnConfig.getVpnLabel(userContext, vpnPackage).toString(); in getNameForVpnConfig()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DVpnPreferenceController.java172 Context userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), in getNameForVpnConfig() local
174 return VpnConfig.getVpnLabel(userContext, vpnPackage).toString(); in getNameForVpnConfig()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DUtils.java751 Context userContext = getParentUserContext(application); in updateUserSensitive() local
752 PackageManager pm = userContext.getPackageManager(); in updateUserSensitive()
753 RoleManager rm = userContext.getSystemService(RoleManager.class); in updateUserSensitive()
754 SharedPreferences prefs = userContext.getSharedPreferences(PREFERENCES_FILE, MODE_PRIVATE); in updateUserSensitive()