History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2ee1d54fa1e22b2c88897c1a60e7f642a81f9562 29-Aug-2016 Makoto Onuki <omakoto@google.com> Fix multi-locale issues

- Don't ignore LOCALE_CHANGED sent when CP2 is already updating
locales.

- Don't add multiple Chinese locales.

- Don't add any Chinese locales after Japanese.

- Also fix the flakiness in the test.

Bug 31115382

Change-Id: Ib17d08f7947cb02aa7052d8ed6b67690361c47bf
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
6bfd56ca40fe795ee330bb1a25a9edef06e40ae3 20-Apr-2016 Walter Jang <wjang@google.com> Revert using Urdu instead of Arabic in default label locales

Bug 28241432

Change-Id: I10f6376b34eb61901bbcca780431ec3ece8a9452
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
85914ae47ef3c9cf7068cdd570c6d07df5f6f24b 02-Feb-2016 Makoto Onuki <omakoto@google.com> Improve and clean up multi-locale support

Addressed comments on I4ff7e7d51

Bug 26142164

Change-Id: I0cb10d47375adfb8efffb1102adb3daa9043bbf1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
2a237a4ade82ac8b3c3b9d6ce36cfb0fe6afe702 25-Jan-2016 Makoto Onuki <omakoto@google.com> Use LocaleList to support multi-locale to improve name "bucketing".

We used to keep the previous locale on the locale change event
and used it as the secondary locale, but now that the framework
officially supports "LocaleList", we switch to the new mechanism.

On the contacts app, this affects the name "buckets". Adding more
locales means you may get more buckets for the letters specific to
these locales.

- Now ContactLocaleUtilsTest doesn't check supported collators.
Turned out quite a few collators were considered missing (because now
they're tied to languages, not language-country pares?) and were
simply skipped. In the meantime, apparently the labels for some
languages have changed.

Bug 26142164

Change-Id: I4ff7e7d51d000adb6b996eb77da07af5cd44849f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
da01f4a6eba1e929027e2dcbcb84ff84b399b4b8 13-Aug-2015 Jay Shrauner <shrauner@google.com> Fix Ukrainian tests for ICU4J

Bug:
Change-Id: Ide7721ccde4062df856e0c4b8dc813b6f3fec1a8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
dd61f6e14ffac3043ae59e426b12424bd66a9de9 24-Jul-2015 Narayan Kamath <narayan@google.com> resolved conflicts for merge of beb0cff6 to mnc-dr-dev-plus-aosp

Change-Id: Ie112762012deae2f130f8c268ad4efac67648418
6553bea6290dfbd9dfabd0a19ef97cc1d24fc9cb 23-Jul-2015 ccornelius <ccornelius@google.com> Switch to use ICU4J's Alphabetic Index.

Revise tests for expected ellipsis in overflow buckets and for
Ukrainian in English locale.

Change-Id: Ia61000de8f87b3c336f46818f886ba69d9c9f06e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
3891893bf85d30963caf47a419114349c6520b2f 30-Apr-2015 Jay Shrauner <shrauner@google.com> Fix locale unit tests

Fix test failures caused by ICU version update to 55.1

Bug:20669398
Change-Id: I4c18a2e33db2b701b49c9bb715cee814ef0bde04
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
d4dbd063cf88e70b045607aa865b2fdb2329bf45 17-Oct-2013 Jay Shrauner <shrauner@google.com> Support secondary locales

Add support for tracking a secondary locale in addition to the current
primary locale for CP2. Switch to using parseable ICU language tag
(eg, "en-US") for locale tag written to DB. Secondary locale is set to
previous locale on locale change and persisted in CP2 DB and prefs.

Bug:8715226
Change-Id: Ia68397fd9118d89f3a45ac54f991f86bad42870e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
acacfa249c3aaf0372cf22afbe408c89720fbb53 08-Apr-2014 Jay Shrauner <shrauner@google.com> Update German locale tests for ICU 52

ICU 52 removed Sch and St labels for German; update tests.

Bug:13790528
Change-Id: I774a50ed22b9dd535c2c28b99e91500c40c58d64
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
d3b23d40bc15640abaeafa4041737b59f61ea557 02-Oct-2013 Jay Shrauner <shrauner@google.com> Fix Serbian address labels in non-Serbian locale

Add Serbian labels to default set (previously was only using Ukrainian
for Cyrillic languages when in a non-Cyrillic locale). This adds a net
of 3 new labels to the default label set. Added unit tests for Serbian
and Ukrainian unique characters.

Bug:11030904
Change-Id: Id35bf963ea10b89554aa0743d0f215c124b44c8d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
0f4b7a9bfe4b2079a7c5bb22b4114b5672639b05 18-Mar-2013 Jay Shrauner <shrauner@google.com> Japanese and Chinese search key fixes

Change so Pinyin search keys are only generated when in a simplified
Chinese locale. Fix name style classification of phonetic names.
Generate Romaji search keys for Japanese phonetic names. Add
secondary locale labeling for a number of non-Western languages
(Japanese, Korean, Thai, Arabic, Hebrew, Greek, Cyrillic).

Bug:5356921
Change-Id: I8c3a6b67d59fbd6b7b16e4e9f69bc30d1d996a75
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
1f8895bc9efd6c20adb02652bccb2c011ebca114 04-Mar-2013 Jay Shrauner <shrauner@google.com> Fix unit tests for ICU 51 patches

Fix unit tests to reflect fixes to AlphabeticIndex from backporting
ICU 51 fixes into current Android ICU drop. Add tests for new German
"Sch" and "St" labels.

Bug:
Change-Id: I9c4778bec24eebe6ed4228d541b6a6d95c6701aa
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
21cfa6019b9fb82c23edf978d27904757207d9b0 27-Feb-2013 Jay Shrauner <shrauner@google.com> Fix unit tests for ICU 50

Fix tests to account for fixes made in ICU 50. Add some additional tests.

Bug:
Change-Id: I7d1fb0588f56b58da5c5177823ed5c16c4603e24
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
a6a9fa802d1b56c206c670ca1d313bc64effcb5d 14-Feb-2013 Jay Shrauner <shrauner@google.com> Use ICU JNI wrappers for phonebook labels

Switch from using native code registered as sqlite callbacks to using
JNI wrappers for accessing ICU AlphabeticIndex. Stop using specialized
sort keys for Simplified Chinese because ICU code can correctly label
the characters directly.

Bug:
Change-Id: I0568b3a406495c147c7b9b3e72835d11d93f9d16
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
71340347b4862d4b1368a5d69d1667e2245952e4 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix test breakage introduced in ICU upgrade.

- Move HanziToPinyin.java to ContactsProvider package.
- Update tables in the file.

HanziToPinyin.java (in framework) has had collation table for
effectively searching Pinyin-s for Chinese Hanzi-s. The table
is based on previous ICU (4.4, or before).

With I695558055cc139b42b71da9138f61d19bcbd9758, ICU 4.6 is now
available, which has tons of improvements in zh collation, while
HanziToPinyin.java still has a table based on previous ICU. This
caused several test breakages and caused a real problem in Chinese
name sorting.

Also HanziToPinyin.java is only used by ContactsProvider, so there's
no strong reason for us to have it in framework (even though hidden).
It would rather convenient to have it in the provider package to
track issues around the file.

Bug: 4645142
Change-Id: If786dd286dab47ca1b2ccab38c5fa43ae390c0f7
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
3535990c241841cdc8d65aa00c5ec0c3efaab3d8 16-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix LegacyContactImporterTest

Need to update golden files per ICU version update.
See also: I695558055cc139b42b71da9138f61d19bcbd9758

Also add some annotations for tests.

Note that this doesn't fix every test. It looks the other
test breakages are harder to resolve.

Bug: 4645142
Change-Id: Ib487c28c3cd73dd702962e4590ada1a6319c2e50
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
02d553d965c1e4c9c9a8f851eca1270b0f700036 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing a test that is only supposed to run when Chinese is supported

Change-Id: Idb5c19e75c04add3b441b357340603c732d5412e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
3f775f00694eddffff4ad1842ae92dbd4dc4b9f4 01-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Uncommenting a useful test

Change-Id: I4937f7442f2e5e61ad4ba959c479f33986385160
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
cdd03b2ba03718a7fa85663a2438136284a1557c 08-Mar-2010 Bai Tao <michaelbai@google.com> Filter English contacts by initial char in Chinese Locale
Filter Chinese and CJK contacts by initial char in neither Japanese nor Korean locale.

Change-Id: Ie20b081a96421c56f1713cb676946743704549f3
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
0265a180cf027d149f11f8750652ac67ea08ca24 05-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Explicitly closing cursors and databases in ContactsProvider2 and related tests.

Change-Id: I70549b9517f38ae53fb59f60851f831768b87615
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
0b1eaf562411ffec26fd9113c3209ebdd29202e1 27-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Making all contacts provider tests pass on Sholes (which is missing Chinese Locale)

Change-Id: Ibc502525a53eff997a99c43dc7b65f7314b300bf
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java
4cd13c4266d8e476e1a49c4b6bcd5b18c33d0de3 21-Jan-2010 Bai Tao <michaelbai@google.com> a. Fix the issue that the FullNameStyle is not updated when user edits the contact or the contacts being synced.
b. Add Chinese sort and search.
c. Adds a CJK check for each contact at runtime. per discussion with component owner, will tune performance later after Korean and Japanese features are added.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactLocaleUtilsTest.java