Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/uri/
DUriPermission.java64 int modeFlags = 0; field in UriPermission
98 final int oldModeFlags = modeFlags; in updateModeFlags()
99 modeFlags = ownedModeFlags | globalModeFlags | persistableModeFlags | persistedModeFlags; in updateModeFlags()
101 if (Log.isLoggable(TAG, Log.VERBOSE) && (modeFlags != oldModeFlags)) { in updateModeFlags()
105 + Integer.toHexString(modeFlags) + " via calling UID " in updateModeFlags()
115 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes() argument
116 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes()
119 persistableModeFlags = modeFlags; in initPersistedModes()
120 persistedModeFlags = modeFlags; in initPersistedModes()
126 void grantModes(int modeFlags, UriPermissionOwner owner) { in grantModes() argument
[all …]
DUriGrantsManagerService.java185 final int modeFlags, int sourceUserId, int targetUserId) { in grantUriPermissionFromOwner() argument
209 modeFlags, owner, targetUserId); in grantUriPermissionFromOwner()
298 public void takePersistableUriPermission(Uri uri, final int modeFlags, in takePersistableUriPermission() argument
310 Preconditions.checkFlagsArgument(modeFlags, in takePersistableUriPermission()
322 && ((modeFlags & exactPerm.persistableModeFlags) == modeFlags); in takePersistableUriPermission()
324 && ((modeFlags & prefixPerm.persistableModeFlags) == modeFlags); in takePersistableUriPermission()
332 persistChanged |= exactPerm.takePersistableModes(modeFlags); in takePersistableUriPermission()
335 persistChanged |= prefixPerm.takePersistableModes(modeFlags); in takePersistableUriPermission()
362 public void releasePersistableUriPermission(Uri uri, final int modeFlags, in releasePersistableUriPermission() argument
375 Preconditions.checkFlagsArgument(modeFlags, in releasePersistableUriPermission()
[all …]
DUriGrantsManagerInternal.java36 final int modeFlags, UriPermissionOwner owner, int targetUserId); 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
41 final int modeFlags, int lastTargetUid); in checkGrantUriPermission() argument
43 int callingUid, String targetPkg, Uri uri, int modeFlags, int userId); in checkGrantUriPermission() argument
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java383 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
385 return mTestablePermissions.check(uri, modeFlags); in checkCallingOrSelfUriPermission()
387 return super.checkCallingOrSelfUriPermission(uri, modeFlags); in checkCallingOrSelfUriPermission()
391 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
393 return mTestablePermissions.check(uri, modeFlags); in checkCallingUriPermission()
395 return super.checkCallingUriPermission(uri, modeFlags); in checkCallingUriPermission()
399 public void enforceCallingOrSelfUriPermission(Uri uri, int modeFlags, String message) { in enforceCallingOrSelfUriPermission() argument
401 mTestablePermissions.enforce(uri, modeFlags); in enforceCallingOrSelfUriPermission()
403 super.enforceCallingOrSelfUriPermission(uri, modeFlags, message); in enforceCallingOrSelfUriPermission()
408 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
[all …]
DTestablePermissions.java64 int check(Uri uri, int modeFlags) { in check() argument
75 public void enforce(Uri uri, int modeFlags) { in enforce() argument
76 if (check(uri, modeFlags) != PackageManager.PERMISSION_GRANTED) { in enforce()
/frameworks/base/core/java/android/content/
DContextWrapper.java804 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
805 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission()
809 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
810 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission()
814 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument
815 mBase.revokeUriPermission(targetPackage, uri, modeFlags); in revokeUriPermission()
819 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
820 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
825 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
826 return mBase.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
[all …]
DUriPermission.java42 public UriPermission(Uri uri, int modeFlags, long persistedTime) { in UriPermission() argument
44 mModeFlags = modeFlags; in UriPermission()
DContext.java4847 @Intent.GrantUriMode int modeFlags); in grantUriPermission() argument
4877 public abstract void revokeUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument
4901 @Intent.AccessUriMode int modeFlags); in revokeUriPermission() argument
4925 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
4930 @Intent.AccessUriMode int modeFlags, IBinder callerToken); in checkUriPermission() argument
4953 public abstract int checkCallingUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags); in checkCallingUriPermission() argument
4973 @Intent.AccessUriMode int modeFlags); in checkCallingOrSelfUriPermission() argument
4999 @Intent.AccessUriMode int modeFlags); in checkUriPermission() argument
5019 Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message); in enforceUriPermission() argument
5039 Uri uri, @Intent.AccessUriMode int modeFlags, String message); in enforceCallingUriPermission() argument
[all …]
DContentResolver.java2425 @Intent.AccessUriMode int modeFlags) {
2429 ContentProvider.getUriWithoutUserId(uri), modeFlags, /* toPackage= */ null,
2441 @Intent.AccessUriMode int modeFlags) {
2446 ContentProvider.getUriWithoutUserId(uri), modeFlags, toPackage,
2462 @Intent.AccessUriMode int modeFlags) {
2466 ContentProvider.getUriWithoutUserId(uri), modeFlags, /* toPackage= */ null,
DIntent.java5654 public static boolean isAccessUriMode(int modeFlags) { in isAccessUriMode() argument
5655 return (modeFlags & (Intent.FLAG_GRANT_READ_URI_PERMISSION in isAccessUriMode()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java667 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
672 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
677 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument
682 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
688 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
689 return checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
693 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
698 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
704 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument
710 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
[all …]
/frameworks/base/core/java/android/app/
DIUriGrantsManager.aidl28 void takePersistableUriPermission(in Uri uri, int modeFlags, String toPackage, int userId); in takePersistableUriPermission() argument
29 void releasePersistableUriPermission(in Uri uri, int modeFlags, String toPackage, int userId); in releasePersistableUriPermission() argument
DContextImpl.java1932 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
1936 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in grantUriPermission() local
1943 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
1947 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
1954 public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { in revokeUriPermission() argument
1958 ContentProvider.getUriWithoutUserId(uri), modeFlags, resolveUserId(uri)); in revokeUriPermission() local
1965 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
1968 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
1977 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() argument
1980 ContentProvider.getUriWithoutUserId(uri), pid, uid, modeFlags, in checkUriPermission()
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java994 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, uri); in canonicalize() local
995 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize() local
1003 int modeFlags = 0; in getCallingOrSelfUriPermissionModeFlags() local
1006 modeFlags |= Intent.FLAG_GRANT_READ_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
1010 modeFlags |= Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
1015 modeFlags |= Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION; in getCallingOrSelfUriPermissionModeFlags()
1017 return modeFlags; in getCallingOrSelfUriPermissionModeFlags()
1151 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
1153 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked() local
1183 final int modeFlags = getCallingOrSelfUriPermissionModeFlags(context, in callUnchecked() local
[all …]
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java113 int uid, int modeFlags) { in checkUriPermission() argument
118 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java476 private int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, int userHandle) { in checkUriPermission() argument
479 uri, pid, uid, modeFlags, userHandle, null); in checkUriPermission()
1239 private int handleIncomingUser(Uri uri, int pid, int uid, int modeFlags, boolean allowNonFull, in handleIncomingUser() argument
1251 if (checkUriPermission(uri, pid, uid, modeFlags, in handleIncomingUser()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java6120 final int modeFlags, int userId, IBinder callerToken) { in checkUriPermission() argument
6135 return mUgmInternal.checkUriPermission(new GrantUri(userId, uri, false), uid, modeFlags) in checkUriPermission()
6145 final int modeFlags, int userId) { in grantUriPermission() argument
6162 Preconditions.checkFlagsArgument(modeFlags, Intent.FLAG_GRANT_READ_URI_PERMISSION in grantUriPermission()
6167 mUgmInternal.grantUriPermission(r.uid, targetPkg, grantUri, modeFlags, null, in grantUriPermission()
6178 final int modeFlags, int userId) { in revokeUriPermission() argument
6192 if (!Intent.isAccessUriMode(modeFlags)) { in revokeUriPermission()
6206 modeFlags); in revokeUriPermission()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...