Home
last modified time | relevance | path

Searched refs:FILE_CONTENT (Results 1 – 4 of 4) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java57 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadTextFile()
67 assertEquals(FILE_CONTENT, getDownloadContents(downloadUri)); in testDownloadTextFile()
73 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadToCache()
79 assertEquals(FILE_CONTENT, getDownloadContents(downloadUri)); in testDownloadToCache()
85 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
86 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
108 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
DPublicApiFunctionalTest.java110 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testBasicRequest()
132 int size = FILE_CONTENT.length(); in testBasicRequest()
162 assertEquals(FILE_CONTENT, readStream(inputStream)); in checkUriContent()
195 assertEquals(FILE_CONTENT.length(), in testInterruptedDownload()
222 enqueueResponse(buildPartialResponse(initialLength, FILE_CONTENT.length())); in enqueueInterruptedDownloadResponses()
226 int totalLength = FILE_CONTENT.length(); in buildPartialResponse()
229 MockResponse response = buildResponse(status, FILE_CONTENT.substring(start, end)) in buildPartialResponse()
353 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDestination()
363 assertEquals(FILE_CONTENT, readStream(stream)); in testDestination()
396 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testSizeLimitOverMobile()
[all …]
DAbstractDownloadProviderFunctionalTest.java68 FILE_CONTENT = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; field in AbstractDownloadProviderFunctionalTest
/packages/modules/Virtualization/libs/apkzip/src/
Dziputil.rs108 const FILE_CONTENT: &[u8] = b"testcontent"; constant
114 writer.write_all(FILE_CONTENT).unwrap(); in create_test_zip()
135 assert_eq!(file.as_slice(), FILE_CONTENT); in test_read_file()