Home
last modified time | relevance | path

Searched defs:modeFlags (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/uri/
DUriPermission.java65 int modeFlags = 0; field in UriPermission
116 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes()
127 boolean grantModes(int modeFlags, @Nullable UriPermissionOwner owner) { in grantModes()
154 boolean takePersistableModes(int modeFlags) { in takePersistableModes()
176 boolean releasePersistableModes(int modeFlags) { in releasePersistableModes()
194 boolean revokeModes(int modeFlags, boolean includingOwners) { in revokeModes()
245 public int getStrength(int modeFlags) { in getStrength()
DUriGrantsManagerService.java255 Uri uri, final int modeFlags, int sourceUserId, int targetUserId) { in grantUriPermissionFromOwner()
264 @NonNull String targetPkg, @NonNull Uri uri, final int modeFlags, in grantUriPermissionFromOwnerUnlocked()
373 public void takePersistableUriPermission(Uri uri, final int modeFlags, in takePersistableUriPermission()
437 public void releasePersistableUriPermission(Uri uri, final int modeFlags, in releasePersistableUriPermission()
804 final int modeFlags = in.getAttributeInt(null, ATTR_MODE_FLAGS); in readGrantedUriPermissionsLocked() local
864 final int modeFlags, UriPermissionOwner owner) { in grantUriPermissionUnchecked()
908 final int modeFlags, UriPermissionOwner owner, int targetUserId) { in grantUriPermissionUnlocked()
925 final int modeFlags) { in revokeUriPermission()
947 final int modeFlags, final boolean callerHoldsPermissions) { in revokeUriPermissionLocked()
1022 ProviderInfo pi, GrantUri grantUri, int uid, final int modeFlags) { in checkHoldingPermissionsUnlocked()
[all …]
DGrantUri.java33 public GrantUri(int sourceUserId, Uri uri, int modeFlags) { in GrantUri()
78 public static GrantUri resolve(int defaultSourceUserHandle, Uri uri, int modeFlags) { in resolve()
DUriGrantsManagerInternal.java39 GrantUri grantUri, final int modeFlags); in revokeUriPermission()
49 boolean checkUriPermission(GrantUri grantUri, int uid, int modeFlags, in checkUriPermission()
53 int callingUid, String targetPkg, Uri uri, int modeFlags, int userId); in checkGrantUriPermission()
/frameworks/base/core/java/android/app/
DIUriGrantsManager.aidl28 void takePersistableUriPermission(in Uri uri, int modeFlags, String toPackage, int userId); in takePersistableUriPermission()
29 void releasePersistableUriPermission(in Uri uri, int modeFlags, String toPackage, int userId); in releasePersistableUriPermission()
44 int sourceUid, String targetPkg, in Uri uri, int modeFlags, int userId); in checkGrantUriPermission_ignoreNonSystem()
DComponentCaller.java157 public int checkContentUriPermission(@NonNull Uri uri, @Intent.AccessUriMode int modeFlags) { in checkContentUriPermission()
DContextImpl.java2425 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission()
2429 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in grantUriPermission() local
2436 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission()
2440 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
2447 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission()
2451 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
2458 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
2469 public int checkContentUriPermissionFull(Uri uri, int pid, int uid, int modeFlags) { in checkContentUriPermissionFull()
2482 int modeFlags) { in checkUriPermissions()
2493 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java454 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission()
462 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission()
470 public void enforceCallingOrSelfUriPermission(Uri uri, int modeFlags, String message) { in enforceCallingOrSelfUriPermission()
479 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
487 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
496 int uid, int modeFlags) { in checkUriPermission()
504 public void enforceCallingUriPermission(Uri uri, int modeFlags, String message) { in enforceCallingUriPermission()
513 public void enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission()
523 int pid, int uid, int modeFlags, String message) { in enforceUriPermission()
DTestablePermissions.java64 int check(Uri uri, int modeFlags) { in check()
75 public void enforce(Uri uri, int modeFlags) { in enforce()
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java1018 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, uri); in canonicalize() local
1019 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize() local
1027 int modeFlags = 0; in getCallingOrSelfUriPermissionModeFlags() local
1182 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
1184 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local
1214 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
1216 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local
1239 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
1241 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodBaseContext.java626 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission()
631 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission()
636 public void revokeUriPermission(String toPackage, Uri uri, int modeFlags) { in revokeUriPermission()
641 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
646 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
651 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission()
656 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission()
662 int pid, int uid, int modeFlags) { in checkUriPermission()
667 public void enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission()
672 public void enforceCallingUriPermission(Uri uri, int modeFlags, String message) { in enforceCallingUriPermission()
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java988 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission()
993 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission()
998 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission()
1003 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
1009 public int checkContentUriPermissionFull(@NonNull Uri uri, int pid, int uid, int modeFlags) { in checkContentUriPermissionFull()
1016 int modeFlags) { in checkUriPermissions()
1022 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
1027 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission()
1033 public int[] checkCallingUriPermissions(@NonNull List<Uri> uris, int modeFlags) { in checkCallingUriPermissions()
1038 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission()
[all …]
DUriPermission.java42 public UriPermission(Uri uri, int modeFlags, long persistedTime) { in UriPermission()
DContext.java6819 @Intent.GrantUriMode int modeFlags); in grantUriPermission()
6849 public abstract void revokeUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in revokeUriPermission()
6873 @Intent.AccessUriMode int modeFlags); in revokeUriPermission()
6897 @Intent.AccessUriMode int modeFlags); in checkUriPermission()
6926 @Intent.AccessUriMode int modeFlags) { in checkContentUriPermissionFull()
6956 @Intent.AccessUriMode int modeFlags) { in checkUriPermissions()
6964 @Intent.AccessUriMode int modeFlags, IBinder callerToken); in checkUriPermission()
6987 public abstract int checkCallingUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in checkCallingUriPermission()
7011 @Intent.AccessUriMode int modeFlags) { in checkCallingUriPermissions()
7033 @Intent.AccessUriMode int modeFlags); in checkCallingOrSelfUriPermission()
[all …]
DContentInterface.java59 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) in checkUriPermission()
DLoggingContentInterface.java168 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) in checkUriPermission()
170 try (Logger l = new Logger("checkUriPermission", uri, uid, modeFlags)) { in checkUriPermission() argument
DContentProviderNative.java430 int modeFlags = data.readInt(); in onTransact() local
951 int modeFlags) throws RemoteException { in checkUriPermission()
DIContentProvider.java156 int uid, int modeFlags) throws RemoteException; in checkUriPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java124 int uid, int modeFlags) { in checkUriPermission()
129 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityCallerState.java127 boolean checkContentUriPermission(IBinder callerToken, GrantUri grantUri, int modeFlags) { in checkContentUriPermission()
165 private boolean addContentUriIfUidHasPermission(Uri contentUri, int uid, int modeFlags, in addContentUriIfUidHasPermission()
176 private static GrantUri convertToGrantUri(Uri contentUri, int modeFlags, int uid) { in convertToGrantUri()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java727 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission()
732 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission()
737 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission()
742 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
748 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
753 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission()
758 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission()
764 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission()
770 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission()
776 Uri uri, int modeFlags, String message) { in enforceCallingUriPermission()
[all …]
DMockContentProvider.java193 int uid, int modeFlags) { in checkUriPermission()
363 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) { in checkUriPermission()
DMockIContentProvider.java207 int modeFlags) { in checkUriPermission()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DApplicationContext.java1015 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission()
1023 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission()
1031 public void revokeUriPermission(String toPackage, Uri uri, int modeFlags) { in revokeUriPermission()
1039 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission()
1048 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission()
1057 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission()
1066 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission()
1076 int uid, int modeFlags) { in checkUriPermission()
1085 public void enforceUriPermission(Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission()
1093 public void enforceCallingUriPermission(Uri uri, int modeFlags, String message) { in enforceCallingUriPermission()
[all …]
DBridgeContentProvider.java235 int modeFlags) throws RemoteException { in checkUriPermission()

12