Apply patches from upstream ICU for Bidi class

This applies patches from upsteam ICU to fix the Android
java.text.Bidi class when presented with 0 embeddings
and directional characters. See the related libcore
change for the case.

Note: only the Java code changes were taken;
the icu4c code has changed and the fix is only needed to
support Android's java.text.Bidi class.

http://bugs.icu-project.org/trac/ticket/12922
http://bugs.icu-project.org/trac/changeset/39741
http://bugs.icu-project.org/trac/changeset/39828
http://bugs.icu-project.org/trac/changeset/39904

Bug: 34320622
Test: Ran ICU tests: ant check
Test: CTS: run cts -m CtsIcuTestCases
Test: CTS: run cts -m CtsLibcoreTestCases
Change-Id: I03779c3e91aaa12f0dadb0f316a6b02fc355c3b6
4 files changed