Simplify skip() to use skipByReading or the superclass where possible.

Several classes were overriding InputStream.skip() but not doing
anything better than the base class. These were deleted.

Others were allocating skip buffers which was correct, but duplicated
code with our Streams utility class.

The CipherInputStream class had a skip method that always skipped
0 bytes. This has been fixed and tested.

Change-Id: Ic96c600e111c11cf7364b4e0a721791d7e3c2ae1
Work around using "struct group_req" in a 32-bit binary talking to a 64-bit kernel.

Fixes all the MulticastSocket tests in host mode.

Bug: 3035987
Change-Id: Ie21ea2c5dffb3f9da3ff85bb7a452afab8d188d8
Make InetSocketAddress' fields final.

Also remove worse-than-useless javadoc.

Change-Id: Ib49e6fd75a253c06bbdb58c54edc637093da4d14
Fix deserialization of NumberFormat.Field and related types.

This uses reflection to make it foolishly-easy to keep up-to-date
as members in these classes are added.

Change-Id: I6029aedf56f6237b971f240dbca45ed3acd50e0a
Use IoUtils.closeQuietly where possible.

Change-Id: I354c1e00b7068108032d09c0a1c38e29f6283fb0

Conflicts:
	luni/src/main/java/java/util/Formatter.java
	luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpConnection.java
Use LogManager.class.getResourceAsStream to defend against subclasses.

Previuosly we were using getClass().getResourceAsStream() which caused
the resource to be unavailable when LogManager was subclassed.

Change-Id: I4ebe13a2bb7f50ebaa3b4a458310d0c397a80aea
http://b/2487364
Save unnecessary close() and flush() calls in HTTP uploads.

The calls weren't hurting anything, but the only caller of
this method already closes the output stream and flushes the
socket stream.

Change-Id: Ib57c997d7ed6cf21091211b2eb005bbabac8363c
Manually cherry-picked 4 ICU commits :

Start moving icu4jni classes into libcore.icu
Move more stuff out of icu4jni; ICU and LocaleData
More icu4jni reshuffling
More package-jiggling for our ICU-related code
Fix the default decomposition mode of Collators.

It's unclear why we thought it shouldn't be NO_DECOMPOSITION. That's the
default for both ICU and the RI. This patch undoes the part of the change that
introduced this discrepancy, and undoes a change we made to silence a test
that was warning us about the discrepancy.

Bug: 1635883
Change-Id: Ic0e121e9b10e4f332b04b3cca1946d8bce32c06e
CloseGuard: finalizers for closeable objects should log complaints

Introducing CloseGuard which warns when resources are implictly
cleaned up by finalizers when an explicit termination method, to use
the Effective Java "Issue 7: Avoid finalizers" terminology, should
have been used by the caller.

libcore classes that can use CloseGuard now do so.

Bug: 3041575
Change-Id: I4a4e3554addaf3075c823feb0a0ff0ad1c1f6196

Conflicts:
	luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLSocketImpl.java
Remove OpenSSLSocketImpl.instanceCount

Its use in ActivityThread is being replaced with Debug.countInstancesOfClass(OpenSSLSocketImpl.class)

Bug: 3015791
Change-Id: I26ece579f8e0fce62f17f398055b16aceaaf1b08

Conflicts:
	luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLSocketImpl.java