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.java19 import static android.mediaprovidertranscode.cts.TranscodeTestUtils.assertFileContent;
140 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_FilePath()
171 assertFileContent(modernFile, file, pfdOriginal1, pfdOriginal2, true); in testNoTranscodeOutsideCamera_FilePath()
195 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscoded_FilePath()
217 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_ContentResolver()
250 assertFileContent(modernFile, noTranscodeFiles.get(1), pfdOriginal1, pfdOriginal2, in testNoTranscodeOutsideCamera_ConentResolver()
276 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscodedFile_ContentResolver()
463 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraAcceptOriginalFormatTrue_ContentResolver()
483 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testExtraAcceptOriginalFormatFalse_ContentResolver()
506 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraMediaCapabilitiesHevcSupportedTrue_ContentResolver()
[all …]
DTranscodeTestUtils.java388 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.java33 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
214 assertFileContent(parcelFileDescriptor.getFileDescriptor(), BYTES_DATA1); in assertInsertFile()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java33 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
639 assertFileContent(otherAppPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
643 assertFileContent(pdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
646 assertFileContent(topLevelPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
650 assertFileContent(pdfInObviouslyWrongPlace, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
654 assertFileContent(musicFile, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
938 assertFileContent(otherAppImage, new String().getBytes()); in assertSharedStorageAccess()
943 assertFileContent(otherAppBinary, new String().getBytes()); in assertSharedStorageAccess()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java37 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
440 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
524 assertFileContent(imageFile, expected); in testContributeMediaFile()
717 assertFileContent(fd, BYTES_DATA1); in testLowLevelFileIO()
727 assertFileContent(fd, expected); in testLowLevelFileIO()
736 assertFileContent(fd, otherData); in testLowLevelFileIO()
1529 assertFileContent(otherAppImageFile, BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1607 assertFileContent(otherAppVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1611 assertFileContent(videoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1614 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()
876 assertFileContent(videoFile, BYTES_DATA1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
960 assertFileContent(videoFile, BYTES_DATA1); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1591 public static void assertFileContent(File file, byte[] expectedContent) throws IOException { in assertFileContent() method in TestUtils
1601 public static void assertFileContent(FileDescriptor fd, byte[] expectedContent) in assertFileContent() method in TestUtils