Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/am/
DUriPermission.java63 int modeFlags = 0; field in UriPermission
97 modeFlags = ownedModeFlags | globalModeFlags | persistableModeFlags | persistedModeFlags; in updateModeFlags()
104 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes() argument
105 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes()
108 persistableModeFlags = modeFlags; in initPersistedModes()
109 persistedModeFlags = modeFlags; in initPersistedModes()
115 void grantModes(int modeFlags, UriPermissionOwner owner) { in grantModes() argument
116 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes()
117 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes()
121 persistableModeFlags |= modeFlags; in grantModes()
[all …]
DActivityManagerService.java6902 IPackageManager pm, ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) {
6911 return checkHoldingPermissionsInternalLocked(pm, pi, grantUri, uid, modeFlags, true);
6915 GrantUri grantUri, int uid, final int modeFlags, boolean considerUidPermissions) {
6922 boolean readMet = (modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) == 0;
6923 boolean writeMet = (modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0;
7036 final int modeFlags) { in checkUriPermissionLocked() argument
7037 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in checkUriPermissionLocked()
7051 if (exactPerm != null && exactPerm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked()
7060 && perm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked()
7074 final int modeFlags, int userId, IBinder callerToken) { in checkUriPermission() argument
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java604 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
605 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission()
609 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
610 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission()
614 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
615 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
620 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
621 return mBase.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
625 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
626 return mBase.checkCallingUriPermission(uri, modeFlags); in checkCallingUriPermission()
[all …]
DContext.java3075 @Intent.GrantUriMode int modeFlags); in grantUriPermission() argument
3103 public abstract void revokeUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument
3127 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
3131 @Intent.AccessUriMode int modeFlags, IBinder callerToken); in checkUriPermission() argument
3154 public abstract int checkCallingUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in checkCallingUriPermission() argument
3174 @Intent.AccessUriMode int modeFlags); in checkCallingOrSelfUriPermission() argument
3200 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
3222 Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message); in enforceUriPermission() argument
3244 Uri uri, @Intent.AccessUriMode int modeFlags, String message); in enforceCallingUriPermission() argument
3263 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.java1656 public void takePersistableUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags) { in takePersistableUriPermission() argument
1659 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in takePersistableUriPermission() local
1672 public void releasePersistableUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags) { in releasePersistableUriPermission() argument
1675 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in releasePersistableUriPermission() local
DIntent.java3532 public static boolean isAccessUriMode(int modeFlags) { in isAccessUriMode() argument
3533 return (modeFlags & (Intent.FLAG_GRANT_READ_URI_PERMISSION in isAccessUriMode()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java520 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
525 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
530 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
536 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
537 return checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
541 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
546 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
552 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument
558 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
564 Uri uri, int modeFlags, String message) { in enforceCallingUriPermission() argument
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java555 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, uri); in canonicalize() local
556 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize() local
564 int modeFlags = 0; in getCallingOrSelfUriPermissionModeFlags() local
567 modeFlags |= Intent.FLAG_GRANT_READ_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
571 modeFlags |= Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
576 modeFlags |= Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
578 return modeFlags; in getCallingOrSelfUriPermissionModeFlags()
666 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in call() local
668 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in call() local
/frameworks/base/core/java/android/app/
DContextImpl.java1951 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
1955 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in grantUriPermission() local
1961 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
1965 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
1971 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
1974 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
1983 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
1986 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
1998 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
2002 Binder.getCallingUid(), modeFlags); in checkCallingUriPermission()
[all …]
DIActivityManager.java232 public void takePersistableUriPermission(Uri uri, int modeFlags, int userId) in takePersistableUriPermission() argument
234 public void releasePersistableUriPermission(Uri uri, int modeFlags, int userId) in releasePersistableUriPermission() argument
352 int modeFlags, int userId) throws RemoteException; in checkGrantUriPermission() argument
DActivityManagerNative.java1768 int modeFlags = data.readInt(); in onTransact() local
1770 int res = checkGrantUriPermission(callingUid, targetPkg, uri, modeFlags, userId); in onTransact()
4626 Uri uri, int modeFlags, int userId) throws RemoteException { in checkGrantUriPermission() argument
4633 data.writeInt(modeFlags); in checkGrantUriPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java105 int uid, int modeFlags) { in checkUriPermission() argument
110 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument