/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
H A D | BlockingHttpClient.java | 41 * Interface that handles processing the response for a request. 49 * @param response An input stream that can be used to read the HTTP response. 51 T onSuccess(InputStream response) throws IOException; argument 62 * @param responseProcessor A processor for the HTTP response.
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
H A D | WebAddress.java | 139 public String response; field in class:WebAddress.ParseException 141 ParseException(String response) { argument 142 this.response = response;
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
H A D | ActionService.java | 49 * Process a response from the BackgroundWorker in the ActionService 52 final Action action, final Bundle response) { 53 ActionServiceImpl.handleResponseFromBackgroundWorker(action, response); 51 handleResponseFromBackgroundWorker( final Action action, final Bundle response) argument
|
H A D | Action.java | 100 * @return response that is to be passed to {@link #processBackgroundResponse} 107 * Process the success response from the background worker. Runs on action service thread. 108 * @param response the response returned by {@link #doBackgroundWork} 111 protected Object processBackgroundResponse(final Bundle response) { argument 201 * Update action state to indicate that the background worker has posted its response 220 * Called by ActionService to process a response from the background worker 221 * @param response the response returned by {@link #doBackgroundWork} 223 protected final void processBackgroundWorkResponse(final Bundle response) { argument [all...] |
H A D | ActionServiceImpl.java | 76 * Handle response returned by BackgroundWorker 77 * @param request - request generating response 78 * @param response - response from service 81 final Bundle response) { 87 intent.putExtra(EXTRA_WORKER_RESPONSE, response); 93 * Handle response returned by BackgroundWorker 273 final Bundle response = intent.getBundleExtra(EXTRA_WORKER_RESPONSE); 274 processBackgroundResponse(action, response); 313 * Process response o 80 handleResponseFromBackgroundWorker(final Action action, final Bundle response) argument 315 processBackgroundResponse(final Action action, final Bundle response) argument [all...] |
H A D | DownloadMmsAction.java | 280 protected Object processBackgroundResponse(final Bundle response) { argument
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
H A D | BlockingHttpClientTests.java | 103 byte[] response = new byte[100]; 104 rand.nextBytes(response); 106 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); 109 new FakeSuccessResponseProcessor(response); 118 byte[] response = new byte[100]; 119 rand.nextBytes(response); 122 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); 125 new FakeSuccessResponseProcessor(response); 133 public Void onSuccess(InputStream response) { argument 149 public Void onSuccess(InputStream response) { argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
H A D | TestAuthenticator.java | 62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument 84 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 99 AccountAuthenticatorResponse response, Account account, Bundle options) { 107 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument 125 AccountAuthenticatorResponse response, Account account, String[] features) { 138 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, argument 98 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument 124 hasFeatures( AccountAuthenticatorResponse response, Account account, String[] features) argument
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
H A D | HttpFetcher.java | 54 * @return The response body as a byte array. Or {@literal null} if status code is not 2xx. 75 LogUtil.i("HttpFetcher.sendRequestAsByteArray", "response code: " + responseCode); 100 byte[] response = baos.toByteArray(); 101 LogUtil.i("HttpFetcher.sendRequestAsByteArray", "received " + response.length + " bytes"); 104 return response; 116 * @return The response body as a InputStream. Or {@literal null} if status code is not 2xx. 135 LogUtil.i("HttpFetcher.sendRequestAsInputStream", "response code: " + responseCode); 207 * @return The response body as a String. Or {@literal null} if status code is not 2xx. 215 // Encountered error response... just return. 218 final String response 263 handleBadResponse(String url, byte[] response) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
H A D | EasTestAuthenticatorService.java | 48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument 72 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 79 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, argument 85 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument 90 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 102 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, argument 108 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, argument
|
H A D | AuthenticatorService.java | 56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument 114 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 121 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, argument 127 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument 132 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 144 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, argument 150 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, argument
|
H A D | EmailServiceStub.java | 394 public void sendMeetingResponse(final long messageId, final int response) argument
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
H A D | ImapResponseParserTest.java | 83 "* a\r\n" // shortest response 322 * Parser shouldn't crash for any response. Should just throw IO/MessagingException. 351 private static void expectMessagingException(String response) throws Exception { argument 352 final ImapResponseParser p = generateParser(100000, response); 355 fail("Didn't throw Exception: response='" + response + "'"); 366 * OK response with a long message that contains special chars. (including tabs)
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
H A D | DownloadRequest.java | 53 protected boolean transferResponse(Context context, Intent fillIn, byte[] response) { argument 54 return writePduToContentUri(context, mPduUri, response);
|
H A D | SendRequest.java | 41 // Max send response PDU size in bytes (exceeding this may cause problem with 64 final byte[] response) { 66 if (response != null && fillIn != null) { 67 if (response.length > MAX_SEND_RESPONSE_SIZE) { 68 // If the response PDU is too large, it won't be able to fit in 72 fillIn.putExtra(SmsManager.EXTRA_MMS_DATA, response); 63 transferResponse(final Context context, final Intent fillIn, final byte[] response) argument
|
H A D | MmsRequest.java | 58 * Transfer the received response to the caller 62 * @param response the pdu to transfer 63 * @return true if transferring response PDU to calling app succeeds, false otherwise 65 protected abstract boolean transferResponse(Context context, Intent fillIn, byte[] response); argument 76 * @return The HTTP response data 135 byte[] response = null; 172 response = doHttp( 175 if (isWrongApnResponse(response, mmsConfig)) { 209 returnResult(context, result, response, httpStatusCode); 213 * Check if the response indicate 223 isWrongApnResponse(final byte[] response, final Bundle mmsConfig) argument 257 returnResult(final Context context, int result, final byte[] response, final int httpStatusCode) argument [all...] |
/packages/services/BuiltInPrintService/jni/ipphelper/ |
H A D | ippstatus_capabilities.c | 130 ipp_t *response = NULL; // IPP response object local 164 response = ipp_doCupsRequest(caps->http, request, caps->printer_caps.httpResource, 166 if (response == NULL) { 168 LOGE("_get_capabilities: %s response is null: ipp_status %d %s", 174 parse_printerAttributes(response, capabilities); 177 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( 178 response)) { 182 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { 189 if (ipp_status >= IPP_OK && ipp_status < IPP_REDIRECTION_OTHER_SITE && response ! [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | RespondViaSmsManager.java | 84 * @param response An object to receive an async reply, which will be called from 88 public void loadCannedTextMessages(final Response<Void, List<String>> response, argument 124 response.onResult(null, textMessages);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
H A D | ImapConnection.java | 111 // consume the response before doing anything else. 112 ImapResponse response = mParser.readResponse(false); 113 if (!response.isOk()) { 117 "Invalid server initial response"); 248 String response = data.createResponse(); 249 // Respond to the challenge. If the server accepts it, it will reply a response-auth which 256 // response=d388dad90d4bbd760a152321f2143af7,qop=auth 259 responses = executeContinuationResponse(encodeBase64(response), true); 261 // Verify response-auth. 267 // Send a empty response t 368 executeContinuationResponse(String response, boolean sensitive) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/internet/ |
H A D | OAuthAuthenticator.java | 141 final HttpResponse response; 142 response = mClient.execute(post); 143 final int status = response.getStatusLine().getStatusCode(); 145 return parseResponse(response); 158 private AuthenticationResult parseResponse(HttpResponse response) throws IOException, argument 161 response.getEntity().getContent(), "UTF-8"));
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | MmsSender.java | 79 * Send NotifyRespInd (response to mms auto download). 82 * @param subId subscription to use to send the response 107 * Send AcknowledgeInd (response to mms manual download). Ignore failures. 142 * @param responseImportant If the sending response is important. Responses to the 220 public static SendConf parseSendConf(byte[] response, int subId) { argument 221 if (response != null) { 223 response, MmsConfig.get(subId).getSupportMmsContentDisposition()).parse(); 228 LogUtil.e(TAG, "MmsSender: send response not SendConf"); 232 LogUtil.e(TAG, "MmsSender: send invalid response"); 235 // Empty or invalid response [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
H A D | ActionTest.java | 153 final Bundle response = null; 164 mAction.processBackgroundWorkResponse(response); 283 * Process the response from the server - runs on service thread 286 protected Object processBackgroundResponse(final Bundle response) { argument
|
/packages/services/Car/obd2-lib/src/com/android/car/obd2/ |
H A D | Obd2Connection.java | 118 StringBuilder response = new StringBuilder(); 126 response.append(c); 129 String responseValue = response.toString(); 133 String removeSideData(String response, String... patterns) { argument 135 if (response.contains(pattern)) response = response.replaceAll(pattern, ""); 137 return response; 166 "conversion error: command: '%s', original response: '%s'" 167 + ", processed response [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
H A D | Vvm3Subscriber.java | 220 String response = vvm3XmlRequest(OPERATION_GET_SPG_URL); 221 return extractText(response, SPG_URL_TAG); 227 * cookie from this response and cellular data is required to click the link. 230 VvmLog.i(TAG, "Retrieving self provisioning response"); 301 String response = future.get(REQUEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); 302 if (!transactionId.equals(extractText(response, TRANSACTION_ID_TAG))) { 305 return response; 331 static String findSubscribeLink(@NonNull List<Pattern> patterns, String response) argument 336 Spanned doc = Html.fromHtml(response, Html.FROM_HTML_MODE_LEGACY); 362 throw new ProvisioningException("Tag " + tag + " not found in xml response"); [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | EmailServiceProxy.java | 234 * Send a meeting response for the specified message 237 * @param response the response code, as defined in EmailServiceConstants 240 public void sendMeetingResponse(final long messageId, final int response) argument 245 mService.sendMeetingResponse(messageId, response);
|