/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
AsynchronousGet.java | 22 import com.squareup.okhttp.Response; 38 @Override public void onResponse(Response response) throws IOException { 39 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 41 Headers responseHeaders = response.headers(); 46 System.out.println(response.body().string());
|
LoggingInterceptors.java | 21 import com.squareup.okhttp.Response; 31 @Override public Response intercept(Chain chain) throws IOException { 36 Response response = chain.proceed(request); 39 logger.info(String.format("Received response for %s in %.1fms%n%s", 40 request.httpUrl(), (t2 - t1) / 1e6d, response.headers())); 41 return response; 51 Response response = client.newCall(request).execute(); local 52 response.body().close() [all...] |
RewriteResponseCacheControl.java | 22 import com.squareup.okhttp.Response; 29 @Override public Response intercept(Chain chain) throws IOException { 30 Response originalResponse = chain.proceed(chain.request()); 56 // Force this request's response to be written to the cache. This way, subsequent responses 65 Response response = client.newCall(request).execute(); local 66 response.body().close(); 67 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 69 System.out.println(" Network: " + (response.networkResponse() != null)) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
ParamsParserTest.java | 19 TestHttpResponse response = new TestHttpResponse(); local 20 response.setResponseBody("param1=foobar"); 22 post.setEntity(response.getEntity()); 31 TestHttpResponse response = new TestHttpResponse(); local 32 response.setResponseBody("param1=foobar");
|
/external/syslinux/core/lwip/src/netif/ppp/ |
chpms.c | 62 * Implemented LANManager type password response to MS-CHAP challenges. 102 u_char UseNT; /* If 1, ignore the LANMan response field */ 128 u_char *response /* OUT 24 octets */ 135 MS_ChapResponse *response 145 u_char *response /* OUT 24 octets */) 156 DesEncrypt(challenge, ZPasswordHash + 0, response + 0); 157 DesEncrypt(challenge, ZPasswordHash + 7, response + 8); 158 DesEncrypt(challenge, ZPasswordHash + 14, response + 16); 161 log_packet(response, 24, "ChallengeResponse - response", LOG_DEBUG) 368 MS_ChapResponse response; local [all...] |
/external/nos/host/android/hals/weaver/test/ |
test.cpp | 46 GetConfigResponse response; local 47 response.set_number_of_slots(57); 48 response.set_key_size(467); 49 response.set_value_size(9); 51 .WillOnce(DoAll(SetArgPointee<1>(response), Return(APP_SUCCESS))); 56 EXPECT_THAT(config.slots, Eq(response.number_of_slots())); 57 EXPECT_THAT(config.keySize, Eq(response.key_size())); 58 EXPECT_THAT(config.valueSize, Eq(response.value_size())); 142 ReadResponse response; local 143 response.set_error(ReadResponse::NONE) 159 ReadResponse response; local 176 ReadResponse response; local 193 ReadResponse response; local [all...] |
/system/gatekeeper/ |
gatekeeper.cpp | 25 void GateKeeper::Enroll(const EnrollRequest &request, EnrollResponse *response) { 26 if (response == NULL) return; 29 response->error = ERROR_INVALID; 44 response->error = ERROR_INVALID; 58 response->error = ERROR_UNKNOWN; 62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; 65 response->error = ERROR_UNKNOWN; 75 response->SetRetryTimeout(timeout); 77 response->error = ERROR_INVALID; 97 response->error = ERROR_INVALID [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CommandsInterface.java | 127 * response.obj.result is an int[2] 129 * response.obj.result[0] is IMS registration state 132 * response.obj.result[1] is of type RILConstants.GSM_PHONE or 320 * response.obj.result[0] is received signal strength (0-31, 99) 321 * response.obj.result[1] is bit error rate (0-7, 99) 369 * response.obj.result[0] is a bitmask of RIL_RESTRICTED_STATE_* values [all...] |
OemHookIndication.java | 43 byte[] response = RIL.arrayListToPrimitiveArray(data); 46 com.android.internal.telephony.uicc.IccUtils.bytesToHexString(response)); 50 mRil.mUnsolOemHookRawRegistrant.notifyRegistrant(new AsyncResult(null, response, null));
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/scpi/ |
css_mhu.c | 63 /* Wait for response from SCP */ 64 uint32_t response; local 65 while (!(response = mmio_read_32(PLAT_CSS_MHU_BASE + SCP_INTR_S_STAT))) 68 return response; 76 * Clear any response we got by writing one in the relevant slot bit to
|
/external/apache-http/src/org/apache/http/client/ |
AuthenticationHandler.java | 54 HttpResponse response, 58 HttpResponse response, 63 HttpResponse response,
|
/external/apache-http/src/org/apache/http/impl/client/ |
BasicResponseHandler.java | 44 * A {@link ResponseHandler} that returns the response body as a String 45 * for successful (2xx) responses. If the response code was >= 300, the response 67 * Returns the response body as a String if the response was successful (a 68 * 2xx status code). If no response body exists, this returns null. If the 69 * response was unsuccessful (>= 300 status code), throws an 72 public String handleResponse(final HttpResponse response) 74 StatusLine statusLine = response.getStatusLine(); 80 HttpEntity entity = response.getEntity() [all...] |
DefaultConnectionKeepAliveStrategy.java | 61 public long getKeepAliveDuration(HttpResponse response, HttpContext context) { 62 if (response == null) { 63 throw new IllegalArgumentException("HTTP response may not be null"); 66 response.headerIterator(HTTP.CONN_KEEP_ALIVE));
|
/external/libbrillo/brillo/dbus/ |
dbus_object_unittest.cc | 49 void Positive(std::unique_ptr<DBusMethodResponse<double>> response, 52 response->Return(x); 58 response->ReplyWithError(error.get()); 87 std::unique_ptr<DBusMethodResponse<std::string>> response, 89 response->Return(message->GetSender()); 143 void ExpectError(dbus::Response* response, const std::string& expected_code) { 144 EXPECT_EQ(dbus::Message::MESSAGE_ERROR, response->GetMessageType()); 145 EXPECT_EQ(expected_code, response->GetErrorName()); 160 auto response = testing::CallMethod(*dbus_object_, &method_call) local 173 auto response = testing::CallMethod(*dbus_object_, &method_call); local 186 auto response = testing::CallMethod(*dbus_object_, &method_call); local 199 auto response = testing::CallMethod(*dbus_object_, &method_call); local 209 auto response = testing::CallMethod(*dbus_object_, &method_call); local 224 auto response = testing::CallMethod(*dbus_object_, &method_call); local 237 auto response = testing::CallMethod(*dbus_object_, &method_call); local 250 auto response = testing::CallMethod(*dbus_object_, &method_call); local 261 auto response = testing::CallMethod(*dbus_object_, &method_call); local 274 auto response = testing::CallMethod(*dbus_object_, &method_call); local 287 auto response = testing::CallMethod(*dbus_object_, &method_call); local 297 auto response = testing::CallMethod(*dbus_object_, &method_call); local 310 auto response = testing::CallMethod(*dbus_object_, &method_call); local 323 auto response = testing::CallMethod(*dbus_object_, &method_call); local 334 auto response = testing::CallMethod(*dbus_object_, &method_call); local 344 auto response = testing::CallMethod(*dbus_object_, &method_call); local 354 auto response = testing::CallMethod(*dbus_object_, &method_call); local 368 auto response = testing::CallMethod(*dbus_object_, &method_call); local [all...] |
/external/selinux/libsepol/include/sepol/ |
booleans.h | 39 const sepol_policydb_t * p, unsigned int *response); 44 const sepol_bool_key_t * key, int *response); 50 sepol_bool_t ** response);
|
users.h | 38 const sepol_policydb_t * p, unsigned int *response); 43 const sepol_user_key_t * key, int *response); 49 sepol_user_t ** response);
|
/external/webrtc/webrtc/p2p/base/ |
teststunserver.h | 46 StunMessage response; variable 47 GetStunBindReqponse(msg, fake_stun_addr_, &response); 48 SendResponse(response, remote_addr);
|
/system/bt/packet/avrcp/ |
pass_through_packet.h | 29 bool response, bool pushed, uint8_t operation_id); 39 PassThroughPacketBuilder(bool response, bool pushed, uint8_t opperation_id) 40 : PacketBuilder(response ? CType::ACCEPTED : CType::CONTROL, 0x09, 0x00,
|
/system/nvram/messages/tests/ |
nvram_messages_test.cpp | 49 Response response; local 50 response.result = NV_RESULT_SUCCESS; 51 response.payload.Activate<COMMAND_GET_INFO>(); 54 response.payload.Activate<COMMAND_GET_INFO>(); 65 Response decoded; 66 EncodeAndDecode(response, &decoded); 68 EXPECT_EQ(NV_RESULT_SUCCESS, response.result); 118 Response response; local 148 Response response; local 202 Response response; local 226 Response response; local 268 Response response; local 305 Response response; local 350 Response response; local 387 Response response; local 412 Response response; local [all...] |
/system/update_engine/ |
omaha_response_handler_action.cc | 58 const OmahaResponse& response = GetInputObject(); local 59 if (!response.update_exists) { 71 LOG(ERROR) << "There are no suitable URLs in the response to use."; 78 install_plan_.version = response.version; 79 install_plan_.system_version = response.system_version; 94 // Fill up the other properties based on the response. 96 for (const auto& package : response.packages) { 113 install_plan_.public_key_rsa = response.public_key_rsa; 114 install_plan_.hash_checks_mandatory = AreHashChecksMandatory(response); 127 << "Unable to save the update check response hash." [all...] |
/tools/test/connectivity/tools/lab/reporters/ |
logger_reporter.py | 48 for response in metric_responses[metric]: 49 extra['response_key'] = response 50 extra['response_val'] = metric_responses[metric][response]
|
/external/libmicrohttpd/src/examples/ |
post_example.c | 125 * URL to serve in response to this POST (if this request 226 * Handler to call to generate response. 238 * Add header to response to set a session cookie. 241 * @param response response to modify 245 struct MHD_Response *response) 254 MHD_add_response_header (response, 281 struct MHD_Response *response; local 284 response = MHD_create_response_from_buffer (strlen (form), 287 if (NULL == response) 317 struct MHD_Response *response; local 360 struct MHD_Response *response; local 403 struct MHD_Response *response; local 546 struct MHD_Response *response; local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
SimulatedCommandsVerifier.java | 777 public void setMute(boolean enableMute, Message response) { 782 public void getMute(Message response) { 787 public void getSignalStrength(Message response) { 792 public void getVoiceRegistrationState(Message response) { 797 public void getDataRegistrationState(Message response) { 802 public void getOperator(Message response) { 827 public void sendSMS(String smscPDU, String pdu, Message response) { 832 public void sendSMSExpectMore(String smscPDU, String pdu, Message response) { 837 public void sendCdmaSms(byte[] pdu, Message response) { 843 Message response) { [all...] |
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
MockAccountAuthenticator.java | 49 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, 56 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { 61 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 67 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, 76 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, 87 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account,
|
/cts/tests/tests/content/src/android/content/cts/ |
MockAccountAuthenticator.java | 50 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, 57 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { 62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, 77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, 88 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account,
|