Home
last modified time | relevance | path

Searched refs:checkUriPermission (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/tests/testables/tests/src/android/testing/
DTestablePermissionsTest.java59 assertEquals(PERMISSION_GRANTED, mContext.checkUriPermission(URI_1, 0, 0, 0)); in testCheckUri()
60 assertEquals(PERMISSION_DENIED, mContext.checkUriPermission(URI_2, 0, 0, 0)); in testCheckUri()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java122 public int checkUriPermission( in checkUriPermission() method in IsolatedContext
129 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in IsolatedContext
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java479 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in TestableContext
483 return super.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
487 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in TestableContext
491 return super.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
495 public int checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, in checkUriPermission() method in TestableContext
500 return super.checkUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags); in checkUriPermission()
/frameworks/base/test-runner/api/
Dlint-baseline.txt66 MissingNullability: android.test.IsolatedContext#checkUriPermission(android.net.Uri, String, String…
67 Missing nullability on parameter `uri` in method `checkUriPermission`
68 MissingNullability: android.test.IsolatedContext#checkUriPermission(android.net.Uri, String, String…
69 Missing nullability on parameter `readPermission` in method `checkUriPermission`
70 MissingNullability: android.test.IsolatedContext#checkUriPermission(android.net.Uri, String, String…
71 Missing nullability on parameter `writePermission` in method `checkUriPermission`
72 MissingNullability: android.test.IsolatedContext#checkUriPermission(android.net.Uri, int, int, int)…
73 Missing nullability on parameter `uri` in method `checkUriPermission`
/frameworks/base/test-mock/src/android/test/mock/
DMockContentProvider.java192 public int checkUriPermission(@NonNull AttributionSource attributionSource, Uri uri, in checkUriPermission() method in MockContentProvider.InversionIContentProvider
194 return MockContentProvider.this.checkUriPermission(uri, uid, modeFlags); in checkUriPermission()
363 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) { in checkUriPermission() method in MockContentProvider
DMockContext.java742 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in MockContext
748 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in MockContext
749 return checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
763 public int checkUriPermission(Uri uri, String readPermission, in checkUriPermission() method in MockContext
DMockIContentProvider.java206 public int checkUriPermission(@NonNull AttributionSource attributionSource, Uri uri, int uid, in checkUriPermission() method in MockIContentProvider
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerInternal.java49 boolean checkUriPermission(GrantUri grantUri, int uid, int modeFlags, in checkUriPermission() method
/frameworks/base/core/java/android/content/
DContentInterface.java59 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) in checkUriPermission() method
DLoggingContentInterface.java168 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) in checkUriPermission() method in LoggingContentInterface
172 return l.setResult(delegate.checkUriPermission(uri, uid, modeFlags)); in checkUriPermission()
DContextWrapper.java1003 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in ContextWrapper
1004 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
1022 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in ContextWrapper
1023 return mBase.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
1049 public int checkUriPermission(@Nullable Uri uri, @Nullable String readPermission, in checkUriPermission() method in ContextWrapper
1051 return mBase.checkUriPermission(uri, readPermission, writePermission, in checkUriPermission()
DContentProvider.java377 && mInterface.checkUriPermission(uri, in logGetTypeData()
380 && getContext().checkUriPermission(userUri, Binder.getCallingPid(), in logGetTypeData()
781 public int checkUriPermission(@NonNull AttributionSource attributionSource, Uri uri, in checkUriPermission() method in ContentProvider.Transport
789 return mInterface.checkUriPermission(uri, uid, modeFlags); in checkUriPermission()
1003 if (context.checkUriPermission(userUri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION) in enforceReadPermissionInner()
1083 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_WRITE_URI_PERMISSION) in enforceWritePermissionInner()
1877 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) { in checkUriPermission() method in ContentProvider
DContentProviderClient.java315 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) in checkUriPermission() method in ContentProviderClient
321 return mContentProvider.checkUriPermission(mAttributionSource, uri, uid, in checkUriPermission()
DIContentProvider.java155 int checkUriPermission(@NonNull AttributionSource attributionSource, Uri uri, in checkUriPermission() method
DContentProviderNative.java432 int out = checkUriPermission(attributionSource, uri, uid, modeFlags); in onTransact()
950 public int checkUriPermission(@NonNull AttributionSource attributionSource, Uri url, int uid, in checkUriPermission() method in ContentProviderProxy
DContext.java6896 public abstract int checkUriPermission(Uri uri, int pid, int uid, in checkUriPermission() method in Context
6963 public abstract int checkUriPermission(Uri uri, int pid, int uid, in checkUriPermission() method in Context
7079 public abstract int checkUriPermission(@Nullable Uri uri, @Nullable String readPermission, in checkUriPermission() method in Context
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsManagerServiceTest.java377 assertTrue(mService.checkUriPermission(expectedGrant, UID_PRIMARY_SOCIAL, FLAG_READ, in testGrant_overlap()
382 assertTrue(mService.checkUriPermission(expectedGrant, UID_PRIMARY_SOCIAL, FLAG_READ, in testGrant_overlap()
387 assertFalse(mService.checkUriPermission(expectedGrant, UID_PRIMARY_SOCIAL, FLAG_READ, in testGrant_overlap()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodBaseContext.java641 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in RavenwoodBaseContext
646 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in RavenwoodBaseContext
661 public int checkUriPermission(Uri uri, String readPermission, String writePermission, in checkUriPermission() method in RavenwoodBaseContext
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DApplicationContext.java1039 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in ApplicationContext
1042 return context.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
1048 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in ApplicationContext
1051 return context.checkUriPermission(uri, pid, uid, modeFlags, callerToken); in checkUriPermission()
1075 public int checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, in checkUriPermission() method in ApplicationContext
1079 … return context.checkUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags); in checkUriPermission()
DBridgeContentProvider.java234 public int checkUriPermission(AttributionSource attributionSource, Uri uri, int uid, in checkUriPermission() method in BridgeContentProvider
DBridgeContext.java1402 public int checkUriPermission(Uri arg0, int arg1, int arg2, int arg3) { in checkUriPermission() method in BridgeContext
1408 public int checkUriPermission(Uri arg0, int arg1, int arg2, int arg3, IBinder arg4) { in checkUriPermission() method in BridgeContext
1414 public int checkUriPermission(Uri arg0, String arg1, String arg2, int arg3, in checkUriPermission() method in BridgeContext
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java161 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION) in enforcePermissions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java122 when(mContextSpy.checkUriPermission(any(), anyInt(), anyInt(), anyInt())) in testCheckAutoGrantPermissions()
/frameworks/base/core/java/android/app/
DContextImpl.java2458 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() method in ContextImpl
2460 return ActivityManager.getService().checkUriPermission( in checkUriPermission()
2493 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { in checkUriPermission() method in ContextImpl
2495 return ActivityManager.getService().checkUriPermission( in checkUriPermission()
2511 return checkUriPermission(uri, pid, in checkCallingUriPermission()
2531 return checkUriPermission(uri, Binder.getCallingPid(), in checkCallingOrSelfUriPermission()
2542 public int checkUriPermission(Uri uri, String readPermission, in checkUriPermission() method in ContextImpl
2563 return uri != null ? checkUriPermission(uri, pid, uid, modeFlags) in checkUriPermission()
2610 modeFlags, checkUriPermission(uri, pid, uid, modeFlags), in enforceUriPermission()
2637 checkUriPermission( in enforceUriPermission()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityCallerState.java168 if (mAtmService.mUgmInternal.checkUriPermission(grantUri, uid, in addContentUriIfUidHasPermission()

12