/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | UserCache.java | 78 Context userContext = getContextForUser(profile); in update() local 79 if (userContext.getSystemService(UserManager.class).isMediaSharedWithParent()) { in update() 101 Context userContext; in getContextForUser() local 103 userContext = mUserContexts.get(user.getIdentifier()); in getContextForUser() 104 if (userContext != null) { in getContextForUser() 105 return userContext; in getContextForUser() 109 userContext = mContext.createPackageContextAsUser("system", 0, user); in getContextForUser() 111 mUserContexts.put(user.getIdentifier(), userContext); in getContextForUser() local 113 return userContext; in getContextForUser()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RingtoneFactory.java | 70 Context userContext = isWorkContact(incomingCall) ? in getRingtone() local 76 if(ringtoneUri != null && userContext != null) { in getRingtone() 79 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, in getRingtone() 88 Context contextToUse = hasDefaultRingtoneForUser(userContext) ? userContext : mContext; in getRingtone() 154 private boolean hasDefaultRingtoneForUser(Context userContext) { in hasDefaultRingtoneForUser() argument 155 if(userContext == null) { in hasDefaultRingtoneForUser() 158 return !TextUtils.isEmpty(Settings.System.getStringForUser(userContext.getContentResolver(), in hasDefaultRingtoneForUser() 159 Settings.System.RINGTONE, userContext.getUserId())); in hasDefaultRingtoneForUser()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | VolumeCache.java | 115 final Context userContext = mUserCache.getContextForUser(user); in getVolumePath() local 116 return FileUtils.getVolumePath(userContext, volumeName); in getVolumePath() 137 final Context userContext = mUserCache.getContextForUser(user); in getVolumeScanPaths() local 138 final Collection<File> res = FileUtils.getVolumeScanPaths(userContext, volumeName); in getVolumeScanPaths() 171 private void updateExternalVolumesForUserLocked(Context userContext) { in updateExternalVolumesForUserLocked() argument 172 final StorageManager sm = userContext.getSystemService(StorageManager.class); in updateExternalVolumesForUserLocked() 173 for (String volumeName : MediaStore.getExternalVolumeNames(userContext)) { in updateExternalVolumesForUserLocked() 179 mCachedVolumeScanPaths.put(volume, FileUtils.getVolumeScanPaths(userContext, in updateExternalVolumesForUserLocked() 199 Context userContext = mUserCache.getContextForUser(user); in update() local 200 updateExternalVolumesForUserLocked(userContext); in update()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | ReviewOngoingUsageViewModel.kt | 218 val userContext = Utils.getUserContext(PermissionControllerApplication.get(), user) in <lambda>() constant 222 userContext.getSystemService(InputMethodManager::class.java)!! in <lambda>() 227 it.serviceInfo.loadSafeLabel(userContext.packageManager, in <lambda>() 235 val recognitionPackageName = Settings.Secure.getString(userContext.contentResolver, in <lambda>() 241 val availableRecognizers = userContext.packageManager.queryIntentServices( in <lambda>() 246 recognizers[sI.packageName] = sI.loadSafeLabel(userContext.packageManager, in <lambda>() 252 val availableRecognizerIntents = userContext.packageManager.queryIntentActivities( in <lambda>() 261 rI.serviceInfo.loadSafeLabel(userContext.packageManager, in <lambda>() 269 setTrustedAttrsForAccess(userContext, opAccess, user, false, voiceInputs, in <lambda>() 271 setTrustedAttrsForAccess(userContext, opAccess, user, false, recognizerIntents, in <lambda>() [all …]
|
D | UnusedAppsViewModel.kt | 170 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 175 userContext.startActivityAsUser(intent, user) in <lambda>() 190 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 191 userContext.packageManager.setApplicationEnabledSetting(packageName, in <lambda>()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 111 Context userContext = createPackageContextAsUser(callingUid); in isTargetSdkLessThan() local 112 if (userContext == null) return false; in isTargetSdkLessThan() 113 targetSdkVersion = userContext.getPackageManager().getTargetSdkVersion(packageName); in isTargetSdkLessThan() 591 Context userContext = null; in createPackageContextAsUser() local 593 userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, in createPackageContextAsUser() 599 if (userContext == null) { in createPackageContextAsUser() 603 return userContext; in createPackageContextAsUser() 607 Context userContext = createPackageContextAsUser(uid); in retrieveDevicePolicyManagerFromUserContext() local 608 if (userContext == null) return null; in retrieveDevicePolicyManagerFromUserContext() 609 return retrieveDevicePolicyManagerFromContext(userContext); in retrieveDevicePolicyManagerFromUserContext()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/ |
D | LightPackageInfo.kt | 83 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid)) in <lambda>() constant 84 return userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>() 101 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid)) in <lambda>() constant 102 return userContext.packageManager.getPackageInfo(packageName, in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | AppPermGroupUiInfoLiveData.kt | 303 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 304 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>() 305 return LocationUtils.isLocationEnabled(userContext) in <lambda>() 309 if (LocationUtils.isLocationGroupAndControllerExtraPackage(userContext, in <lambda>() 311 return LocationUtils.isExtraLocationControllerPackageEnabled(userContext) in <lambda>()
|
D | LightAppPermGroupLiveData.kt | 119 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 120 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>() 121 specialLocationGrant = LocationUtils.isLocationEnabled(userContext) in <lambda>() 127 userContext) in <lambda>()
|
D | HibernatedPackagesLiveData.kt | 51 val userContext = getUserContext(PermissionControllerApplication.get(), user) in loadDataAndPostValue() constant 53 userContext.getSystemService(APP_HIBERNATION_SERVICE) as AppHibernationManager in loadDataAndPostValue()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | AdminRestrictedPermissionsUtils.java | 70 Context userContext = context.createContextAsUser(UserHandle.of(userId), /* flags= */0); in mayAdminGrantPermission() local 71 DevicePolicyManager dpm = userContext.getSystemService(DevicePolicyManager.class); in mayAdminGrantPermission() 72 UserManager um = userContext.getSystemService(UserManager.class); in mayAdminGrantPermission()
|
D | KotlinUtils.kt | 306 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 307 val appInfo = userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>() 325 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 326 val appInfo = userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>() 347 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 349 val appInfo = userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>() 367 val userContext = Utils.getUserContext(app, user) in <lambda>() constant 372 val appInfo = userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>()
|
D | UserSensitiveFlagsUtils.kt | 61 val userContext = Utils.getUserContext(PermissionControllerApplication.get(), user) in updateUserSensitiveForUidsInternal() constant 62 val pm = userContext.packageManager in updateUserSensitiveForUidsInternal()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | AppLocationPermissionPreferenceController.java | 90 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState() local 92 if (userContext == null) { in updateState() 101 userContext.getSystemService(PermissionControllerManager.class); in updateState()
|
D | TopLevelLocationPreferenceController.java | 87 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState() local 89 if (userContext == null) { in updateState() 96 userContext.getSystemService(PermissionControllerManager.class); in updateState()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppPreference.java | 56 Context userContext = getUserContext(); in AppPreference() local 57 PackageManager pm = userContext.getPackageManager(); in AppPreference() 64 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | ExemptRestrictedPermission.kt | 20 val userContext = context.createContextAsUser(UserHandle.of(userId), 0) in onReceive() constant 24 userContext.packageManager.addWhitelistedRestrictedPermission(packageName, permission, in onReceive()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | RequiredBroadcastReceiver.java | 47 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local 48 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
|
D | RequiredContentProvider.java | 47 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local 48 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
|
D | RequiredService.java | 47 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local 48 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
|
D | RequiredActivity.java | 47 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser() local 48 PackageManager userPackageManager = userContext.getPackageManager(); in queryIntentComponentsAsUser()
|
D | AssistantRoleBehavior.java | 112 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUser() local 113 ActivityManager userActivityManager = userContext.getSystemService(ActivityManager.class); in getQualifyingPackagesAsUser() 114 PackageManager userPackageManager = userContext.getPackageManager(); in getQualifyingPackagesAsUser()
|
D | BrowserRoleBehavior.java | 106 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUserInternal() local 107 PackageManager userPackageManager = userContext.getPackageManager(); in getQualifyingPackagesAsUserInternal()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/ |
D | HibernationController.kt | 54 val userContext = context.createContextAsUser(user, 0 /* flags */) in hibernateApps() constant 56 userContext.getSystemService(APP_HIBERNATION_SERVICE) as AppHibernationManager in hibernateApps()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeEventRuleSettings.java | 189 final Context userContext = getContextForUser(context, user); in getCalendars() local 190 if (userContext != null) { in getCalendars() 191 addCalendars(userContext, calendars); in getCalendars()
|