Home
last modified time | relevance | path

Searched refs:grantUri (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java315 GrantUri grantUri = new GrantUri(userId, uri, false); in takePersistableUriPermission() local
317 UriPermission exactPerm = findUriPermissionLocked(uid, grantUri); in takePersistableUriPermission()
328 + uid + " and Uri " + grantUri.toSafeString()); in takePersistableUriPermission()
474 GrantUri grantUri = perms.keyAt(i); in checkAuthorityGrants() local
475 if (grantUri.sourceUserId == userId || !checkUser) { in checkAuthorityGrants()
476 if (matchesProvider(grantUri.uri, cpi)) { in checkAuthorityGrants()
577 GrantUri grantUri = GrantUri.resolve(contentUserHint, data); in checkGrantUriPermissionFromIntent() local
578 targetUid = checkGrantUriPermission(callingUid, targetPkg, grantUri, mode, targetUid); in checkGrantUriPermissionFromIntent()
583 needed.add(grantUri); in checkGrantUriPermissionFromIntent()
590 GrantUri grantUri = GrantUri.resolve(contentUserHint, uri); in checkGrantUriPermissionFromIntent() local
[all …]
DUriGrantsManagerInternal.java35 void grantUriPermission(int callingUid, String targetPkg, GrantUri grantUri, in grantUriPermission() argument
38 GrantUri grantUri, final int modeFlags); in revokeUriPermission() argument
39 boolean checkUriPermission(GrantUri grantUri, int uid, final int modeFlags); in checkUriPermission() argument
40 int checkGrantUriPermission(int callingUid, String targetPkg, GrantUri grantUri, in checkGrantUriPermission() argument
DUriPermissionOwner.java75 void removeUriPermission(GrantUri grantUri, int mode) { in removeUriPermission() argument
80 if (grantUri == null || grantUri.equals(perm.uri)) { in removeUriPermission()
95 if (grantUri == null || grantUri.equals(perm.uri)) { in removeUriPermission()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceClientPermissionsTest.java66 client.grantUri(base.buildUpon() in testRemoveBasic()
92 client.grantUri(base.buildUpon() in testRemoveSubtrees()
96 client.grantUri(base.buildUpon() in testRemoveSubtrees()
123 client.grantUri(base.buildUpon() in testAddConsolidate_addFirst()
126 client.grantUri(base.buildUpon() in testAddConsolidate_addFirst()
150 client.grantUri(base.buildUpon() in testAddConsolidate_addSecond()
154 client.grantUri(base.buildUpon() in testAddConsolidate_addSecond()
/frameworks/base/services/core/java/com/android/server/job/
DGrantedUriPermissions.java76 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
113 private static GrantedUriPermissions grantUri(IActivityManager am, Uri uri, in grantUri() method in GrantedUriPermissions
136 curPerms = grantUri(am, item.getUri(), sourceUid, targetPackage, targetUserId, in grantItem()
141 curPerms = grantUri(am, intent.getData(), sourceUid, targetPackage, targetUserId, in grantItem()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java267 Uri grantUri = uri.buildUpon() in grantPermissionFromUser() local
270 int providerUser = ContentProvider.getUserIdFromUri(grantUri, userId); in grantPermissionFromUser()
271 String providerPkg = getProviderPkg(grantUri, providerUser); in grantPermissionFromUser()
272 mPermissions.grantSliceAccess(pkg, userId, providerPkg, providerUser, grantUri); in grantPermissionFromUser()
DSliceClientPermissions.java108 public void grantUri(Uri uri, PkgUser providerPkg) { in grantUri() method in SliceClientPermissions
DSlicePermissionManager.java106 client.grantUri(uri, providerPkgUser); in grantSliceAccess()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java6184 GrantUri grantUri = new GrantUri(userId, uri, false); in grantUriPermission() local
6190 + " when granting permission to uri " + grantUri); in grantUriPermission()
6195 if (grantUri == null) { in grantUriPermission()
6204 mUgmInternal.grantUriPermission(r.uid, targetPkg, grantUri, modeFlags, null, in grantUriPermission()
/frameworks/base/services/
Dart-profile12976 PLcom/android/server/slice/SliceClientPermissions;->grantUri(Landroid/net/Uri;Lcom/android/server/s…