/frameworks/base/services/core/java/com/android/server/am/ |
D | UriPermission.java | 63 int modeFlags = 0; field in UriPermission 97 final int oldModeFlags = modeFlags; in updateModeFlags() 98 modeFlags = ownedModeFlags | globalModeFlags | persistableModeFlags | persistedModeFlags; in updateModeFlags() 100 if (Log.isLoggable(TAG, Log.VERBOSE) && (modeFlags != oldModeFlags)) { in updateModeFlags() 104 + Integer.toHexString(modeFlags), in updateModeFlags() 113 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes() argument 114 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes() 117 persistableModeFlags = modeFlags; in initPersistedModes() 118 persistedModeFlags = modeFlags; in initPersistedModes() 124 void grantModes(int modeFlags, UriPermissionOwner owner) { in grantModes() argument [all …]
|
D | ActivityManagerService.java | 8272 IPackageManager pm, ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) { in checkHoldingPermissionsLocked() argument 8281 return checkHoldingPermissionsInternalLocked(pm, pi, grantUri, uid, modeFlags, true); in checkHoldingPermissionsLocked() 8285 GrantUri grantUri, int uid, final int modeFlags, boolean considerUidPermissions) { in checkHoldingPermissionsInternalLocked() argument 8292 boolean readMet = (modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) == 0; in checkHoldingPermissionsInternalLocked() 8293 boolean writeMet = (modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0; in checkHoldingPermissionsInternalLocked() 8543 final int modeFlags) { in checkUriPermissionLocked() argument 8544 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in checkUriPermissionLocked() 8558 if (exactPerm != null && exactPerm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked() 8567 && perm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked() 8581 final int modeFlags, int userId, IBinder callerToken) { in checkUriPermission() argument [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 760 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument 761 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission() 765 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument 766 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission() 770 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument 771 mBase.revokeUriPermission(targetPackage, uri, modeFlags); in revokeUriPermission() 775 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument 776 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission() 781 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument 782 return mBase.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission() [all …]
|
D | UriPermission.java | 42 public UriPermission(Uri uri, int modeFlags, long persistedTime) { in UriPermission() argument 44 mModeFlags = modeFlags; in UriPermission()
|
D | Context.java | 4146 @Intent.GrantUriMode int modeFlags); in grantUriPermission() argument 4176 public abstract void revokeUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument 4200 @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument 4224 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument 4229 @Intent.AccessUriMode int modeFlags, IBinder callerToken); in checkUriPermission() argument 4252 public abstract int checkCallingUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in checkCallingUriPermission() argument 4272 @Intent.AccessUriMode int modeFlags); in checkCallingOrSelfUriPermission() argument 4298 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument 4318 Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message); in enforceUriPermission() argument 4338 Uri uri, @Intent.AccessUriMode int modeFlags, String message); in enforceCallingUriPermission() argument [all …]
|
D | ContentResolver.java | 2082 @Intent.AccessUriMode int modeFlags) { in takePersistableUriPermission() argument 2086 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in takePersistableUriPermission() local 2100 @Intent.AccessUriMode int modeFlags) { in releasePersistableUriPermission() argument 2104 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in releasePersistableUriPermission() local
|
D | Intent.java | 4893 public static boolean isAccessUriMode(int modeFlags) { in isAccessUriMode() argument 4894 return (modeFlags & (Intent.FLAG_GRANT_READ_URI_PERMISSION in isAccessUriMode()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 632 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument 637 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument 642 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument 647 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument 653 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument 654 return checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission() 658 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument 663 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument 669 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument 675 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument [all …]
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsProvider.java | 871 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, uri); in canonicalize() local 872 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize() local 880 int modeFlags = 0; in getCallingOrSelfUriPermissionModeFlags() local 883 modeFlags |= Intent.FLAG_GRANT_READ_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags() 887 modeFlags |= Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags() 892 modeFlags |= Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags() 894 return modeFlags; in getCallingOrSelfUriPermissionModeFlags() 1028 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local 1030 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local 1060 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 1775 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument 1779 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in grantUriPermission() local 1786 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument 1790 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local 1797 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument 1801 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local 1808 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument 1811 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission() 1820 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument 1823 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission() [all …]
|
D | IActivityManager.aidl | 278 int modeFlags, int userId); in checkGrantUriPermission() argument 386 void takePersistableUriPermission(in Uri uri, int modeFlags, int userId); in takePersistableUriPermission() argument 387 void releasePersistableUriPermission(in Uri uri, int modeFlags, int userId); in releasePersistableUriPermission() argument
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 109 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/ |
D | ContentService.java | 435 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() 1146 private int handleIncomingUser(Uri uri, int pid, int uid, int modeFlags, boolean allowNonFull, in handleIncomingUser() argument 1158 if (checkUriPermission(uri, pid, uid, modeFlags, in handleIncomingUser()
|