Home
last modified time | relevance | path

Searched refs:sourceUserId (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/uri/
DGrantUri.java29 public final int sourceUserId; field in GrantUri
33 public GrantUri(int sourceUserId, Uri uri, int modeFlags) { in GrantUri() argument
34 this.sourceUserId = sourceUserId; in GrantUri()
42 hashCode = 31 * hashCode + sourceUserId; in hashCode()
52 return uri.equals(other.uri) && (sourceUserId == other.sourceUserId) in equals()
60 String result = uri.toString() + " [user " + sourceUserId + "]"; in toString()
66 String result = uri.toSafeString() + " [user " + sourceUserId + "]"; in toSafeString()
74 proto.write(GrantUriProto.SOURCE_USER_ID, sourceUserId); in dumpDebug()
DUriGrantsManagerService.java255 Uri uri, final int modeFlags, int sourceUserId, int targetUserId) { in grantUriPermissionFromOwner() argument
256 grantUriPermissionFromOwnerUnlocked(token, fromUid, targetPkg, uri, modeFlags, sourceUserId, in grantUriPermissionFromOwner()
265 int sourceUserId, int targetUserId) { in grantUriPermissionFromOwnerUnlocked() argument
288 grantUriPermissionUnlocked(fromUid, targetPkg, new GrantUri(sourceUserId, uri, modeFlags), in grantUriPermissionFromOwnerUnlocked()
553 if (grantUri.sourceUserId == userId || !checkUser) { in checkAuthorityGrantsLocked()
788 final int sourceUserId; in readGrantedUriPermissionsLocked() local
794 sourceUserId = userHandle; in readGrantedUriPermissionsLocked()
797 sourceUserId = in.getAttributeInt(null, ATTR_SOURCE_USER_ID); in readGrantedUriPermissionsLocked()
810 final ProviderInfo pi = getProviderInfo(uri.getAuthority(), sourceUserId, in readGrantedUriPermissionsLocked()
816 final GrantUri grantUri = new GrantUri(sourceUserId, uri, in readGrantedUriPermissionsLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileIntentResolverEngine.java127 Intent intent, String resolvedType, int sourceUserId, int userId, long flags, in resolveIntentInternal() argument
143 if (sourceUserId == userId && intent.hasWebURI()) { in resolveIntentInternal()
226 resolvedType, sourceUserId, targetUserId, flags, pkgName, in resolveIntentInternal()
250 @UserIdInt int sourceUserId, @UserIdInt int targetUserId, boolean resolveForStart, in chooseCrossProfileResolver() argument
256 if (shouldUseNoFilteringResolver(sourceUserId, targetUserId)) { in chooseCrossProfileResolver()
284 @Nullable String resolvedType, @UserIdInt int sourceUserId, in canReachTo() argument
287 return canReachToInternal(computer, intent, resolvedType, sourceUserId, targetUserId, in canReachTo()
304 @Nullable String resolvedType, @UserIdInt int sourceUserId, in canReachToInternal() argument
306 if (sourceUserId == targetUserId) return true; in canReachToInternal()
307 visitedUserIds.add(sourceUserId); in canReachToInternal()
[all …]
DDefaultCrossProfileResolver.java131 int sourceUserId, int targetUserId, int highestApprovalLevel) { in filterResolveInfoWithDomainPreferredActivity() argument
164 long flags, int sourceUserId, in querySkipCurrentProfileIntents() argument
174 intent, resolvedType, flags, sourceUserId, pkgSettingFunction); in querySkipCurrentProfileIntents()
205 long flags, int sourceUserId, boolean matchInCurrentProfile, in queryCrossProfileIntents() argument
230 resolvedType, flags, sourceUserId, pkgSettingFunction); in queryCrossProfileIntents()
249 filterIfNotSystemUser(Collections.singletonList(resultInfo), sourceUserId); in queryCrossProfileIntents()
274 int sourceUserId, @NonNull Function<String, PackageStateInternal> pkgSettingFunction) { in createForwardingResolveInfo() argument
291 forwardingInfo = computer.createForwardingResolveInfoUnchecked(filter, sourceUserId, in createForwardingResolveInfo()
DCrossProfileIntentFilterHelper.java82 public void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage, in clearCrossProfileIntentFilters() argument
86 .editCrossProfileIntentResolverLPw(sourceUserId); in clearCrossProfileIntentFilters()
94 && mUserManagerService.isCrossProfileIntentFilterAccessible(sourceUserId, in clearCrossProfileIntentFilters()
DCrossProfileResolver.java84 int sourceUserId, int targetUserId, int highestApprovalLevel); in filterResolveInfoWithDomainPreferredActivity() argument
DNoFilteringResolver.java130 List<CrossProfileDomainInfo> crossProfileDomainInfos, long flags, int sourceUserId, in filterResolveInfoWithDomainPreferredActivity() argument
DComputer.java169 long flags, int sourceUserId, int parentUserId); in getCrossProfileDomainPreferredLpr() argument
206 int sourceUserId, int targetUserId); in createForwardingResolveInfoUnchecked() argument
615 @UserIdInt int sourceUserId, @UserIdInt int targetUserId); in canForwardTo() argument
DIPackageManagerBase.java158 int sourceUserId, int targetUserId, int flags) { in addCrossProfileIntentFilter() argument
160 new WatchedIntentFilter(intentFilter), ownerPackage, sourceUserId, targetUserId, in addCrossProfileIntentFilter() local
205 @UserIdInt int sourceUserId, @UserIdInt int targetUserId) { in canForwardTo() argument
206 return snapshot().canForwardTo(intent, resolvedType, sourceUserId, targetUserId); in canForwardTo()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillUriGrantsManager.java101 final int sourceUserId = ContentProvider.getUserIdFromUri(uri, mSourceUserId); in grantUriPermissions() local
104 + ", sourceUid=" + mSourceUid + ", sourceUserId=" + sourceUserId in grantUriPermissions()
117 sourceUserId, in grantUriPermissions()
121 + ", sourceUid=" + mSourceUid + ", sourceUserId=" + sourceUserId in grantUriPermissions()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputContentUriTokenHandler.java51 @NonNull String targetPackage, @UserIdInt int sourceUserId, in InputContentUriTokenHandler() argument
56 mSourceUserId = sourceUserId; in InputContentUriTokenHandler()
DInputMethodUtils.java231 final int sourceUserId; in resolveUserId() local
233 sourceUserId = currentUserId; in resolveUserId()
242 sourceUserId = userIdToBeResolved; in resolveUserId()
251 return new int[]{sourceUserId}; in resolveUserId()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DUserVisibleJobSummary.java43 int sourceUserId, @NonNull String sourcePackageName, in UserVisibleJobSummary() argument
47 mSourceUserId = sourceUserId; in UserVisibleJobSummary()
/frameworks/base/services/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java53 String targetPackage, int mode, int sourceUserId, int targetUserId) { in DragAndDropPermissionsHandler() argument
58 mSourceUserId = sourceUserId; in DragAndDropPermissionsHandler()
DActivityCallerState.java316 out.attributeInt(null, ATTR_SOURCE_USER_ID, grantUri.sourceUserId); in saveGrantUriToXml()
324 int sourceUserId = in.getAttributeInt(null, ATTR_SOURCE_USER_ID, 0); in restoreGrantUriFromXml() local
327 return new GrantUri(sourceUserId, uri, in restoreGrantUriFromXml()
/frameworks/base/core/java/android/app/
DIUriGrantsManager.aidl31 in Uri uri, int mode, int sourceUserId, int targetUserId); in grantUriPermissionFromOwner() argument
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DContentObserverController.java280 final int sourceUserId = jobStatus.getSourceUserId(); in JobInstance() local
282 mObservers.get(sourceUserId); in JobInstance()
285 mObservers.put(sourceUserId, observersOfUser); in JobInstance()
298 + " sourceUserId=" + sourceUserId); in JobInstance()
304 sourceUserId in JobInstance() local
DJobStatus.java250 final int sourceUserId; field in JobStatus
604 int sourceUserId, int standbyBucket, @Nullable String namespace, String tag, in JobStatus() argument
617 if (sourceUserId != -1 && sourcePackageName != null) { in JobStatus()
620 sourceUserId); in JobStatus()
627 this.sourceUserId = UserHandle.getUserId(callingUid); in JobStatus()
632 this.sourceUserId = sourceUserId; in JobStatus()
763 public JobStatus(JobInfo job, int callingUid, String sourcePkgName, int sourceUserId, in JobStatus() argument
770 this(job, callingUid, sourcePkgName, sourceUserId, in JobStatus()
815 int sourceUserId, @Nullable String namespace, String tag) { in createFromJobInfo() argument
835 sourceUserId, elapsedNow); in createFromJobInfo()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DGrantedUriPermissions.java118 int sourceUserId = ContentProvider.getUserIdFromUri(uri, in grantUri() local
125 sourceUid, targetPackage, uri, grantFlags, sourceUserId, targetUserId); in grantUri()
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl137 boolean canForwardTo(in Intent intent, String resolvedType, int sourceUserId, int targetUserId); in canForwardTo() argument
289 int sourceUserId, int targetUserId, int flags); in addCrossProfileIntentFilter() argument
293 int sourceUserId, int targetUserId, int flags); in removeCrossProfileIntentFilter() argument
296 void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage); in clearCrossProfileIntentFilters() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java964 public void addCrossProfileIntentFilter(IntentFilter filter, int sourceUserId, in addCrossProfileIntentFilter() argument
971 public void clearCrossProfileIntentFilters(int sourceUserId) { in clearCrossProfileIntentFilters() argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java959 public void addCrossProfileIntentFilter(IntentFilter filter, int sourceUserId, int targetUserId, in addCrossProfileIntentFilter() argument
964 public void clearCrossProfileIntentFilters(int sourceUserId) { in clearCrossProfileIntentFilters() argument
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java582 static Intent canForward(Intent incomingIntent, int sourceUserId, int targetUserId, in canForward() argument
600 intentToCheck, resolvedType, sourceUserId, targetUserId)) { in canForward()
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java1140 public void addCrossProfileIntentFilter(IntentFilter filter, int sourceUserId, int targetUserId, in addCrossProfileIntentFilter() argument
1149 public void clearCrossProfileIntentFilters(int sourceUserId) { in clearCrossProfileIntentFilters() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/app/
DMockPackageManager.java1070 public void addCrossProfileIntentFilter(@NonNull IntentFilter filter, int sourceUserId, in addCrossProfileIntentFilter() argument
1076 public void clearCrossProfileIntentFilters(int sourceUserId) { in clearCrossProfileIntentFilters() argument

12