Home
last modified time | relevance | path

Searched refs:fileContents (Results 1 – 6 of 6) 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/
DImageCaptureUriExtraToClipDataTest.java115 String fileContents = new String(buffer); in assertFileContents() local
116 assertEquals(TEST_INPUT, fileContents); in assertFileContents()
DReadableFileReceiverActivity.java117 String fileContents = new String(buffer); in testFileContents() local
118 return ReadableUriExtraToClipDataTest.TEST_INPUT.equals(fileContents); in testFileContents()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java166 private void runTestsForKatFile(String blockMode, byte[] fileContents) throws Exception { in runTestsForKatFile() argument
171 new ByteArrayInputStream(fileContents), "ISO-8859-1")); in runTestsForKatFile()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java120 final String fileContents = "RED;GREEN;BLUE"; in testScannedDownload() local
122 pw.print(fileContents); in testScannedDownload()