SimContacts: Add support for manage SIM Contacts.

Add support for
    1) Showing Manage sim contacts instead of import sim contacts in UI.
    2) Showing Export contacts to sim card in UI and launch relevant
       activity to export contacts to SIM.

Change-Id: If0b668a1c91586b67d841bc4b63adf09279261eb
(cherry picked from commit a52aeba43712926387389fe3961b63a94504d7c1)
(cherry picked from commit 80309ce43a4d3b1400a2deeeb0ce90a8cb8623d9)
Add support for Manage SIM Contacts for MultiSim.

Add support to show UI options
    1) Manage sim contacts.
       User can select required subscription or can
       import contacts from all available SIM's.
    2) Export contacts to sim card.
       User can select the SIM card to export contacts to SIM.

Change-Id: I7e727181634d5bfe8eb5f1d273031948be922e4c
Launcher: It will pop shortcut added when the screen no room

Contacts show a sucesssful toast directly after send broadcast to
laucher evenwhen there is no room in launcher,
Laucher has no response to Contacts, and show the error toast
when there is no room.

When the shortcut put successful, Launcher broadcast an intent
with packagename, so Contacts show the sucessful toast only when
receive this intent.

CRs-Fixed: BZ707

Change-Id: I08338476e913fb6fc4ac3c4b2824c2a4ae522dfc
ContactsCommon: add SIM and Phone account type

- add SIM card operation and SIM constants
- add SIM and Phone account type info

Change-Id: I5ca180f7c8d4d56fa8199aeb407fc14eb00f1022
ContactsCommon: add the support for filter SIM contacts

- add the key and interface to filter SIM card contacts.

Change-Id: I1ca9cff66cf0fe19a0b1bb5f690c58b202986d84
ContactsCommon: Contacts app will stopped

Contacts app will stopped when input the
largest words of name.

Set input maximum length for contact name.

CRs-Fixed: 565427

Change-Id: I6092985b4c2b2d06c0a4983a923d61fa95e9e9b2
ContactsCommon: Crashed when try to import contacts

This is caused by a service connection leak.

add fields to record the state of the service connection, unbind
service only when service connection is connected.

CRs-Fixed: 537551

Change-Id: Iacf5670594a9de5e4fd11b2bcb5ff89708741d5a
add SIM and Phone account support in Contacts

- add the support to display SIM and Phone account.
- add the support to save SIM contacts.

Change-Id: I4c0066fd83575905627395d7e8eb46a52c959ca1
ContactsCommon: Fails to import all vcf files

A URI reference includes a URI and a fragment, the component of the URI
following a '#'. The '#' is regarded as separator, and everything between
the scheme separator ':' and the fragment separator '#' will be encoded.
So the URI that get encoded is error when the fileName of vCard contain '#',
and throw FileNotFoundException.

Catch the FileNotFoundException and parse fileName from source uri, if
file exists, prompt as file xxx import fail, if fileName is null,just
prompt as I/O error.

CRs-Fixed: 550399

Change-Id: I2916a54545e9b9110e8820cfddb8ad304aa7f8c2
ContactsCommon: Contact photo in call log can not change in time

When user changed contact's photo, call log will firstly use
cached photo.

Clear cache when data is changed.

CRs-Fixed: 525851

Change-Id: Ide715e6a62bcbd0168a5d97d75bfb73302bae534
add group field for local contacts

- add group field for Phone account,and users could select groups
  from this field for contacts.

Change-Id: I0cf3e740e24752c7e38f838b8896b70ff353b1da
Add import/export contacts from/to SIM card

- add the support to import/exports contacts from/to SIM card
- add the support to auto split contacts according email and
  phone number when export to SIM card
- add the interface to copy contacts during phone and SIM card

Change-Id: I8337bfa34bcffbaed3576389b3951c945eba0400
Support export multi contacts to vCard

- add the Intent for leting user to select multi contacts to
  be exported to vCard.

Change-Id: I831495362ac45ea9ab9c19544fcd8a544fd62434
Support to filter SIM contacts

- when SIM card is disabled or absent,don't show SIM card contacts
- fix the problem that no contacts display when export contacts
  to SIM card

Change-Id: I2687b1b4282f7b57a22907ff1ab0e8e64920fe9a
Filter SIM contacts when airplane mode on

- when airplane mode is on,filter SIM contacts immediately

Change-Id: I34554b85ec598fee3231946480c243554f6ead62
CRs-fxied: 605629
Add dsds feature for two button style

- add the interface to support two button style
- add the support for IP call
- add the resource for two button style

Change-Id: I5043db0bd552077584fef1d0f5e09b28089c4fe6
Correct the key of IP call

- the key of IP call is inconsistent with settings,correct it.

Change-Id: Ifc550c7b040cf71a6dceaaa5dc66c65c92061b3b
ContactsCommon: USIM card contacts can't be deleted

The interface of delete contacts that contain email or anr isn't
opened.

Open the interface.

CRs-Fixed: 618805

Change-Id: I615f712f24838b35b6130287aff4161eacacff3d
Support import vCard from both internal/external storage

- when import vCard file,if both internal and external storage
  are avaliable,it will pops up a dialog to let user select which
  storage will be used.

CRs-Fixed: 605056

Change-Id: I5c90b0bd9141d00885099ffbbc6abcbe932dc5be
Fix export contacts to USIM card failure.

When the email or anr files are full in SIM card, the contacts
won't be saved in SIM card. Drop the email or anr field from exported
contact when the corresponding sim file is full so that name,number
and other fields can be saved in the card.

Change-Id: Icfc31358415bd71429592c4cba71de14a76ce218
CRs-fixed: 614692