OSDN Git Service

Various LocaleList cleanups
authorRoozbeh Pournader <roozbeh@google.com>
Thu, 4 Feb 2016 23:24:24 +0000 (15:24 -0800)
committerRoozbeh Pournader <roozbeh@google.com>
Thu, 4 Feb 2016 23:44:03 +0000 (15:44 -0800)
commitfee44846376c212114223fc4259382921e6dca7a
tree71e072708d89e047eea7cca2c920ee45a9a6cb5d
parentb013cfec0b902d4a2836a1a95f76a3e29d1c6630
Various LocaleList cleanups

- Remove the LocaleList#getPrimary() API. It had become confusing
  after locale negotiation was completely implemented. For example,
  it could create the confusion that calling getPrimary() on the
  default locale list would provide the default locale, etc.
- Use the adjusted locale list from LocaleList.getAdjustedDefault()
  in Paints created with no locale list provided.
- Change LocaleList#get() to treat out of bound indexes from both
  negative indexes and too large indexes the same way.

Bug: 26984092
Bug: 26193251
Bug: 26834387
Change-Id: I75f77aea6b75e38793ed8477e5e5a4420d5e6d85
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/content/res/Configuration.java
core/java/android/content/res/Resources.java
core/java/android/text/style/LocaleSpan.java
core/java/android/util/LocaleList.java
core/tests/coretests/src/android/print/BasePrintTest.java
graphics/java/android/graphics/Paint.java
services/core/java/com/android/server/am/ActivityManagerService.java