/frameworks/base/tests/CoreTests/android/core/ |
D | RequestAPITest.java | 69 public void verifyFailure(Map<String, String> headers) { in verifyFailure() argument 73 "http://localhost:8080/test1", "GET", headers, null, in verifyFailure() 89 Map<String, String> headers = new HashMap<>(); in testRequestAddNullHeader() local 90 headers.put(null, null); in testRequestAddNullHeader() 91 verifyFailure(headers); in testRequestAddNullHeader() 101 Map<String, String> headers = new HashMap<>(); in testRequestAddNullValue() local 102 headers.put("TestHeader", null); in testRequestAddNullValue() 103 verifyFailure(headers); in testRequestAddNullValue() 113 Map<String, String> headers = new HashMap<>(); in testRequestAddEmptyValue() local 114 headers.put("TestHeader", ""); in testRequestAddEmptyValue() [all …]
|
D | TestEventHandler.java | 220 public void headers(Headers headers) { in headers() argument 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/ |
D | SDPLoader.cpp | 52 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { in load() argument 58 if (headers != NULL) { in load() 61 new KeyedVector<String8, String8>(*headers)); in load() 91 KeyedVector<String8, String8> *headers = NULL; in onLoad() local 92 msg->findPointer("headers", (void **)&headers); in onLoad() 97 err = mHTTPDataSource->connect(url.c_str(), headers); in onLoad() 104 if (headers != NULL) { in onLoad() 105 delete headers; in onLoad() 106 headers = NULL; in onLoad()
|
D | AMPEG4ElementaryAssembler.cpp | 274 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/startop/scripts/app_startup/lib/ |
D | data_frame_test.py | 25 assert df.headers == [] 31 assert df.headers == ['TotalTime_ms', 'Displayed_ms'] 37 assert df.headers == ['many', 'none'] 42 assert df.headers == ['many', 'none'] 49 assert df.headers == [] 57 assert df.headers == ['TotalTime_ms', 'Displayed_ms'] 65 assert df.headers == ['TotalTime_ms', 'Displayed_ms'] 72 assert df.headers == ['TotalTime_ms', 'Displayed_ms']
|
D | data_frame.py | 45 other_headers = other.headers 50 def _append_row(self, headers: List[str], data: List[object]): 51 new_row = {k:v for k,v in zip(headers, data)} 54 for header in headers: 77 return self.headers == other.headers and self.data_table == other.data_table 83 def headers(self) -> List[str]: member in DataFrame
|
/frameworks/base/telephony/common/com/google/android/mms/pdu/ |
D | PduParser.java | 244 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 …]
|
D | RetrieveConf.java | 47 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()
|
D | SendReq.java | 79 SendReq(PduHeaders headers) { in SendReq() argument 80 super(headers); in SendReq() 90 SendReq(PduHeaders headers, PduBody body) { in SendReq() argument 91 super(headers, body); in SendReq()
|
D | PduPersister.java | 316 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 …]
|
/frameworks/base/libs/incident/tests/ |
D | IncidentReportArgs_test.cpp | 66 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()
|
D | IncidentReportRequest_test.cpp | 115 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/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 101 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 …]
|
/frameworks/base/obex/javax/obex/ |
D | ServerSession.java | 318 byte[] headers = new byte[length - 5]; in handleSetPathRequest() 319 bytesReceived = mInput.read(headers); in handleSetPathRequest() 321 while (bytesReceived != headers.length) { in handleSetPathRequest() 322 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleSetPathRequest() 326 ObexHelper.updateHeaderSet(request, headers); in handleSetPathRequest() 440 byte[] headers = new byte[length - 3]; in handleDisconnectRequest() 441 bytesReceived = mInput.read(headers); in handleDisconnectRequest() 443 while (bytesReceived != headers.length) { in handleDisconnectRequest() 444 bytesReceived += mInput.read(headers, bytesReceived, headers.length in handleDisconnectRequest() 448 ObexHelper.updateHeaderSet(request, headers); in handleDisconnectRequest() [all …]
|
D | HeaderSet.java | 646 byte[] headers = out.toByteArray(); in getHeaderList() 649 if ((headers == null) || (headers.length == 0)) { in getHeaderList() 653 int[] result = new int[headers.length]; in getHeaderList() 654 for (int i = 0; i < headers.length; i++) { in getHeaderList() 657 result[i] = headers[i] & 0xFF; in getHeaderList()
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 200 final String headers = getBootHeadersToLogAndUpdate(); in logBootEvents() local 205 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents() 228 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents() 231 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents() 233 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents() 235 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents() 237 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents() 239 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg", in logBootEvents() 241 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents() 243 if (db != null) db.addText("SYSTEM_RESTART", headers); in logBootEvents() [all …]
|
/frameworks/base/tools/hiddenapi/ |
D | merge_csv.py | 54 headers = set() variable 60 headers = headers.union(reader.fieldnames) variable 61 fieldnames = sorted(headers)
|
/frameworks/base/core/java/android/webkit/ |
D | UrlInterceptRegistry.java | 129 String url, Map<String, String> headers) { in getSurrogate() argument 136 CacheResult result = handler.service(url, headers); in getSurrogate() 159 String url, Map<String, String> headers) { in getPluginData() argument 166 PluginData data = handler.getPluginData(url, headers); in getPluginData()
|
D | UrlInterceptHandler.java | 48 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/base/libs/hostgraphics/ |
D | Android.bp | 16 // Here we override all the headers automatically included with frameworks/native/include. 18 // We will have to copy necessary headers with a pre-build step (generated headers).
|
/frameworks/av/media/libmedia/ |
D | IMediaHTTPConnection.cpp | 46 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).string()); in connect() 58 String16 val(headers->valueAt(i).string()); in connect()
|
D | IMediaMetadataRetriever.cpp | 98 const KeyedVector<String8, String8> *headers) in setDataSource() argument 108 if (headers == NULL) { in setDataSource() 112 data.writeInt32(headers->size()); in setDataSource() 113 for (size_t i = 0; i < headers->size(); ++i) { in setDataSource() 114 data.writeString8(headers->keyAt(i)); in setDataSource() 115 data.writeString8(headers->valueAt(i)); in setDataSource() 312 KeyedVector<String8, String8> headers; in onTransact() local 326 if (headers.add(key, value) < 0) { in onTransact() 333 httpService, srcUrl, numHeaders > 0 ? &headers : NULL)); in onTransact()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | URLFetcher.java | 159 private Long getExpirationTimeMillisFromHTTPHeader(Map<String, List<String>> headers) { in getExpirationTimeMillisFromHTTPHeader() argument 160 if (headers == null) { in getExpirationTimeMillisFromHTTPHeader() 163 Map<String, String> joinedHeaders = joinHttpHeaders(headers); in getExpirationTimeMillisFromHTTPHeader() 185 private Map<String, String> joinHttpHeaders(Map<String, List<String>> headers) { in joinHttpHeaders() argument 187 for (Map.Entry<String, List<String>> entry : headers.entrySet()) { in joinHttpHeaders()
|
/frameworks/av/media/libstagefright/httplive/ |
D | HTTPDownloader.cpp | 40 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/ |
D | DataSourceFactory.cpp | 49 const KeyedVector<String8, String8> *headers, in CreateFromURI() argument 73 if (headers != NULL) { in CreateFromURI() 74 nonCacheSpecificHeaders = *headers; in CreateFromURI()
|