Home
last modified time | relevance | path

Searched refs:fileContents (Results 1 – 9 of 9) sorted by relevance

/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java552 final String fileContents = "RED;GREEN;BLUE"; in testAddCompletedDownload() local
555 writeToFile(file, fileContents); in testAddCompletedDownload()
558 "text/plain", file.getPath(), fileContents.getBytes().length, true); in testAddCompletedDownload()
560 assertEquals(fileContents, actualContents); in testAddCompletedDownload()
567 assertEquals(fileContents, rawFileContents); in testAddCompletedDownload()
576 final String fileContents = "Test content:" + path + "_" + System.nanoTime(); in testAddCompletedDownload_downloadDir() local
579 writeToFile(new File(path), fileContents); in testAddCompletedDownload_downloadDir()
582 "text/plain", path, fileContents.getBytes().length, true); in testAddCompletedDownload_downloadDir()
584 assertEquals(fileContents, actualContents); in testAddCompletedDownload_downloadDir()
591 assertEquals(fileContents, rawFileContents); in testAddCompletedDownload_downloadDir()
[all …]
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java166 final String fileContents = "Test content:" + path + "_" + System.nanoTime(); in testAddCompletedDownload_publicDirs() local
169 writeToFile(new File(path), fileContents); in testAddCompletedDownload_publicDirs()
172 "text/plain", path, fileContents.getBytes().length, true); in testAddCompletedDownload_publicDirs()
174 assertEquals(fileContents, actualContents); in testAddCompletedDownload_publicDirs()
181 assertEquals(fileContents, rawFileContents); in testAddCompletedDownload_publicDirs()
/cts/tests/tests/content/src/android/content/cts/
DReadableFileReceiverActivity.java117 String fileContents = new String(buffer); in testFileContents() local
118 return ReadableUriExtraToClipDataTest.TEST_INPUT.equals(fileContents); in testFileContents()
DImageCaptureUriExtraToClipDataTest.java116 String fileContents = new String(buffer); in assertFileContents() local
117 assertEquals(TEST_INPUT, fileContents); in assertFileContents()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java204 private void runTestsForKatFile(String blockMode, byte[] fileContents) throws Exception { in runTestsForKatFile() argument
209 new ByteArrayInputStream(fileContents), "ISO-8859-1")); in runTestsForKatFile()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20918/test-app/src/android/security/cts/CVE_2023_20918_test/
DDeviceTest.java89 context.getString(R.string.fileContents).getBytes(StandardCharsets.UTF_8)); in testCVE_2023_20918()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java417 AtomicReference<String> fileContents = new AtomicReference<>(); in expectFileContents() local
422 fileContents.set(executeSystemShellCommand("cat " + filePath)); in expectFileContents()
423 return expectedFileContents.equals(fileContents.get()); in expectFileContents()
430 + "', received '" + fileContents.get() + "'\n" + e.getMessage()); in expectFileContents()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java120 final String fileContents = "RED;GREEN;BLUE"; in testScannedDownload() local
122 pw.print(fileContents); in testScannedDownload()
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DOnDeviceIntelligenceManagerTest.java889 CompletableFuture<String> fileContents = new CompletableFuture<>(); in sendRequestToReadTestFile() local
901 fileContents.complete(result.getString(TEST_KEY)); in sendRequestToReadTestFile()
911 assertThat(fileContents.get()).isEqualTo(TEST_CONTENT); in sendRequestToReadTestFile()