/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriGrantsManagerService.java | 184 public void grantUriPermissionFromOwner(IBinder token, int fromUid, String targetPkg, Uri uri, in grantUriPermissionFromOwner() argument 201 if (targetPkg == null) { in grantUriPermissionFromOwner() 208 grantUriPermission(fromUid, targetPkg, new GrantUri(sourceUserId, uri, false), in grantUriPermissionFromOwner() 243 if (packageName.equals(perm.targetPkg) in getUriPermissions() 280 if ((packageName == null || packageName.equals(perm.targetPkg)) in getGrantedUriPermissions() 438 || perm.targetPkg.equals(packageName)) { in removeUriPermissionsForPackage() 536 String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId) { in checkGrantUriPermissionFromIntent() argument 543 if (targetPkg == null) { in checkGrantUriPermissionFromIntent() 566 targetUid = pm.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, targetUserId); in checkGrantUriPermissionFromIntent() 571 if (DEBUG) Slog.v(TAG, "Can't grant URI permission no uid for: " + targetPkg in checkGrantUriPermissionFromIntent() [all …]
|
D | NeededUriGrants.java | 27 final String targetPkg; field in NeededUriGrants 31 public NeededUriGrants(String targetPkg, int targetUid, int flags) { in NeededUriGrants() argument 32 this.targetPkg = targetPkg; in NeededUriGrants() 39 proto.write(NeededUriGrantsProto.TARGET_PACKAGE, targetPkg); in writeToProto()
|
D | UriGrantsManagerInternal.java | 35 void grantUriPermission(int callingUid, String targetPkg, GrantUri grantUri, in grantUriPermission() argument 40 int checkGrantUriPermission(int callingUid, String targetPkg, GrantUri grantUri, in checkGrantUriPermission() argument 43 int callingUid, String targetPkg, Uri uri, int modeFlags, int userId); in checkGrantUriPermission() argument 45 String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId); in checkGrantUriPermissionFromIntent() argument 51 String targetPkg, Intent intent, int targetUserId); in grantUriPermissionFromIntent() argument 53 String targetPkg, Intent intent, UriPermissionOwner owner, int targetUserId); in grantUriPermissionFromIntent() argument
|
D | UriPermission.java | 50 final String targetPkg; field in UriPermission 89 UriPermission(String sourcePkg, String targetPkg, int targetUid, GrantUri uri) { in UriPermission() argument 92 this.targetPkg = targetPkg; in UriPermission() 103 "Permission for " + targetPkg + " to " + uri + " is changing from 0x" in updateModeFlags() 323 pw.println(" targetPkg=" + targetPkg); in dump() 368 final String targetPkg; field in UriPermission.Snapshot 376 this.targetPkg = perm.targetPkg; in Snapshot() 392 return new GrantedUriPermission(uri.uri, targetPkg); in buildGrantedUriPermission()
|
/frameworks/base/core/java/android/app/ |
D | IUriGrantsManager.aidl | 30 void grantUriPermissionFromOwner(in IBinder owner, int fromUid, in String targetPkg, in grantUriPermissionFromOwner() argument
|
D | INotificationManager.aidl | 96 ParceledListSlice getNotificationChannels(String callingPkg, String targetPkg, int userId); in getNotificationChannels() argument 201 boolean canNotifyAsPackage(String callingPkg, String targetPkg, int userId); in canNotifyAsPackage() argument
|
D | IActivityManager.aidl | 210 void grantUriPermission(in IApplicationThread caller, in String targetPkg, in Uri uri, in grantUriPermission() argument 212 void revokeUriPermission(in IApplicationThread caller, in String targetPkg, in Uri uri, in revokeUriPermission() argument
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 649 private final void grantUriLocked(Uri uri, int sourceUid, String targetPkg, in grantUriLocked() argument 655 mUgm.grantUriPermissionFromOwner(mPermissionOwner, sourceUid, targetPkg, in grantUriLocked() 667 private final void grantItemLocked(ClipData.Item item, int sourceUid, String targetPkg, in grantItemLocked() argument 670 grantUriLocked(item.getUri(), sourceUid, targetPkg, targetUserId); in grantItemLocked() local 674 grantUriLocked(intent.getData(), sourceUid, targetPkg, targetUserId); in grantItemLocked() local
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerServiceTest.java | 48 final Bundle extras, final int flags, final String targetPkg, in testPackageRemoval() argument
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 2676 public boolean canNotifyAsPackage(String callingPkg, String targetPkg, int userId) { 2685 if (callingPkg.equals(targetPkg)) { 2690 mPackageManager.getApplicationInfo(targetPkg, 2695 targetPkg, info.uid, callingPkg, callingUid); 2765 String targetPkg, String channelId) { 2766 if (canNotifyAsPackage(callingPkg, targetPkg, userId) 2770 targetUid = mPackageManagerClient.getPackageUidAsUser(targetPkg, userId); 2775 targetPkg, targetUid, channelId, false /* includeDeleted */); 2778 + " cannot read channels for " + targetPkg + " in " + userId); 2914 String callingPkg, String targetPkg, int userId) { [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 12518 final int flags, final String targetPkg, final IIntentReceiver finishedReceiver, 12530 doSendBroadcast(am, action, pkg, extras, flags, targetPkg, finishedReceiver, 12533 doSendBroadcast(am, action, pkg, extras, flags, targetPkg, finishedReceiver, 12603 int flags, String targetPkg, IIntentReceiver finishedReceiver, 12614 if (targetPkg != null) { 12615 intent.setPackage(targetPkg); 25110 final Bundle extras, final int flags, final String targetPkg,
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 6181 public void grantUriPermission(IApplicationThread caller, String targetPkg, Uri uri, in grantUriPermission() argument 6192 if (targetPkg == null) { in grantUriPermission() 6204 mUgmInternal.grantUriPermission(r.uid, targetPkg, grantUri, modeFlags, null, in grantUriPermission()
|