37a2684d1e47f6d78d757c437a187548f242ee13 |
|
27-Jun-2011 |
Flavio Lerda <flerda@google.com> |
Fixes tests on userdebug builds. A number of tests are currently failing on userdebug builds because they refer to methods that are used only in tests and proguard striped these methods when building the application APK. This change adds the VisibleForTesting annotation to all such methods. Bug: 4901489 Bug: 4902483 Change-Id: Ic7c51ef5b77f4f2d2af39cdafbf8e2e37260644b
/packages/apps/Contacts/tests/src/com/android/contacts/format/PrefixHighligherTest.java
|
c9a9cdb5741e5e3190063f7744db7e332f63ec72 |
|
03-Jun-2011 |
Flavio Lerda <flerda@google.com> |
Fixes highlighting of prefix. Highlighting of a prefix (from a search) in contacts name was not done correctly when the name was also set to be in bold. This commit changes the logic to separate the two aspects and combines them in a way that makes things easier to use. Change-Id: Ibdf12d8478b7ab44ca0be82353c43ed9118d29cd
/packages/apps/Contacts/tests/src/com/android/contacts/format/PrefixHighligherTest.java
|
3d7311f76f3f41a5794b01536498c634b3ff2a69 |
|
01-Jun-2011 |
Flavio Lerda <flerda@google.com> |
Extract a couple of utility classes for formatting. The PrefixHighlighter class handles highlighting of a prefix in a text view. The DisplayNameFormatter handles both the bold of the first name and the highlight needed when searching (using the PrefixHighlighter above). Change-Id: Ibd1d3ecd6a88ce40de6dbc591af21c1e7260511e
/packages/apps/Contacts/tests/src/com/android/contacts/format/PrefixHighligherTest.java
|