ontactsCommon: Show quickcontact message icon for sim contacts

We should set the resources package of SimAccountType as null, since it
is an embedded account.

Set SimAccountType resourcePackageName as null.

CRs-Fixed: 630973

Change-Id: I5c9cca9393c48ea7144500f33f3245d2b42deea2
Display "Phone", "SD card" to user instead of storage's path

In the path selection screen, display "Phone" instead of "/storage/emulated/0"
and "SD card" instead of "/storage/SDcard1" for better user experience.

Change-Id: I62aa443ef033fc251a35d5dd63a1d4902ccb4524
CRs-Fixed: 633614
ContactsCommn: Contacts crash when click home key

After dismiss ImportExport Dialog, the ImportExport fragment will be
removed in FragmentManager, but when click home key in select account
dialog screen, it will check ImportExport fragment in FragmentManager.

Modify the show method parameter to fragment tag
instead of null.

CRs-Fixed: 635039

Change-Id: I3a6d2fb0fd8cda7f4c961874833041b58181636c
Contacts: Support import contacts from MMS.

 - Add support for import contacts from received MMS.

CRs-Fixed: 636584

Change-Id: I80e945d50e9728d0bcbe1dbfdace40fda6f34e47
Change the Phone and SIM account name and icon

- change the icon res of SIM and Phone account
- change the display name for SIM and phone account
- use the new config to control sip call

Change-Id: I530cd5da78bc72ea606a0d82e426ec0c32a6c6a3
Add a DismissListener for the import dialog to finish its activity.

ANR when press the back key,after canceling the import contacts dialog.

Reason: Although dismiss the dialog, Not stopped the work of its activity.
And keep on pressing the back key, so the device not responed.

Change-Id: Id5a229521ff33cbcd8c4f63a94d9a9958e355728
CRs-Fixed: 636487
ContactsCommon: Fix contacts list item display incomplete issue

ListView.setEmptyView() is invoked before setAdapter(). setEmptyView()
will check the count of items to show empty view, so it will display
incorrectly when the adapter is not empty.

We should invoke setAdapter() before setEmptyView().

CRs-Fixed: 637196

Change-Id: I2f9e0b30f51e6173c55b8cc737f020b0c5dc75cd
Contacts: Fix show SIM contacts in airplane mode

Contacts filters by local phone account when the contacts to display is
phone. But sim account is appended to the query parameter in airplane
mode. It will cause the query can not distinguish which acount is used
to filter and cause the display error.

It is not necessary to append sim account to query parameter when the
original filter is local phone account.

CRs-Fixed: 639544

Change-Id: I47a9d96fd40954603037c8f461530ef42e2b6416
ContactsCommon: isMultiSimEnable() return false when airplane mode is on

When turn on airplane mode, the function return true.

Add a judgement, when airplane mode is on, isMultiSimEnable() return false.

CRs-Fixed: 640281

Change-Id: Ie7a4e17a8d2781dc8ad5725f5de315c1585b157e
Add SIM power down check in airplane mode judgment

When the property("persist.radio.apm_sim_not_pwdn") is 1,
SIM card can be read and wrote on enabling APM mode. In this
situation, don't need to filter SIM contacts.

CRs-Fixed: 641479 640365

Change-Id: Ibe5a34f8c6c4cfd2a7681088fdcf0d2ee66ea082
ContactsCommon: Use setSelection to filter disabled Sim card

Use appendQueryParameter to filter disabled Sim card, but it will cause
the accountName is not empty however accountType is empty, and that will
throw an IllegalArgumentException when users try to get all contacts from
Sim card.

Use setSelection to filter disabled Sim card
rather than appendQueryParameter.

CRs-Fixed: 643446

Change-Id: I0fba7b0082dfaed3805335feff490215d07cd8fd
Contacts: Fix "Tips no number or email when exporting to a full SIM card"

We need check if the SIM is full before prompting no number or email.

Add SIM full check before prompting no number or email.

CRs-Fixed: 647038

Change-Id: I0f6d185576e5f6232114f8fd8a9f381f99aaf038
ContactsCommon: Fix "Can't import contacts from sd card" issue

The SD card path is set as /storage/uicc0 instead of /storage/sdcard1.
And ImportVCardActivity is finished abnormally when we import vcard file.

Change the SD card judgment method, refer to FileExplorer.
And change dialog OnDismissListener to OnCancelListener.

CRs-Fixed: 649458

Change-Id: Ie3b10cdc7843d94ad02a556fcfdfa0715c1bad7a
Fix the unit test running failure problem

- Initial the mime type for contacts to make sure unit test can
  running normally.

CRs-Fixed: 652947

Change-Id: I2cfb0cc8e3b6c3c0827be6506fbbd59a81e6395d