am b91c5e93: DefaultRequestDirector should ignore IOExceptions from stale connections

* commit 'b91c5e936342afbdd58c88ac604d5dd505d0fe0c':
  DefaultRequestDirector should ignore IOExceptions from stale connections
am e59c288f: am b91c5e93: DefaultRequestDirector should ignore IOExceptions from stale connections

* commit 'e59c288fca5a99d07f09494e8d03a228a347c3f8':
  DefaultRequestDirector should ignore IOExceptions from stale connections
am ae89fd35: am e59c288f: am b91c5e93: DefaultRequestDirector should ignore IOExceptions from stale connections

* commit 'ae89fd35ba04735b80c5f79b9a31fa3c31519ee0':
  DefaultRequestDirector should ignore IOExceptions from stale connections
am 403f11d9: am ae89fd35: am e59c288f: am b91c5e93: DefaultRequestDirector should ignore IOExceptions from stale connections

* commit '403f11d92b25f7c3060b1a973d4076c5d6585ccf':
  DefaultRequestDirector should ignore IOExceptions from stale connections
Backport hostname verification correctness fix

From libcore's commit with sha 6767bdbe6bb1d4542c97868d8df1f71d2414fc62

    The only behavior change should be a bug fix. There was a check
    "cn.lastIndexOf('.') >= 0" that was always true. This has been
    fixed to match the comment "require two dots".

Change-Id: I680cad56a1f86150128e587f8c8e19be6ef27bc3
Merge remote branch 'goog/dalvik-dev' into dalvik-dev-to-master
Make Apache HttpClient play nice with large kernel socket buffers.

Given the large maximum size likely to be set for kernel socket buffers on LTE
devices, we need to stop Apache HttpClient from allocating some integer
multiple of that size on the heap for each socket. On one device, 16 HTTP
connections would fill the heap.

Bug: 3514259
Change-Id: I888c03b6ad4b7ca444c2c423b097a3f76390846b
am e30b5b55: Make Apache HttpClient play nice with large kernel socket buffers.

* commit 'e30b5b55806b31d1a61e2885b854dd7b8da1a07a':
  Make Apache HttpClient play nice with large kernel socket buffers.
Add Socket tagging for granular data accounting.

Changes SingleClientConnManager and ThreadSafeClientConnManager to tag
any recycled Sockets based on the current thread.  (Actual tagging is
maintained and applied in BlockGuard.)

Change-Id: Ib34897bb2af8641fa65adc664f7858f9d43ffeeb
Make Apache HttpClient play nice with large kernel socket buffers.

Given the large maximum size likely to be set for kernel socket buffers on LTE
devices, we need to stop Apache HttpClient from allocating some integer
multiple of that size on the heap for each socket. On one device, 16 HTTP
connections would fill the heap.

Bug: 3514259
Change-Id: I4a8c13882ad794ddbeaf53a6cdc4d42d1aa3fb2f
Merge "Add Socket tagging for granular data accounting."
Merge "Make Apache HttpClient play nice with large kernel socket buffers."
am 00efe680: Merge "Make Apache HttpClient play nice with large kernel socket buffers."

* commit '00efe680b4cc6e9849cb270058ac5967af92ffef':
  Make Apache HttpClient play nice with large kernel socket buffers.
am d8a18733: am 00efe680: Merge "Make Apache HttpClient play nice with large kernel socket buffers."

* commit 'd8a18733ccf412e54cb887526883b285027ebc5a':
  Make Apache HttpClient play nice with large kernel socket buffers.
Ignore case on digest algorithms.

Change-Id: If80c5f6ecca609abdb3b274e00b8ea8a75248f23
http://code.google.com/p/android/issues/detail?id=16051
Track move of socket tagging from libcore to frameworks/base.

Change-Id: I989f7ecab7e4fd1cf21bbe0782e960dfe3b4c8e8
Add optional host build of apache-http

Change-Id: I905c60b91b4118180294c8c95ce30514e50e7d3c
Try the next address after any type of connection failure.

Previously we'd fail IPv4 if IPv6 failed with a EHOSTUNREACH
error (which may be thrown as a SocketException or as a
NoRouteToHostException, depending on the platform).

Bug: http://b/5293809
Change-Id: Idca2e9bd561a23cff88b1399d45db65b96980148
Fix NPE in DefaultRequestDirector

When the HTTP client encountered a server failure while
talking through a proxy, it fails with an NullPointerException
and not an IOException.

Bug: http://b/5372438
Change-Id: I67848d52f5d01c9e353fcc7d66d48ec821d9b4ba