Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 183) sorted by relevance

12345678

/frameworks/base/tests/CoreTests/android/core/
DRequestAPITest.java70 public void verifyFailure(Map<String, String> headers) { in verifyFailure() argument
74 "http://localhost:8080/test1", "GET", headers, null, in verifyFailure()
90 Map<String, String> headers = new HashMap<>(); in testRequestAddNullHeader() local
91 headers.put(null, null); in testRequestAddNullHeader()
92 verifyFailure(headers); in testRequestAddNullHeader()
102 Map<String, String> headers = new HashMap<>(); in testRequestAddNullValue() local
103 headers.put("TestHeader", null); in testRequestAddNullValue()
104 verifyFailure(headers); in testRequestAddNullValue()
114 Map<String, String> headers = new HashMap<>(); in testRequestAddEmptyValue() local
115 headers.put("TestHeader", ""); in testRequestAddEmptyValue()
[all …]
DTestEventHandler.java220 public void headers(Headers headers) { in headers() method in TestEventHandler
243 s = Long.toString(headers.getContentLength()); in headers()
246 s = headers.getContentType(); in headers()
249 s = headers.getContentEncoding(); in headers()
252 s = headers.getLocation(); in headers()
255 s = headers.getWwwAuthenticate(); in headers()
258 s = headers.getProxyAuthenticate(); in headers()
261 s = headers.getContentDisposition(); in headers()
264 s = headers.getAcceptRanges(); in headers()
267 s = headers.getExpires(); in headers()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DSDPLoader.cpp53 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { in load() argument
59 if (headers != NULL) { in load()
62 new KeyedVector<String8, String8>(*headers)); in load()
92 KeyedVector<String8, String8> *headers = NULL; in onLoad() local
93 msg->findPointer("headers", (void **)&headers); in onLoad()
98 err = mHTTPDataSource->connect(url.c_str(), headers); in onLoad()
105 if (headers != NULL) { in onLoad()
106 delete headers; in onLoad()
107 headers = NULL; in onLoad()
DAMPEG4ElementaryAssembler.cpp274 List<AUHeader> headers; in addPacket() local
286 size_t n = headers.empty() ? mIndexLength : mIndexDeltaLength; in addPacket()
292 if (headers.empty()) { in addPacket()
344 headers.push_back(header); in addPacket()
363 for (List<AUHeader>::iterator it = headers.begin(); in addPacket()
364 it != headers.end(); ++it) { in addPacket()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DPduParser.java244 PduHeaders headers = new PduHeaders(); in parseHeaders() local
286 headers.setOctet(messageType, headerField); in parseHeaders()
333 headers.setOctet(value, headerField); in parseHeaders()
356 headers.setLongInteger(value, headerField); in parseHeaders()
375 headers.setLongInteger(value, headerField); in parseHeaders()
411 headers.setTextString(value, headerField); in parseHeaders()
440 headers.setEncodedStringValue(value, headerField); in parseHeaders()
479 headers.appendEncodedStringValue(value, headerField); in parseHeaders()
521 headers.setLongInteger(timeValue, headerField); in parseHeaders()
575 headers.setEncodedStringValue(from, PduHeaders.FROM); in parseHeaders()
[all …]
DRetrieveConf.java47 RetrieveConf(PduHeaders headers) { in RetrieveConf() argument
48 super(headers); in RetrieveConf()
58 RetrieveConf(PduHeaders headers, PduBody body) { in RetrieveConf() argument
59 super(headers, body); in RetrieveConf()
DPduPersister.java316 PduHeaders headers, int mapColumn) { in setEncodedStringValueToHeaders() argument
323 headers.setEncodedStringValue(value, mapColumn); in setEncodedStringValueToHeaders()
329 PduHeaders headers, int mapColumn) { in setTextStringToHeaders() argument
332 headers.setTextString(getBytes(s), mapColumn); in setTextStringToHeaders()
338 PduHeaders headers, int mapColumn) throws InvalidHeaderValueException { in setOctetToHeaders() argument
341 headers.setOctet(b, mapColumn); in setOctetToHeaders()
347 PduHeaders headers, int mapColumn) { in setLongToHeaders() argument
350 headers.setLongInteger(l, mapColumn); in setLongToHeaders()
495 private void loadAddress(long msgId, PduHeaders headers) { in loadAddress() argument
509 headers.setEncodedStringValue( in loadAddress()
[all …]
DSendReq.java80 SendReq(PduHeaders headers) { in SendReq() argument
81 super(headers); in SendReq()
91 SendReq(PduHeaders headers, PduBody body) { in SendReq() argument
92 super(headers, body); in SendReq()
DSendConf.java45 SendConf(PduHeaders headers) { in SendConf() argument
46 super(headers); in SendConf()
DAcknowledgeInd.java53 AcknowledgeInd(PduHeaders headers) { in AcknowledgeInd() argument
54 super(headers); in AcknowledgeInd()
/frameworks/base/libs/incident/tests/
DIncidentReportArgs_test.cpp66 vector<vector<uint8_t>> headers; in TEST() local
67 headers.push_back(header1); in TEST()
68 headers.push_back(header2); in TEST()
69 EXPECT_EQ(headers, args2.headers()); in TEST()
DIncidentReportRequest_test.cpp115 vector<vector<uint8_t>> headers; in TEST() local
116 headers.push_back(header1); in TEST()
117 headers.push_back(header2); in TEST()
118 EXPECT_EQ(headers, args->headers()); in TEST()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSipMessageParsingUtils.java120 List<Pair<String, String>> headers = parseHeaders(headerString, true, in getTransactionId() local
122 for (Pair<String, String> header : headers) { in getTransactionId()
175 List<Pair<String, String>> headers = parseHeaders(headerString, true, in getCallId() local
177 return !headers.isEmpty() ? headers.get(0).second : null; in getCallId()
185 List<Pair<String, String>> headers = parseHeaders(headerString, true, in getFromTag() local
187 if (headers.isEmpty()) { in getFromTag()
191 return getParameterValue(headers.get(0).second, TAG_PARAM_KEY); in getFromTag()
199 List<Pair<String, String>> headers = parseHeaders(headerString, true, in getToTag() local
201 if (headers.isEmpty()) { in getToTag()
205 return getParameterValue(headers.get(0).second, TAG_PARAM_KEY); in getToTag()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java101 public final Map<String, String> headers; field in LocalRenderer.PlayerContent
103 public PlayerContent(String source, Map<String, String> headers) { in PlayerContent() argument
105 this.headers = headers; in PlayerContent()
151 Header[] headers = response.getAllHeaders(); in doInBackground() local
152 if (headers != null && headers.length > 0) { in doInBackground()
153 for (Header header : headers) { in doInBackground()
328 if (mContent.headers != null) { in onError()
329 for (String key : mContent.headers.keySet()) { in onError()
330 request.addHeader(key, mContent.headers.get(key)); in onError()
393 Map<String, String> headers = null; // request.mHeaders; in setContent() local
[all …]
DRequestUtils.java64 public ContentBuilder setHeaders(HashMap<String, String> headers) { in setHeaders() argument
65 mBundle.putSerializable(EXTRA_KEY_HEADERS, headers); in setHeaders()
/frameworks/base/services/core/java/com/android/server/
DBootReceiver.java279 final String headers = getBootHeadersToLogAndUpdate(); in logBootEvents() local
284 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents()
301 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents()
304 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
306 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
308 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
310 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents()
312 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg", in logBootEvents()
314 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents()
316 if (db != null) db.addText("SYSTEM_RESTART", headers); in logBootEvents()
[all …]
/frameworks/base/core/java/android/webkit/
DUrlInterceptRegistry.java130 String url, Map<String, String> headers) { in getSurrogate() argument
137 CacheResult result = handler.service(url, headers); in getSurrogate()
160 String url, Map<String, String> headers) { in getPluginData() argument
167 PluginData data = handler.getPluginData(url, headers); in getPluginData()
DUrlInterceptHandler.java48 CacheResult service(String url, @Nullable Map<String, String> headers); in service() argument
65 PluginData getPluginData(String url, @Nullable Map<String, String> headers); in getPluginData() argument
/frameworks/av/media/libmedia/
DIMediaHTTPConnection.cpp46 const char *uri, const KeyedVector<String8, String8> *headers) { in connect()
55 if (headers != NULL) { in connect()
56 for (size_t i = 0; i < headers->size(); ++i) { in connect()
57 String16 key(headers->keyAt(i).c_str()); in connect()
58 String16 val(headers->valueAt(i).c_str()); in connect()
DIMediaMetadataRetriever.cpp64 const KeyedVector<String8, String8> *headers) in setDataSource() argument
74 if (headers == NULL) { in setDataSource()
78 data.writeInt32(headers->size()); in setDataSource()
79 for (size_t i = 0; i < headers->size(); ++i) { in setDataSource()
80 data.writeString8(headers->keyAt(i)); in setDataSource()
81 data.writeString8(headers->valueAt(i)); in setDataSource()
260 KeyedVector<String8, String8> headers; in onTransact() local
274 if (headers.add(key, value) < 0) { in onTransact()
281 httpService, srcUrl, numHeaders > 0 ? &headers : NULL)); in onTransact()
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp40 const KeyedVector<String8, String8> &headers) : in HTTPDownloader() argument
42 mExtraHeaders(headers), in HTTPDownloader()
99 KeyedVector<String8, String8> headers = mExtraHeaders; in fetchBlock() local
101 headers.add( in fetchBlock()
112 status_t err = mHTTPDataSource->connect(url, &headers); in fetchBlock()
/frameworks/av/media/libdatasource/
DDataSourceFactory.cpp49 const KeyedVector<String8, String8> *headers, in CreateFromURI() argument
76 if (headers != NULL) { in CreateFromURI()
77 nonCacheSpecificHeaders = *headers; in CreateFromURI()
DMediaHTTP.cpp43 const KeyedVector<String8, String8> *headers, in connect() argument
50 if (headers != NULL) { in connect()
51 extHeaders = *headers; in connect()
/frameworks/base/media/java/android/media/
DMediaExtractor.java106 @NonNull Context context, @NonNull Uri uri, @Nullable Map<String, String> headers) in setDataSource() argument
141 setDataSource(uri.toString(), headers); in setDataSource() local
156 public final void setDataSource(@NonNull String path, @Nullable Map<String, String> headers) in setDataSource() argument
161 if (headers != null) { in setDataSource()
162 keys = new String[headers.size()]; in setDataSource()
163 values = new String[headers.size()]; in setDataSource()
166 for (Map.Entry<String, String> entry: headers.entrySet()) { in setDataSource()
/frameworks/base/core/tests/coretests/src/android/net/http/
DCookiesTest.java111 private void assertContains(List<String> headers, String header) { in assertContains() argument
112 assertTrue(headers.toString(), headers.contains(header)); in assertContains()

12345678