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;
143 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_FilePath()
174 assertFileContent(modernFile, file, pfdOriginal1, pfdOriginal2, true); in testNoTranscodeOutsideCamera_FilePath()
198 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscoded_FilePath()
220 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testTranscoded_ContentResolver()
253 assertFileContent(modernFile, noTranscodeFiles.get(1), pfdOriginal1, pfdOriginal2, in testNoTranscodeOutsideCamera_ConentResolver()
279 assertFileContent(modernFile, modernFile, pfdTranscoded1, pfdTranscoded2, true); in testSameTranscodedFile_ContentResolver()
466 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraAcceptOriginalFormatTrue_ContentResolver()
486 assertFileContent(modernFile, modernFile, pfdOriginal, pfdTranscoded, false); in testExtraAcceptOriginalFormatFalse_ContentResolver()
509 assertFileContent(modernFile, modernFile, pfdOriginal1, pfdOriginal2, true); in testExtraMediaCapabilitiesHevcSupportedTrue_ContentResolver()
[all …]
DTranscodeTestUtils.java400 public static void assertFileContent(File file1, File file2, ParcelFileDescriptor pfd1, in assertFileContent() method in TranscodeTestUtils
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java25 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
372 assertFileContent(otherAppPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
376 assertFileContent(pdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
379 assertFileContent(topLevelPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
383 assertFileContent(pdfInObviouslyWrongPlace, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
387 assertFileContent(musicFile, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
658 assertFileContent(otherAppImage, new String().getBytes()); in assertSharedStorageAccess()
663 assertFileContent(otherAppBinary, new String().getBytes()); in assertSharedStorageAccess()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java35 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
419 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
503 assertFileContent(imageFile, expected); in testContributeMediaFile()
696 assertFileContent(fd, BYTES_DATA1); in testLowLevelFileIO()
706 assertFileContent(fd, expected); in testLowLevelFileIO()
715 assertFileContent(fd, otherData); in testLowLevelFileIO()
1442 assertFileContent(otherAppImageFile, BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1516 assertFileContent(otherAppVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1520 assertFileContent(videoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1523 assertFileContent(topLevelVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java28 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
656 assertFileContent(imageFile, expected); in testRenameDoesntInvalidateUri_hasRW()
844 assertFileContent(videoFile, BYTES_DATA1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
893 assertFileContent(videoFile, BYTES_DATA1); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1115 public static void assertFileContent(File file, byte[] expectedContent) throws IOException { in assertFileContent() method in TestUtils
1125 public static void assertFileContent(FileDescriptor fd, byte[] expectedContent) in assertFileContent() method in TestUtils