History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e5bd832dd7743f98fd816f7e6568f715015764bd 18-Jul-2015 Zheng Fu <zhengfu@google.com> Fix failing tests due to logic changes in the new aggregator.

1. All the raw contacts with same name and no data will group together,
so we need to assign different names in this test.
2. We don't have split step anymore, so there is no unpin operation.
3. Fix Long comparison in the aggregator.

Bug:22566083
Change-Id: I1a963bf17866e7569012e4cceca034e7c8312aa3
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3ad4f2e72b677e3f7936af17f831bf6cdd95aa69 11-Jun-2015 Zheng Fu <zhengfu@google.com> Merge "Revert metadata_sync table and related code from M" into mnc-dev
712533da14e5541b20097c8609905db1d52d0f10 10-Jun-2015 Zheng Fu <zhengfu@google.com> Revert metadata_sync table and related code from M

Bug:20553119
Change-Id: I89b48cc5a39a57ebeafe7821f07c410dac871258
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1440fb9d8e4edefb57336532734f7cbab13a955f 08-Jun-2015 Makoto Onuki <omakoto@google.com> Actually make CARRIER_PRESENCE accessible

Bug 20257870

Change-Id: I5e7e12372dde1aeffaea1e953c16d86e341c3b66
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
cabd7cf832f5b160c30bff9c7b975bbf21a95d8e 04-Jun-2015 Makoto Onuki <omakoto@google.com> Fix NPE in enterprise API & fix unit tests.

Bug 21632829
Bug 21634841

Change-Id: Ic18f44e8de31fe48b1d3b7f3a49c355a4865aeca
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e9b0be19881605e5d23404c95d2da357ab0879b9 29-May-2015 Brian Attwell <brianattwell@google.com> Update CP2 unit tests for changed permissions

Bug: 21090207
Change-Id: I496a3c70c69ee1507c626ab2fcee9edf4bdb5ceb
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
95f4fd8bf381ed9319f139febc369ce70dcb022e 29-May-2015 Brian Attwell <brianattwell@google.com> Decouple ProviderStatus & internal provider state

Bug: 21090207
Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2d745a84f01381ac24d703f992cfb66f65093d0e 18-May-2015 Keith Cheung <keithcheung@google.com> Fix CP2 Unit test failure

Cause: The corp provider is not wiped for each test.

Bug: 19551175
Change-Id: I2b5428a74b584299ded745b15c3019e8d6091361
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2894728255b3b17d930686fdbb9ca68c20470aea 27-Apr-2015 Tony Mak <tonymak@google.com> Add unit test for RawContactsEntity.CORP_CONTENT_URI

Bug: 19551175
Change-Id: I6b91b77edcd999adb0a3184ea695949fe85f5315
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
57e16b057e5d1fbb2383ddbe7700f2e6c9bc0a33 23-Apr-2015 Tony Mak <tonymak@google.com> Merge "Add unit test for query against Phone.ENTERPRISE_CONTENT_URI"
e56d27b7774a9ce478372069a30f089e46ce855c 21-Apr-2015 Tony Mak <tonymak@google.com> Add unit test for query against Phone.ENTERPRISE_CONTENT_URI

Bug: 19551175

Change-Id: I69bdb672e64474a8daf12c3c38ea5fe262684aab
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9019dfd748d0a5e39cc041269d8d42e8ee8eb3ef 18-Apr-2015 Tingting Wang <tingtingw@google.com> Merge "Update related tables from MetadataSync.data column."
794ef4db9d70441393b756ce6c4cc456b9143b11 15-Apr-2015 Tingting Wang <tingtingw@google.com> Update related tables from MetadataSync.data column.

MetadataSync.data column info is parsed to MetadataEntry object.
RawContact, Data, DataUsageStats, AggregationException tables need to
be updated or inserted for the given rawContactId from MetadataEntry.

BUG 20055193

Change-Id: I5bdfe2c44f9c9af8d4067dc136ceb62ab0b274af
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1076c4946c230612c8eb56dbcdf2e3ca22a624e3 19-Mar-2015 Makoto Onuki <omakoto@google.com> Enterprise quick contact 2/2

Now openQuickContact goes thorough DPM. When a lookup URI is build with
a lookup key returned by the enterprise lookup APIs for a corp contact, the
lookup key will have a special prefix. DPM checks it and launches QC on
the work profile, if the policy allows it.

Design doc: go/cp2-mnc-enterprise-dd

Bug 19546108

Change-Id: Iccba8254269180281af0154f4b9c20cbfff5c27d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5f20fb34e4d6ce4e00aece1a109685e5a0e78a8a 30-Mar-2015 Makoto Onuki <omakoto@google.com> Revert "Enterprise quick contact 2/2"

This reverts commit 9d5369ac6c1d788384d52b11da10f60571238405.

Change-Id: Ib442e2ac351146ad2d5129e39a999478b8ffe547
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9d5369ac6c1d788384d52b11da10f60571238405 19-Mar-2015 Makoto Onuki <omakoto@google.com> Enterprise quick contact 2/2

Now openQuickContact goes thorough DPM. When a lookup URI is build with
a lookup key returned by the enterprise lookup APIs for a corp contact, the
lookup key will have a special prefix. DPM checks it and launches QC on
the work profile, if the policy allows it.

Design doc: go/cp2-mnc-enterprise-dd

Bug 19546108

Change-Id: I30ffcc1f6f394144182f2cb2b6032568ea5b33eb
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b593bf1894afe6f57dc9c0dde8bb9d7ac416fa7a 09-Mar-2015 Ricky Wai <rickywai@google.com> Add Email.ENTERPRISE_CONTENT_LOOKUP_URI

Like PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI
Apps in primary profile can have email lookup in managed profile

Bug: 19550046

Change-Id: I492909126faf4e1a2eb5c72f7f76f3a7a0656e6a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3a9b227565f9cf1eccb736b764d34dba6f20bdac 17-Mar-2015 Tingting <tingtingw@google.com> Make contacts backup schema change accessible.

raw_contacts.backup_id and data.hash_id have been added to schema.
To make them accessible, they need to be added to projection map.

BUG 19667203

Change-Id: I7d122843668d7ed31fc998a2c7f00dc909181fc8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2eb09524fc4b4afd061d30898dba30fab583545a 27-Feb-2015 Makoto Onuki <omakoto@google.com> Enterprise phone lookup should return consistent result...

regardless of requested projections.

In order to rewrite the cursor returned from the corp CP2, certain columns
are needed to compute other columns.
(e.g. PHOTO_URI requires _ID and PHOTO_FILE_ID).

This CL fixes that by always requesting all columns to the corp CP2.
Now rewriteCorpPhoneLookup() shrinks down the projection.

Bug 19545750

Change-Id: Id817d069554ebc89759303760effb557b152d58a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
148374fdbe3d723c7485e149afcfed314b2814e0 19-Feb-2015 Brian Attwell <brianattwell@google.com> Persist pre-authorized URIs

When exposing the Authority API, reviewers requested the
API be implemented properly instead of storing the pre-authorized
values in memory.

Bug: 18777272
Change-Id: I31e719b10803344f579bb89c8269f0a597a83c3c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f256a7cf7f78d5ff2573358eb2eadd6f3a2ec9db 28-Jan-2015 Brian Attwell <brianattwell@google.com> Remove NAME_VERIFIED. Part3

Support use of IS_SUPER_PRIMARY instead of NAME_VERIFIED.
The contact aggregator now pays attention to
IS_SUPER_PRIMARY.

Remove all references to NAME_VERIFIED from CP2.

Bug: 18777272
Change-Id: I1579a3122b2d45b80de7106a2b9616e323855045
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e05d1118d89cdbfc9bc0558d04af3ca3b2c6a508 08-Jan-2015 Brian Attwell <brianattwell@google.com> Ubundle from contacts contract Part 2/3

Remove ProviderStatus.DATA1

Discussion: go/contacts-contact-intent-ui

Bug: 18777272
Change-Id: I9c6125cc30710e4637b38f3785608abb9928d1a2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
77e675b050770c1bd68906c25859d7cdf8ea49db 29-Oct-2014 Zheng Fu <zhengfu@google.com> Fix broken test in ContactsProvider2Test.java

The test is broken due to the primary settings logic change in contact
aggregator (ag/542398), i.e. default settings are removed during contacts aggregation.

Bug:18118044
Change-Id: Ia4365c328d5a02367ba1842cecb9ff8cf08cfe3c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1c6905d2f799d81d5cb847c44fca7dc7d36fd684 05-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0c8a0c43bb95892b513a8aa6005968d53834e486 02-Sep-2014 Makoto Onuki <omakoto@google.com> Merge "Fix testPhoneLookupEnterprise_withCorpProfile" into lmp-dev
71142b333418ac7d589bd7522dad77b967f0bbe1 02-Sep-2014 Makoto Onuki <omakoto@google.com> Fix testPhoneLookupEnterprise_withCorpProfile

- Don't add "userid@" to the provider authority when setting up the
secondary cp2 for the corp profile.

Bug 17357026

Change-Id: Ife0265ee71c1fb28af87fc09763b1e53584ee358
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a5d6539589c851152bbf6665c1addfc2c7292dba 02-Sep-2014 Yorke Lee <yorkelee@google.com> Delete stale calls in a managed profile's call log table

Bug: 17096027
Change-Id: Ia640ef8a8f88eb5f9ff9eddc096bcaf334bba3c9
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ec9680853b8526568a96805e38af77f3c6da175a 26-Aug-2014 Makoto Onuki <omakoto@google.com> Address API review comments:

- Rename isCorpContactId() to isEnterpriseContactId().

Bug 17253963

Change-Id: Ib89b491c52f2b1326a11c991574a117f75fc8bcd
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8e8bd80fe4940972c7a2deb0c3fb2eeaa46a2365 27-Aug-2014 Yorke Lee <yorkelee@google.com> API changes for ContactsContract

Add tests for PinnedPositions.pin

Bug: 17253963
Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
89c3c5706ca0b4b061b3f3a1a7ee27d9c0e43d60 16-Aug-2014 Yorke Lee <yorkelee@google.com> Add a maximum length check when inserting or updating phone numbers

Bug: 14307606
Change-Id: Id17a122cb9e86f9ae64232773869cb2108754ed0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9701936fadaf55ef773dd07015b35f99fd5f8a91 07-Aug-2014 Makoto Onuki <omakoto@google.com> Add unit tests for enterprise caller-id

Also fix a few issues:
- Fix projection map for phone_lookup/enterprise and add PHOTO_FILE_ID
- Null out custom ringtones from the corp CP2. Returning rintones in the corp
profile really doesn't make sense.
- Fix a log in queryPhoneLookupEnterprise().

Change-Id: If0617225228c526d4b7d87e9c95f6fbe090242a0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4a47775ab4008165328ddab97f5151ddd94d9ab8 30-Jul-2014 Yorke Lee <yorkelee@google.com> Fix broken aggregation behavior for pinned contacts and tests

Update the value of some pre-defined constants in tests
Make sure that aggregation correctly sets pinned positions for
aggregated contacts - the lowest pinned position of all constituent
raw contacts, and 0 if none of them are pinned.

Bug: 16628573
Change-Id: I3e072baf7ff933a6eef861ed394f3fc817aee48b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7f4ce37bd099d8dbad3177a2b9ebe341811a5ce2 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
96062013ec40d4b60dd162a6e4a7146690247a3e 21-Jul-2014 Yorke Lee <yorkelee@google.com> Update the value of PinnedPositions.UNPINNED to 0

Bug: 16403306
Change-Id: I86fcd1f2d1d145edf1ba3d4bd8ce21d14dcb94d0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
54b97025256764a01f927792e64de8bf369e12f1 01-Jul-2014 Yorke Lee <yorkelee@google.com> Clean up SearchSnippetColumns API (2/3)

Bug: 6948882
Change-Id: I549321e5ecf789f55a67ad4fbf5b939400ff20b8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
dcffbdc062336c5403f9f5e1aadbba3f49db335f 18-Jun-2014 Yorke Lee <yorkelee@google.com> PinnedPositions API changes

Add UNDEMOTE_METHOD that is called to undemote a contact
Fix CP2 tests to use batch content provider operations instead of
PinnedPositions.UPDATE_API

Bug: 15593967
Change-Id: Id93c6ac0e214e59107725416b7865c56c9df32f3
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9214ced257fea11a48d9ed0e2bbfd0da39cb4606 20-Jun-2014 Paul Soulos <psoulos@google.com> Added usage stats to Entity

Change-Id: Idf06de011d1c01ea7dda174189e676177f9c5847
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
30268f9198a8b25aa0c9d90c0c2390f7a4bffb0d 16-Apr-2014 Jay Shrauner <shrauner@google.com> Remove German address book test

Remove German address book label/count test that was added with ICU 51
to check for Sch and St labels. Those labels were removed with ICU 52.

Bug:13790528
Change-Id: I238f51b86299db6353ec256508aca2bda46ca8f0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9273f0155a8dafa61527ef8a71f3e0eaff3e4b8a 05-Mar-2014 Brian Attwell <brianattwell@google.com> Add IN_DEFAULT_DIRECTORY to views and projections

Bug: 13173524
Change-Id: I6c0947d4978e204ce1268f65eab5e1cc66bda664
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
bf98e55afd5f39f72dc05c704409655b89a7fa25 27-Feb-2014 Brian Attwell <brianattwell@google.com> Do not ignore leading "*"s in phone lookups

After a phone lookup, "remove" entries from the cursor that
don't match the queried number w.r.t. to whether it has a leading
"*". "Removing" entries from a cursor involves making a partial
copy of the cursor.

This CL affects as little functionality as possible, so that it
can make it into MR2. Ie, we continue to ignore leading "*"s
in other CP2 queries.

MANUAL TESTS:
-Add a "*123" Emergency contact and "123" Voicemail contact
-Call "*123", then call "123". You should see two seperate
entries in your call log. In addition, the incall screens
should show Emergency and Voicemail respectively (although
the "123" call doesn't work properly inside the incall
UI right now. This is a seperate bug b/13195342).

Bug: 13195334
Change-Id: I7e1938ccb085630072611eb63148c5714b62fee8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f6de5a9d1418b0d7f4119d4204818ab3a0fe4fa2 24-Sep-2013 Yorke Lee <yorkelee@google.com> Add IS_SUPER_PRIMARY to default phone only strequents projection

Bug: 10888792
Change-Id: Id9fce5cfc66adfc1192ce752e8a3c2902de2e978
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e91e4eca5b255bcf46de31deca255d10c8f0b345 24-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Change CONTACTS_STREQUENTS for phone only queries" into klp-dev
a176ed4c42330e64d0246a10374507c862cec0de 24-Sep-2013 Yorke Lee <yorkelee@google.com> Change CONTACTS_STREQUENTS for phone only queries

This CL tweaks queries for CONTACTS_STREQUENTS to return phone numbers
belonging to starred contacts as well. Before this, the returned cursor
consisted of a mix of starred contacts (without their phone numbers), and
frequently contacted phone numbers.

Change-Id: If0ac847dd26f093d977403ca0100769f6c63be9b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d820edb03bd5caffc0dff19096552efa817dec59 21-Sep-2013 Yorke Lee <yorkelee@google.com> Change frequents algorithm to return contacts in a different order

Bucketing thresholds
- 3 days
- 7 days
- 14 days
- 30 days
- Any contacts older than this are not shown

Change-Id: I4940920c4eb8ad4f5d130adc0b2acd30a4d7aff6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
45b023e89d87b66e44c1b79c6e1444ec9db70a82 06-Aug-2013 Yorke Lee <yorkelee@google.com> Handle DEMOTE and UNDEMOTE in CP2

* If a contact is UNDEMOTED, if it was previously DEMOTED, it will
become UNPINNED. Otherwise, it will remain unchanged.

* When two raw contacts are aggregated, the parent contact should
inherit the lower pinned position of the two, not including negative
integers.

Change-Id: I74f41dfa327b8e5a79688b1e99eafbef7d9d58a0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a89aa7533a14b143b55bf4a29d284152ab9278a5 01-Aug-2013 Yorke Lee <yorkelee@google.com> Add Data.contact_id to phone strequents projection

This is needed so that operations on frequent contacts
swipe to hide, pin, etc can operate on data.contact_id instead
of data._id.
Change-Id: I66005ebcbf7608b2b96961a5637a6736c1076ab9
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
81fea08280784b319b936a3506788d595c6ce2ad 18-Jul-2013 Yorke Lee <yorkelee@google.com> Add pinning support in ContactsProvider

Change-Id: I3c835c2fd0faf99f8fb176752cfcb12e011095a2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6fc2ed06c50b135caf4be3a212f2f82d48892c3f 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Remove ContactsContract.snippetize() from unit tests.

Fix unit test to check for full return values.

Bug: 7896653
Change-Id: Idab766bc3e2be129e85bd25bac6bf73aeeb80be2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ef5fa9a68690d19e2a9c9748d63e2cabb5075813 10-May-2013 Jay Shrauner <shrauner@google.com> Fix CommitProcessor unittest

Fix createRawContact() call that was missed in update to call semantics.

Bug:8894174
Change-Id: Ib52ec9add1c6c829b359d6faebff416b81afca2a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9aec6b8422f8d153a91a241f1b10d6e48d338bb8 10-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fix broken build.

Missed two methods during a refactor. Updating new class prefixes for them.

Bug: 8182147
Change-Id: If3476adf043f2192b53bfaa9fc03c8149a181005
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8ed367fdc0b086d54c489f68d555e2f0a4035f63 12-Mar-2013 Chiao Cheng <chiaocheng@google.com> Adding contacts delta api.

Updates and inserts can be detected through the use of a new timestamp
field in the contacts table.

Deletes can be detected by querying the new deleted_contacts table.

Bug: 8182147
Change-Id: I5c1e596f4e1aa58528afc29396f79cb4051e229c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0c70f1701e264a0e79a14884f8396d2a2e4caacf 05-Apr-2013 Yorke Lee <yorkelee@google.com> Merge "Provider side changes for exposing data usage stats" into jb-mr2-dev
216c434537d05a691add4e22ba3a9d958c976c1e 29-Mar-2013 Yorke Lee <yorkelee@google.com> Provider side changes for exposing data usage stats

Use a uri query parameter to filter for a specific type of data usage,
otherwise the sum of all the data usage stats for that particular
data is returned.

Bug 8124079

Change-Id: Iee4c3accb46c9402f0a1659c9b8943c5a219a169
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
8f8b122c7556350d94c2e349b3093024b0205d8d 08-Mar-2013 Yorke Lee <yorkelee@google.com> Add new apis to CP2

Add Data.Contactables.CONTENT_URI and CONTENT_FILTER_URI
Querying against these uris return email addresses and phone numbers
belonging to all contacts with email/address/names that match the filter
(if provided).
Add VISIBLE_CONTACTS_ONLY boolean parameters to Data

Bug: 8123918

Change-Id: I491cb2ff4c64c9d042d5e21cebc5f90d086c70ac
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
c6e28121e4c522c31c96e0ea97b66012cc571160 01-Mar-2013 Chiao Cheng <chiaocheng@google.com> Reverting is_primary sort order back to previous priority.

Bug: 8129961
Change-Id: If6dd3b5ebec19ef7c9fea493d90f0e8d88435f01
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
dacd5de146b413de86d38b6f56a3fe0b2af4b155 17-Nov-2012 Chiao Cheng <chiaocheng@google.com> Change default sort order for email queries.

- Prioritizing "default" emails over last used emails.
- Added ordering for same domain emails as last order by.

Bug: 7183241
Bug: 7346215
Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a6f9ec007fb108f9f82e73bfdaef7ffc5e67cffc 12-Sep-2012 Yorke Lee <yorkelee@google.com> Skip suffix match if mUseStrictPhoneNumberComparison is true

Don't do the suffix match during the phone number lookup match if
mUseStrictPhoneNumberComparison is true.
Bug: 7000177
Change-Id: I77e60117449cec6c37a9605ba4333a067d02a54c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6db6c6d74da066cbbe3e3b5b89caf1ba5626d240 07-Sep-2012 Yorke Lee <yorkelee@google.com> Change fallback method for contact matching

Modified the fallback method that is used for contact matching
whenever the original query fails to return a result. We previously
performed a 7 digit match but this resulted in problems such as false
positives when the area code is changed but the last 7 digits of
a number are the same. The new fallback method uses the GB method
of matching via the SQLite function phone_number_compare_loose.

Bug: 7000177
Change-Id: I597b4b9e44ab2c4e4a5381832a3e9dfd0d51cf8f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
10840c6bcd8bf0ab2e5f846d345d14e5df9858a7 09-Aug-2012 Makoto Onuki <omakoto@google.com> Don't leave stale normalized number when updating...

with invalid number.

Also ContactsProvider2Test.testPhonesNormalizedNumber() should now work
in non-us countries too.

Bug 6960308

Change-Id: Ib15115f501ce67797dec8d05dc421f5931341b12
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
ae32283e7fc5b749df96523d8bb343b9068b65ba 09-May-2012 Makoto Onuki <omakoto@google.com> Fix transaction handling in the provider

Fixed issues that will happen when a batch operation for applyBatch()
contain operations for both the contacts db and the profile db.

- Make sure to set the right transaction listener when starting a transaction.
There were cases where we started a transaction on the contacts db but passsing
the profile provider as the listener, and vice versa.

- Make sure transaction callbacks operate on the correct DB.
There were cases where ContactsProvider2.onCommit() and its sbilings would
operate on the profile DB, not on the contacts db.

- Change the transaction finishing order.
When we start transactions on both the contacts and the profile DB, we do so
on the contacts db first, and then on the profile db. But when we clsoe them,
we did it in the same order, which could potentially cause a deadlock.
Now we close them in the reverse order; the profile db first, then the
contacts db.

- Remove mActiveDb.
This wasn't set in switchTo{Profile,Contact}Mode(), but was lazily initialized.
But I wasn't too sure if I always set the right db at the right timing.
Looks like I forgot to do so in a few cases. Let's just remove it and always
explicitly get the database from the current db helper.

Bug 6250673

Change-Id: Idd18fc173596c973d0ff8b6e1b2456715c0f14f8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4c3a04572ead6ad9f0cfc20a34db3252fdb31201 16-Jun-2012 Makoto Onuki <omakoto@google.com> Support new query parameters introduced in Iaab5c38a

The new query parameters controls which field hone.CONTENT_FILTER_URI should
search.

Bug 6662259

Change-Id: I6f4cb4439dc4414cb96cf6a9fc66d0758ddf9faa
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
80628945e7e41bb9363c2fbbd2938890b9217792 30-Apr-2012 Makoto Onuki <omakoto@google.com> Don't show the invisible in frequent

Bug 6000492

Change-Id: I5959cad0e3c04476a1b133508c60cdb8037b16f7
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9d9994ea8f6b02d2c1afb48a9d776c4c26d6c989 23-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "New aggregation logic"
0992b9d4969ed0eee6e879db94292b635229e2b7 11-Apr-2012 Makoto Onuki <omakoto@google.com> New aggregation logic

Now a raw contact can be merged into a contact containing raw contacts from
the same account if there's at least one raw contact in those raw contacts
that shares at least one email address, phone number, or identity.

Now the aggregation logic version is 3.

Also:
- Make sure changes to the identity triggers aggregation.

- Stop re-using some HashMaps/HashSets, as they don't shirink the internal
table when clear()ed. During the aggregation update we may put a bunch of
stuff into those, and we want to make sure that we don't keep unnecessarily
bit internal tables after the upgrade. This should be okay with the modern
dalvik GC.

Change-Id: I855085d334679363cf9bffb918ca2ceb0cfe77f5
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
63630bc7f962fd2b6f2c1bc41cbed45a8bc354ba 17-Apr-2012 Makoto Onuki <omakoto@google.com> Use 3 bucket sorting logic for frequent.

Bug 6343819

Change-Id: Id2a2827fca611e62a5a1406faa73026625feaede
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
87426833d4c2c626e032f5d0b84a08b58024daf6 17-Apr-2012 Makoto Onuki <omakoto@google.com> Fix the last failing photo test

Also add some nice features to the asserts for complex data.
- assertImageRawData() now writes the expected and actual images to the
cache dir when failing.

- assertStoredValues() and its siblings now dump the cursor to logcat
when failing.

Bug 6280711

Change-Id: I77aff61b0494580d0b2ba24b35eb045a18cd48c8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
dfab50ecd585e55769dea451cb3a47ff69b8b86d 14-Apr-2012 Makoto Onuki <omakoto@google.com> Fix and simplify data usage feedback

Now it correctly updates both raw_contacts and contacts too, with fewer
sqls and less memory.

Bug 6326418

Change-Id: I89f0f92bae5bad5505b218eca2a29ae56b51fe7f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b6186821548995dce533ee502e82e9abf4c0aadc 13-Apr-2012 Makoto Onuki <omakoto@google.com> Use new URI for deleting usage stats

Bug 5475575

Change-Id: I11894ef80727e2dc22e73330a5afca41c189135b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4e9806e2b347fdbd692d19aeb4fcfd117ebce36e 13-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "New API to clear usage stats"
a780048d2caafbd922444b0c08adb81790db4635 13-Apr-2012 Makoto Onuki <omakoto@google.com> New API to clear usage stats

resolver.delete(DataUsageFeedback.FEEDBACK_URI, null, null);

Bug 5475575

Change-Id: I20adaea0350e95a8f8526507ddc1b2bdc8e8fe13
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c23a30e0510cf56d1dafddc79d1ab99ae9297a3f 12-Apr-2012 Makoto Onuki <omakoto@google.com> Fix most of photo tests

Adjusting existing unit tests for higher res photos turned out to be tricky,
because the size of the test images were selected for 256x256.
(e.g. cropping tests)

Also we don't want the display photo size to change depending on the running
device.

So let's just keep using 256x256 for all unit tests.

Added new asserts to EvenMoreAssert to compare image raw data, which prints
actual/expected dimensions when it fails.

Even with this CL, ContactsProvider2Test.testInputStreamForPhoto() still fails
with the following assert message. The image size seems to be correct, so I'm
not sure why. This may be because we've changed the compression rate, but
I didn't dig into it.

"Different data lengths: expected=1088 actual=1578,
expected dimentions=[96 x 96] actual dimentions=[96 x 96]"

Anyway, with this CL at least PhotoStoreTest will no longer crash, so let's
merge it now and take care of the failing test later.

Change-Id: I935f76acee3c2de99030c62e14f43de07074fb8a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
18cb61aa592aa2c02c7f583f608ad0f8832f5742 07-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Allow access to the NORMALIZED_NUMBER, so that sync adapters can sync it"
084fe28445cf74e3fa93522f8f8e5da6e065b8c3 23-Mar-2012 Makoto Onuki <omakoto@google.com> Make informational queries respect requested projection

Fixed:
- DisplayPhoto.CONTENT_MAX_DIMENSIONS_URI
- StreamItems.CONTENT_LIMIT_URI

Also now ProviderStatus now throws when a non-existent column is requested.

Change-Id: I03c82c31fe78a30d4929335dfb8efc3bff3bc76b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
904f4a2addf4fdf063cb40185cb73252ff0edefd 10-Mar-2012 Daniel Lehmann <lehmannd@google.com> Allow access to the NORMALIZED_NUMBER, so that sync adapters can sync it

Bug:6126736

Change-Id: Ia1c83c4c600e44f3a354aec7e206267341143ef4
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5a515c25c5b43964c97941bfc13b125f9ff068f9 15-Feb-2012 Makoto Onuki <omakoto@google.com> Merge "Cache fast scrolling index."
35997f3fdee2984b6d5373326110eda26929001a 06-Feb-2012 Makoto Onuki <omakoto@google.com> Cache fast scrolling index.

The cache content is also stored in the shared preferences.

The cache is invalidated when:
- contacts (or profile), raw_contacs, or data is modifiled.
- accounts are changed. (Strictly speaking we have to do this only when
an account is being removed, but not when added. But let's just always do this
for just in case.)
- visible contacts are updated; i.e. when custom filter is udpated.
- the locale changes.

Change-Id: I70cfe7c88d3b1a0a0f820338acbe885c136b6e10
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5f673b204620c4c241b3b39c6ac0ee063d22f13b 06-Feb-2012 Makoto Onuki <omakoto@google.com> Fix G+ crash during account switch

Make sure Raw_contacts / groups deletion works with account column selection.

Bug 5970976

Change-Id: If32f716576d6e4362f72f32289aebce012d19e2f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9ba8463dd030e5e26a4f99dfe2a6ad52b2410d73 11-Jan-2012 Makoto Onuki <omakoto@google.com> Account refactoring follow-up

- Check if there's really a new or removed account in
updateAccountsInBackground() before doing everything else.
If there's none, we'll skip re-scanning directories too.

- Preheat the account cache when the provider starts.

- Use account_id for the account filter query parameters. The contacts URI
now supports the parameters too.

Change-Id: I12e1116890df4c20b354618acfaee9dc009dc68e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9d990d339c9e3a9e03f6fe13c260d36665f00e61 16-Dec-2011 Makoto Onuki <omakoto@google.com> Account table refactoring

- Remove the account columns (type, name, data_set) from the
raw_contacts/groups tables and add account_id instead.

- Re-create the accounts table. The new table now has the _ID column. Rows
in this table now has a different lifecyle than before:
-- New row is created as the provider detects a new account during a write
operation to the raw_contacts and groups table.
-- Stale rows are removed upon account removal.

- Removed account consistency check for steam items/photos. We don't do this
kind of check for other tables.

Change-Id: I1ce01590aef70f417fa89426dae762a41d25d656
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
56abe81ced08c7af625b3eb8dd543f9030da9bad 20-Dec-2011 Dave Santoro <dsantoro@google.com> More aggressive fix for phone lookup issues.

Rather than relying on a trailing suffix match on the longer of the
two numbers (the one from caller ID and the one in the database),
this first attempts to do the full internationalized-number-aware
query that we'd normally do, and if no results are returned, falls
back to a comparison of the trailing 7 digits of each number, as
we did in Gingerbread.

Bug: 5742389

Change-Id: I085fe9df336c6d75008423163965c39d91bcd1ce
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ac61fb8b20b05bb7a9af7c6d68bf8cdbdf675102 15-Dec-2011 Makoto Onuki <omakoto@google.com> Fix phone_lookup related tests

Bug 5763216

Change-Id: Iecdf45cf98cfb7bf0ed162f6e386574e4445f6fa
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
fa5cdd337d4d696d326db03c68bfae8645c83b14 21-Nov-2011 Mathew Inwood <mathewi@google.com> Unify and improve isPhoneNumber checks.

- Unify GlobalSearchSupport and ContactsProvider2 isPhoneNumber methods
- Improve phone number recognition for gloval search, using the detected
current country and the SIM country.
- Show 'Create contact' and 'Dial number' suggestion in global search
if there's a contact match too. Otherwise, you can't dial a number
that happens to be a substring of a contacts number.
- Move isVoiceCapable check from GlobalSearchSupport into ContactsProviders
to resolve some testing issues.
- Show 'Create contact' suggestions on tablets.

Bug: 5554109

Change-Id: Ie0afee2a97d7551a267482970f5e0615f1775c7d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
18b09495f5f37b38ff2e1c965e087dfde68c27fb 23-Nov-2011 Makoto Onuki <omakoto@google.com> Remove SUMMARY_GROUP_COUNT_PER_ACCOUNT support (for now)

This sub-query needs to be rewritten for the upcoming accounts
refactoring, but since it's @hide'ed and no one is using it, let's
just remove it for now.

I believe this count can be implemented efficiently using a join
(in a similar way we support SUMMARY_COUNT) rather than a subquery, but
this should be even easier after the refactoring.

Also when we re-implement this, we can just check if the projection
contains SUMMARY_GROUP_COUNT_PER_ACCOUNT, so we'll probably be able to
remove PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT.

Change-Id: I3adc93cdf57280ab06b4a2cab77f834811178af8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e432023d408c461295e53c0593fabb2b4c17aeb3 23-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add Callable URI support

This must be after I4729c87ecd11296599ed0313e8ad1f5aeabbd32b, which
introduces URIs this change depends on.

- CONTENT_URI will return a list containing both phone numbers and
sip addresses.
- CONTENT_FILTER_URI will return a list containing both, filtered
by a parameter. The URI will return addresses starting from
"sip:" too just for convenience. If a user type "johndoe",
sip addresses like "sip:johndoe@example.com" will also be returned.

Bug: 5039627
Change-Id: Ifbbfe9df3b9a560666d35ca78aeb07d513963195
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8ead0dc62d0031a22af0d14c7ed05893507893c9 11-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Allow the provider to conditionally remove duplicate entries

Must be after Ie88af0c3d21919ca201f4fcdd46ca09e9f8d94c0, which
introduced the new flag for duplication removal.

With this change the default behavior for Phone uri will be back
to the behavior before Ie21abb12736715358dd33bc690269f51ae1e0944
being introduced.

Bug: 5484956
Change-Id: I3b6ba3956449520f9e08653fc8beead763a5f8a1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
23ba865a6d204ba4aa29d2fad9989e9c44351e81 27-Oct-2011 Makoto Onuki <omakoto@google.com> Speed up query for group tab

- The old query had overhead propotional to the number of groups.
- The Groups.SUMMARY_WITH_PHONES column is still slow, but we don't use it.
- We can use the same technique for Groups.SUMMARY_GROUP_COUNT_PER_ACCOUNT.

The only downside is that, we're changing the FROM clause dynamically according
to the requested column, which is something that we don't usually do.
Overusing this technique could make code less maintainable...

Bug 5092615

Change-Id: I79b01ae2a232bcd8e3b7186288050fed14a36a72
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4004a43c7fbe48ba72de46cc88eb5567df184258 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Remove Live-Folders

Bug:5254892
Change-Id: I41cf5df369b887361e545d9e0acccef308824875
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d9125effce84804631c8e618ae88b2cfc69cf529 07-Oct-2011 Dave Santoro <dsantoro@google.com> Use internal APIs for cleaning up photos.

This avoids running into security exceptions when the cleanup
involves permission-protected data.

Bug 5422732

Change-Id: I5554d53ca76c5d513467c66782f7bf3ea61aa78b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3a2043b8a68a800d4b1bedb88fbc0e1da8ce4d80 05-Oct-2011 Dave Santoro <dsantoro@google.com> am 36612112: Implement new social stream permissions.

* commit '36612112760df799ef89f7e324e5dfabd5ca0d2b':
Implement new social stream permissions.
36612112760df799ef89f7e324e5dfabd5ca0d2b 04-Oct-2011 Dave Santoro <dsantoro@google.com> Implement new social stream permissions.

Reading/writing social streams now requires READ_SOCIAL_STREAM or
WRITE_SOCIAL_STREAM permission. The special stream item insertion
that occurs on status update insertion is exempt from this
requirement.

Bug 5406886

Change-Id: I6a711d7f33b501e2c331c71684b2eb3a6bfd5ec5
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1744cae1895be1082404220667d1fecf7d148a71 22-Sep-2011 Dave Santoro <dsantoro@google.com> am ae94a710: Merge "Change Settings insert conflict to do an update." into ics-factoryrom

* commit 'ae94a710dbc0ea239277c25986e39ba53904c5fc':
Change Settings insert conflict to do an update.
0e21a867a572679d64d79041eb574d13665178d4 21-Sep-2011 Dave Santoro <dsantoro@google.com> Change Settings insert conflict to do an update.

This was the behavior the Settings table had before (when uniqueness
was enforced by the primary key), and it was assumed by external
apps, including Twitter.

Bug 5336876

Change-Id: Iab792df6a5d31c780a33ddebabdb26c7768f373b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
85077339f2e0c6f21fd92fb8df335f3aae004fba 20-Sep-2011 Dave Santoro <dsantoro@google.com> Add support for profile/<photo> URIs.

The URIs profile/photo and profile/display_photo can be used to load
the thumbnail and display photo (respectively) for the user's profile
entry.

Also had to move ContactDirectoryManagerTest to MediumTests because
the LargeTests are starting to crash due to the SQL memory issue
again.

Bug 5226635

Change-Id: I7bf9787b06a49bf59c758421552dc969e6c6907d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
bd20dbedba706fdf2db7acb1c7d4391e57129d44 14-Sep-2011 Dave Santoro <dsantoro@google.com> Add lookup key support for photo URIs.

Bug 5235737

Change-Id: Iec2ef8ada5b70e22e35b6912ab62e6e680309dc6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6f983fd835f0cdd5ac7931ccd49d44e9ea4c87c0 13-Sep-2011 Dave Santoro <dsantoro@google.com> Fix snippetization tests.

The tests need to be aware of (and use) deferred snippeting.

Change-Id: Ib566a2884f445c0ff02d8968a9362717798aafb8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f9b77edaf5855bf6932fbc4b4b4342273669efef 09-Sep-2011 Dave Santoro <dsantoro@google.com> Add data_set for Settings.

Since data_set may be null, it can't be part of the primary key
for the table, so we need to re-create the table and add
provider-side protection from inserting duplicate settings
records.

Bug 5156004

Change-Id: I25ae53c5670087a116058f0daef5b06cb6ce372b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c88cc79e0e19b8299a2a356c7d70b48f70b4a93e 07-Sep-2011 Dave Santoro <dsantoro@google.com> Clean up stream items on account removal.

Bug 5239627

Change-Id: I0c45baeaf6e3a1730760f49696e1f489ef22490f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6b556103afd9aa1bdfba8164c462093ef0822f31 07-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Fix issue with cleaning up stream item photos."
d2ee1503a0de87863c21153c723442328ad79bb7 07-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Fix status message in contact updates."
c2714bbd397b09a20da476c89560e1caecdcce58 07-Sep-2011 Dave Santoro <dsantoro@google.com> Fix issue with cleaning up stream item photos.

Bug 5250048

Change-Id: Ibb0daef7a089ec851a9201cfd4163173f713f839
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
82780691f1a3b4d8784e29a961b1140cd07bc9a8 07-Sep-2011 Dave Santoro <dsantoro@google.com> Clean up stream items when raw contact is deleted.

Also added support for raw_contact/#/stream_items/# URIs, which we
were returning on stream item inserts for a raw contact.

Bug 5239627

Change-Id: I32116b32f1ebd28f7c86d6dc7567fca8f7c7ff07
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7b0d7b04db42e7a8fd6a511b15da6bcd13f15a3c 31-Aug-2011 Attila Bodis <attila@google.com> Merge "Enable contact matching for incoming calls which only contain local number."
34984173c94fffb45710673f4f92150b87134ce4 26-Aug-2011 Shaopeng Jia <shaopengjia@google.com> Enable contact matching for incoming calls which only contain local
number.

Bug: 5197612
Change-Id: Ia38f097e1e1e8ecad9c41a15d5c7593807d13571
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5d0a768b56ed4bd0dfef81b8389247ba74766659 08-Aug-2011 Dave Santoro <dsantoro@google.com> Separate the profile out into a separate database.

Fundamentally, this works as follows:
1. A separate, structurally identical database is created for
storing profile data. The view columns for identifying whether
a contact or raw contact belongs to the user's profile are
initialized with constant values for each database.
2. Sequence numbers in the new profile database are set to a very
high value (MAX_LONG - MAX_INT) to designate an ID-space in which
profile data is stored. This is important for distinguishing
between contact and profile requests.
3. Contacts Provider URIs are divided into several sets, bucketed
automatically by a new profile-aware URI matcher.
- URIs that explicitly reference the profile.
- URIs that contain IDs (which may be in the profile ID-space).
- URIs that contain lookup keys (which may be a special profile
lookup key).
- URIs for insertion that may contain a profile ID as the parent
for the inserted record (in content values). These can't be
detected by the URI matcher by itself, so this mapping is
maintained in the provider.
By identifying whether a URI falls into one of these sets, the
contacts provider can efficiently determine whether the request
is intended for the profile database or contacts database.
4. The Contacts Provider holds onto two separate copies of the
following, one each for contacts and profiles:
- Database helper
- Transaction context
- Aggregator
- Photo store (the profile one uses a separate directory)
5. During any query/update/insert/delete/openAssetFile operation,
the URI (and content values, if applicable) are examined to
determine whether the operation is intended for the Contacts DB
or the profile DB. If intended for the profile DB, the provider
is switched (in a thread-local manner) to a profile mode, and the
operation is handed off to the profile provider. The profile
provider does a permission check, substitutes the profile database
as the active DB in the contacts provider, and continues the
operation in the Contacts Provider by calling the in-transaction
or local version of the operation, which does its normal
processing, but with everything pointing at profile-specific
databases, aggregators, etc.
6. If the operation isn't determined to be targeted to the profile
database, the provider is similarly switched (thread-locally) into
contacts mode, and the active DB is set to the contacts DB.
7. For batch operations, we only create a transaction for the
contacts DB initially. If any of the operations in the batch end
up targeting the profile DB, we start a transaction for the
profile DB. When the batch is finished, we check for that and
also commit the profile transaction if there were no errors.

Bug 5204577
Bug 5161066
Bug 5155743
Bug 5087853
Bug 5031883
Bug 5198777
Bug 5230140

Change-Id: Ic43a6625cbb6edf52ea076b084647fb0656e28e5
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4747809486541f7a3d342d3e1dd48fb5ea255ad6 28-Aug-2011 Flavio Lerda <flerda@google.com> Fix status message in contact updates.

This fixes a problem with a status message being added to a contact's
update stream. The text contains an extra <p> tag, which leads to extra
newlines being rendered.

Bug: 5176548
Change-Id: I28854bf053508e63ac0345556129e82c9e7984cb
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
cf55cbe8932f620484a3634d13ecc116c32fdc99 25-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Group rows with a same phone number and a contact id.

Bug: 5201809
Change-Id: Ie21abb12736715358dd33bc690269f51ae1e0944
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e3a10e4fcdb8b5e619f02a26fd1a26cef3b149a3 21-Aug-2011 Flavio Lerda <flerda@google.com> Remove extra new line from status updates.

When status updates are added to the stream items, they need to be
converted to HTML. In the process, an extra new line was added at the
end of each of them.

This commit removed this trailing new line, so that the updates are
shown correctly in the UI.

Bug: 5193689
Change-Id: I223070eeb1439a8ffacbfb61d6e86355b14c68db
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
58567abca253f1efa2db5c39e17e42dca589e916 16-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use phone number for grouping when normalized number is null

NORMALIZED_NUMBER may become null when the number isn't able to be
parsed by the library (e.g. pager address). Current implementation
groups multiple numbers with null normalized values into one
result, which confuses users.

Bug: 5040732
Change-Id: I1ad7dfb72dbc5d239aa95a913d35c2d8dfe3167c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0bf6b318e3c994294d4a885f57906debd4a0e64e 15-Aug-2011 Daniel Lehmann <lehmannd@google.com> Several DB changes as requested by ES

- Switch from resource ids to names to prevent breakage on package upgrade
Bug:5135277
- Add SYNC1...SYNC4 columns to StreamItems and StreamItemPhotos
Bug:5119385
- Remove ACTION, ACTION_URI from Groups, StreamItems and StreamItemPhotos
(this reduces db size and prevents click intercepting)
Bug:5135808
- Add some raw-contact fields to the StreamItem and StreamItemPhotos query
Bug:5134081

Doing those changes in one block to prevent too many db upgrade steps

Bug:5135277
Change-Id: I1d1661c9a507d9efd4ef334fe21481097e820b7c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0e272967c6c6662d8a6eed80650dad0369aac085 13-Aug-2011 Dave Santoro <dsantoro@google.com> Merge "Fix openAssetFile method of inserting photos."
c6eab5080340824edd2c6676c4e6b96e142f87e4 12-Aug-2011 Dave Santoro <dsantoro@google.com> Fix openAssetFile method of inserting photos.

For reference, the issue was occurring because the file descriptor
passed back to the caller is parceled immediately, which closes the
file descriptor on the provider side before it even gets to the
caller. The solution was to stop fiddling around with temp files
and just pass back a pipe instead - the provider then can simply
read the image content from the pipe and process it.

Bug 5156644

Change-Id: Ie210f65b5b8681524fed12a53df0c852fc951e5a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d5ef5903570e533a501abe6a8e3d533fdb5318fc 10-Aug-2011 Flavio Lerda <flerda@google.com> Convert status updates to HTML.

Since stream items text is HTML but status updates are text only,
convert the text to HTML when inserting a status update into the stream
items.

Bug: 5122642
Change-Id: I61e3d9802e527c6977e7d29660ffd137ae899dae
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
cce1c9cf029f40b62955f4b545f94c993daefbd2 04-Aug-2011 Dave Santoro <dsantoro@google.com> Add support for updating profile raw contacts.

Bug 5122027

Change-Id: I4c0c4dc3b8b9eedbca347929fe16893aa1630005
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a09d7527b132ec82f98cde1564b0262fd85768c2 01-Aug-2011 Dave Santoro <dsantoro@google.com> Create account record if needed on profile insert.

For accounts without a data set, this should be handled automatically
when the account is added. But with data sets, we need to handle it
specially so that the profile raw contact ID reference has a row to
hang off of.

Other raw contacts or groups with a data set will have the account
record created in the background when the provider is initialized.

Change-Id: I24ea0c389c3bc839aee295f1297e2236c473d66f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a4b8d716eae19f2236ecbc13dc3b31ac4d7cd19e 28-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Return starred with phone number when phone-only"
9dbfd650ccf93714f3266e80f9fbdbcb526ae7b3 28-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Return starred with phone number when phone-only

Bug: 5087645
Change-Id: Ib60353fd44c23566ae0d2cbaa695f5bbdfd26eb0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
43368a3f9e05a979e454e278d6a0e8475f08923d 13-Jul-2011 Dave Santoro <dsantoro@google.com> Provider and DB changes to support data_set field.

The intent of the data set field is to provide a way for multiple
sync adapters from the same account name + type to manage separate
sets of data in the raw_contacts and groups table.

For example, this would allow for Focus groups to be synced in from
Focus via the Google Contacts sync adapter, and for Google+ Circles
to be synced in from the Google+ app, even though both are tied to
the same account name + type.

Bug 5077096

Change-Id: I641c5d233d8d4d70988d209179c4e79bdb9c7ea1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
363bdaba2994539e1a3a2342a9fcf223604d69ea 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make frequent uri work correctly

Also add unit test for it

Bug: 5073384
Change-Id: I7fa41f50883e14a84ef95d2b098379b1d6b47bae
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f1efadb1255fd75305b59802f736905b9d66e449 23-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add group count capability and improve performance

- implement group count feature in group summary uri
- improve performance for the uri
-- starting from data table makes SUMMARY_COUNT
SUMMARY_WITH_PHONES quite slow
- add unit test for group summary uri

Must be after Ibc604770cb61ca9fd92280e58f1cd1bbf30c216a

Bug: 5039532
Change-Id: I58fb1040d9025af2e0820a6de85a4eaf2ae30852
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
45ae7eaf0e2c9459ccbeeb5eb5977f055c4ed8ec 21-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add support for frequent uri

Must be after Ia670229e4d3e793446b0a0dce2590e20709ee18c

Bug: 5050315
Change-Id: I0ad08f65659987aefda20cd1f9fdfb0d375660f0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4928b8c8c7a49ec088884cd9d330eeecc811dca9 20-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make strequent-phone-only returns what we want

- in starred section, just starred persons should be listed.
One person should not appear more than once.
- in freuqent section, we should be able to obtain phone numbers
One person can appear multiple times with different numbers.

To achieve it, we need to tweak results further. Instead of
allowing users to have Contacts columns, we have to allow part of
Data columns (DATA1, DATA2, DATA3). Those Data-columns will be NULL
in the starred section right now.

In order to have those additional columns in Contacts Uri (this is
for Contacts.CONTENT_STREQUENT_URI, not Data), this change has
one restriction: with phone_only flag, users cannot have
IS_USER_PROFILE any more. That's not so critical as phone_only
is not part of public API.

Modify unit test for phone-only results (SMS feedback shouldn't
affect phone-only results). Also introduce comvenient function
for testing feedback stuff in general.

FUTURE TODO:
- We should also be able to obtain a phone number relevant to
the starred person while this change doesn't support it.
- We may need to group numbers by contact instead of showing
them apart (bug: 5059874)

Bug: 5050181
Change-Id: I47f532e5b7bb3f8bfd77215c61abb31a09d7fd51
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6802030a777c0c3ba1dc029c534cca4784260632 16-Jul-2011 Dave Santoro <dsantoro@google.com> Forward-compatibility of old status update API.

With this change, inserts or updates to the old status update API
will be mirrored as stream item inserts or updates in the new
social stream API. This is primarily to bootstrap the new stream
data (which is what the UI will be showing) until such time as data
providers start using the new API.

This change also includes migration to using the new photo storage
system for photos from the social stream API.

Change-Id: I0974444077790f706637dd6b9d1f6f50d204aa6c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f9648a03e88e2d1a91c616a20d903e4c9a2468e5 18-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix malfunctioning bucketization logic

I82052953d5dad42ac171df29248ed25e9b4a2434 dropped the
logic so we need to re-introduce it correctly

As we don't have public API for updating LAST_TIME_USED
columns outside the provider, we need to let the unit test
call a method in ContactsProvider2 directly instead of
calling DataUsageStat API.

- fix the query
- make update logic package-private
- add a unit test for it
- introduce guava to include @VisibleForTesting

Bug: 4998821
Change-Id: I0b699bffffd42a13ab00ac335796687052efb67a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6ae89770d8047852b6a1f6fb3cbac812910aa476 14-Jul-2011 Dave Santoro <dsantoro@google.com> Fix issue with profile checks during updateData().

We were doing a query with profiles included to determine the set of
items to update, but that triggers a permission error if the calling
app doesn't have READ_PROFILE permission (even if the rows being
updated don't affect the profile).

Bug 5028891

Change-Id: Id16d31d5d9d62dea2e62709c6ac03c1562a64438
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
26491aaf710cde688a2b120ef0c13ed8bf6e5bb6 14-Jul-2011 Dave Santoro <dsantoro@google.com> Merge "Large photo storage."
77c0766a8738feb39f1066a7f3106fef71dd295d 14-Jul-2011 Daniel Lehmann <lehmannd@google.com> Fix the tests

Bug:4413120
Change-Id: I796dc50d8e3e978098869fcb7fccd597a84c2e4a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f547fd54d7933e1c03af4a8dc10560c71c38f6b8 27-Jun-2011 Dave Santoro <dsantoro@google.com> Large photo storage.

This change adds support for storing large photos for contacts in the
file system. Large photos passed to the provider will be downscaled
and re-encoded as JPEGs before being stored in the usual data BLOB
field (for the thumbnail) and in the photo store (for the display
photo).

See go/large-photo-design for details.

Change-Id: I26a69ac2ccba631962a3ac5c83edb3f45d7cfc7f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ed6bfd922fd84db21de08c1d12e93c501b86560d 11-Jul-2011 Daniel Lehmann <lehmannd@google.com> Remove restricted white-listing

Bug:4974334
Change-Id: I4dd95089774373d2b67d7e14dc6b7fc40a92d094
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3b505de6c622d20d40b85b361c1437a89aef82de 08-Jul-2011 Daniel Lehmann <lehmannd@google.com> Provider implementation of stream item API.

The following URIs are supported:
contacts/#/stream_items (query stream items by contact ID)
contacts/lookup/*/stream_items (query stream items by lookup key)
contacts/lookup/*/#/stream_items (query stream items by both)
raw_contacts/#/stream_items (query/insert stream items by raw contact ID)
stream_items (query/insert/update/delete stream items)
stream_items/photo (query/insert/update stream items)
stream_items/# (query/update/delete stream items by ID)
stream_items/#/photo (query/insert/delete stream item photos)
stream_items/#/photo/# (query/update/delete stream item photos by IDs)
stream_items_limit (query limits for stream items and photos)

Change-Id: Ice433c53e18087e5e6295ad9a112062d44b12dd2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2f830d3bb66f780937203e9738e046841a070e73 25-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use new data usage stat for strequent contacts

Must be with Ie193bb91ee49b18f4a546a1f52be780bb514301d

- use phone-only query parameter in strequent mode
- introduce data_usage_stat View for combining the table
with some of data/raw_contacts columns, which are needed
for strequent uris.
- modify strequent impl for supporting phone-only search
- modify a test for strequent uri handling

Checked performance. We need UNION ALL there and some nasty
hacks with two sub queries.

Bug: 4371572
Change-Id: I8c81747d8a8ae47ce551067fc4dbe2c48f4f48ae
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
377850d2dfd28eaf1b22273a50cfe066f6667ab9 24-Jun-2011 Dave Santoro <dsantoro@google.com> Renamed INCLUDE_PROFILE param to ALLOW_PROFILE.

Bug: 4777097

Change-Id: Ib254569f2595ae90e5ef72c1c4abcc7a5e45215b
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c591cc2ffecdd0038f787a133606752752294c13 18-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Prefer primary data to others.

Bug: 4723377
Change-Id: Iaeb74924a8567d049adcd91dfa03814a63abf088
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
46abbb56764add30cb6e6506f55d8dededc88113 07-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce data usage table for per-method ranking.

- have a hidden table for per-method promotion
- make filter API use it (phone, email only)
- add a unit test
- remove an old test using previous API

Must be after: I602c0b83afca674904946f59bbdfc4dca07d46e4

Bug: 4371572
Change-Id: I82052953d5dad42ac171df29248ed25e9b4a2434
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
24c1d384b45a6d3c1cc959062a9d4308335fabbf 28-May-2011 Dave Santoro <dsantoro@google.com> URIs and queries to support profiles.

This change includes:
- A database upgrade to support tracking whether a contact represents the
user's profile (represented as an optional raw contact ID specified
per-account, and looked up in the various views).
- New Contact Provider URIs for retrieving profile-specific data:
- profile: To retrieve the user's profile contact.
- profile/data: To retrieve data for the user's profile contact.
- profile/data/#: To retrieve data for a specific data entry for the user's
profile entry, by data ID.
- profile/entities: To select entities for the user's profile.
- profile/as_vcard: To retrieve the profile as a VCard.
- profile/raw_contacts: To retrieve or insert raw contacts for the user's
profile.
- profile/raw_contacts/#: To retrieve a specific raw contact entry for the
user's profile, by raw contact ID.
- profile/raw_contacts/#/data: To retrieve data for a specific raw contact
entry for the user's profile, by raw contact ID.
- profile/raw_contacts/#/entity: To retrieve raw contact entities for a
specific raw contact entry for the user's profile, by raw contact ID.
- Permission checks to ensure that any access to profile data (whether
explicitly through the above URIs or directly via ID) enforces READ_PROFILE
or WRITE_PROFILE access.
- New and updated tests (including permission check cases for all of the above,
plus query checks for each).

I've also had to move a few large tests to medium to work around
b/3329504. I've also removed the database close step from contacts provider
test teardowns, as it doesn't seem to be necessary, and results in almost a 3x
performance boost on test runs.

Change-Id: I220552c26ad1eb3fbf24fdd865df2fe59fe4a688
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5fdc17bae46504edebe7285c3dbc7691ef3fbeb9 07-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix wrong handling in getQueryParameter()

ContactsProvider2#getQueryParameter() wrongly
interprets long parameter name as shorter one which is
substring of the original.
(e.g. "longer_param=value" is also treated as "param=value")

Bug: 4260119
Change-Id: Ide096589106984a5d99e70f754830d7943a7ac5c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3716f1447ceb21180d1301790eabd8b9453f486d 27-Apr-2011 Dave Santoro <dsantoro@google.com> Move snippet logic from DB to a cursor wrapper.

This results in a huge performance boost when doing searches and filters across
large Contacts DBs, since the expensive snippet() function (and associated
joins necessary for its logic) no longer need to be run for each record
returned; instead, the snippetization is only done as each entry is retrieved
from the cursor.

If the query string entered by the user consists of multiple tokens, the DB
snippet() function will still be used.

Bug: 4021462

Change-Id: I60ce69b4506bc7f770f139c127f859689b05f2d3
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7d82ae92714f2132e3a0971d844ae8cdf10d76e7 05-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add "primary account" support.

Two query params "PRIMARY_ACCOUNT_NAME" and
"PRIMARY_ACCOUNT_TYPE" allow users to supply
a primary account associated with the query, which
enables contacts provider to optimize query results.

For example, in an email composition screen, users may
want to promote email addresses related to an account
selected as a "from" field. This change allows the
client to let the contacts provider know the account.

Must be with I2a22be56822226e3ea6b6f2ef23bb77816d0345a

Bug: 3510087
Change-Id: Ibce363d336cb3e3a1fca10bddbd912ec96e4b059
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
17a22fae02931ae536f35293ca13a8de53439f72 26-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Preserving dot in name prefixes like "Mr." and "Prof."

Change-Id: Ife9324d8429961468a6ef3074feb374a63b989f0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
55e5cbf566edd89fc55f4a7f0ef2847084da9b16 25-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Displaying name prefix in the list and detail panel

Bug: 3488074
Change-Id: Ieb13337edbec01dcbd9581500420f47213f972e5
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0db2cea4e4a8082ca8dd7d2023b9f3025c2768d8 17-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Added a couple of regression tests

Bug: 3423385
Change-Id: I6d8ab5c8669b61d69152a3b2d3ba88ffa3fc6ce0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
155accbcb95fc13b984cf0ea8e5498a9c619cbf5 12-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Full text search: email suggestions

Also, removing a bunch of dead code

Bug: 2078420
Change-Id: I2c0a9ddd8e60624049b39ac018f87bfabc6574c2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
30cc766756461da8d53933f88ea01dd2272a90eb 11-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Full text search: minor bug fixes and test clean-up.

Please note that at this stage QSB cannot search by
organization - that index has been removed. Thus
a couple of tests will be failing until QSB support
is restored.

Bug: 2078420
Change-Id: Icb5d4636b18c3fa3e26eca4ed386492cb28db62d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a1e177389debb74a51587720464a527a193bffc1 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for contact search by email address and phone number

Bug: 3344700

Change-Id: I832b24bd312d4ce89b1a33678081ad4fc0f74755
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
bf732767b4d4d7104e4723bda7d3b0eb0f909997 02-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving initialization and callbacks to background

Bug: 3228684
Change-Id: I7fab53092dbf55ebb502bc5d4d2012c88842c8b8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2a8fefb86282c06a7669f80e1b2b86d87619dfc2 01-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Running tests against an in-memory database.

The reduces the total run time for the test suite
from about 600sec to 90sec.

Change-Id: I68b5c17f1710ab7415913f256c925beead4dd825
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6dd371aea88e09cbe56b8c483021f3bf61527331 24-Nov-2010 Daniel Lehmann <lehmannd@google.com> Allow zeroing the primary/super-primary flag

Bug:3212270

Change-Id: Iee664d6a13f66f0f38ed5829488e42b57448dad4
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c039cfb78c40730483fd71178df63ada5826a315 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for the new column: Groups.GROUP_IS_READ_ONLY

Change-Id: I9dc91a03d7732544cedf439e0c940c035cbfdb39
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3826a44d8de41e9c148dd6a967392ea5af478085 18-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for a new ProviderStatus

Change-Id: I76da184b794ea7727b9109e693fbf8834c9450b6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f65b12455184bc69c45634586ab5fd3234ad98d7 23-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> resolved conflicts for merge of 47fd3881 to master

Change-Id: I35ea513b8f0c0694d9afa6095aa718e1624eab5f
47fd3881dfd2a21de29e917b6114974ff0a67b1b 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing unit tests

A bunch of tests were broken by the recent change
of the aggregation policy, because they relied
on the old policy.

Some other tests stopped working after we upgraded
to a new version of ICU.

Updating the tests accordingly.

Change-Id: I97a785015834632a896ed4fc6079744962c7a04c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8295d4dd0fa0530c095c8cc9fd0791e6be1b53ce 16-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> resolved conflicts for merge of 117166d0 to master

Change-Id: Icc51fb6eff0431fe5f73f2d4dfa7810fa1c8885b
093b6446d0c63b8d725324ea41369b76ace153df 14-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the trigger for aggregated presence.

Aggregated presence was not updated properly
when presence was changed to NULL.

Added a test that covers the specific situation.

Bug: 3069107
Change-Id: I52396db7c9006e9f18ec6b7c51b22ba09c0ae480
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
778d92d4dce5f76c649e2aca9d00d3f214cd7643 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding PHOTO_SUPPORT and SHORTCUT_SUPPORT to projection maps

Change-Id: I268debfdfaa635b7564cfa67a98e71800575d367
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3d67ff829e8acb0f650f155c3c0d377c0f46507a 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for PHOTO_URI and PHOTO_THUMBNAIL_URI

Change-Id: I080c3227164eba6804095a4f0cbd82bb5093e161
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
cf832869bcf91b8037d8b7f510a3a213b30764a3 14-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a missing column to projections

Also fixing a couple of broken tests.

Change-Id: I7e2fef3fd421fe0f6a47a39bbb5b44efb9399b69
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c918b0d3ab17a45a392748f43956b927c83eb402 01-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved ordering of email address autocomplete suggestions

Change-Id: Id59c2f40400eb7b3394ea6774ce48036859ecc86
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2530512f639c4979fd7371c7dd25dd67e8118124 26-Aug-2010 Bai Tao <michaelbai@google.com> Store the current country code in call log

a. Created a CountryMonitor class to monitor country for CallLog and Contacts Provider
b. Added a new field countryiso in calls table.
c. Upgrade the database to 406.

Change-Id: I894739c65672b017f8d634f0d9cd5dd11ac930d1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7a3c645fa7db38449d34eb04d4e032fd079c3244 19-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> New ContactsProvider query: complete_name

We want to allow the UI to switch freely
between a single field name and multi-field name.
For that we need to expose the name parsing/concatenation
machinery we have in the contacts provider.

Change-Id: I51586e309e11a90c719d747862b646de7fb8f326
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ac13ddd04d665442de846b59234bdc936a6699b4 14-Apr-2010 Bjorn Bringert <bringert@android.com> Use new public API for memory-backed file descriptors

Bug http://b/issue?id=2595601

Change-Id: Ia274e4c5d7098054bec189e28f2172fb864e6e8c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d9b5910dcb5cf99c4e4a81a794d5e81e17e4992e 14-Aug-2010 Daniel Lehmann <lehmannd@google.com> Update flags to be consistent with GTalk's

Change-Id: Ia56261e9c6a9378f70faa7c5b36d7586e0750a15
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
892a3d9ded5c64a63ae3d5d5c52c59528b466c93 13-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved the phone lookup and the phone filter

a. Altered the phone_lookup table to allow the rows with the same data_id.
b. Added E164 and normalized number for a phone number if it is applicable.
c. Improve the phone lookup by using the build in SQLite function.
d. Improve the phone filter by using 'Like filterparam%'

Change-Id: I1b23d0a10e46ef26467fb72528a7999d23e36c5e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
09ae48b82b17e24016b14a1ab64706222ab1071f 11-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Supplying a default projection to Directories

Change-Id: Ie0de59b99624252e4688113fcc6ff52ec75ac8e4
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a549eb3c9627862a3e45d910d5c981191086a949 30-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for all-encompassing contact/entities URI.

Change-Id: I65821cf0abe2c8a94abd9168e80a0a098c1e2a1f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
dd300fe5f5a1071b1c135af7c76e3ae149edda4d 29-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing two issues with CHAT_CAPABILITY

Also, adding tests for all projection maps.

Change-Id: Iadf6b534905ad09fc15d799837d60dc8b1e91c3d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2d34c281a9b6ebb9db96fc9ac1092c46d5be6b57 18-Jul-2010 Vasu Nori <vnori@google.com> resolved conflicts for merge of aabcd1d3 to master

Change-Id: I458594d5ea2fd0735499b2d17aa4c35b81cb0077
97fd30388bd6530f86679510cd7b43b9c518bcef 17-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementation for new ContactsContract API

Change-Id: I91eb0bc2184f65185a342aa3761afe8549b9e640
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
aabcd1d34a71ad06ee0a9395331540484f1ceb17 15-Jul-2010 Vasu Nori <vnori@google.com> add chat_mode to presence_db tables: presence, aggregate_presence

Change-Id: I62fc49669217a6136e31164713dc25a5296721ef
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e3e79030101447da07547647bad225686eb9b8df 19-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing unnecessary update of contact visibility at boot time

Bug: 2511409
Change-Id: I5191cc424adbaa97648db9cedee6573a16b0232c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
2149ab82f021c204618d0d3644e261fd7a8d8490 05-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for contact/lookup/*/#/data URIs

Change-Id: I941b6e9c7c47a30bbd975881ba755ba0c5862401
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
dd5c25c65f09ada246c826fb6d04f0b6d4cf4388 13-Apr-2010 Fred Quintana <fredq@google.com> move favorites and my contacts group handling to the provider and sync adapter

Change-Id: Ia2aa3b7d5ede8ce00adbd957a2cae5d89051cf4c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
45d8626bf586b5c7111fa86324a7201ae8073607 07-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing phone number picker in search mode.

The phone number picker crashes if you
try to search by something that is neither
a name nor a phone number, e.g. "&(./"

This is a relatively rare use case for people,
but very common for monkeys. The main reason to
fix it now is to allow monkeys to continue running
and discovering other problems.

Bug: 2473955
Change-Id: Ib48e324b4d3ced262cc90a67471a35765742eff1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
33fd566fb6eebdd40a900c0c8a2f6dca894d7829 31-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Cleaning up dangling pointers after account removal.

An aggregated contact points at a raw contact that
contains the contact name. It also points at a photo
row. When we remove an account, we should be fixing
up those pointers. That's exactly what is done
in this CL.

Bug:2557771

Change-Id: I04bc6b23be31ed53b27b48bd2f92eaa1a0838387
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7ceafd016eb07d2de808d18cd5a9463efaee781d 26-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Reflecting name/phonetic name change in name lookup

Bug: 2152608
Change-Id: I56130e9a2ea0a3e7fc62490caf02040591ce6b19
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3b10d3a1ed1052dcdf529da370cb71b74164b158 23-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding phonetic given name to contact name lookup

Bug: 2536325

Change-Id: I66c03e118cef1ccf9449010752dd6ee76b9305cc
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e8d2c8276d6331843410c97751e46fc50b257379 20-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for Data.CONTENT_URI URI for photos

Bug: 2530676
Change-Id: Ibad58c047713fe4e9e13fb0d0ce660f3e852f0a8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
743eac356404195f236ad44379fe9d180beb5bf2 19-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Optimizing the "all accounts" query in ContactsProvider2.

Change-Id: Ia6f8d36956397757c7c246585e37462d09c20337
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b2e27298ae54ec2215eadf98ecc100aedba98d1a 18-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Storing legacy contact status in the database.

We have run into this situation: in a low storage case
contacts were converted, but then the new database
crashed and was recreated as empty. The import process
was not retried because the provider was thinking
that the upgrade was successful based on a value
stored in shared preferences.

Now the value is stored in the target database thus
forcing the provider to restart the import process
if the database gets corrupted after it's complete.

Also, addressing an inconsistency in the provider that
could lead to compiled SQL statements being detached
from their database.

Bug: 2498528


Change-Id: I77e864fa98a86918d31123f4d3488ae1b1b44bc2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
42aff67de3f0f4b8664a74fe6ff63ae191aa51bf 12-Mar-2010 Daniel Lehmann <lehmannd@google.com> Ability to create VCards containing several contacts
Bug:2501468

Change-Id: Ie28f1617d8ca02539eaf7bff90cc9decfa4e4ac6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
48786768751cdd9868fb3cf3c82d63f277a54b6f 11-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Enabling search by phonetic name

This will not apply to existing contacts yet. I will do
a database upgrade in a following CL.

Bug: 2443866

Change-Id: Iee844df16e7cd8b0c0bc8cd19c9a13532589cf38
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
60de6f6c3c70e53b603a47b0efc80993353a8368 10-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fix lookup of lookup-keys that are encoded (e.g. Exchange)
Bug:2497276

Change-Id: Icc503f48bdb96eac077db9b1279485d0a0034340
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
09c6613dd14cb1911da5d62e39a4e54eb8f4666f 09-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding basic support for the new ContactsProvider status URI

Bug: 2498528
Change-Id: I3f27ef0c1cc2efaaef4045f0d03271ae92879ed5
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
08768a0f3434130fa46379c1bbfec93a19094939 06-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Making two changes: extracting actual address from an RFC 822 address and making matching case-insensitive.

Bug: 2254140
Change-Id: I9827f5646664fc2b744c01cc00bd05617ac06fb6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
9fcf109b56cec0aad05322a3b4594228ea06d859 04-Mar-2010 Daniel Lehmann <lehmannd@google.com> Lookup of contacts with known ID and LOOKUP fixed. Used to be a problem for contacts without names
Bug: 2179909

Change-Id: I33bb9e5174d7db81b5502c5bb8f38f861720a104
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
9c6ef008d92017108e3d10dcd8e2146eded9e148 26-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Reflecting the rename of contact search snippet fields.

Change-Id: I0dec0d2b32c099f39f5f74239c9ba397a6fc414f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
916f2d7104bfba857412a66b40ed60fea6546222 25-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for contact search snippets

Bug: 2447965

Change-Id: Id531ca694173751392961510e1207215113b323d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ba2c85b4700fbb3ecaf75e1101735f60b5483527 17-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing the "count contacts grouped by first letter of sort key" URI.

Bug: 2407129
Change-Id: I42a2977650c167cb55a363830503b69feb7ebdb3
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
31168f49a3da9b9a9d5346f3d6a8098b76179c9c 06-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact lookup by company name and title

Bug: 1360100
Change-Id: Ic897ee1cb9e1c11c858b85b4c0c1d364fabccaad
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.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/ContactsProvider2Test.java
e246689441b2ff39cb97de277d6caeec95358863 13-Nov-2009 Jeff Sharkey <jsharkey@android.com> Require both or neither ACCOUNT_NAME and _TYPE.

In places where Accounts are used, this change enforces that
both or neither of name and type are provided. It changes
behavior of resolveAccount() to throw instead of returning
boolean.

Fixes http://b/2258771
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5dd6d5d4acb93adc05f1fde904080787f2397f51 21-Dec-2009 Dmitri Plotnikov <dplotnikov@google.com> Resubmit: Adding support for new Contacts columns for names and sorting

This is in preparation for fixing bugs:
Bug: 2075641
Bug: 2021660
Bug: 2164422
Bug: 2267198

Change-Id: I7696abe8c8fd17d8854632cc8e818b9e4d2e643c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
bca1c8b44f99528fc123d5547723e44771e8e934 21-Dec-2009 Mike Lockwood <lockwood@android.com> Revert "Merge change Ief95261a"

This reverts commit 003009d47e893df100d4020c708296b23c03d28f, reversing
changes made to 5b3b3ec368625c07a2c94d2199a75099d4d9b8a9.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b0812f94fa50c54d06978cdd65651a487c717dff 19-Dec-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding support for new Contacts columns for names and sorting

This is in preparation for fixing bugs:
Bug: 2075641
Bug: 2021660
Bug: 2164422
Bug: 2267198

Change-Id: Ief95261a0f4e2c78b216a842cad47f42ef2935c2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
635a11c53a532d9b5aba5fd7c51a8d47dcb0aaf2 16-Dec-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding Name Splitter functionality that works for CJK names.

- automatic recognition of name language

- the "last name first" full name notation

- automatic recognition of phonetic name alphabet

- handling of the "Last, First Middle" format

- now including middle name and suffix in the full name, e.g. "John K. Smith, Jr."

- preserving dot after the suffix

This is in preparation for fixing bugs:
Bug: 2075641
Bug: 2021660
Bug: 2164422
Bug: 2267198
and merge with eclair-china CLs having to do with sorting using pinyin names.

This CL was reviewed as change Id2f042a8 on the eclair-mr2 branch (abandoned).

Change-Id: I9e63c70a0aa815319bcb28cc6b753acdcf850245
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
62318e1ea8306142a10526534b7d83560ecf5b3a 07-Dec-2009 Fred Quintana <fredq@google.com> changed to use the new EntityIterator interface
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b4e61e064b59e8076df81b061add9fb358fd2ed9 31-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> resolved conflicts for merge of 62715245 to eclair-mr2
627152453c692915ac79191acd1d2d2a4dd6fb0d 30-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Making the first account "adopt" contacts created on the phone before any accounts

Bug: http://b/2222360
Change-Id: If55205305e0673ab3e22f8da5086a772f9990c22
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f7f747a00f4fa7a9e564507693419a5a8db0eb8f 23-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> ContactsProvider2 optimization: two hot spots: parsing query parameters and allocation of Account objects

Stats:
Baseline: 830 yield points, 72 ms per yp, objects: 964 per yp
Optimized: 830 yield points, 72 ms per yp, objects: 772 per yp

Change-Id: I467ba6de114bb73bd0725c3c1fb534db0c1425d1
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d076a108d58b30591f197e1b90fa8de60999c499 23-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing contact aggregation scheduler. The aggregation is no longer running in a separate thread.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d0f63551e3147babcebde5326b31285d7bdf6739 20-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Optimizing ContactsProvide2: reducing the number of "data" queries during contact insert.

Stats:
Baseline: 851 yield points, 97 ms per yp, objects: 1265 per yp
Optimized: 851 yield points, 79 ms per yp, objects: 1132 per yp

Bug: http://b/2198728

Change-Id: I6bc4b59f391ec653db7bd6ceb3e6332b3b2cf928
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9705f5bcb04c4b3012a762fb3ba8620b518587cc 13-Oct-2009 Vasu Nori <vnori@google.com> add support to update/delete data in status_updates table. update tests.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
732961a5b936d316482f9ded6bfc5fe1c99a65c8 08-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2163519] Making ContactsProvider2 honor the super-primary flag on a photo

Change-Id: I92d49bcd95922d0393eee48fc9f81f8e288247f6
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
67c9ed1cefa5c084d3f373d7f1ecb7122983ff15 07-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2171774] Fixing the fixStructuredNameComponents() method

This is effectively a revert of change dd0e0f44fe403ff201d46d5534f7f1148e5ad729
followed by a proper fix for:
[Issue 2160728] Fixing full name update when parts of structured name are deleted

Change-Id: I96e990820938ee79a87411eb926d774c951fa768
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
dd0e0f44fe403ff201d46d5534f7f1148e5ad729 05-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2160728] Fixing full name update when parts of structured name are deleted

Change-Id: I3a206a4cfb09be590bf96476d128791129263742
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4e8ced99f8bbb01abd610a6ca60afcabb6ffe737 01-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2156901] Fixing update of the "starred" flag on raw contacts

Change-Id: I737a6e1a428edaa16c108bbbf5d4a461035560d4
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8920a04b4a68ed6b548bcdef5ca8736dcf8b69b1 29-Sep-2009 Omari Stephens <xsdg@android.com> Update test documentation and suite classifications.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
b38ed2c5ffeb20efc677b4a9229db4a00603aa8d 29-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Renaming OpenHelper to ContactsDatabaseHelper

Change-Id: Iccdf1ebcd8a3ab430941c957f712bb9e7dd2706c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0a185cdcb65d1beb2a295fffbe2ae11a6a2c097f 28-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding support to ContactsProvider2 for status update attribution

Change-Id: Ib98a5fc203a9ce5efb4707b9ce015bd497b8ef10
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
82bd858c9911dfbd8dca52dc276333768b0a429e 28-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding columns to support attribution of status updates. Also renaming some columns to better describe their purpose.

Change-Id: I2018079e540dedb2be1b61671742bbe99e92619c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a23cd5b6f478f6c9dda54173e84bd0098b9f3364 24-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Storing social status updates in a persistent table.

Change-Id: Ic6be86385a4e456ae164499aeec40900294fb118
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
7d9fdcf8346f789436148eff1f00e8f49b370ef0 21-Sep-2009 Neel Parekh <neel@google.com> Allow updating via raw_contacts/#/data
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
bffeabdf3dcf58f963ad1bb4d3e6e51f3ac16cfd 23-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2110703] Using triggers to update aggregate contact presence status

Change-Id: Ib1f55ddb926ebafd43c7776cad1db10217fc1bfc
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a5d05d90333a70d471d78e82caeb5cfa2e4d4c59 21-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> ContactProvider: Make nickname, company and title searchable.

If contact entry doesn't have a name, then nickname, company and title
are used as display name in order of preference.

Internal Bug: 1360100
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4e3790e646bce315a1b34c9dc474eb8152c8eea2 21-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix test breakage as per Dmitri's report.

I'm not sure Contacts team is happy with this behavior: the result of comparation changes depending on
the config. But anyway, this fix should fix the problem...
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0be993f8ef0078b9825a5ffe6add08a6786d8dac 21-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2133143] Updating contact visibility as group membership changes

Change-Id: I289bb688958c04f2dd6e89cd0096ece9ed279257
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
48828f54daafda2edb122258c4c6a7d2ca704128 19-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding support for contacts/data/phones/#, contacts/data/emails/# and contacts/data/postals/#

Change-Id: I6f22e419d29b08b9d9e136d700cc4bd8f35a2397
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
89c626eb655440c86a2e5df076e83708c1b32c17 17-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2125440] Checking account query parameters for all relevant queries

Change-Id: Idf0deeacb556b79ef94774a2cb65b7415b1dea5d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f6be85f72615168c836b05c03ab5fc80d4794a82 15-Sep-2009 Fred Quintana <fredq@google.com> change to use the new CALLER_IS_SYNCADAPTER flag
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8c4f838f899daadb6f46f8c27ab7636023e39c38 12-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> ContactsProvider2: optimizing structured name update

Also implementing a (safe and correct) bulk update of Contacts.

Change-Id: I2bc1badccfbccf53a9630503e104d11bec0e6396
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
81d6a78dffd57f24f9aaecb6cd54e4084c3c9846 11-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Reducing unnecessary triggering of sync adapters by ContactsProvider2

Change-Id: I280cd6d96a76e8df151ddb43b0f1b783501c4373
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1e530df9f7e496dc47f77d4323c89bd413b79b64 11-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2111706] Fixing email filter, which was stopping after an "@"

Change-Id: I4b3a00cc79cc6cc3d1351b5a301a36f6a950d688
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
cb144e1429596701603c016f4a078f6331e6481d 10-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2108974] Deletion of an aggregate contact will now be synched to the server.

Confirmed expected behavior with a unit test and a manual test.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c100221f706afc08409e8317a27d6850b11c54d3 09-Sep-2009 Omari Stephens <xsdg@android.com> Fix typo: IMMEDITATE -> IMMEDIATE
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
01911fa9cfa21f198fd767eedde072acbb879f28 09-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 1789740] Ensuring that organization is used as a contact display name if name itself is unspecified
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5e99505757457d11d9388f6d04960e97fc776a59 06-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Introducing a more advanced email filter, which will do a proper name lookup

Also updating the phone filter to allow the use of a phone number itself
for lookup, including the use of keypad letters.

It uses the normalized name and avoids returning duplicate results.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
0c0adda32be5de3acf392ab715cff468b6b340f8 05-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact aggregation exception API.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
70d2ff8c87961703351b223ce8b15342fe795a0b 02-Sep-2009 Cynthia Wong <cynthiaw@google.com> Add an onAccountsUpdated handler, to delete contacts if an account is deleted.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
af088aeb51685eed17580edc04b495d12232ecf9 04-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing references to deprecated API
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a5bfaf55790262eea97de432d9e7f313c219c066 03-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding a trigger to implement the "removeContactIfSingleton" functionality.

Also clearing out name lookup and aggregation exception tables upon deletion of a raw contact.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
25abcf949c0dd826a770b437489b83de48975cea 02-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2084618] Making the contact aggregator favor better display names.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1b7a7947242bb3b8caaed871775e62d486144c9f 31-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Implementing live folders in ContactsProvider2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5870f2dcc2ac7715b2c078a886ee346622e7887e 31-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding soft identity to Contacts
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e2579e029472f76b2dfda141444d775c67da0ec8 28-Aug-2009 Cynthia Wong <cynthiaw@google.com> Use the account name and type when we are doing update and deletes on contacts in the provider. Added a test for the delete case.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
ff2de103f7e3eeeff4665ef63f07460fef053d6d 27-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing "summary"-style URIs.

We will determine whether to include Presence by looking at the requested projection.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
8e45e5f2142db78941b095f7418cc05b71668094 26-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Several changes in Contact Aggregation logic:

- The first request to aggregate will run immediately. The accumulation will only begin if
the following request shows up within 1/2 sec
- Reaggregation will no longer remove and reinsert Contacts. Once created, it will keep
the aggregate contact record. The only situations when it will be deleted is a join or
removal of all constituent raw contacts.
- Data updates and deletes will now trigger Contact update to keep names, photos etc
in sync with the constituent data.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
653f73c9417ee0d2cf90e9aacd32848016747cf7 22-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2065658] Editing a phone number now updates phone lookup table

... and some optimizations
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4dcd106ccc27dbbfaae86baf0cd57beb42c27ccc 21-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Cleaning up Presence API
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3653cf1fa8fb36a96a7e4a6ebd615438877c3183 21-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding a "Photo" directory under Contacts.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e46667e641cd1c60998e1ccab4b60531d5b12ef7 21-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Introducing AGGREGATED_PRESENCE - thanks to JSharkey for the idea.

This new DB table is maintained in memory and summarizes the presence
status and custom status for each (aggregate) contact. With the help
of this table, we avoid having to do GROUP BY and MAX(status) when
running contacts summary queries. An added benefit is that
we can now get the latest custom status update as part of the
summary query.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a6def2055f5d12cb6ee5cc3dc1adaf39f2b7c97c 21-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Support for data_with_presence URI
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
19a0962e62c13a5e5f8e5b4eed5e30d3477894b4 21-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Support for phones_with_presence URI
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
074cf38e39d500e92fa851a171d0378ab2c528c2 20-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> A test for ContactsContract.Contacts.getPhotoUri
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
e3eb7ef438010c893c429f3031dcc7298171865d 19-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Completing implementation of phone lookup API.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
f992bfab334b760d36a053fc0b439382dcfb51ad 12-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing handling of primary phone/email on Contact.

Adding code to compute HAS_PHONE_NUMBER on a Contact.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
73776ffd5c00e94db987ee30864e9c7a8396d22d 11-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> DIRTY flag on Contacts will no longer be set if the query has the ?mark_as_dirty=true parameter.

Sync adapters should be able to set their own data on the Data row without
triggering another round of syncing.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
94021b213e4db367f60b30fcbfe9019e28571784 10-Aug-2009 Fred Quintana <fredq@google.com> add the deleted flag to the groups table
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
4a023070dab9a069be4cac5f5ba5554b66238484 08-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Hiding security constraints in SQL VIEWS - first cut.

This CL serves two purposes:
1. We hide the restriction checking inside SQL VIEWs, which will prevent security attacks like passing ") OR(1" for selection
2. We gain the ability to use unqualified column names in selections - all columns on a VIEW have unique names.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
3cfe8d532d509fbbe605454e3a32b2361b7e1501 04-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding columns SYNC1-4 and fixing tests.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a908fb5f39aa2021662a6cc317cc7e4db2d8bfb0 04-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Breaking global search support into a separate class and limiting search results to visible contacts only.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
a01e50cb1a5dd21293f8a8fe43f3fe0bf6349164 31-Jul-2009 Jeff Sharkey <jsharkey@android.com> Fix IM constants to match framework change.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
c70dc0e38ff82c6e6d6b7458637c54fbdf446aac 31-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Reimplementing global search integration in ContactsProvider2.

Also fixing bugs in the area of logical deletion of raw contacts and their exclusion from further aggregation.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
226c3dc6e93ca76a84c99100caa31045cba06cf6 28-Jul-2009 Fred Quintana <fredq@google.com> - test that query entities works
- add a view for the contacts entities query to hide the internal column names from user-provided where clauses
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
61d61cb4d13a33c5581765fb4c0f1b3c0b2cdf4c 28-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2017273] Contacts Aggregator doesn't maintain state of dirty bit...
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
d3fde755e73cd3912a488e7cb7d412d3c5f6ca94 28-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> ContactsProvider2: Renaming Aggregates to Contacts
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
373f7d2adc36680c31ff33e9ee12be865af6b5fb 28-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Implementing Presence query.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
5ef0401c311c62e53bde415b99cbb0ff83b0a9a2 28-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> ContactsProvider2: Renaming CONTACT_ID to RAW_CONTACT_ID
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
1fd9b53d9e5d8ea87b69a51fb084c6f0d9f7c93e 27-Jul-2009 Fred Quintana <fredq@google.com> add unit tests for the contacts dirty and version trigger and fix any bugs found
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
33b41fdb8d7c3c654cb070799c9d6e2b4ab16078 27-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Implementing Raw Contact deletion.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
6cffee46a1334d2b3ed19f436b27638451541044 27-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Changing Contacts to RawContacts.

The renaming will be done in baby steps and in the
order of priorities.

Step 1: Contacts->RawContacts and deprecate Contacts
Step 2: Once all is converted, remove Contacts
Step 3: Aggregates->Contacts, including comments in the API
Step 4: Tables and fields
Step 5: Comments in the implementation code

Intermediate steps will be pretty ugly, but the result will be glamorous. I hope you are all still ok with "RawContacts"
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
70b5ee6864cb3368d24a9e876fb93008997b12df 25-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Compatibility support for Presence
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
20a94c86ede7380c8dd8df2f6a72b3c00ac1bed8 24-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing bulk update and delete of contacts data.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
9261b2141aa90a4fed632fd6da03026d4c216280 14-Jul-2009 Fred Quintana <fredq@google.com> - add the DIRTY and VERSION columns to the ContactsProvider2 Groups contract
- make the CP2 allow adding group membership rows with only a sourceid
in which case it will lookup the group row id, creating a group row
if necessary
- added test cases
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsProvider2Test.java
28f8857b1b46bde18b85c6d3c2a63ac44c3c2e1c 08-Jul-2009 Evan Millar <emillar@google.com> Merge commit 'goog/eclair-dev' into merge3

Merged the new contacts content provider into goog/master. The old and
new content providers now live side by side under separate authorities.

Conflicts:
Android.mk
AndroidManifest.xml
res/values/strings.xml