Searched refs:buildResponse (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 158 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testDownloadToExternal_fileExists() 196 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testDownloadToExternal() 227 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testDownloadToProhibitedDirectory() 254 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testGetDownloadIdOnNotification() 274 final MockResponse resp = buildResponse(HTTP_REDIRECT); in testErrorTooManyRedirects() 287 enqueueResponse(buildResponse(HTTP_PARTIAL_CONTENT)); in testErrorUnhandledHttpCode() 298 final MockResponse resp = buildResponse(HTTP_REDIRECT); in testRelativeRedirect() 303 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testRelativeRedirect() 342 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testSetTitle() 374 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testDownloadNoWifi() [all …]
|
D | DownloadManagerBaseTest.java | 259 protected MockResponse buildResponse(int status) { in buildResponse() method in DownloadManagerBaseTest 272 protected MockResponse buildResponse(int status, byte[] body) { in buildResponse() method in DownloadManagerBaseTest 273 return buildResponse(status).setBody(body); in buildResponse() 283 protected MockResponse buildResponse(int status, File bodyFile) in buildResponse() method in DownloadManagerBaseTest 286 return buildResponse(status).setBody(body); in buildResponse() 931 mServer.enqueue(buildResponse(HTTP_OK, body)); in enqueueDownloadRequest() 946 mServer.enqueue(buildResponse(HTTP_OK, body)); in enqueueDownloadRequest()
|
D | DownloadManagerStressTest.java | 90 enqueueResponse(buildResponse(HTTP_OK, blobData)); in testMultipleDownloads()
|