Home
last modified time | relevance | path

Searched refs:modeFlags (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DUriPermission.java62 int modeFlags = 0; field in UriPermission
96 modeFlags = ownedModeFlags | globalModeFlags | persistableModeFlags | persistedModeFlags; in updateModeFlags()
103 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes() argument
104 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes()
107 persistableModeFlags = modeFlags; in initPersistedModes()
108 persistedModeFlags = modeFlags; in initPersistedModes()
114 void grantModes(int modeFlags, UriPermissionOwner owner) { in grantModes() argument
115 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes()
116 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes()
120 persistableModeFlags |= modeFlags; in grantModes()
[all …]
DActivityManagerService.java7735 IPackageManager pm, ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) {
7744 return checkHoldingPermissionsInternalLocked(pm, pi, grantUri, uid, modeFlags, true);
7748 GrantUri grantUri, int uid, final int modeFlags, boolean considerUidPermissions) {
7755 boolean readMet = (modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) == 0;
7756 boolean writeMet = (modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0;
7908 final int modeFlags) { in checkUriPermissionLocked() argument
7909 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in checkUriPermissionLocked()
7923 if (exactPerm != null && exactPerm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked()
7932 && perm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked()
7946 final int modeFlags, int userId, IBinder callerToken) { in checkUriPermission() argument
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java711 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
712 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission()
716 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
717 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission()
721 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
722 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
727 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
728 return mBase.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
732 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
733 return mBase.checkCallingUriPermission(uri, modeFlags); in checkCallingUriPermission()
[all …]
DContext.java3828 @Intent.GrantUriMode int modeFlags); in grantUriPermission() argument
3856 public abstract void revokeUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument
3881 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
3885 @Intent.AccessUriMode int modeFlags, IBinder callerToken); in checkUriPermission() argument
3909 public abstract int checkCallingUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in checkCallingUriPermission() argument
3930 @Intent.AccessUriMode int modeFlags); in checkCallingOrSelfUriPermission() argument
3957 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
3979 Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message); in enforceUriPermission() argument
4001 Uri uri, @Intent.AccessUriMode int modeFlags, String message); in enforceCallingUriPermission() argument
4020 Uri uri, @Intent.AccessUriMode int modeFlags, String message); in enforceCallingOrSelfUriPermission() argument
[all …]
DUriPermission.java42 public UriPermission(Uri uri, int modeFlags, long persistedTime) { in UriPermission() argument
44 mModeFlags = modeFlags; in UriPermission()
DContentResolver.java1790 @Intent.AccessUriMode int modeFlags) { in takePersistableUriPermission() argument
1794 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in takePersistableUriPermission() local
1808 @Intent.AccessUriMode int modeFlags) { in releasePersistableUriPermission() argument
1812 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in releasePersistableUriPermission() local
DIntent.java4201 public static boolean isAccessUriMode(int modeFlags) { in isAccessUriMode() argument
4202 return (modeFlags & (Intent.FLAG_GRANT_READ_URI_PERMISSION in isAccessUriMode()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java598 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
603 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
608 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
614 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
615 return checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
619 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
624 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
630 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument
636 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
642 Uri uri, int modeFlags, String message) { in enforceCallingUriPermission() argument
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java643 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, uri); in canonicalize() local
644 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize() local
652 int modeFlags = 0; in getCallingOrSelfUriPermissionModeFlags() local
655 modeFlags |= Intent.FLAG_GRANT_READ_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
659 modeFlags |= Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
664 modeFlags |= Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
666 return modeFlags; in getCallingOrSelfUriPermissionModeFlags()
779 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
781 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local
811 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
[all …]
/frameworks/base/core/java/android/app/
DContextImpl.java1653 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
1657 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in grantUriPermission() local
1664 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
1668 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
1675 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
1678 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
1687 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
1690 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
1702 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
1706 Binder.getCallingUid(), modeFlags); in checkCallingUriPermission()
[all …]
DIActivityManager.java306 public void takePersistableUriPermission(Uri uri, int modeFlags, int userId) in takePersistableUriPermission() argument
308 public void releasePersistableUriPermission(Uri uri, int modeFlags, int userId) in releasePersistableUriPermission() argument
443 int modeFlags, int userId) throws RemoteException; in checkGrantUriPermission() argument
DActivityManagerNative.java2029 int modeFlags = data.readInt(); in onTransact() local
2031 int res = checkGrantUriPermission(callingUid, targetPkg, uri, modeFlags, userId); in onTransact()
5590 Uri uri, int modeFlags, int userId) throws RemoteException { in checkGrantUriPermission() argument
5597 data.writeInt(modeFlags); in checkGrantUriPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java109 int uid, int modeFlags) { in checkUriPermission() argument
114 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java435 private int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, int userHandle) { in checkUriPermission() argument
438 uri, pid, uid, modeFlags, userHandle, null); in checkUriPermission()