/frameworks/base/services/core/java/com/android/server/uri/ |
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 | 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 | 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 199 boolean canNotifyAsPackage(String callingPkg, String targetPkg, int userId); in canNotifyAsPackage() argument
|
D | IActivityManager.aidl | 199 void grantUriPermission(in IApplicationThread caller, in String targetPkg, in Uri uri, in grantUriPermission() argument 201 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 | 2587 public boolean canNotifyAsPackage(String callingPkg, String targetPkg, int userId) { 2596 if (callingPkg.equals(targetPkg)) { 2601 mPackageManager.getApplicationInfo(targetPkg, 2606 targetPkg, info.uid, callingPkg, callingUid); 2676 String targetPkg, String channelId) { 2677 if (canNotifyAsPackage(callingPkg, targetPkg, userId) 2681 targetUid = mPackageManagerClient.getPackageUidAsUser(targetPkg, userId); 2686 targetPkg, targetUid, channelId, false /* includeDeleted */); 2689 + " cannot read channels for " + targetPkg + " in " + userId); 2825 String callingPkg, String targetPkg, int userId) { [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 12970 final int flags, final String targetPkg, final IIntentReceiver finishedReceiver, 12982 doSendBroadcast(am, action, pkg, extras, flags, targetPkg, finishedReceiver, 12985 doSendBroadcast(am, action, pkg, extras, flags, targetPkg, finishedReceiver, 13055 int flags, String targetPkg, IIntentReceiver finishedReceiver, 13066 if (targetPkg != null) { 13067 intent.setPackage(targetPkg); 25547 final Bundle extras, final int flags, final String targetPkg,
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 6144 public void grantUriPermission(IApplicationThread caller, String targetPkg, Uri uri, in grantUriPermission() argument 6155 if (targetPkg == null) { in grantUriPermission() 6167 mUgmInternal.grantUriPermission(r.uid, targetPkg, grantUri, modeFlags, null, in grantUriPermission()
|