/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 163 private static final TestApp APP_B_NO_PERMS = new TestApp("TestAppB", field in ScopedStorageTest 212 assertCanAccessPrivateAppAndroidObbDir(true /*canAccess*/, APP_B_NO_PERMS, in testCheckInstallerAppAccessToObbDirs() 226 assertCanAccessPrivateAppAndroidDataDir(false /*canAccess*/, APP_B_NO_PERMS, in testCheckInstallerAppCannotAccessDataDirs() 260 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanReadRedactedContents() 267 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImage.getAbsolutePath()); in testManageExternalStorageCanReadRedactedContents() 305 /* throwsExceptionForDataValue */ true, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testManageExternalStorageCantInsertFilesInOtherAppPrivateDir() 316 /* throwsExceptionForDataValue */ false, APP_B_NO_PERMS, THIS_PACKAGE_NAME); in testManageExternalStorageCantUpdateFilesInOtherAppPrivateDir() 328 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 329 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 330 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() [all …]
|
D | AppCloningDeviceTest.java | 45 private static final TestApp APP_B_NO_PERMS = new TestApp("TestAppB", field in AppCloningDeviceTest 57 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProvider() 58 assertThat(canOpenFileAs(APP_B_NO_PERMS, file, true)).isTrue(); in testInsertFilesInDirectoryViaMediaProvider() 59 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProvider() 70 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 71 assertThat(fileExistsAs(APP_B_NO_PERMS, file)).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 72 assertThat(canOpenFileAs(APP_B_NO_PERMS, file, true)).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 73 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 83 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(expectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId() 85 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).doesNotContain(notExpectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId()
|
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/ |
D | RedactUriDeviceTest.java | 103 private static final TestApp APP_B_NO_PERMS = new TestApp("TestAppB", field in RedactUriDeviceTest 122 assertThat(checkPermission(APP_B_NO_PERMS, in setupApps() 250 forceStopApp(APP_B_NO_PERMS.getPackageName()); in testSharedRedactedUri_openFdForWrite() 253 Uri redactedUri = shareAndGetRedactedUri(img, APP_B_NO_PERMS); in testSharedRedactedUri_openFdForWrite() 255 () -> canOpenRedactedUriForWrite(APP_B_NO_PERMS, redactedUri)); in testSharedRedactedUri_openFdForWrite() 267 forceStopApp(APP_B_NO_PERMS.getPackageName()); in testSharedRedactedUri_openFdForRead() 270 final Uri redactedUri = shareAndGetRedactedUri(img, APP_B_NO_PERMS); in testSharedRedactedUri_openFdForRead() 271 assertThat(isFileDescriptorRedacted(APP_B_NO_PERMS, redactedUri)).isTrue(); in testSharedRedactedUri_openFdForRead() 283 forceStopApp(APP_B_NO_PERMS.getPackageName()); in testSharedRedactedUri_openFileForRead() 286 Uri redactedUri = shareAndGetRedactedUri(img, APP_B_NO_PERMS); in testSharedRedactedUri_openFileForRead() [all …]
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 218 private static final TestApp APP_B_NO_PERMS = new TestApp("TestAppB", field in ScopedStorageDeviceTest 268 assertThat(checkPermission(APP_B_NO_PERMS, in setupApps() 577 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 578 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 590 deleteFileAsNoThrow(APP_B_NO_PERMS, nonMediaFile.getPath()); in testCantAccessOtherAppsContents() 591 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantAccessOtherAppsContents() 603 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 611 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 619 assertThat(deleteFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 626 assertThat(deleteFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 152 private static final TestApp APP_B_NO_PERMS = new TestApp("TestAppB", field in LegacyStorageTest 173 assertThat(checkPermission(APP_B_NO_PERMS, in setup() 447 String.format("%s/%s", APP_B_NO_PERMS.getPackageName(), VIDEO_FILE_NAME)); in testCanTrashOtherAndroidMediaFiles_hasRW() 449 assertThat(createFileAs(APP_B_NO_PERMS, otherVideoFile.getAbsolutePath())).isTrue(); in testCanTrashOtherAndroidMediaFiles_hasRW() 578 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdfFile.getAbsolutePath())).isTrue(); in testCanDeleteAllFiles_hasRW() 587 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppPdfFile.getAbsolutePath()); in testCanDeleteAllFiles_hasRW() 790 createImageEntryAs(APP_B_NO_PERMS, relativePath); in testLegacyAppUpdatingOwnershipOfExistingEntry() 795 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, false /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry() 796 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, true /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry() 798 deleteFileAsNoThrow(APP_B_NO_PERMS, fullPath.getAbsolutePath()); in testLegacyAppUpdatingOwnershipOfExistingEntry() [all …]
|