Fix IllegalArgumentException when formatting time in Burmese with DateTimeFormatter

The example locale is my-MM.

The fix only removes symbol 'b'/'B' when 24-hour 'H' exists. It prevents
causing more bugs when removing the symbol blindly, e.g. 'b'/'B' with
12-hour 'h'.

Add CTS to make sure that no known crash for all locales. Add an
exhaustive CTS in DateTimeFormatterTest for every available
combination of (locale, calendar type, date style, time style),
where locales are generated from the Locale.getAvailableLocales().

Bug: 175349773
Test: atest CtsLibcoreTestCases:libcore.java.time.format.DateTimeFormatterTest
Change-Id: I30d56069721f785c9f6682a743f83a58ce4127e8
4 files changed