Mms: Do not call stopUsingNetworkFeature when another MMS is in process

Around the time when a big MMS transaction (send or received) is about
to complete, a new MMS transaction (send or received) is started.
Due to completion of the previous transation, present code logic
removes the route by calling stopUsingNetworkFeature(). This
results in socket failure for the new MMS transaction.
CRs-Fixed: 488519

Change-Id: I3277754fb096c224c032808bb7ca35773d484076
Mms(MSIM): Add support for MSIM.

Add multi SIM support to SMS and MMS
1) Send SMS/MMS on selected preferred subscription.
2) Display SUB information in message conversation.
3) In MT message case extract SUB information.
4) Save SUB information in provider.

Change-Id: I248a9c6f3fe40b663c3b7fd3ed8fbbb07bc26c8f
Mms(MSIM): MMS Auto Download Feature

A new implemenation to carry out following
operations seemlessly.
1. Activate MMS PDP on all subs and send/received
   MT MMS on all other sub.
2. Deactivate the MMS PDP and revert back to original
   sub post the successful MMS operation.

Change-Id: I5bc5d492f6769ce00b186c5c4eeb9d6efec2408e
Telephony(MSIM): Add prompt support for SMS

1) Add prompt option in SMS multi sim settings.
2) New iterface API to get SMS prompt is enabled or not.
3) Disply prompt while sending SMS, if user selects
   prompt mode in multi sim settings.
CRs-fixed: 474694

Change-Id: Idfb4cc9b097e448c9a40318e15a3eb881533e5a4
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
MMS: Handle case when mobile data is not available

mmsNetworkInfo is null on APQ targets where mobile data is not available
causing a null pointer crash

CRs-Fixed: 517339

Change-Id: I2522d9da3cea1599d7b865e12134b508b636bde9
Merge commit 'android-4.3_r2.1' into merge_branch

* commit 'android-4.3_r2.1':
  When a video attachment from MMS is saved to the device, the content is not displayed on the Gallery app
Merge "MMS: Handle case when mobile data is not available"
Merge "Merge commit 'android-4.3_r2.1' into merge_branch"
Mms: Correct Mms Transaction id handling.

- The transaction id should come from the content location
- Code should detect duplicate transactions solely based on
  mId. For example, code should detect when a retrieve transaction
  and a notification transacation both operation on the same mID.

Change-Id: I3fefcc284ef8f75daacdef530ac19e1577ae73bb
CRs-Fixed: 520957
Merge "Mms: Correct Mms Transaction id handling."
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: 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
Merge "MMS: Create an entry in messaging conversation for WAP PUSH"
Merge "Fix Null pointer expection when Phone is in low memory"
Merge branch 'jb_mr2' of git://codeaurora.org/platform/packages/apps/Mms into jb-mr2

Conflicts:
	src/com/android/mms/transaction/MessagingNotification.java
	src/com/android/mms/ui/MessageListItem.java