Searched refs:response (Results 26 - 50 of 159) sorted by relevance

1234567

/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DImageRequest.java155 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { argument
159 return doParse(response);
161 VolleyLog.e("Caught OOM for %d byte image, url=%s", response.data.length, getUrl());
170 private Response<Bitmap> doParse(NetworkResponse response) { argument
171 byte[] data = response.data;
211 return Response.error(new ParseError(response));
213 return Response.success(bitmap, HttpHeaderParser.parseCacheHeaders(response));
218 protected void deliverResponse(Bitmap response) { argument
219 mListener.onResponse(response);
H A DClearCacheRequest.java63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
68 protected void deliverResponse(Object response) { argument
H A DJsonRequest.java29 * A request for retrieving a T type response body at a given URL that also
32 * @param <T> JSON type of response expected
64 protected void deliverResponse(T response) { argument
65 mListener.onResponse(response);
69 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); argument
H A DNetworkImageView.java42 * Resource ID of the image to be used if the network response fails.
160 public void onResponse(final ImageContainer response, boolean isImmediate) {
161 // If this was an immediate response that was delivered inside of a layout
169 onResponse(response, false);
175 if (response.getBitmap() != null) {
176 setImageBitmap(response.getBitmap());
/frameworks/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp94 const sp<AMessage> &msg, sp<AMessage> *response) {
95 status_t err = msg->postAndAwaitResponse(response);
101 if (response == NULL || !(*response)->findInt32("err", &err)) {
114 sp<AMessage> response; local
115 return PostAndAwaitResponse(msg, &response);
121 sp<AMessage> response; local
122 return PostAndAwaitResponse(msg, &response);
128 sp<AMessage> response; local
129 return PostAndAwaitResponse(msg, &response);
93 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument
135 sp<AMessage> response; local
183 sp<AMessage> response = new AMessage; local
342 sp<AMessage> response = new AMessage; local
362 sp<AMessage> response = new AMessage; local
1141 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1305 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1385 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1437 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1467 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1523 sp<AMessage> response = new AMessage; local
1543 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1570 AString response = "RTSP/1.0 200 OK\\r\\n"; local
1579 AppendCommonResponse( AString *response, int32_t cseq, int32_t playbackSessionID) argument
1608 AString response; local
[all...]
H A DMediaPuller.cpp51 sp<AMessage> response; local
52 status_t err = msg->postAndAwaitResponse(&response);
58 if (!response->findInt32("err", &err)) {
105 sp<AMessage> response = new AMessage; local
106 response->setInt32("err", err);
110 response->postReply(replyID);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRIL.java413 // not getting a response and release the wake lock.
418 // least DEFAULT_WAKE_LOCK_TIMEOUT but no response.
420 // Note: Keep mRequestList so that delayed response
421 // can still be handled when response finally comes.
1173 setMute (boolean enableMute, Message response) { argument
1175 = RILRequest.obtain(RIL_REQUEST_SET_MUTE, response);
1188 getMute (Message response) { argument
1190 = RILRequest.obtain(RIL_REQUEST_GET_MUTE, response);
1420 public void deleteSmsOnSim(int index, Message response) { argument
1422 response);
1435 deleteSmsOnRuim(int index, Message response) argument
1450 writeSmsToSim(int status, String smsc, String pdu, Message response) argument
1468 writeSmsToRuim(int status, String pdu, Message response) argument
1701 queryCallWaiting(int serviceClass, Message response) argument
1716 setCallWaiting(boolean enable, int serviceClass, Message response) argument
1732 setNetworkSelectionModeAutomatic(Message response) argument
1744 setNetworkSelectionModeManual(String operatorNumeric, Message response) argument
1759 getNetworkSelectionMode(Message response) argument
1771 getAvailableNetworks(Message response) argument
1783 setCallForward(int action, int cfReason, int serviceClass, String number, int timeSeconds, Message response) argument
1804 queryCallForwardStatus(int cfReason, int serviceClass, String number, Message response) argument
1824 queryCLIP(Message response) argument
1836 getBasebandVersion(Message response) argument
1847 queryFacilityLock(String facility, String password, int serviceClass, Message response) argument
1854 queryFacilityLockForApp(String facility, String password, int serviceClass, String appId, Message response) argument
1876 setFacilityLock(String facility, boolean lockState, String password, int serviceClass, Message response) argument
1883 setFacilityLockForApp(String facility, boolean lockState, String password, int serviceClass, String appId, Message response) argument
1909 sendUSSD(String ussdString, Message response) argument
1927 cancelPendingUssd(Message response) argument
1949 invokeOemRilRequestRaw(byte[] data, Message response) argument
1963 invokeOemRilRequestStrings(String[] strings, Message response) argument
1981 setBandMode(int bandMode, Message response) argument
2003 queryAvailableBandMode(Message response) argument
2017 sendTerminalResponse(String contents, Message response) argument
2031 sendEnvelope(String contents, Message response) argument
2045 sendEnvelopeWithStatus(String contents, Message response) argument
2060 handleCallSetupRequestFromSim( boolean accept, Message response) argument
2079 setPreferredNetworkType(int networkType , Message response) argument
2098 getPreferredNetworkType(Message response) argument
2111 getNeighboringCids(Message response) argument
2124 setLocationUpdates(boolean enable, Message response) argument
2193 getGsmBroadcastConfig(Message response) argument
2205 setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response) argument
2234 setGsmBroadcastActivation(boolean activate, Message response) argument
4268 unsljLog(int response) argument
4272 unsljLogMore(int response, String more) argument
4276 unsljLogRet(int response, Object ret) argument
4280 unsljLogvRet(int response, Object ret) argument
4327 getDeviceIdentity(Message response) argument
4337 getCDMASubscription(Message response) argument
4355 queryCdmaRoamingPreference(Message response) argument
4368 setCdmaRoamingPreference(int cdmaRoamingType, Message response) argument
4385 setCdmaSubscriptionSource(int cdmaSubscription , Message response) argument
4402 getCdmaSubscriptionSource(Message response) argument
4415 queryTTYMode(Message response) argument
4428 setTTYMode(int ttyMode, Message response) argument
4446 sendCDMAFeatureCode(String FeatureCode, Message response) argument
4458 getCdmaBroadcastConfig(Message response) argument
4465 setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] configs, Message response) argument
4500 setCdmaBroadcastActivation(boolean activate, Message response) argument
4515 exitEmergencyCallbackMode(Message response) argument
4524 requestIsimAuthentication(String nonce, Message response) argument
4535 requestIccSimAuthentication(int authContext, String data, String aid, Message response) argument
4564 setCellInfoListRate(int rateInMillis, Message response) argument
4649 iccOpenLogicalChannel(String AID, Message response) argument
4663 iccCloseLogicalChannel(int channel, Message response) argument
4678 iccTransmitApduLogicalChannel(int channel, int cla, int instruction, int p1, int p2, int p3, String data, Message response) argument
4693 iccTransmitApduBasicChannel(int cla, int instruction, int p1, int p2, int p3, String data, Message response) argument
4702 iccTransmitApduHelper(int rilCommand, int channel, int cla, int instruction, int p1, int p2, int p3, String data, Message response) argument
4720 nvReadItem(int itemID, Message response) argument
4732 nvWriteItem(int itemID, String itemValue, Message response) argument
4745 nvWriteCdmaPrl(byte[] preferredRoamingList, Message response) argument
4757 nvResetConfig(int resetType, Message response) argument
4770 setRadioCapability(RadioCapability rc, Message response) argument
4790 getRadioCapability(Message response) argument
4800 startLceService(int reportIntervalMs, boolean pullMode, Message response) argument
4815 stopLceService(Message response) argument
4824 pullLceData(Message response) argument
4835 getModemActivityInfo(Message response) argument
[all...]
H A DPhone.java534 * Sends user response to a USSD REQUEST message. An MmiCode instance
535 * representing this response is sent to handlers registered with
538 * @param ussdMessge Message to send in the response.
929 * this api can send single character and multiple character, also, this api has response
994 * @return true if req is sent, false otherwise. If req is not sent there will be no response,
1117 * On completion, <code>response.obj</code> is set to an AsyncResult with
1120 * <li><code>response.obj.result</code> will be a <code>List</code> of
1122 * <li><code>response.obj.exception</code> will be set with an exception
1126 void getAvailableNetworks(Message response); argument
1132 * @param response Th
1137 setNetworkSelectionModeAutomatic(Message response) argument
1147 selectNetworkManually(OperatorInfo network, Message response) argument
1157 getNetworkSelectionMode(Message response) argument
1165 setPreferredNetworkType(int networkType, Message response) argument
1172 getPreferredNetworkType(Message response) argument
1200 getNeighboringCids(Message response) argument
1279 invokeOemRilRequestRaw(byte[] data, Message response) argument
1295 invokeOemRilRequestStrings(String[] strings, Message response) argument
1308 getDataCallList(Message response) argument
1342 setBandMode(int bandMode, Message response) argument
1352 queryAvailableBandMode(Message response) argument
1379 queryCdmaRoamingPreference(Message response) argument
1386 setCdmaRoamingPreference(int cdmaRoamingType, Message response) argument
1393 setCdmaSubscription(int cdmaSubscriptionType, Message response) argument
1539 activateCellBroadcastSms(int activate, Message response) argument
1547 getCellBroadcastSmsConfig(Message response) argument
1557 setCellBroadcastSmsConfig(int[] configValuesArray, Message response) argument
1862 nvReadItem(int itemID, Message response) argument
1872 nvWriteItem(int itemID, String itemValue, Message response) argument
1881 nvWriteCdmaPrl(byte[] preferredRoamingList, Message response) argument
1891 nvResetConfig(int resetType, Message response) argument
1978 setRadioCapability(RadioCapability rc, Message response) argument
2079 getModemActivityInfo(Message response) argument
[all...]
H A DPhoneProxy.java903 public void getAvailableNetworks(Message response) { argument
904 mActivePhone.getAvailableNetworks(response);
908 public void setNetworkSelectionModeAutomatic(Message response) { argument
909 mActivePhone.setNetworkSelectionModeAutomatic(response);
913 public void getNetworkSelectionMode(Message response) { argument
914 mActivePhone.getNetworkSelectionMode(response);
918 public void selectNetworkManually(OperatorInfo network, Message response) { argument
919 mActivePhone.selectNetworkManually(network, response);
923 public void setPreferredNetworkType(int networkType, Message response) { argument
924 mActivePhone.setPreferredNetworkType(networkType, response);
928 getPreferredNetworkType(Message response) argument
933 getNeighboringCids(Message response) argument
958 invokeOemRilRequestRaw(byte[] data, Message response) argument
963 invokeOemRilRequestStrings(String[] strings, Message response) argument
968 getDataCallList(Message response) argument
998 setBandMode(int bandMode, Message response) argument
1003 queryAvailableBandMode(Message response) argument
1028 queryCdmaRoamingPreference(Message response) argument
1033 setCdmaRoamingPreference(int cdmaRoamingType, Message response) argument
1038 setCdmaSubscription(int cdmaSubscriptionType, Message response) argument
1138 activateCellBroadcastSms(int activate, Message response) argument
1143 getCellBroadcastSmsConfig(Message response) argument
1148 setCellBroadcastSmsConfig(int[] configValuesArray, Message response) argument
1338 nvReadItem(int itemID, Message response) argument
1343 nvWriteItem(int itemID, String itemValue, Message response) argument
1348 nvWriteCdmaPrl(byte[] preferredRoamingList, Message response) argument
1353 nvResetConfig(int resetType, Message response) argument
1518 setRadioCapability(RadioCapability rc, Message response) argument
1584 getModemActivityInfo(Message response) argument
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp48 const sp<AMessage> &msg, sp<AMessage> *response) {
49 status_t err = msg->postAndAwaitResponse(response);
55 if (!(*response)->findInt32("err", &err)) {
64 sp<AMessage> response; local
65 return PostAndAwaitResponse(msg, &response);
78 sp<AMessage> response; local
79 return PostAndAwaitResponse(msg, &response);
84 sp<AMessage> response; local
85 return PostAndAwaitResponse(msg, &response);
90 sp<AMessage> response; local
47 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument
96 sp<AMessage> response; local
102 sp<AMessage> response; local
121 sp<AMessage> response = new AMessage; local
142 sp<AMessage> response = new AMessage; local
164 sp<AMessage> response = new AMessage; local
197 sp<AMessage> response = new AMessage; local
220 sp<AMessage> response = new AMessage; local
243 sp<AMessage> response = new AMessage; local
[all...]
/frameworks/base/core/java/android/accounts/
H A DAccountManagerResponse.java25 * Used to return a response to the AccountManager.
32 public AccountManagerResponse(IAccountManagerResponse response) { argument
33 mResponse = response;
/frameworks/base/core/java/android/content/
H A DIRestrictionsManager.aidl32 void notifyPermissionResponse(in String packageName, in PersistableBundle response);
/frameworks/base/core/java/com/android/internal/widget/
H A DVerifyCredentialResponse.java45 VerifyCredentialResponse response = new VerifyCredentialResponse(responseCode, 0, null);
47 response.setTimeout(source.readInt());
53 response.setPayload(payload);
56 return response;
/frameworks/volley/src/main/java/com/android/volley/
H A DCacheDispatcher.java27 * Any deliverable response is posted back to the caller via a
118 Response<?> response = request.parseNetworkResponse(
123 // Completely unexpired cache hit. Just deliver the response.
124 mDelivery.postResponse(request, response);
126 // Soft-expired cache hit. We can deliver the cached response,
132 // Mark the response as intermediate.
133 response.intermediate = true;
135 // Post the intermediate response back to the user and have
137 mDelivery.postResponse(request, response, new Runnable() {
H A DNetworkDispatcher.java115 // If the server returned 304 AND we delivered a response already,
116 // we're done -- don't deliver a second identical response.
122 // Parse the response here on the worker thread.
123 Response<?> response = request.parseNetworkResponse(networkResponse);
128 if (request.shouldCache() && response.cacheEntry != null) {
129 mCache.put(request.getCacheKey(), response.cacheEntry);
133 // Post the response back.
135 mDelivery.postResponse(request, response);
/frameworks/volley/src/test/java/com/android/volley/
H A DRequestTest.java61 protected void deliverResponse(Object response) { argument
65 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
89 protected void deliverResponse(Object response) { argument
93 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
/frameworks/volley/src/test/java/com/android/volley/mock/
H A DMockRequest.java64 protected void deliverResponse(byte[] response) { argument
96 protected Response<byte[]> parseNetworkResponse(NetworkResponse response) { argument
98 return Response.success(response.data, CacheTestUtils.makeRandomCacheEntry(response.data));
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java46 private NetworkResponse response; field in class:HttpHeaderParserTest
51 response = new NetworkResponse(0, null, headers, false);
55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
106 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
123 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
135 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
153 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTSPConnection.cpp549 ALOGE("Error reading rtsp response. (%s)", strerror(errno));
634 sp<ARTSPResponse> response = new ARTSPResponse; local
635 response->mStatusLine = statusLine;
637 ALOGI("status: %s", response->mStatusLine.c_str());
639 ssize_t space1 = response->mStatusLine.find(" ");
643 ssize_t space2 = response->mStatusLine.find(" ", space1 + 1);
650 if (!IsRTSPVersion(AString(response->mStatusLine, 0, space1))) {
653 response->mStatusLine,
655 response->mStatusLine.size() - space2 - 1)));
659 response
773 AString response; local
835 findPendingRequest( const sp<ARTSPResponse> &response, ssize_t *index) const argument
865 notifyResponseListener( const sp<ARTSPResponse> &response) argument
889 parseAuthMethod(const sp<ARTSPResponse> &response) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DTestHttpClient.java105 HttpResponse response = this.httpexecutor.execute(request, conn, this.context);
106 response.setParams(
107 new DefaultedHttpParams(response.getParams(), this.params));
108 this.httpexecutor.postProcess(response, this.httpproc, this.context);
109 return response;
112 public boolean keepAlive(final HttpResponse response) { argument
113 return this.connStrategy.keepAlive(response, this.context);
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp269 const sp<AMessage> &msg, sp<AMessage> *response) {
270 status_t err = msg->postAndAwaitResponse(response);
276 if (!(*response)->findInt32("err", &err)) {
290 sp<AMessage> response = new AMessage; local
291 response->setInt32("err", finalErr);
292 response->postReply(replyID);
383 sp<AMessage> response; local
384 err = PostAndAwaitResponse(msg, &response);
396 sp<AMessage> response; local
397 return PostAndAwaitResponse(msg, &response);
268 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument
449 sp<AMessage> response; local
473 sp<AMessage> response; local
481 sp<AMessage> response; local
489 sp<AMessage> response; local
550 sp<AMessage> response; local
558 sp<AMessage> response; local
570 sp<AMessage> response; local
578 sp<AMessage> response; local
585 sp<AMessage> response; local
643 sp<AMessage> response; local
674 sp<AMessage> response; local
684 sp<AMessage> response; local
705 sp<AMessage> response; local
725 sp<AMessage> response; local
735 sp<AMessage> response; local
743 sp<AMessage> response; local
750 sp<AMessage> response; local
757 sp<AMessage> response; local
771 sp<AMessage> response; local
785 sp<AMessage> response; local
802 sp<AMessage> response; local
811 sp<AMessage> response; local
820 sp<AMessage> response; local
880 sp<AMessage> response; local
933 sp<AMessage> response = new AMessage; local
953 sp<AMessage> response = new AMessage; local
1194 sp<AMessage> response = new AMessage; local
1212 sp<AMessage> response = new AMessage(); local
1225 sp<AMessage> response = new AMessage; local
1596 sp<AMessage> response = new AMessage; local
1777 sp<AMessage> response = new AMessage; local
1801 sp<AMessage> response = new AMessage; local
2090 sp<AMessage> response = new AMessage; local
2121 sp<AMessage> response = new AMessage; local
2692 sp<AMessage> response; local
[all...]
/frameworks/base/core/java/android/net/
H A DPacProxySelector.java67 String response = null;
75 response = mProxyService.resolvePacFile(uri.getHost(), urlString);
79 if (response == null) {
83 return parseResponse(response);
86 private static List<Proxy> parseResponse(String response) { argument
87 String[] split = response.split(";");
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DSession.cpp45 status_t Session::provideKeyResponse(const Vector<uint8_t>& response) { argument
47 reinterpret_cast<const char*>(response.array()), response.size());
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DAbstractProxyTest.java65 .setBody("this response comes via HTTPS"));
75 HttpResponse response = httpClient.execute(
77 assertEquals("this response comes via HTTPS", contentToString(response));
115 .setBody("this response comes via a proxy");
124 HttpResponse response = httpProxyClient.execute(request);
125 assertEquals("this response comes via a proxy", contentToString(response));
157 .setBody("this response comes via a secure proxy"));
169 HttpResponse response
278 contentToString(HttpResponse response) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaHTTPConnection.java174 int response;
205 response = mConnection.getResponseCode();
206 if (response != HttpURLConnection.HTTP_MULT_CHOICE &&
207 response != HttpURLConnection.HTTP_MOVED_PERM &&
208 response != HttpURLConnection.HTTP_MOVED_TEMP &&
209 response != HttpURLConnection.HTTP_SEE_OTHER &&
210 response != HTTP_TEMP_REDIRECT) {
220 if (response == HTTP_TEMP_REDIRECT &&
222 // "If the 307 status code is received in response to a
245 if (response !
[all...]

Completed in 477 milliseconds

1234567