MMS: Fix issue no replay option when click SIM card message.

Updated message status to correct status.

CRs-Fixed: 618756
Change-Id: I84e42c29328efb2e55fff9f293f9c3091376d2dd
MMS: Fix display SIM card message incorrect.

Get the SIM card message type always the same, and it difficult to detect
sending or receiving messages in SIM card manage page.
Set the correct message type, let it can detect sending or receiving message.

Change-Id: I7397171b614c7fc593ba8159f2c1248c7e805841
CRs-Fixed: 625994
Mms: Only match the first character when searching for message

The original SQL statement only match the first character of
message content.

Modify the SQL statement to match the entire message content.

CRs-Fixed: 629502

Change-Id: I57500c99adf8cfb48ad941c4f490cb4ea636b2b3
Mms: Fix no message show after copying SMS to phone

Can not get recipient address from sent message in SIM card.
Add an API for getting recipient address of submit pdu.

Change-Id: Ic6fe103c009a55bf057c0f80965c99731bcb81a4
CRs-Fixed: 627278
Mms: Fix issue that message will crash when sending mms and can not
download mms.

When sending mms on CT, do not get the outputstream of the attachment
by uri due to use incorrect methord to compare the path, and finally
it occurs null pointer exception.

Use canonical path to determin whether two paths point to the same
file, because it will change symbolic link to canonical paths when
comparing the paths.

Change-Id: Iab88744b664748bc590b0df488b6c9f4c5529ebf
CRs-Fixed: 637113
TelephonyProvider: Support classification search for message.

The Mms application does not support classify of search mode.

Create a new SearchActivityExtend Activity and add function of classify of
search mode in TelephonyProvider for Mms, to achieve extend search functon
by name, number and content.

CRs-Fixed: 637267

Change-Id: Ia4392380c9087bacf8a7ece780ea5ff957d920c7
MMS: Display right subscription when copy SIM message to phone.

When copy SIM message to phone, the subscription will be lost.
Get subscription of SMS from ICC card.

Change-Id: I1170bb0d2bcd2deb11d4d124faaa9e87a2033898
CRs-Fixed: 651493
TelephonyProvider: Fix Message force close when attached long name audio

When the MmsProvider try to create new part file, the file name is too
long, it cause IOException:File name too long.

Limit the new part file name length.

CRs-Fixed: 651477

Change-Id: I543da49029fcf06ac29ff0ecbb124914dcd0d852
MMS: Support query mail box messages by mms or sms selection

It should not append mms selection when search sms table and
should not append sms selection when search pdu table.

According the selection's column which taking "pdu." as mms
and "sms." as sms, append the selection to the right sql part.

CRs-Fixed: 655219

Change-Id: I02370a3319be5acfcb81721b552cf9bc409b91f2
TelephonyProvider: Improve the performance of deleting Mms

1. Drop the trigger used to update word and threads when deleting part.
2. Drop the tirgger used to update threads when deleting pdu.
3. Use code to do the trigger's job, avoid unnecessary operations
   when deleting a lot of MMS.

Change-Id: I250c29693e25e9ad013904153330ed0266b0f23c
CRs-Fixed: 668595
Mms: Fix The MMS detail will display as the first SMS detail

Database query string is wrong.

Change code to check Mms selection.

CRs-Fixed: 671172

Change-Id: I5f8349b5221018f4bd2e2578bbe5ad9134e3b9ad
Mms: Fix it's slow to change back to conversation mode

It will update all threads when change back to conversation mode.
So it will take long time if there are a lot of message.

Define a new pattern to update the thread by given ID.

CRs-Fixed: 669897

Change-Id: I63ec3a96335daaa904c7333f44b5dac0f52149d4
TelephonyProvider: Add visit_area column in DB

Add visit_area column in DB. This value is used to decide whether
to disable/enable an APN in the current place.

Change-Id: Ibd1508da414ead61fc234c31ba734e7d3d98cfae
TelephonyProvider: Add Support for Mms subject search

Add Support for Mms subject search.

CRs-Fixed: 685382

Change-Id: I61c38f43d30390bc79090068e1e4ef5ae39b254a
TelephonyProvider: Add resource config for IP protocol

Add resource config for IP protocol, then this value can be overlaid
by carrier config.

CRs-fixed: 692613

Change-Id: I040535a6b62d85b24e6b5dfdbf1eb0dc1060b65e
TelePhonyProvider: Support call waiting on CDMA phone

There is no call waiting function on CDMA phone.

Support call waiting on CDMA phone.

CRs-Fixed: 694575

Change-Id: I4cef0c95cff7e6bc365807428702908cfc2b6485
TelephonyProvider: Upgrade database for newly added columns

Upgrade database for the following columns:
 * read_only
 * ppp_number
 * localized_name
 * visit_area
 * v_mccmnc

Change-Id: I8e712ff5feccecba84742ecd276188c3796aafc7