Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java55 SnepMessage response = null; in testGetSmallNdef() local
58 response = client.getMessage(); in testGetSmallNdef()
63 assertNotNull(response); in testGetSmallNdef()
64 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetSmallNdef()
86 SnepMessage response = null; in testGetLargeNdef() local
89 response = client.getMessage(); in testGetLargeNdef()
94 assertNotNull(response); in testGetLargeNdef()
95 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetLargeNdef()
117 SnepMessage response = null; in testGetExcessiveNdef() local
120 response = client.getMessage(); in testGetExcessiveNdef()
[all …]
DSnepValidationClientTests.java152 SnepMessage response = client.get(msg); in testUnavailable() local
153 assertEquals(SnepMessage.RESPONSE_NOT_FOUND, response.getField()); in testUnavailable()
172 SnepMessage response = client.get(msg); in testUndeliverable() local
173 assertEquals(SnepMessage.RESPONSE_EXCESS_DATA, response.getField()); in testUndeliverable()
DSnepDefaultClientTests.java71 SnepMessage response = client.get(getSmallNdef()); in testGetFail() local
72 assertEquals(SnepMessage.RESPONSE_NOT_IMPLEMENTED, response.getField()); in testGetFail()
DSnepCustomClientTests.java71 SnepMessage response = client.get(getSmallNdef()); in testGetSmall() local
72 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetSmall()
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java242 String response; in checkSettings() local
243 while ((response = mTransport.readLine()) != null) { in checkSettings()
244 parser.parseMultiLine(response); in checkSettings()
309 String response = executeSimpleCommand("STAT"); in open() local
310 String[] parts = response.split(" "); in open()
460 String response = executeSimpleCommand("UIDL " + msgNum); in indexMsgNums() local
461 if (!parser.parseSingleLine(response)) { in indexMsgNums()
469 String response = executeSimpleCommand("UIDL"); in indexMsgNums() local
470 while ((response = mTransport.readLine()) != null) { in indexMsgNums()
471 if (!parser.parseMultiLine(response)) { in indexMsgNums()
[all …]
DImapFolder.java269 for (ImapResponse response : responseList) { in copyMessages()
271 if (response.isBad() || (response.isNo() && response.isTagged())) { in copyMessages()
272 String responseText = response.getStatusResponseTextOrEmpty().getString(); in copyMessages()
276 if (!response.isTagged()) { in copyMessages()
284 ImapList copyResponse = response.getListOrEmpty(1); in copyMessages()
350 for (ImapResponse response : responses) { in getUnreadMessageCount()
351 if (response.isDataResponse(0, ImapConstants.STATUS)) { in getUnreadMessageCount()
352 unreadMessageCount = response.getListOrEmpty(2) in getUnreadMessageCount()
372 for (ImapResponse response : responses) { in getSearchUids()
373 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids()
[all …]
DImapConnection.java272 ImapResponse response = readResponse(); in sendComplexCommand() local
274 if (!response.isContinuationRequest()) { in sendComplexCommand()
299 ImapResponse response; in getCommandResponses() local
301 response = mParser.readResponse(); in getCommandResponses()
302 responses.add(response); in getCommandResponses()
303 } while (!response.isTagged()); in getCommandResponses()
304 if (!response.isOk()) { in getCommandResponses()
305 final String toString = response.toString(); in getCommandResponses()
306 final String alert = response.getAlertTextOrEmpty().getString(); in getCommandResponses()
426 for (ImapResponse response: responseList) { in doGetNamespace()
[all …]
/packages/apps/Email/src/com/android/email/service/
DEasTestAuthenticatorService.java48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
71 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
78 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
84 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
89 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
101 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
107 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
DPopImapAuthenticatorService.java56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
91 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
98 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
104 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
109 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
121 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
127 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
DEasAuthenticatorService.java58 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
113 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
120 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
126 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
131 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
143 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
149 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasResponse.java52 private EasResponse(HttpResponse response) { in EasResponse() argument
53 mResponse = response; in EasResponse()
54 mEntity = (response == null) ? null : mResponse.getEntity(); in EasResponse()
67 HttpResponse response = client.execute(request); in fromHttpRequest() local
68 EasResponse result = new EasResponse(response); in fromHttpRequest()
69 if (isAuthError(response.getStatusLine().getStatusCode()) in fromHttpRequest()
DMeetingResponseRequest.java25 MeetingResponseRequest(long messageId, int response) { in MeetingResponseRequest() argument
27 mResponse = response; in MeetingResponseRequest()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
DTestAuthenticator.java62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
82 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
95 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument
101 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
115 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() argument
126 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/packages/apps/Browser/src/com/android/browser/
DFetchUrlMimeType.java87 HttpResponse response; in run() local
91 response = client.execute(request); in run()
95 if (response.getStatusLine().getStatusCode() == 200) { in run()
96 Header header = response.getFirstHeader("Content-Type"); in run()
104 Header contentDispositionHeader = response.getFirstHeader("Content-Disposition"); in run()
DGoogleAccountLogin.java117 HttpResponse response = client.execute(request); in run() local
118 int status = response.getStatusLine().getStatusCode(); in run()
122 + response.getStatusLine().getReasonPhrase()); in run()
137 HttpEntity entity = response.getEntity(); in run()
DDownloadTouchIcon.java128 HttpResponse response = client.execute(request); in doInBackground() local
129 if (response.getStatusLine().getStatusCode() == 200) { in doInBackground()
130 HttpEntity entity = response.getEntity(); in doInBackground()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java248 HttpResponse response = sendRequest(state, client, request); in executeDownload() local
249 handleExceptionalStatus(state, innerState, response); in executeDownload()
255 processResponseHeaders(state, innerState, response); in executeDownload()
256 InputStream entityStream = openResponseEntity(state, response); in executeDownload()
523 private InputStream openResponseEntity(State state, HttpResponse response) in openResponseEntity() argument
526 return response.getEntity().getContent(); in openResponseEntity()
545 private void processResponseHeaders(State state, InnerState innerState, HttpResponse response) in processResponseHeaders() argument
552 readResponseHeaders(state, innerState, response); in processResponseHeaders()
607 private void readResponseHeaders(State state, InnerState innerState, HttpResponse response) in readResponseHeaders() argument
609 Header header = response.getFirstHeader("Content-Disposition"); in readResponseHeaders()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapResponseParser.java161 ImapResponse response = null; in readResponse() local
163 response = parseResponse(); in readResponse()
165 Log.d(Logging.LOG_TAG, "<<< " + response.toString()); in readResponse()
179 if (response.is(0, ImapConstants.BYE)) { in readResponse()
181 response.destroy(); in readResponse()
184 mResponsesToDestroy.add(response); in readResponse()
185 return response; in readResponse()
/packages/apps/Calendar/src/com/android/calendar/
DQuickResponseSettings.java54 for (String response : mResponses) { in onCreate()
57 et.setTitle(response); // Display Text in onCreate()
58 et.setText(response); // Value to edit in onCreate()
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
DImsFrameworkApp.java122 String response = (String) ar.result; in handleMessage() local
123 Log.d(TAG, "requestIsimAuthentication response: " + response); in handleMessage()
129 Message response = mHandler.obtainMessage(EVENT_ISIM_AUTHENTICATION_DONE); in tryIsimAuthentication() local
133 phone.requestIsimAuthentication("DUMMY-BASE64-NONCE", response); in tryIsimAuthentication()
/packages/apps/Email/src/com/android/email/activity/
DMessageViewFragment.java104 public void onRespondedToInvite(int response); in onRespondedToInvite() argument
131 @Override public void onRespondedToInvite(int response) { } in onRespondedToInvite() argument
363 private void onRespondToInvite(int response, int toastResId) { in onRespondToInvite() argument
367 if (mPreviousMeetingResponse != response) { in onRespondToInvite()
368 getController().sendMeetingResponse(message.mId, response); in onRespondToInvite()
369 mPreviousMeetingResponse = response; in onRespondToInvite()
372 mCallback.onRespondedToInvite(response); in onRespondToInvite()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java117 HttpResponse response = mHttpClient.execute(method); in query() local
118 if (response.getStatusLine().getStatusCode() == 200) { in query()
125 JSONArray results = new JSONArray(EntityUtils.toString(response.getEntity())); in query()
131 if (DBG) Log.d(LOG_TAG, "Request failed " + response.getStatusLine()); in query()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java468 NdefMessage response = null; in doSnepProtocol() local
472 response = snepResponse.getNdefMessage(); in doSnepProtocol()
474 if (response != null) { in doSnepProtocol()
475 handoverManager.doHandoverUri(uris, response); in doSnepProtocol()
514 NdefMessage response = mHandoverManager.tryHandoverRequest(msg);
516 if (response != null) {
518 return SnepMessage.getSuccessResponse(response);
/packages/apps/Mms/src/com/android/mms/transaction/
DSendTransaction.java115 byte[] response = sendPdu(SendingProgressTokenManager.get(tokenKey), in run()
120 String respStr = new String(response); in run()
124 SendConf conf = (SendConf) new PduParser(response).parse(); in run()
/packages/apps/Browser/src/com/android/browser/search/
DOpenSearchSearchEngine.java177 HttpResponse response = mHttpClient.execute(method); in readUrl() local
178 if (response.getStatusLine().getStatusCode() == 200) { in readUrl()
179 return EntityUtils.toString(response.getEntity()); in readUrl()

12