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
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

Conflicts:
	res/layout/recipients_editor.xml
	res/values/cm_strings.xml
Mms: Option to delay SMS Sending

Add feature to delay SMS sending, user being able to cancel
SMS sending by touching the SMS, until set duration is elapsed.

Follow-up of http://review.cyanogenmod.org/#/c/36178/
    (and http://review.cyanogenmod.org/#/c/35231/) on cm-10.2 branch

Change-Id: I09dd045bde30c19c7552ee57d55a4a9434e98712

Conflicts:
	res/values/cm_strings.xml
	src/com/android/mms/transaction/SmsReceiverService.java
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Mms: update resources

Change-Id: I9474491561760f5fd7a4f6b2e054aaca4d668506
Mms: Port custom notification vibrations

Change-Id: I24ec97e3a33aaf0cbfd025b7b29dd0e0fb22343a
Mms: Fix for Transifex

Change-Id: I2d8ae5965930d4a04ebba784ce1483028d5f947a
Implement SMS mark for unread (Cyan-348)

Change-Id: I999e4159603d13062b535b2445cbc7efd3cf9b7b

Conflicts:
	res/values/cm_strings.xml
Revert "Remove smiley support"

This reverts commit c7c68dba4f3440f234f65eef579f9aaa82682f8c.

It seems that the smiley support has been removed by a Google Dev (Tom Taylor)
without any explanations:
    https://android.googlesource.com/platform/packages/apps/Mms/+/c7c68db

This modification gets the smiley back:
 * ASCII Smileys are converted to images in all received/sent messages.
 * A new menu entry (Insert smiley) is available in the menu of a conversation
   view (ComposeMessageActivity).

I also added this support in QuickMessage too (by parsing the message
just before sending it to the TextView).

PAC-Rom Change-Id: I59be9aaed9218459452274c743b71df72d0927ff
Change-Id: Ic3f7005a2c2485405a9259f3ede7fc5ad40336e0

Conflicts:
	src/com/android/mms/ui/MessageListItem.java
Resize the image in background

Decoding and resizing of the image is done in
Adapter-getView method which runs in the main
thread. As a result edit screen resumes after
few seconds, mean time if user flings on that
activity it leads to ANR.

From getView method, adopt lazy loading - spawn
the thread which will decode and resize the
image, upon receiving the requested resized-image
set the image to the view.

Change-Id: I7500afc2fcc4fd7bed8f256d19cbc22ee9baeda0
CRs-Fixed: 550421
Mms: add MobilePaperShowActivity

This activity is from CAF, which allows incoming MMS messages which
appear as slide shows to be broken up into their separate images, while
still exposing the slideshow functinoality via an overflow menu button.

This helps alleviate the symptom of when an iPhone will send more than
one image in one MMS message and Mms app interpreting it as a slideshow
instead of separate images.

This commit is essentially a squash of:
https://www.codeaurora.org/cgit/quic/la/platform/packages/apps/Mms/log/src/com/android/mms/ui/MobilePaperShowActivity.java?h=LNX.LA.3.7.1&showmsg=1

Change-Id: I131a7b6203a071fc4adfc0efc80811a1e51aa995
Mms: use Holo Light theme

PS6:  Changed actionbar buttons order so delete
      is the right-most one.
PS8:  Added "mark as read" drawables (thanks Björn)
PS10: Fixed ActionBar text color.

Screenshots:
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/newmms1.jpg
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/newmms2.jpg
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/newmms3.jpg

Change-Id: I8eefe77687d03b143a85261413a05e3ed76ba090
Mms: Remove white background on the timestamp

The current white background clashes with the gradient
used for the background. It also causes a very slight
overdraw which theoretically hurts performance a bit.

Change-Id: Ib51df2abdb5f3f262d2983dc07635c03d0c75430
Fix a crash when scrolling while a SMS is delayed.

Change-Id: I73f2d5f0e44dd80955db58e29ce1712cbf4e0ebb
Mms: update new messages notification count

Mms should notify the system about how many new sms/mms has (including those ones under conversations)
to the notification system. This allow the system to display the number of events for Mms app according its
settings

Change-Id: I15953283ae657b770869f611a886452199550d67
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Mms: remove unnecesary reference to xxhdpi/ic_menu_call.png

ic_menu_call.png is not used anymore and is caused crashed on low resolution devices

Change-Id: Iaafeed7c467cd128908b20361752d20b218c0f40
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Better QuickMessage layout for mdpi

Change-Id: I07a06ecf23580982ac442aa95004e46c3d202fc5
Mms: disable SplitActionBar

This makes the UI more consistent with newer Email app look.

Screenshots:
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/email.jpg
  https://dl.dropboxusercontent.com/u/16268774/cm_temp/mms.jpg

Change-Id: I71c287f258b9cb8f4b94456ecc9d4034d4680525
Hide "Insert smiley" if emoticons are disabled

There's no point in having "insert smiley" option when
graphical emoticons are disabled.
I still hate these emoticons.

Change-Id: I2b811015910811e211c9e3e203532f19c29a0638