Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java83 public static boolean hasCallerUriPermission(Context context, Uri uri, int modeFlags) { in hasCallerUriPermission() argument
88 ok = context.checkCallingUriPermission(uri, modeFlags) in hasCallerUriPermission()
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java307 int modeFlags = in grantEpgPermission() local
310 context.grantUriPermission(packageName, TvContract.Channels.CONTENT_URI, modeFlags); in grantEpgPermission()
311 context.grantUriPermission(packageName, TvContract.Programs.CONTENT_URI, modeFlags); in grantEpgPermission()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java615 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
616 return checkCallingUriPermission(uri, modeFlags); in checkUriPermission()
620 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java3601 /* @Intent.AccessUriMode */ int modeFlags) { in checkUriPermission() argument
3606 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in checkUriPermission()
3639 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in checkUriPermission()
3690 if ((modeFlags & Intent.FLAG_GRANT_PREFIX_URI_PERMISSION) == 0) { in checkUriPermission()
7551 int modeFlags = Intent.FLAG_GRANT_READ_URI_PERMISSION;
7554 modeFlags |= Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
7556 getContext().grantUriPermission(callingPackage, mediaStoreUri, modeFlags);
10786 final int modeFlags = forWrite
10790 mCallingIdentity.get().uid, modeFlags);