Providers/Telephony: cmcc bringup

Automatic translation import

Change-Id: I51b241ef5e15a68a441eec372c3e8d6dc534a522
Automatic translation import
------------------------------------------------------
Change-Id: Ie3f2a25e34689d5cdac779fa3cf60625bbc4a9c9
TelephonyProvider: Display APN PPP number

Add a new column "ppp_number" to the carriers database for
displaying the APN PPP number.

Change-Id: Ib1b742257aa1ddfba12f0bfc42e476fca1dcd8c6
APN: Add the read only APN feature.

Add a read only field to the APN database for the read only
APN feature.

Some operators don't want their APNs to be edited by end user to
avoid mistaken changes. End user should be able to only view the
APNs, but not edit.

Change-Id: Ia024088867a3f28d90c015bd728b85e7dacbc673
TelephonyProvider :Add multi-language APN name support

Add a new column "localized_name" to the carriers database for
multi-language APN name support.

The value of localized_name refers to a string resource id in
Strings.xml

Change-Id: If8cd518a42a9f38b35810e8bab498f615f3b81c0
TelephonyProvider: Add CDMA call forwarding function

Add support for CDMA call forwarding function.

Change-Id: I5b42cf39c8d470e84bfe6ac783c70ea36de5cf54
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	AndroidManifest.xml
Mms: Support get messages according to mailbox type and slot id

Add get mailbox messages uri matcher and query message's info
according to mailbox id.

Change-Id: Ibd5d403e8621a614038309d80ae0e7b989aedd29
Add the default APN feature

In case an APN query does not return any result, TelephonyProvider
will do the query again and return the default APNs(mcc=000, mnc=000)
if there is any.

- Add config.xml file to store the additional configurations.
- Add config_enable_default_apn in config.xml file to enable/disable
this feature.
- Add a secondary query for default APNs in case the first query
returns no results.

Change-Id: I0d5964349718829126763ae4cef62ead532a3ab3
Add roaming area APN restriction

- Add a new column "v_mccmnc" to the carriers table to support
the roaming area APN restriction feature.
- Add enableble_roaming_area_apn_restriction in config.xml file
to enable/disable this feature.

Change-Id: I8101cb7435a2b778828cfbfe32b057d2b7815706
MMS: Add interface to query memory usage of the terminal

Query memory usage of the terminal, including:
1 Counts of messages in inbox/sent/outbox/drafts.
2 Used/Unused space by MMS and total space in phone.
3 counts of messages stored in SIM card.
4 Total number of SIM card can store.

Change-Id: Iea868f444454ecfd6dc338e47bd8e1ecbc3600a3
Mms: Support SMS full indicator

Support for query the SMS message count on phone memory in order
to give user an indicator when there is no enough memory to receive
the SMS.

CRs-Fixed: 507935

Change-Id: Ie0a6b97a13c52e712ff8809ebd268989675a47c0
MMS: Support query and delete multi SIM card message.

Add MSimSmsManager to query and delete SIM card message with subscription.

Change-Id: I1a53a1cdab52deaaaeee2bd898483d1f39eef623
CRs-Fixed: 618756
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
TelephonyProvider: Set untranslatables

Change-Id: I50457f53c492e1e01f7d7cfa6722dedef5c94201