History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/HanziToPinyinTest.java
cd026e956b76275bd6505aaaca5369f058eb66f4 15-Aug-2013 Jay Shrauner <shrauner@google.com> Prune HanziToPinyin test

ICU 51.1 upgrade broke this test by changing the transliteration of
several characters. The test is too brittle because it tests every
possible Chinese character (more than 20k) against hard coded expected
values. Instead, test just a small handful of characters.

Bug:10116449
Change-Id: I97aa80f0d32d1219e4d01df1b79aad60471938cc
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.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/HanziToPinyinTest.java
79b591543a37f256fcc93dc8b47017afc9c8dbca 18-Feb-2013 Jay Shrauner <shrauner@google.com> Call ICU lib for Pinyin transliteration

Switch from using hard coded tables copied from ICU to calling ICU
Transliterator directly for Pinyin transliteration.

Bug:
Change-Id: I87aae623dfe049a90cee213182275aa51a7dcd9c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.java
e31a15bcfe67f21320a71758411ba756f1d60f23 24-Aug-2012 Makoto Onuki <omakoto@google.com> am 3b1b1d5e: am 7d112d54: Merge "Update HanziToPinyin table and tests."

* commit '3b1b1d5e732728ea7d60b408ab03f42e5d9ace8f':
Update HanziToPinyin table and tests.
0c49720fb3d58e346739c2ccd56ed2b739249e07 24-Aug-2012 Xiaotao Duan <xiaotao@google.com> Update HanziToPinyin table and tests.

Change-Id: I160208ede00a4f63b257a0b6cc59ff5ad153960d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.java
9bc20fb9de84effe8e88ccf9d526beafcea92ee9 10-Aug-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 3646b108 to jb-mr1-dev

Change-Id: I2ca60f4e861128143bbfe7eb688b255432423a9d
84ae70d111070cc512790f0b2a573347fa9daca5 12-Jul-2012 Xiaotao Duan <xiaotao@google.com> Sync HanziToPinyin tables with ICU 4.6.

Change-Id: I6b6b144a460fbbf233222313559bbc546745d328
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.java
38210445730ee04c351c7cc1b3800cfe23e34325 27-Jun-2012 Makoto Onuki <omakoto@google.com> Reorganize import in contacts provider

Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/HanziToPinyinTest.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/HanziToPinyinTest.java