Home
last modified time | relevance | path

Searched refs:grantPermissions (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java99 grantPermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAccess_file()
100 grantPermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_file()
111 grantPermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_MediaFile()
112 grantPermissions("android.permission.READ_MEDIA_AUDIO"); in testAccess_MediaFile()
113 grantPermissions("android.permission.READ_MEDIA_VIDEO"); in testAccess_MediaFile()
125 grantPermissions("android.permission.READ_MEDIA_AUDIO"); in testAccess_OnlyAudioFile()
135 grantPermissions("android.permission.READ_MEDIA_VIDEO"); in testAccess_OnlyVideoFile()
145 grantPermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_OnlyImageFile()
160 grantPermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAccess_MediaFileWithRES()
170 grantPermissions("android.permission.READ_EXTERNAL_STORAGE", in testAccess_directory()
[all …]
DScopedStorageHostTest.java170 grantPermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testCheckInstallerAppAccessToObbDirs()
188 grantPermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testCheckInstallerAppCannotAccessDataDirs()
253 grantPermissions("android.permission.READ_EXTERNAL_STORAGE"); in testOpenOtherPendingFilesFromFuse()
263 grantPermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAndroidMedia()
273 grantPermissions("android.permission.READ_EXTERNAL_STORAGE", in testNoIsolatedStorageInstrumentationFlag()
306 grantPermissions("android.permission.READ_EXTERNAL_STORAGE"); in testClearPackageData()
371 private void grantPermissions(String... perms) throws Exception { in grantPermissions() method in ScopedStorageHostTest
DLegacyStorageHostTest.java57 private void grantPermissions(String... perms) throws Exception { in grantPermissions() method in LegacyStorageHostTest
100 grantPermissions("android.permission.WRITE_EXTERNAL_STORAGE", in setup()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionHostTest.java65 private void installTestPackage(String appFileName, boolean grantPermissions) in installTestPackage() argument
73 buildHelper.getTestFile(appFileName), true, grantPermissions, "-t"); in installTestPackage()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseAppSecurityTest.java96 public InstallMultiple(boolean instant, boolean grantPermissions) { in InstallMultiple() argument
97 super(getDevice(), getBuild(), getAbi(), grantPermissions); in InstallMultiple() local
DBaseInstallMultiple.java95 boolean grantPermissions) { in BaseInstallMultiple() argument
99 if (grantPermissions) { in BaseInstallMultiple()
DExternalStorageHostTest.java646 private void doGrantUriPermission(Config config, String method, String[] grantPermissions) in doGrantUriPermission() argument
659 updatePermissions(config.pkg, user, grantPermissions, true); in doGrantUriPermission()
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java417 grantPermissions(ArrayUtils.concat(TestPermissionInfo.class, in testPermissionEnforcementCommon()
427 grantPermissions(allOfPermissions, testPackageName); in testPermissionEnforcementCommon()
437 grantPermissions(allOfPermissions, testPackageName); in testPermissionEnforcementCommon()
445 grantPermissions(ArrayUtils.concat(TestPermissionInfo.class, in testPermissionEnforcementCommon()
457 grantPermissions(ArrayUtils.concat(TestPermissionInfo.class, in testPermissionEnforcementCommon()
575 private void grantPermissions(TestPermissionInfo[] permissions, String packageName) in grantPermissions() method in ActivityManagerForegroundServiceTypeTest
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTestBase.java70 private void installPackage(String appFileName, boolean grantPermissions) in installPackage() argument
75 buildHelper.getTestFile(appFileName), true, grantPermissions); in installPackage()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java144 protected void installPackage(String appFileName, boolean grantPermissions) in installPackage() argument
149 buildHelper.getTestFile(appFileName), true, grantPermissions); in installPackage()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java88 protected void installPackage(String appFileName, boolean grantPermissions) in installPackage() argument
93 grantPermissions, "-t"); in installPackage()
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java80 private void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() argument
85 buildHelper.getTestFile(appFileName), true, grantPermissions, userId, "-t"); in installAppAsUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java304 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() argument
306 installAppAsUser(appFileName, grantPermissions, /* dontKillApp */ false, userId); in installAppAsUser()
309 protected void installAppAsUser(String appFileName, boolean grantPermissions, in installAppAsUser() argument
323 buildHelper.getTestFile(appFileName), true, grantPermissions, userId, in installAppAsUser()