Home
last modified time | relevance | path

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

/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java269 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in play()
307 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in serveConnection()
348 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in serveConnection()
369 if (response.getSocketPolicy() == SocketPolicy.DISCONNECT_AFTER_READING_REQUEST) { in serveConnection()
391 if (response.getSocketPolicy() == SocketPolicy.DISCONNECT_AT_END) { in serveConnection()
394 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_INPUT_AT_END) { in serveConnection()
396 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_OUTPUT_AT_END) { in serveConnection()
DMockResponse.java222 public SocketPolicy getSocketPolicy() { in getSocketPolicy() method in MockResponse
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java388 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
441 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
507 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
528 if (response.getSocketPolicy() == SocketPolicy.DISCONNECT_AFTER_REQUEST) {
532 if (response.getSocketPolicy() == SocketPolicy.NO_RESPONSE) {
554 if (response.getSocketPolicy() == SocketPolicy.DISCONNECT_AT_END) {
557 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_INPUT_AT_END) {
559 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_OUTPUT_AT_END) {
763 ? policy.getSocketPolicy() == DISCONNECT_DURING_REQUEST_BODY
764 : policy.getSocketPolicy() == DISCONNECT_DURING_RESPONSE_BODY;
[all …]
DMockResponse.java188 public SocketPolicy getSocketPolicy() { in getSocketPolicy() method in MockResponse