Stop using deprecated ucol_safeClone placement functionality.

Change-Id: I2e8e659f72caf95d92638254226b78cf29bd0ca5
ProviderTest: add special rules for Cipher

Cipher can have a special format where it can specify both its mode and
padding along with the algorithm. This change takes that into account
for tests by explicitly trying to get an instance of that type so
providers that have "Cipher.AES" will satisfy the
"Cipher.AES/CTR/NOPADDING" standard names requirement.

Change-Id: If5bd395330082892b34c1b6250e3890fc7f92779
JarUtils: try using the DigestEncryptionAlgorithm

The original code tried getting an instance of the DigestAlgorithm by
itself as a Signature type. This appears meant to be the
DigestEncryptionAlgorithm by itself. Algorithms such as SHA256withECDSA
have their own OID.

Change-Id: I9384127bb026c8a5d3956095a9880427ead366b4

Conflicts:
	luni/src/test/java/org/apache/harmony/archive/tests/java/util/jar/JarFileTest.java
JarUtils: remove reference to X509CertImpl

With Conscrypt, this appear to speed up checking signatures on
frameworks-res.apk (2175 files) from 468ms to 446ms.

Change-Id: I491607fa5d43594cc0b6c7eba1e38eefb6cfc4bf
Add a test for a ja_JP AlphabeticIndex bug.

Bug: 10809397
Change-Id: Ifa9d2ef2b8b0f1defa909d695b2fe90a3f392edf
Make JSONObject summary documentation clearer.

The class documentation makes the difference between the 'get' and 'opt'
methods very clear, but it's less clear to anyone just looking at the
summary of methods.

Bug: https://code.google.com/p/android/issues/detail?id=60998
Change-Id: I17eeaea182a9dbad7be9fbd55086977b512b6fa8
Add a unit test for a Class.getDeclaringClass bug.

Bug: https://code.google.com/p/android/issues/detail?id=61003
Change-Id: I3e76f0ce9c4b4df91ab3eeaca956d2d735e52f6c
Improve the charAt documentation.

Bug: https://code.google.com/p/android/issues/detail?id=61010
Change-Id: Iecdda7dfd9d47b2269ae7713b4a7cdb340f9219a
Fix a varargs warning in MessageFormatTest.

bdc was right.

Change-Id: I89c470d5deb4abcd0f3ecaeeac29da377e70eafb
Use @throws rather than the deprecated and unusual @exception.

Change-Id: I69d94fae14a6153ef227352e1e159697db8d618d
Improve SocketChannel documentation.

Bug: https://code.google.com/p/android/issues/detail?id=61006
Change-Id: I37d96034922ff53c263363a7543a46fb9cafd133
Get stricter about DOCTYPEs.

Allow them only before we've started parsing any
XML elements.

bug: 3452274
Change-Id: I7b146e4dae8c7aa23a0a227538ec02604f828400
Simplify code in XmlPullParserFactory.

Since we're hard coding KXmlParser and KXmlSerializer
anyway, we might as well do it more directly.

Also add a trivial unit test for this method.

NOTE: This change preserves existing behaviour and doesn't
throw from #newInstance if the parser class couldn't be
found or instantiated. We instead throw from newPullParser or
newSerializer as appropriate.

Change-Id: Ic0c86e67691b8e662d95363bbe597d3abb7c3642
Fix build.

Bring back fields that were never used but are public APIs.

Change-Id: I81d312f53745c03da450f599070ae0f5ddd5a81a