MMS: Create an entry in messaging conversation for WAP PUSH

Messaging application displays the SMS/MMS based on
thread id. If WAP PUSH is present in DB but the actual
retrieval of MMS failed then Messaging app would not
show that message and hence user would never get a chance
to manually download that MMS. Hence it is required that
for every WAP PUSH we create thread id in thread table.

CRs-Fixed: 534457
Change-Id: I7e4b16072a8f2cd5d1424cd8b476ddd98cb9fbeb
Fix for long sms resending after airplane mode off.

Issue:
Result code is updated by newly received service state changed intent
while processing received MO SMS status.
Fix:
Get the result code value from the intent while processing
received MO SMS status.

Change-Id: Ieb46bf2c071412ecbeb92488e196afa054b5095a
CRs-Fixed: 611648
Mms: Add fix to avaoid the network availability check

As Mobile data state tracker is not updating the TYPE_MMS network
availability MMS app should not consider the availability before
sending the MMS.

Change-Id: I9bdc6820d381fa37472420fdd38adf81b778c667
CRs-Fixed: 701471
Mms: Handle Disk Storage Full Crash

- When a device is out of disk storage space, the messages apk will crash
and become unresponsive
- This changes now handles the SQLiteFullException thrown by
the app and displays a toast to the user to indicate that the
storage is full.
CRs-Fixed: 487749

Change-Id: I89956d06e5fdd008a31802c10f33364eb327dff7
Add support to backup SMS/MMS.

Add backup agent to backup SMS and MMS.

Change-Id: I959a71f76e86b85f110c6b719415f9f7b9dfb89a
CTA: SMS/MMS Draft backup

This change supports backing up of DRAFT
messages along with INBOX and SENT.

CRs-fixed: 640945
Change-Id: I0ea12ce396ac87191672e73dc3f98d69f898ea0e
Mms(MSIM): Add support for MSIM.

    Add multi SIM support to SMS and MMS
     - Send SMS/MMS on selected preferred subscription.
     - Display SIM information in message conversation.
     - In MT message extract SIM information.
     - Save SIM information in provider.

    Add prompt support for SMS and MMS
     - New iterface API to get SMS prompt is enabled or not.
     - Disply prompt while sending SMS/MMS, if user selects
       always asks in SIM Settings.

Change-Id: I5302ec7eeafe924031f3df6a51e94953a6623048
Mms: Implementation of DATA+MMS.

- Modify MMS app to use msim api for startUsingNetworkFeature.

Change-Id: I37f84be9c9d19680a817a1366c5df8dd19e11db2
Fix Null pointer expection when Phone is in low memory.

ThumbnailManager tries to get the bitmap and throws null
pointer exception when cache is null.

Change-Id: Iba557e5d9aa6c0990ee47c79788c4c1c55121c63
CRs-Fixed: 539366
Mms: change argument list to multiple method calls

Change-Id: I830201bbbd0434746ec673f8e5f4787f2e1568a8
Fix to return to previous activity on sms/mms notification selection

When an MMS/SMS is received, the TaskStack is rebuilt when
displaying the notification.Do not alter the TaskStack.

Change-Id: I486e75b635577402da3ca1756e1fb5691145d3cd
CRs-Fixed: 580341
MMS: Update database message size info for retrived MMS

Get the message size value from M-Notification.Ind and
update message size of retrived MMS in db for both
Deferred Retrieval case and Immediate Retrieval case

CRs-fixed: 569584

Change-Id: Ib9395bd335fa0181b3f2df8d53b3b709979d4fb5
cherry picked from: Ib9395bd335fa0181b3f2df8d53b3b709979d4fb5
compilation fix on new Aosp

compilation fix on new Aosp

Change-Id: I257341f24eb277f4837d44457ee6e8fe85a7ae9c
MSIM: Handle subinfo record properly

Add checks while accessing displayName from subInfoRecord

Change-Id: Ida84b5e21523824c773dee383ce0b813f38e895f
MMS: Use subscription based SMSManager

Get SMSManager based on the sub id.

Change-Id: Iadc0537f0d66e2d4bf7f1f7c1957411bda0ba961
MMS: Send MMS on user selected sub id

Send MMS on the sub id user selects when prompt
option for SMS is enabled.

Change-Id: I9d11d2560c4ce41d2fcaeb0e5884a06714a77493
The subject disappears after adding Sildeshow

If we create a new slideshow. We drop the old
workingMessage and create a new one. So subject will
disappear.

Keep the subject from the old mWorkingMessage before we
reassign.

Change-Id: I1cc175f8143e702d432d86ae1d69841e8a3a7a47
CRs-Fixed: 568261
Fix the send button disappearance after selecting the forward recipient

During onRestart method the bottom panel is hidden for the
ComposeMessageActivity.

Change-Id: Ica243945237003a37d0832c556e45c5b43dd0497
CRs-Fixed: 568266
Mms: MMS ui fixes for lineNumber and mobileDataEnabled flag.

- Use the linenumber of the subscription as selected from prompt.
- Request PDP activation irrespective of MobileData enable/disable.
Framework would ultimately decide based on resource config if PDP is
allowed or not.

Change-Id: If22f7b9ee04341c8312875a2b52e737b1ab5b0a1
MMS: Display right subscription when receiving class 0 SMS.

Issue:
When receiving class 0 SMS and save it,message is not displayed
as per subscription.

Fix:
Save correct subscription of the received message into SMS datebase.

Change-Id: I4d3b00d5dad201f879ce2f6ff14eb9c3c5505cfc