Clean up enterprise uri related code in CP2

1. Replace all (projection != null) ? projection : xxxDefault code
   with createEmptyCursor

2. Merge CONTACTS_FILTER_ENTERPRISE uri handling code into
   queryFilterEnterprise.

3. Remove function rewriteQueryParameters as it is only used in
   CONTACTS_FILTER_ENTERPRISE code.

4. Merge queryPhoneLookupEnterprise and queryEmailsLookupEnterprise

5. Pull out function convertToLocalUri and add tests for it.

Bug:26978948
Bug:27061543

Change-Id: I2ed8eb88fdc53783622566dd37f79763014dca03
2 files changed