merge in ics-release history after reset to master
Cope with fstat(2) failures during close.

Whatever the root cause of the fstat(2) failure, we should still attempt the
requested close(2) --- even if it's just going to fail in the same way the
fstat(2) did.

Bug: 5407056
Change-Id: Ie988d1b1ebdb6b378fb537b2f56245fab568ee7c
merge in ics-release history after reset to master
Fix socket timeout test failures.

The kernel uses awkward device-specific units that make tests with timeouts
that aren't integer multiples of a second awkward.

There's no common superclass for the various sockets, so we can't factor
out the test even though -- apart from the creation of the specific socket --
it's textually identical in each case. Nice library design, boys!

I've also fixed a couple of CloseGuard warnings in passing.

Bug: 5159133
Change-Id: Iaf4c9891b3cf2f5b3ebcee5cb2ba862157ab034e
Fix socket timeout test failures.

The kernel uses awkward device-specific units that make tests with timeouts
that aren't integer multiples of a second awkward.

There's no common superclass for the various sockets, so we can't factor
out the test even though -- apart from the creation of the specific socket --
it's textually identical in each case. Nice library design, boys!

I've also fixed a couple of CloseGuard warnings in passing.

Bug: 5159133
Change-Id: Iaf4c9891b3cf2f5b3ebcee5cb2ba862157ab034e
Only tag/untag sockets when open.

Bug: 5274621
Change-Id: Icc42a80c8cce6adb20d16ca2bb1fb51e2a8e8e1b
Merge remote branch 'goog/ics-mr0' into ics-mr1
merge in ics-mr1-release history after reset to ics-mr1
Merge "Only tag/untag sockets when open." into ics-mr1
merge in ics-mr1-release history after reset to ics-mr1
Move OpenSSLSocketImpl.close resource cleanup into a finally clause

Bug: 5466273

(cherry picked from commit d3433cea484f380ab2c889c10e9d9d3268046a6c)

Change-Id: I8618be21a2227d66ea66352342b530906605160f
merge in ics-mr1-release history after reset to ics-mr1
Fix OldFormaterTest Flakiness

Bug 5498103

Use a StreamHandler instead of a FileHandler, so that FileHandler
doesn't throw an exception if the log directory doesn't exist.

Change-Id: I7b7334ff8290a4b028712e89bb432fd78ef48346
merge in ics-mr1-release history after reset to ics-mr1
libcore: BlockGuard: untag socket on close

java.net.Socket creates the socket on connect(). But in case of failure
during the connect() it closes the socket.
During the create, BlockGuard's socket() is the one tagging the socket.
But in case of failure, nobody untags that socket.
So now we untag scokets on close() in BlockGuard

Bug: 5274621
Change-Id: I282665a05e2dc184df77c84ceab49fb55b7695af
merge in ics-mr1-release history after reset to ics-mr1
Test case for verifier to handle floats that look like boolean.

Stores 0x0 and Float.MIN_VALUE (0x1) into the same register and makes
sure it can still be used as float.

(cherry picked from commit ffa7f34647015d97acbaa5e4b3c44ee764321aea)

Change-Id: Ia72f24f1233f7c0a8a794def8cbe94151b60b2af
merge in ics-mr1-release history after reset to ics-mr1
Don't throw needlessly when returning the CacheResponse.

We were throwing under the premise that we'd always have
response headers before we had a cached body. But when the
user calls connect() we'll have queried the cache but we
won't necessarily have response headers from the server yet.
That's because connect() doesn't require a response to be ready.

Bug: http://b/5920659
Cherry-picked from: I9d69b44b5be3d0e29f14d8b83781f6e65c67582a

Change-Id: Ia403b42ddc9783fd1456164f4b7350da3ce80566
merge in ics-mr1-release history after reset to ics-mr1