Searched refs:fileContents (Results 1 – 9 of 9) sorted by relevance
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 552 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/ |
D | DownloadManagerApi28Test.java | 166 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/ |
D | ReadableFileReceiverActivity.java | 117 String fileContents = new String(buffer); in testFileContents() local 118 return ReadableUriExtraToClipDataTest.TEST_INPUT.equals(fileContents); in testFileContents()
|
D | ImageCaptureUriExtraToClipDataTest.java | 116 String fileContents = new String(buffer); in assertFileContents() local 117 assertEquals(TEST_INPUT, fileContents); in assertFileContents()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESCipherNistCavpKatTest.java | 204 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/ |
D | DeviceTest.java | 89 context.getString(R.string.fileContents).getBytes(StandardCharsets.UTF_8)); in testCVE_2023_20918()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | BrailleDisplayControllerTest.java | 417 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/ |
D | MediaStore_DownloadsTest.java | 120 final String fileContents = "RED;GREEN;BLUE"; in testScannedDownload() local 122 pw.print(fileContents); in testScannedDownload()
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | OnDeviceIntelligenceManagerTest.java | 889 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()
|