OSDN Git Service

Use language tags to store Configuration's locale list.
authorVarun Shah <varunshah@google.com>
Tue, 10 Sep 2019 18:41:00 +0000 (14:41 -0400)
committerVarun Shah <varunshah@google.com>
Tue, 10 Sep 2019 19:53:57 +0000 (19:53 +0000)
commit5e67462971695e302d0ac9ffc4158d8e08385592
tree53d2645f51719845dd23c46710581de7c1adb2db
parentdd67a548b27f171ccabbf47af76075d252cb883e
Use language tags to store Configuration's locale list.

Instead of storing each Locale within a Configuration object's locale
list by its language, country, variant, and script to proto, store the
entire locale list by its language tags representation which accurately
describes each locale.

Bug: 140197723
Test: atest ConfigurationTest
Test: atest UsageStatsDatabaseTest
Test: manually with bad data
Merged-In: I53946ed4e31de0ffe9c84875c391a7dec6f5375a
Change-Id: Idaae690f79a5c680ad0059a52be62160d9dfb5e7
core/java/android/content/res/Configuration.java
core/java/android/os/LocaleList.java
core/proto/android/content/configuration.proto
core/proto/android/content/locale.proto
core/tests/coretests/src/android/content/res/ConfigurationTest.java