WIP: Use the DexCache strings cache more aggressively

Just an illustration of what using the dex cache for more string lookups might
look like. Although clearly it means quite a few more cache hits for the sample
app it doesn't make a massive performance difference (and increased usage of
the string cache may increase the memory footprint of ART / Dalvik).

Change-Id: I960bee2e060e5a71f462cf65c07f7655366870f9
Remove include of private ICU include and set constant size for buffer in
libcore_icu_NativeCollation.cpp

Change-Id: I31ae75707b7036ab5b509c88915648fbaf7d76a5
Update SSLEngineTest for RI

The RI now supports TLSv1.2 with SSLEngine, so update all the
expectations for their tests. It also appears to disable "weak"
algorithms when you select TLSv1.2.

Change-Id: I564283bb4945d3b71bee0f89c93c6dd6e238b4f8

Conflicts:
	luni/src/test/java/libcore/javax/net/ssl/SSLEngineTest.java
	luni/src/test/java/libcore/javax/net/ssl/SSLSocketTest.java
	support/src/test/java/libcore/java/security/StandardNames.java
	support/src/test/java/libcore/javax/net/ssl/TestSSLContext.java
Update SSLEngineTest for OpenSSL

Our new OpenSSL-based SSLEngine supports all the new stuff and no longer
fails tests.

Change-Id: I7db8e5134ca36ebd963c7081cd7ba79d91b3e5e2

Conflicts:
	support/src/test/java/libcore/java/security/StandardNames.java
Update collation tests for icu4c 53.

As of ICU 53, rule strings must begin with a reset '&'.
http://www.unicode.org/reports/tr35/tr35-35/tr35-collation.html#Rules

Also, fewer collation elements exist in ICU 53 because ae-ligature maps to
two rather than three logical collation elements. Now the last one
yields only one CollationElementIterator value rather than two.

Finally, it's no longer possible to switch from forward to backward iteration
without calling reset/setOffset/setText. This used to be undefined behavior
but is now checked.

Change-Id: I663a2b229e551cd6f5753ddae0660f813dbbf866

Conflicts:
	harmony-tests/src/test/java/org/apache/harmony/tests/java/text/CollationElementIteratorTest.java
	harmony-tests/src/test/java/org/apache/harmony/tests/java/text/CollatorTest.java
	harmony-tests/src/test/java/org/apache/harmony/tests/java/text/RuleBasedCollatorTest.java
Updated documentation for RuleBasedCollator.

Change-Id: Ia927033773ea3ad6c417306cbbfffc4afe08fab5
Signed-off-by: Markus Scherer <mscherer@google.com>
Track the icu4c 53 update in the Locale documentation.

Also add links to the icu4c release notes. These aren't particularly useful
because they're a bit low-level for our audience, and we've often skipped
multiple releases, but it can't really hurt.

Change-Id: I5243b4a041470cec17ebf39a5da8ce6cbe270e86
Fix typo in Locale docs.

Change-Id: I1fd60e1b23ebf02a4a242d622312502b941ddd1e
Allow empty rules in a RuleBasedCollator.

This is allowed by the CLDR specification, and we were already allowing
most forms of empty rules, just not the zero-length string.

Change-Id: I3c2a020aac23e54f8044defbfe2e2a5b600e454c
Fix build (javadoc @link tags).

Change-Id: If0cb922427a826cad16c8be8a78cdfbccc218c32
Disallow explicit signs in java.sql.Date#valueOf()

Bug: 5239391
Change-Id: I52bd621bd6ed46d1ae01abf1be25d1ac3c76d7e0

Conflicts:
	luni/src/main/java/java/sql/Date.java
	luni/src/test/java/tests/java/sql/SqlDateTest.java
@hide Integer#parsePositiveInt(String)

Bug: 5239391
Change-Id: I01632d4846342293e881553feee3ae40f97e2443
Fix SSLEngineTest for RI

The assymmetry between client and server with create sessions seems
strange. It seems like a bug in the RI, so make sure Android does the
right thing.

Change-Id: I7b7ab501bd1963757b7f067c6ace8230a19a3e53
Fix UUID#parseString in the presence of explicit + signs.

Also added Long#parsePositiveLong(String, int).

Bug: 5239391
Change-Id: Iaa0bbd3a7f8a13c3e48abb1a7e7508e48615b11c

Conflicts:
	luni/src/main/java/java/util/UUID.java
	luni/src/test/java/libcore/java/lang/LongTest.java
	luni/src/test/java/libcore/java/util/UUIDTest.java
Disallow explicit signs in SocketHandler port parsing.

Bug: 5239391
Change-Id: Ifa6bc6b352c283e8f6913b4905a9541df7355915
1.7 interoperability changes for FileLock

Adding acquiredBy(). This method is effectively a synonym for
channel().

Change-Id: Ifa0b89debb42a7181f1f5f188ae7175970286adb

Conflicts:
	luni/src/main/java/java/nio/channels/FileLock.java
Fix bug 65217: ByteArrayOutputStream for massive buffers

Difficult to test on real devices right now so there are
no additional tests.

TODO: Write a test in a couple of years when devices exist that
can easily cope with 4GB arrays.

Bug: 65217
Change-Id: I8677356f53a2109ef45c1b56324fa474a5ea66e6