Home
last modified time | relevance | path

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

/aosp_15_r20/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java113 assertFileContent(TEMPPATH + SEP + "log", "java0.test.0", in testFileHandler()
137 assertFileContent(TEMPPATH + SEP + "log", "/string", new LogRecord[] { in testFileHandler_1params()
154 assertFileContent(TEMPPATH + SEP + "log", "string", h.getFormatter()); in testFileHandler_1params()
155 assertFileContent(TEMPPATH + SEP + "log", "string.1", h.getFormatter()); in testFileHandler_1params()
156 assertFileContent(TEMPPATH + SEP + "log", "string.2", h.getFormatter()); in testFileHandler_1params()
157 assertFileContent(TEMPPATH + SEP + "log", "string.3", h.getFormatter()); in testFileHandler_1params()
168 assertFileContent(TEMPPATH + SEP + "log", "string0.log", h.getFormatter()); in testFileHandler_1params()
186 assertFileContent(TEMPPATH + SEP + "log", "0string0.log", h in testFileHandler_1params()
188 assertFileContent(TEMPPATH + SEP + "log", "1string1.log", h in testFileHandler_1params()
223 assertFileContent(TEMPPATH + SEP + "log", "/string", in testFileHandler_2params()
[all …]
/aosp_15_r20/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DFileHandlerTest.java160 assertFileContent(tempPath + SEP + "log", "java1.test.0", h in testLock()
183 assertFileContent(tempPath + SEP + "log", "java0.test.0", in testFileHandler()
209 assertFileContent(homePath, "java0.log", new XMLFormatter(), null); in testDefaultValue()
212 private void assertFileContent(String homepath, String filename, in assertFileContent() method in FileHandlerTest
214 assertFileContent(homepath, filename, new LogRecord[] { r }, formatter, encoding); in assertFileContent()
217 private void assertFileContent(String homepath, String filename, in assertFileContent() method in FileHandlerTest
305 assertFileContent(tempPath, "testLimitCount1", handler.getFormatter(), "UTF-8"); in testLimitAndCount()
312 assertFileContent(tempPath, "testLimitCount0", new LogRecord[0], in testLimitAndCount()
331 assertFileContent(tempPath, "testLimitCount0.1", new LogRecord[] { in testLimitAndCount()
333 assertFileContent(tempPath, "testLimitCount0.0", new LogRecord[] { in testLimitAndCount()
[all …]
/aosp_15_r20/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
H A 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 …]
H A DTranscodeTestUtils.java388 public static void assertFileContent(File file1, File file2, ParcelFileDescriptor pfd1, in assertFileContent() method in TranscodeTestUtils
/aosp_15_r20/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
H A DScopedStorageTest.java33 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
641 assertFileContent(otherAppPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
645 assertFileContent(pdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
648 assertFileContent(topLevelPdf, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
652 assertFileContent(pdfInObviouslyWrongPlace, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
656 assertFileContent(musicFile, BYTES_DATA1); in testManageExternalStorageCanRenameOtherAppsContents()
940 assertFileContent(otherAppImage, new String().getBytes()); in assertSharedStorageAccess()
945 assertFileContent(otherAppBinary, new String().getBytes()); in assertSharedStorageAccess()
/aosp_15_r20/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
H A DScopedStorageDeviceTest.java37 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
442 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
526 assertFileContent(imageFile, expected); in testContributeMediaFile()
719 assertFileContent(fd, BYTES_DATA1); in testLowLevelFileIO()
729 assertFileContent(fd, expected); in testLowLevelFileIO()
738 assertFileContent(fd, otherData); in testLowLevelFileIO()
1554 assertFileContent(otherAppImageFile, BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1632 assertFileContent(otherAppVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1636 assertFileContent(videoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1639 assertFileContent(topLevelVideoFile, BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
[all …]
/aosp_15_r20/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
H A DStorageOwnedFilesTest.java33 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent;
214 assertFileContent(parcelFileDescriptor.getFileDescriptor(), BYTES_DATA1); in assertInsertFile()
/aosp_15_r20/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
H A 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()
/aosp_15_r20/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
H A DTestUtils.java1613 public static void assertFileContent(File file, byte[] expectedContent) throws IOException { in assertFileContent() method in TestUtils
1623 public static void assertFileContent(FileDescriptor fd, byte[] expectedContent) in assertFileContent() method in TestUtils
/aosp_15_r20/prebuilts/misc/common/ub-janktesthelper/
HDub-janktesthelper.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/aosp_15_r20/prebuilts/module_sdk/art/1/test-exports/java/
Dapache-harmony-tests.jarMETA-INF/ META-INF/MANIFEST.MF DefaultPkgIntf.class Proxy2Test.java package DefaultPkgIntf ...
Dcore-tests.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
/aosp_15_r20/prebuilts/module_sdk/art/current/test-exports/java/
Dapache-harmony-tests.jarMETA-INF/ META-INF/MANIFEST.MF DefaultPkgIntf.class Proxy2Test.java package DefaultPkgIntf ...
Dcore-tests.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...