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
Update flags to be consistent with GTalk's

Change-Id: Ia56261e9c6a9378f70faa7c5b36d7586e0750a15
Switching to a more narrow configuration change notification

Change-Id: I7d8610e6e92331793b768dd951b746753e1be8b6
Use new public API for memory-backed file descriptors

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

Change-Id: Ia274e4c5d7098054bec189e28f2172fb864e6e8c
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
Resolving a concurrency issue with directory registration

Change-Id: I9b31d04e87d90db45d16cfdaa7f586b7d0441c20
Unwrapping transitive cursors.

When we get a cursor from a Directory it will likely
be wrapped into a CursorWrapper. CursorWrappers are
not CrossProcessCursors and cannot be returned over
the binder, so we need to unwrap them.

Change-Id: I2148d0cf72d8cce299019f3d24b8f4e269a762a3
add emma filter to make file

so the code coverage report won't contain classes from local static
Java libraries

Change-Id: I039963fd2baff94bc9eed8f16a5d2b2786616e0c
am f1ee431f: add emma filter to make file

Merge commit 'f1ee431f3c9e6074ed308312867808490b1770f6'

* commit 'f1ee431f3c9e6074ed308312867808490b1770f6':
  add emma filter to make file
Merge "Unwrapping transitive cursors."
Use new SharedPreferences$Editor.apply() instead of commit().

apply() starts an async disk write and doesn't have a return value but
is otherwise identical in observable effects.

Change-Id: Icd6065e9ef650f80a93e1397bfd6300edc2670c0
am 9516b6ee: Use new SharedPreferences.apply() instead of commit().

Merge commit '9516b6eef76b3504913f5efcadf603969946a3d0'

* commit '9516b6eef76b3504913f5efcadf603969946a3d0':
  Use new SharedPreferences$Editor.apply() instead of commit().
Temporary patch to allow people to sync contacts

The contact sync crashes

Bug: 2965003
Change-Id: I3ec109a9de7ed227d9d702ccbe327a26d25c7c4e
Passing the "limit" parameter to directory providers

Change-Id: Iad41e6a63c69d4f8a00b14f99e8d425a8cff1947
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
Uncommenting a useful test

Change-Id: I4937f7442f2e5e61ad4ba959c479f33986385160
Improved ordering of email address autocomplete suggestions

Change-Id: Id59c2f40400eb7b3394ea6774ce48036859ecc86
Rescanning all packages for directory providers

Now automatically scanning all packages to see
if they come with directory providers whenever
an account is added/changed.

Change-Id: I1ec1851f923aeba47c4c3dc751534c562885f0f0
Reverting CL I3ec109a9

Change-Id: I5fed8b5fdfae1dbebeb53a376456705a6f0f8df9
Allow contacts provider to grant URI permissions.

Change-Id: I65fc58ac6ec17399ee5d02c148512ad307705da7