Up java.text.DecimalFormat max integer digits.

Android M and before used native ICU4C NumberFormat for
java.text.DecimalFormat and that had a max integer digits of 2000000000.
To maintain compatibility with earlier Android releases, use that value
for java.text.DecimalFormat.

The underlying android.icu.DecimalFormat is modified to allow maximum
integer digits bigger than 309 (but keeping the default values
unchanged).

Also add test for DecimalFormat with pattern "00" (fixed by related
revert in external/icu)

Bug: 27855939

(cherry picked from commit 43379e19f9b8cb88936d0c1be69070c7c8fbd083)

Change-Id: I873147c044b1a27d992fb2f881bd5ec074559f4d
2 files changed