Home
last modified time | relevance | path

Searched refs:assertFileContent (Results 1 – 6 of 6) sorted by relevance

/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java21 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.assertFileContent;
145 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_FilePath()
176 assertFileContent(modernFile, file, pfdOriginal1, pfdOriginal2, true); in testNoTranscodeOutsideCamera_FilePath()
200 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscoded_FilePath()
222 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_ContentResolver()
255 assertFileContent(modernFile, noTranscodeFiles.get(1), pfdOriginal1, pfdOriginal2, in testNoTranscodeOutsideCamera_ConentResolver()
281 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscodedFile_ContentResolver()
468 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraAcceptOriginalFormatTrue_ContentResolver()
488 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testExtraAcceptOriginalFormatFalse_ContentResolver()
511 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraMediaCapabilitiesHevcSupportedTrue_ContentResolver()
[all …]
DTranscodeTestUtils.java406 public static void assertFileContent(File file1, File file2, ParcelFileDescriptor pfd1, in assertFileContent() method in TranscodeTestUtils
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java27 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
594 assertFileContent(otherAppPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
598 assertFileContent(pdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
601 assertFileContent(topLevelPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
605 assertFileContent(pdfInObviouslyWrongPlace, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
609 assertFileContent(musicFile, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
936 assertFileContent(otherAppImage, new String().getBytes()); in assertSharedStorageAccess()
941 assertFileContent(otherAppBinary, new String().getBytes()); in assertSharedStorageAccess()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java36 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
431 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
515 assertFileContent(imageFile, expected); in testContributeMediaFile()
708 assertFileContent(fd, BYTES_DATA1); in testLowLevelFileIO()
718 assertFileContent(fd, expected); in testLowLevelFileIO()
727 assertFileContent(fd, otherData); in testLowLevelFileIO()
1516 assertFileContent(otherAppImageFile, BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1590 assertFileContent(otherAppVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1594 assertFileContent(videoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1597 assertFileContent(topLevelVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java30 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
684 assertFileContent(imageFile, expected); in testRenameDoesntInvalidateUri_hasRW()
872 assertFileContent(videoFile, BYTES_DATA1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
956 assertFileContent(videoFile, BYTES_DATA1); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1239 public static void assertFileContent(File file, byte[] expectedContent) throws IOException { in assertFileContent() method in TestUtils
1249 public static void assertFileContent(FileDescriptor fd, byte[] expectedContent) in assertFileContent() method in TestUtils