Home
last modified time | relevance | path

Searched refs:headersList (Results 1 – 6 of 6) sorted by relevance

/external/cronet/components/cronet/android/java/src/org/chromium/net/impl/
DCronetBidirectionalStream.java765 ArrayList<Map.Entry<String, String>> headersList = new ArrayList<>(headers.length / 2); in headersListFromStrings() local
767 headersList.add(new AbstractMap.SimpleImmutableEntry<>(headers[i], headers[i + 1])); in headersListFromStrings()
769 return headersList; in headersListFromStrings()
772 private static String[] stringsFromHeaderList(List<Map.Entry<String, String>> headersList) { in stringsFromHeaderList() argument
773 String headersArray[] = new String[headersList.size() * 2]; in stringsFromHeaderList()
775 for (Map.Entry<String, String> requestHeader : headersList) { in stringsFromHeaderList()
DCronetUrlRequest.java545 HeadersList headersList = new HeadersList(); in prepareResponseInfoOnNetworkThread() local
547 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in prepareResponseInfoOnNetworkThread()
551 httpStatusText, headersList, wasCached, negotiatedProtocol, proxyServer, in prepareResponseInfoOnNetworkThread()
/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/impl/
DCronetLoggerTest.java545 CronetUrlRequest.HeadersList headersList = new CronetUrlRequest.HeadersList(); in testNonEmptyHeadersSizeNative() local
546 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in testNonEmptyHeadersSizeNative()
549 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in testNonEmptyHeadersSizeNative()
552 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in testNonEmptyHeadersSizeNative()
555 headersList.add( in testNonEmptyHeadersSizeNative()
558 assertEquals(33, CronetUrlRequest.estimateHeadersSizeInBytes(asHeaderBlock(headersList))); in testNonEmptyHeadersSizeNative()
/external/volley/cronet/src/main/java/com/android/volley/cronet/
DCronetHttpStack.java223 public static List<Header> getHeaders(List<Map.Entry<String, String>> headersList) { in getHeaders() argument
225 for (Map.Entry<String, String> header : headersList) { in getHeaders()
/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/
DBidirectionalStreamTest.java119 ArrayList<Map.Entry<String, String>> headersList = new ArrayList<>(); in createUrlResponseInfo() local
121 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in createUrlResponseInfo()
125 statusCode, message, headersList, false, "h2", null, receivedBytes); in createUrlResponseInfo()
DCronetUrlRequestTest.java186 ArrayList<Map.Entry<String, String>> headersList = new ArrayList<>(); in createUrlResponseInfo() local
188 headersList.add(new AbstractMap.SimpleImmutableEntry<String, String>( in createUrlResponseInfo()
192 message, headersList, false, "unknown", ":0", receivedBytes); in createUrlResponseInfo()