Home
last modified time | relevance | path

Searched refs:assertFileContent (Results 1 – 7 of 7) 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.java432 public static void assertFileContent(File file1, File file2, ParcelFileDescriptor pfd1, in assertFileContent() method in TranscodeTestUtils
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStorageOwnedFilesTest.java31 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
170 assertFileContent(parcelFileDescriptor.getFileDescriptor(), BYTES_DATA1); in assertInsertFile()
DScopedStorageDeviceTest.java36 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
436 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
520 assertFileContent(imageFile, expected); in testContributeMediaFile()
713 assertFileContent(fd, BYTES_DATA1); in testLowLevelFileIO()
723 assertFileContent(fd, expected); in testLowLevelFileIO()
732 assertFileContent(fd, otherData); in testLowLevelFileIO()
1531 assertFileContent(otherAppImageFile, BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1609 assertFileContent(otherAppVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1613 assertFileContent(videoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1616 assertFileContent(topLevelVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
[all …]
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java33 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
612 assertFileContent(otherAppPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
616 assertFileContent(pdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
619 assertFileContent(topLevelPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
623 assertFileContent(pdfInObviouslyWrongPlace, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
627 assertFileContent(musicFile, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
911 assertFileContent(otherAppImage, new String().getBytes()); in assertSharedStorageAccess()
916 assertFileContent(otherAppBinary, new String().getBytes()); in assertSharedStorageAccess()
/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.java1490 public static void assertFileContent(File file, byte[] expectedContent) throws IOException { in assertFileContent() method in TestUtils
1500 public static void assertFileContent(FileDescriptor fd, byte[] expectedContent) in assertFileContent() method in TestUtils