/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | StorageOtherAndOwnedFilesTest.java | 69 private static final String THIS_PACKAGE_NAME = ApplicationProvider.getApplicationContext() field in StorageOtherAndOwnedFilesTest 91 modifyReadAccess(file, THIS_PACKAGE_NAME, REVOKE); in cleanUp() 127 modifyReadAccess(otherAppFiles.get(0), THIS_PACKAGE_NAME, GRANT); in test_latestSelectionOnly_withOwnedAndGrantedItems() 139 modifyReadAccess(otherAppFiles.get(1), THIS_PACKAGE_NAME, GRANT); in test_latestSelectionOnly_withOwnedAndGrantedItems()
|
D | StorageOtherFilesTest.java | 89 private static final String THIS_PACKAGE_NAME = field in StorageOtherFilesTest 120 modifyReadAccess(IMAGE_FILE_READABLE, THIS_PACKAGE_NAME, GRANT); in init() 121 modifyReadAccess(VIDEO_FILE_READABLE, THIS_PACKAGE_NAME, GRANT); in init() 204 modifyReadAccess(fileToBeDeleted1, THIS_PACKAGE_NAME, GRANT); in other_deleteRequest() 220 THIS_PACKAGE_NAME, PackageManager.ApplicationInfoFlags.of(0)).targetSdkVersion; in testDeleteWithParamDeleteData()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 123 static final String THIS_PACKAGE_NAME = field in ScopedStorageTest 213 THIS_PACKAGE_NAME, NONMEDIA_FILE_NAME); in testCheckInstallerAppAccessToObbDirs() 215 .getPackageManager().getPackageUid(THIS_PACKAGE_NAME, 0); in testCheckInstallerAppAccessToObbDirs() 217 assertMountMode(THIS_PACKAGE_NAME, uid, StorageManager.MOUNT_MODE_EXTERNAL_INSTALLER); in testCheckInstallerAppAccessToObbDirs() 227 THIS_PACKAGE_NAME, NONMEDIA_FILE_NAME); in testCheckInstallerAppCannotAccessDataDirs() 229 .getPackageManager().getPackageUid(THIS_PACKAGE_NAME, 0); in testCheckInstallerAppCannotAccessDataDirs() 231 assertMountMode(THIS_PACKAGE_NAME, uid, StorageManager.MOUNT_MODE_EXTERNAL_INSTALLER); in testCheckInstallerAppCannotAccessDataDirs() 277 THIS_PACKAGE_NAME, APP_A_HAS_READ_MEDIA_ALL.getPackageName())); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 305 /* throwsExceptionForDataValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testManageExternalStorageCantInsertFilesInOtherAppPrivateDir() 316 /* throwsExceptionForDataValue */ false, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testManageExternalStorageCantUpdateFilesInOtherAppPrivateDir() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 128 private static final String THIS_PACKAGE_NAME = field in LegacyStorageTest 611 assertEquals(THIS_PACKAGE_NAME, getFileOwnerPackageFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW() 1017 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantInsertFilesInOtherAppPrivateDir_hasRW() 1029 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantUpdateFilesInOtherAppPrivateDir_hasRW() 1040 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantInsertFilesInOtherAppPrivateDir_hasMES() 1051 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantUpdateFilesInOtherAppPrivateDir_hasMES() 1063 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery() 1078 /* respectDataContentValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery()
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 187 static final String THIS_PACKAGE_NAME = getContext().getPackageName(); field in ScopedStorageDeviceTest 454 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateFileInOtherAppExternalDir() 465 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateFileInOtherAppExternalDir() 515 assertThat(getFileOwnerPackageFromDatabase(imageFile)).isEqualTo(THIS_PACKAGE_NAME); in testContributeMediaFile() 564 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateAndDeleteEmptyDir() 566 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateAndDeleteEmptyDir() 673 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testOpendirRestrictions() 678 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testOpendirRestrictions() 816 final String packageName = THIS_PACKAGE_NAME; in testListFilesFromExternalFilesDirectory() 859 .contains(THIS_PACKAGE_NAME); in testListFilesFromExternalMediaDirectory() [all …]
|