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
(cherry picked from commit 999891459b98e5747108424eac3bf54d66a1255d)
(cherry picked from commit 640fea192b8dcaf90d637f1ffe9d694203db16da)
(cherry picked from commit 30112177d241cfc076e7c036e9ee08ddedd1787f)
MMS: Handle case when mobile data is not available

mmsNetworkInfo is null on devices without a modem where mobile data is not available
causing a null pointer crash

CRs-Fixed: 517339

Change-Id: I2522d9da3cea1599d7b865e12134b508b636bde9
(cherry picked from commit eae5bd0bad88c16b98a353eccd66dd38e26b3b97)
(cherry picked from commit f6f5777a6e8f5edee1befe45aa8a69c4447b4dbd)
(cherry picked from commit ed1560a24deeaf4df8034b1851a1c4afe2a30d9c)
Mms(MSIM): Add support for MSIM.

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

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

Add prompt support for SMS
 - Add prompt option in SMS multi sim settings.
 - New iterface API to get SMS prompt is enabled or not.
 - Disply prompt while sending SMS, if user selects
   prompt mode in multi sim settings.

Change-Id: I248a9c6f3fe40b663c3b7fd3ed8fbbb07bc26c8f
Merge "Mms(MSIM): Add support for MSIM."
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
Merge "Fix Null pointer expection when Phone is in low memory"
Forward port Templates functionality

Change-Id: Ieb9e54249dd512e65f23f32d503d11fba88335ee
Bring back QuickMessage, Unicode stripping, TimeStamps and Add to Calendar

Change-Id: I103195f61b13a83573e7bf8f8a1bf08cb8aacc94
Bring back Split SMS

Change-Id: I8b1ee608a1ca3989462f9a12bad19201309ec16b
Port "Fix cropping on MMS inline thumbnails"

The following patch fixes the cropping that was broken in jellybean. This worked
properly in Ice Cream Sandwich and CM9. It now behaves correctly with this
patch. Here are before and after pictures of both a regular photo and a
panorama.

Photo:
before
http://img62.imageshack.us/img62/3783/beforee.png

after
http://img24.imageshack.us/img24/231/afterwd.png

Panorama:
before
http://img194.imageshack.us/img194/3882/panobefore.png

after
http://img607.imageshack.us/img607/962/panoafter.png

Change-Id: Ie37d09bf46eca4efb7dc0be02dbd971648abd4ca
Mms: Remove text/plain for ACTION_SEND

Always display registered apps for android.intent.action.SEND action, but this is not true.
Actually, it doesn't support that mime/type. Just remove it to avoid unexpected behaviour for
external apps.

See ComposeMessageActivity#addAttachment

Change-Id: I4815a59533dbfc3decfbdbc57bf456ebda3cab7a
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix SMS sending.

ACTION_SEND_MESSAGE must be routed through the privileged receiver now,
otherwise it'll be dropped in SmsReceiver.

Change-Id: Ifbe6e222d16053c038ca79a98e6bc837090ea3a3
Fix up receiver declaration.

The intent this receiver listens to is used by the BT MAP implementation
to send out SMS it queued. As the manifest and the
SmsReceiverService.java were in disagreement about the action name, this
didn't work.
Also secure the receiver in the process, it can be used to send out SMS
without having the SEND_SMS permission otherwise.

Change-Id: Ia8d181731baea586865ce3f18fe0864636c2b6f4
Bring back Blacklist support

Change-Id: I85fc96a6e00373e94d8648b8aaa8cf19551f39a7
Allow Mms app to run on non-Blacklist enabled devices

Change-Id: I4fdee513bd6fc5ce04f7a14678c2ce5ce984bede
Fix AAPT warnings

Change-Id: Id791b867bdd0cb07681fa626274480c6316ed061
Mms: Add the ability to select recipients from a checkbox list
When creating a new message you have to write some letters from the
contacts you want to add and select them by clicking on it.

This can be annoying if you want to send your message to several contacts.
With this change you can manually select numbers from contacts and groups
from a checkbox list.

Change-Id: I03681f22a0d949679e2a9cc95c551e4c216b6300
Mms: Bring back layout color abstraction

Change-Id: Id1845ddad8a38a6f2ece7c9531927cb8fc1ab189
Mms: Bring back Translations

Change-Id: Iec5a20a16aef14bdd0042575693e018db6e669ca
Revert "Mms: Remove text/plain for ACTION_SEND"

Per comment from Jorge

Change-Id: Id75275995760136eacb106b5b001fe4ebd3f8310