Revert "Mms: Add QuickMessage Support to the Messaging app - WIP"

This reverts commit f36f0bf63ff86df6ee0970a25dfe6ab81c834857.
Mms: Add Quick Message Support (1/2)

This adds the ability to display a pop-up Quick Message when a SMS
message is received.  The user can swipe between multiple messages
and reply to messages individually.

Depends on: http://review.cyanogenmod.com/#/c/22350/

Features:
  - Display pop-up Quick Message dialog when message received
  - Multi-message support with swipe between messages
  - Reply to individual messages
  - Mark individual messages as 'Read' or dismiss them all
  - 'Wake and unlock' device on message received

Known issues:
  - Notification light gets dismissed as message pops up when
    screen is locked and does not restart when screen times out
    without user interaction (i.e. message was not seen)

Notes:
  - This only supports SMS, I have no plan for adding MMS support

Screenshot:
  https://dl.dropbox.com/u/50993944/Screenshot_2012-08-26-13-45-10.png

Thank you to:
  - Blunden for the drawables
  - Devatwork for code review and help
  - Burnsra for testing

Patchset 2  - Fix whitespace errors and some cleanup
Patchset 3  - Fix orientation change editText reset
            - Initialize mCurrentQm to prevent NPE
Patchset 4  - Fix HDPI 9patch drawable
Patchset 5  - Rebase
Patchset 6  - Better EditText object handling
            - Better dismiss keyboard handling
            - Fix NPE and a few other minor bugs
Patchset 7  - More formatting changes
Patchset 8  - Fix EditText 'theme'
Patchset 9  - Update commit message to match framework message
Patchset 10 - Better 'Wake and unlock' handling
Patchset 11 - Fix layout for HDPI and MDPI devices
            - Fix small derps introduced by patchset 10
            - Remove WIP

Change-Id: I0af06017a38b264d8ceda69b6fdfbd1f759bf2b5
SmsReceiverService: Stop only if there's no outstanding SMSes being sent.

Service would (previously) stop after handling each message, resulting in a
loss of mSending state.  If multiple messages were queued to be sent, they
would be dispatched to the RIL simultaneously resulting in message send
failures.
Fix 5872: (Mms) Phone doesn't vibrate on receiving texts unless on vibrate only

The actual code uses getRingerMode() to determinate the silent mode. This mode can
take 0-Silent, 1-Vibrate, 2- Normal.
But sound settings and sound widget can configure 4 states (between brackets the value assigned
by getRingerMode()): Ring (2), Ring+Vibrate (2), Silent (0) and Vibrate (1)
When an sms is received and the apps makes the check if need do vibration,
ring+vibrate is not "silent" and vibration is not used.

This change used shouldVibrate applied to "always" setting. Now the model is the next:

On setting "Always"
Ring: false
Ring+Vibrate: true
Silent: false
Vibrate: true

On setting "Only on Silent"
Ring: false
Ring+Vibrate: false
Silent: false
Vibrate: true

Patch 3: Surround brackets

Change-Id: Ie43dfa7576fd21dc5d01426119ce28646f39471a
MMS: Replace emojis with Android-style ones

These are extracted from AndroidEmoji.ttf and then colored and scaled
to fit the stock emoticons.

Change-Id: I35bf45242780ef392567469b7a264e449f5dc589
MMS: Remove Quick Message public API change (2/2)

Use local drawables rather than requiring a pubic api change

Change-Id: I8d2f6994563f3bbbd3871afdc815dd2a9603867b
Revert "Fix 5872: (Mms) Phone doesn't vibrate on receiving texts unless on vibrate only"

This reverts commit 2ed778b03be82f895ae421ced7a2e286a6a90aad.
import more translations (cm)
Revert "Revert "Additional notification action to call sender""

This reverts commit 982c768828aa8dd481eb1c8f81ec0fae07f7ea7e.
Mms: Add 'Quick reply' notification action

This commit leverages the QuickMessage functionality to add a
'Quick reply' action to a SMS notification.

It will only display if:
 - The QuickMessage pop-up is disabled (no need showing the pop-up twice)
 - It is a SMS
 - It is a single message or a thread from a single user

Change-Id: I09f308fdc210c7acd599419106d02e3c14e700a1
Screenshot:
 https://dl.dropbox.com/u/50993944/Screenshot_2012-09-02-11-11-03.png

Thanks again to Blunden for the drawables
Add a separate layout for quick message for XHDPI to make the dialog a bit bigger on high dpi screens (e.g. S3 and GN)
Fix drawable name on mdpi

Change-Id: Ia8ff9236ef3ace19b5f433dfd98a4842dc378b12
Rearrange MMS notification actions

Simply put "quick reply" on the left side since that would most likely
be the option used more often. I feel like it should be ordered in terms
of usability and common sense.

Change-Id: I320b948a2025c3bd4f8aa23f6ba15f0a06212118
Mms: Add Template support to QuickMessage pop-up

This commit adds native Messaging app templates support to the
QuickMessage pop-up.

Clicking on the icon to the left of the reply editor will display
a dialog with the  available templates allowing the user to select
one.  It will then append the selected text to the reply message.

Screenshot:
  https://dl.dropbox.com/u/50993944/Screenshot_2012-09-03-15-43-42.png

Patchset 2  - Remove holo.dark template drawables

Change-Id: I669bf65e60c66d875276a711f76b602f4c3dd395
mms: updated finnish translations

Change-Id: I9cd6d5515baf672596b4286fffc2ef418bb37879
Mms: updated romanian translation

Change-Id: Iee435e68c9a1bbdb9b2c48e4bdc65fcdfbc2cef6
Signed-off-by: Igor <igor_sorocean@hotmail.com>
Mms: Add Chinese translation for quick message.

Change-Id: If603cbb15622e949592f5996b13c4f635414bfb5
Mms: Dutch translations

Change-Id: I2a3dc2f937b3d9ff7e1d371192191705ab905ea5
PT-BR: Add QuickMessage Translation

Change-Id: I81ad0b7dcc492f34187c80a716e46fa3cddbfb45
MMS: Danish QuickMessage translation update

Change-Id: Ia51b8797f944160dd53e62ea793d87281a3d8103