History log of /packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ac1bc8c58ba9d03ff5a24d1094f663042b7164d9 13-Apr-2012 Makoto Onuki <omakoto@google.com> Relax phone number collapser

The current collapser basically compares two phone numbers for equality
using their normalzied numbers, but this can cause an issue when you have a
readonly contact from a different country who has a local version of their
phone numer in their profile. Even if you have an international version
of their phone number, it may be overwritten on the contacts by the local
vesion.

So let's relax it.

The new collapser merges two numbers only if the "unformatted"
(i.e. ignoring all formatting characters) version of two phone numbers
are the same.

The following numbers will no longer be merged. (All assume the user
is in the US.)
- +81-45-381-0000 and 011-81-45-381-0000
- 1-555-123-4567 and 555-123-4567
- +1-555-123-4567 and 1-555-123-4567

But the following will.
- 555-123-4567 and 5551234567

This affects:
- Contact card
- Phone number disambiguation on the phone app
- Quick contact

The list view on the phone app won't be affected, as it's done in SQL, group-by.

Bug 5779336

Change-Id: I2d1f2fcf8a8d85207383cb05a86f66c17af8acfe
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
01a9fac7bd963d29c607cb17d579b68a71aa8854 16-Sep-2011 Dave Santoro <dsantoro@google.com> Fix phone number comparison in Phone Favorites.

This switches to using ContactsUtils.shouldCollapse for determining
whether we should combine the two numbers.

Bug 5294289

Change-Id: Id1ec369cfe698b52186ff392255d789458622e9d
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
dabe1234137b8edb472421d5afdc7b657f148142 07-Sep-2011 Daniel Lehmann <lehmannd@google.com> Fix the aggregation of exact matches where string equality is not given

Also added some more unit tests to make sure we are calling into the
library

Bug:5250277
Change-Id: I99ae7475ec08b10ed24f5184ca6f38884bc96dbc
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
dfe20250b9f3d2cf134ba2a8a97399322ad48010 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding proper chat capability icons to contact detail

Change-Id: I4d9e01e08a8d70bb6e1591f92436a5ab7c194be6
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
8fd7bb6815399b3eaa7e1fb5f12a3983d2ff1006 14-Aug-2010 Daniel Lehmann <lehmannd@google.com> Show commands for XMPP video chat for Google Talk

Change-Id: I8ff105ff42ffa89b81500f386db3279ffde5fe80
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
d8b0a05f88099a734b75ed6b4628660feb00445f 26-Mar-2010 Daniel Lehmann <lehmannd@google.com> Don't merge numbers if they only differ after a semicolon
Bug:2432347

Change-Id: Ie62f36a29ae76287265f5ec19fc5507c0d368adf
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
c710b0e7a7932288763d7e3d08a882ac188303a8 14-Oct-2009 Makoto Onuki <omakoto@google.com> Dedupe same entries in the fasttrack action list.

Fixes b/2159633.
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java
e31dac84479a4c7b356edfc062a447cdfb5efc69 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> Trim edit fields that don't contain printable values.

When persisting edit changes, trim data rows that have no
printable characters. Also wrote unit tests for new method
and building of IM intents to check Uri escaping.

Fixes http://b/2173811
/packages/apps/Contacts/tests/src/com/android/contacts/ContactsUtilsTests.java