summaryrefslogtreecommitdiff
path: root/libs/androidfw/LocaleDataTables.cpp
AgeCommit message (Collapse)Author
2024-12-31Turn LocaleDataTables into C switch statements Victor Chang
It should save memory from initializing std::unordered_map and _set. The generated code size is large (depending on the exact -O options passed to clang), but they should be in the clean pages, rather than dirty pages. Bug: 349675514 Test: atest libandroidfw_tests Change-Id: If1ff8284f7e3bb208d43e63c93e3294d3755890f
2024-12-31Regenerate LocaleDataTables.cpp due to ICU 76 upgrade Victor Chang
The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 383096413 Test: atest FrameworksCoreTests:android.text.format Change-Id: I4eef08dd53508a859f0fb3c89991093e2861d075
2024-07-02[res] Move the latin parents map to be first Yurii Zubrytskyi
The most accessed parent lookup table is the one for Latin scripts, move it to the first position to save a few CPU cycles Bug: 345562237 Test: unit tests + boot (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8fb681e6c4874d08cc4053fc8749e4586441f4fe) Merged-In: I8aae2a3ced662aceb2965c110168c861dcabb2f0 Change-Id: I8aae2a3ced662aceb2965c110168c861dcabb2f0
2022-11-15Update android.text.format tests and regenerate LocaleDataTables.cpp due to ↵ Victor Chang
ICU 72 upgrade The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 239910154 Test: atest FrameworksCoreTests:android.text.format Change-Id: I28d816021056d0c7b39789f830663a7da6fcbe70
2022-05-23Regenerate LocaleDataTables.cpp due to ICU 71 upgrade Victor Chang
The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 232747988 Test: m droid Change-Id: I43f09f62bc6d746eb1138b0de431fb614a7baa6a
2021-11-19Regenerate LocaleDataTables.cpp due to ICU 70 upgrade Victor Chang
The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 63753963 Bug: 202948901 Test: m droid Change-Id: Ib464dce7b4489853cb95c2104792d95f36d38249
2021-08-19Regenerate LocaleDataTables.cpp due to ICU 69 upgrade Victor Chang
The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 195953235 Test: atest CtsIcu4cTestCases CtsIcuTestCases CtsLibcoreTestCases CtsLibcoreOjTestCases CtsBionicTestCases CtsTextTestCases Change-Id: Idd4329a83a27bd550185e815dc5c92e3f2882d12
2021-01-21Regenerate LocaleDataTables.cpp due to ICU 68 upgrade Victor Chang
The command: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Bug: 160356314 Test: m droid Change-Id: I09c8d7e8b46255941168378c854d169d2e038508
2020-03-06Regenerate LocaleDataTables.cpp wtih Unicode 13 update Nikita Iashchenko
LocaleDataTables.cpp is regenerated with Unicode 13 updates from CLDR. Bug: 149845726 Test: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP Test: m droid Change-Id: Id2d023723b50c1c2f73fe07f46fb9b3cae990752
2019-12-19Regenerate LocaleDataTables.cpp Nikita Iashchenko
LocaleDataTables.cpp was regenerated running the following command (should be run from frameworks/base): $ ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Test: m droid Change-Id: If180ff22a74b485cc3cca34a3f9ba98c826a2210
2019-12-16Regenerate LocaleDataTables.cpp Victor Chang
LocaleDataTables.cpp is outdated due to ICU update over the years Test: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP Test: m droid Change-Id: I21918cc0f50c7347e514dc7b015607e19cffb377
2018-12-11Fix cert-dcl16-c clang-tidy warnings. Chih-Hung Hsieh
Bug: 120614316 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c Change-Id: I2dc262d3407aafa969e921236dc3fc3ae60eb9d4
2017-01-13Update locale data from in-tree ICU Roozbeh Pournader
Also add back script information for Yiddish old code (ji) that was removed in ICU. Bug: 26756576 Test: none Change-Id: Ia785f86bf0407aeed6134ef9d44e504494256da2
2016-01-21Implement smarter locale resource selection Roozbeh Pournader
* Add support for determining script from language and region. * Add support for determining special parents of locales. * Add support for smart comparison of locales with only a difference in region, using the locale parentage tree. * Fix LocaleData.matchScore() to not fallback to old locale matching behavior if we can't determine a script. * Allow four-character variant codes. (Previously, only five- to eight-character variant codes were allowed.) Bug: 7296673 Bug: 26589793 Change-Id: Ibde0a48c0564ff383b41068095a5cbacfe7b94bc