Home
last modified time | relevance | path

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

/frameworks/base/services/java/com/android/server/am/
DUriPermission.java62 int modeFlags = 0; field in UriPermission
95 modeFlags = ownedModeFlags | globalModeFlags | persistableModeFlags | persistedModeFlags; in updateModeFlags()
102 void initPersistedModes(int modeFlags, long createdTime) { in initPersistedModes() argument
103 persistableModeFlags = modeFlags; in initPersistedModes()
104 persistedModeFlags = modeFlags; in initPersistedModes()
110 void grantModes(int modeFlags, boolean persistable, UriPermissionOwner owner) { in grantModes() argument
112 persistableModeFlags |= modeFlags; in grantModes()
116 globalModeFlags |= modeFlags; in grantModes()
118 if ((modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) { in grantModes()
121 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in grantModes()
[all …]
DActivityManagerService.java5767 IPackageManager pm, ProviderInfo pi, Uri uri, int uid, int modeFlags) {
5777 boolean readMet = (modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) == 0;
5778 boolean writeMet = (modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0;
5890 Uri uri, int uid, int modeFlags, int minStrength) { in checkUriPermissionLocked() argument
5899 return perm.getStrength(modeFlags) >= minStrength; in checkUriPermissionLocked()
5903 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
5919 return checkUriPermissionLocked(uri, uid, modeFlags, UriPermission.STRENGTH_OWNED) in checkUriPermission()
5935 Uri uri, int modeFlags, int lastTargetUid) { in checkGrantUriPermissionLocked() argument
5936 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in checkGrantUriPermissionLocked()
5937 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in checkGrantUriPermissionLocked()
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java576 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
577 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission()
581 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
582 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission()
586 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
587 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
591 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
592 return mBase.checkCallingUriPermission(uri, modeFlags); in checkCallingUriPermission()
596 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
597 return mBase.checkCallingOrSelfUriPermission(uri, modeFlags); in checkCallingOrSelfUriPermission()
[all …]
DContext.java2602 int modeFlags); in grantUriPermission() argument
2621 public abstract void revokeUriPermission(Uri uri, int modeFlags); in revokeUriPermission() argument
2644 public abstract int checkUriPermission(Uri uri, int pid, int uid, int modeFlags); in checkUriPermission() argument
2667 public abstract int checkCallingUriPermission(Uri uri, int modeFlags); in checkCallingUriPermission() argument
2686 public abstract int checkCallingOrSelfUriPermission(Uri uri, int modeFlags); in checkCallingOrSelfUriPermission() argument
2711 String writePermission, int pid, int uid, int modeFlags); in checkUriPermission() argument
2733 Uri uri, int pid, int uid, int modeFlags, String message); in enforceUriPermission() argument
2755 Uri uri, int modeFlags, String message); in enforceCallingUriPermission() argument
2774 Uri uri, int modeFlags, String message); in enforceCallingOrSelfUriPermission() argument
2799 int pid, int uid, int modeFlags, String message); in enforceUriPermission() argument
DUriPermission.java42 public UriPermission(Uri uri, int modeFlags, long persistedTime) { in UriPermission() argument
44 mModeFlags = modeFlags; in UriPermission()
DContentResolver.java1639 public void takePersistableUriPermission(Uri uri, int modeFlags) { in takePersistableUriPermission() argument
1641 ActivityManagerNative.getDefault().takePersistableUriPermission(uri, modeFlags); in takePersistableUriPermission()
1654 public void releasePersistableUriPermission(Uri uri, int modeFlags) { in releasePersistableUriPermission() argument
1656 ActivityManagerNative.getDefault().releasePersistableUriPermission(uri, modeFlags); in releasePersistableUriPermission()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java493 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
498 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
503 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
508 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
513 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
519 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument
525 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
531 Uri uri, int modeFlags, String message) { in enforceCallingUriPermission() argument
537 Uri uri, int modeFlags, String message) { in enforceCallingOrSelfUriPermission() argument
543 int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
/frameworks/base/core/java/android/app/
DContextImpl.java1730 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument
1734 modeFlags); in grantUriPermission() local
1740 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument
1744 modeFlags); in revokeUriPermission() local
1750 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
1753 uri, pid, uid, modeFlags); in checkUriPermission()
1760 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
1764 Binder.getCallingUid(), modeFlags); in checkCallingUriPermission()
1770 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument
1772 Binder.getCallingUid(), modeFlags); in checkCallingOrSelfUriPermission()
[all …]
DIActivityManager.java216 public void takePersistableUriPermission(Uri uri, int modeFlags) throws RemoteException; in takePersistableUriPermission() argument
217 public void releasePersistableUriPermission(Uri uri, int modeFlags) throws RemoteException; in releasePersistableUriPermission() argument
331 Uri uri, int modeFlags) throws RemoteException; in checkGrantUriPermission() argument
DActivityManagerNative.java1636 int modeFlags = data.readInt(); in onTransact() local
1637 int res = checkGrantUriPermission(callingUid, targetPkg, uri, modeFlags); in onTransact()
4118 Uri uri, int modeFlags) throws RemoteException { in checkGrantUriPermission() argument
4125 data.writeInt(modeFlags); in checkGrantUriPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java107 int uid, int modeFlags) { in checkUriPermission() argument
112 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument