Home
last modified time | relevance | path

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

/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DClipDataJobTest.java67 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrant()
70 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrant()
82 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrant()
85 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrant()
125 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrantReschedule()
128 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrantReschedule()
140 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrantReschedule()
143 getContext().checkUriPermission(mFirstUri, Process.myPid(), in testClipDataGrantReschedule()
DConstraintTest.java135 getContext().checkUriPermission(uri, Process.myPid(), in assertHasUriPermission()
140 getContext().checkUriPermission(uri, Process.myPid(), in assertHasUriPermission()
147 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access) in waitPermissionRevoke()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java84 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
86 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
118 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
131 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
150 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
163 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/helper-app/src/android/security/cts/CVE_2023_21272_helper/
DPocActivity.java32 if (this.checkUriPermission( in onResume()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java103 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
105 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
139 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
153 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
173 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
187 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBaseJobSchedulerTest.java193 getContext().checkUriPermission(uri, Process.myPid(), in assertHasUriPermission()
198 getContext().checkUriPermission(uri, Process.myPid(), in assertHasUriPermission()
205 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access) in waitPermissionRevoke()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java753 assertTrue(PERMISSION_GRANTED == checkUriPermission(uri)); in testDownload_onMediaStoreDownloadsDeleted()
771 assertTrue(PERMISSION_DENIED == checkUriPermission(uri)); in testDownload_onMediaStoreDownloadsDeleted()
794 private int checkUriPermission(Uri uri) { in checkUriPermission() method in DownloadManagerTest
795 return mContext.checkUriPermission(uri, android.os.Process.myPid(), in checkUriPermission()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java1119 final int permissionResult = checkUriPermission(QUERIES_PACKAGE_PROVIDER, TARGET_NO_API); in queriesPackageHasProvider_checkUriPermission_canSeeNoApi()
1125 final int permissionResult = checkUriPermission(QUERIES_PACKAGE_PROVIDER, TARGET_FILTERS); in queriesPackageHasProvider_checkUriPermission_cannotSeeFilters()
1151 assertThat(sContext.checkUriPermission( in queriesPackageHasProvider_grantUriPermission_canSeeNoApi()
1166 assertThat(sContext.checkUriPermission( in queriesPackageHasProvider_grantUriPermission_cannotSeeFilters()
1672 private int checkUriPermission(String sourcePackageName, String targetPackageName) in checkUriPermission() method in AppEnumerationTests
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java450 public int checkUriPermission(@NonNull Uri uri, int uid, @Intent.AccessUriMode int modeFlags) { in checkUriPermission() method in MockContentProvider
DContextTest.java1621 int retValue = mContext.checkUriPermission(uri, Binder.getCallingPid(), 0, in testCheckUriPermission1()
1625 retValue = mContext.checkUriPermission(uri, Binder.getCallingPid(), in testCheckUriPermission1()
1634 int retValue = mContext.checkUriPermission(uri, NOT_GRANTED_PERMISSION, in testCheckUriPermission2()
1639 retValue = mContext.checkUriPermission(uri, NOT_GRANTED_PERMISSION, in testCheckUriPermission2()
DContentProviderTest.java350 provider.checkUriPermission(uri, android.os.Process.myUid(), 0)); in testCheckUriPermission()
DContentResolverTest.java1161 assertEquals(PackageManager.PERMISSION_GRANTED, mContentResolver.checkUriPermission( in testCheckUriPermission()
1163 assertEquals(PackageManager.PERMISSION_DENIED, mContentResolver.checkUriPermission( in testCheckUriPermission()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java993 final int permissionResult = checkUriPermission(uri, 0 /* pid */, targetUid, in sendCheckUriPermission()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt3750 method public int checkUriPermission(@NonNull android.net.Uri, int, int);
3758 method public int checkUriPermission(@NonNull android.net.Uri, int, int);
Dcurrent.txt10541 …t="#enforceUriPermission(Uri,int,int,String)") public abstract int checkUriPermission(android.net.…
10542 …ission(Uri,String,String,int,int,int,String)") public abstract int checkUriPermission(@Nullable an…
10834 method public int checkUriPermission(android.net.Uri, int, int, int);
10835 …method public int checkUriPermission(@Nullable android.net.Uri, @Nullable String, @Nullable String…