Home
last modified time | relevance | path

Searched refs:grantUriPermission (Results 1 – 17 of 17) sorted by relevance

/cts/tests/MediaProviderTranscode/helper/src/android/mediaprovidertranscode/cts/
DTranscodeTestHelper.java58 getApplicationContext().grantUriPermission(getIntent().getStringExtra( in onCreate()
/cts/tests/tests/content/ContentUriTestApp/src/android/content/cts/contenturitestapp/
DTestService.java46 grantUriPermission(RECIPIENT, uri, modeFlags);
/cts/tests/JobSchedulerSharedUid/jobperm/src/android/jobscheduler/cts/shareduid/jobperm/
DJobPermProvider.java45 getContext().grantUriPermission(arg, uri, in call()
/cts/tests/tests/security/src/android/security/cts/
DSQLiteTest.java77 mContext.grantUriPermission(mPackageName, uri, in test_android_cve_2019_2195()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/test-app/src/android/security/cts/CVE_2023_21272_test/
DDeviceTest.java102 .grantUriPermission( in testCVE_2023_21272()
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/
DRedactUriDeviceTest.java390 getContext().grantUriPermission(APP_B_NO_PERMS.getPackageName(), redactedUri, in testGrantUriPermissionsForRedactedUri()
393 getContext().grantUriPermission(APP_B_NO_PERMS.getPackageName(), redactedUri, in testGrantUriPermissionsForRedactedUri()
515 getContext().grantUriPermission(testApp.getPackageName(), redactedUri, in shareAndGetRedactedUri()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java62 context.grantUriPermission(intent.getStringExtra(EXTRA_PACKAGE_NAME), uri, in call()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java212 mContext.grantUriPermission(mContext.getPackageName(), blue, flag); in doMediaNone()
280 mContext.grantUriPermission(mContext.getPackageName(), collectionUri, flagGrantRead); in doReadUriPermissionOnUriWithoutId_sameQueryResult()
361 mContext.grantUriPermission(mContext.getPackageName(), collectionUri, in doOwningOneFileNotGrantPrefixUriPermission()
379 mContext.grantUriPermission(mContext.getPackageName(), collectionUri, in doOwningOneFileNotGrantPrefixUriPermission()
455 mContext.grantUriPermission(mContext.getPackageName(), uri, mode); in checkGrantUriPermission()
458 mContext.grantUriPermission(mContext.getPackageName(), uri, mode); in checkGrantUriPermission()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java563 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload()
587 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload_downloadDir()
707 mContext.grantUriPermission("com.android.shell", downloadUri, in testDownload_mediaScanned()
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DPackageInstallerCujTestBase.java261 sContext.grantUriPermission(TEST_INSTALLER_PACKAGE_NAME, testApkUri, in startInstallerActivity()
263 sContext.grantUriPermission(TEST_INSTALLER_PACKAGE_NAME, testApkV2Uri, in startInstallerActivity()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetAdditionalContentProvider.java76 context.grantUriPermission( in query()
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java177 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload_publicDirs()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java1150 grantUriPermission(QUERIES_PACKAGE_PROVIDER, TARGET_NO_API); in queriesPackageHasProvider_grantUriPermission_canSeeNoApi()
1165 grantUriPermission(QUERIES_PACKAGE_PROVIDER, TARGET_FILTERS); in queriesPackageHasProvider_grantUriPermission_cannotSeeFilters()
1384 grantUriPermission(QUERIES_PACKAGE_PROVIDER, SPLIT_PKG); in grantImplicitAccessByUriGrant_canSeeProviderAfterUpdatedWithDontKill()
1695 private void grantUriPermission(String providerPackageName, String targetPackageName) in grantUriPermission() method in AppEnumerationTests
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java491 getApplicationContext().grantUriPermission(packageName, in accessFile()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java1008 grantUriPermission(targetPackageName, uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in getContentUriAndGrantRead()
1024 grantUriPermission(targetPackageName, uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in sendGrantUriPermission()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1390 mContext.grantUriPermission("com.android.mms", Uri.parse("contents://ctstest"), in testGrantUriPermission()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt10614 method public abstract void grantUriPermission(String, android.net.Uri, int);
10888 method public void grantUriPermission(String, android.net.Uri, int);