Android denial of service attack using class 0 SMS messages

Bug 9702645
Bug 11970403 - Change to ClassZeroActivity to singleTask

Cherry pick the change from master.

Making every AlertDialog immediately visible can lead to exhaustion
of graphics-related resources, typically memory, resulting in a
broken bufferqueue/hw renderer, and subsequent system crash.

Make ClassZeroActivity a singleTask activity, and queue incoming
messages if one is already being displayed.

Change-Id: I0aef7b857364acc404e79581ba5e503571065483
Import translations. DO NOT MERGE

Change-Id: Id82f32c4e67b791c497dac8a5366e83a3c3befee
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: Ib81400a83d3319e1a69a620ac64dba04a0324aaf
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: I3ad993c5a135428dc543d30bc08eb9139127bf6e
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: Ib50c04b62425bf3cc09512ef63c28430ddd0706b
Auto-generated-cl: translation import
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
Mms: Clear notifications and mark messages read in certain situations

I made these changes to CarbonRom (a fork of CM11), and I
heard that people were still having these issues in CM11.
These two commits (merged into one here) fix issues where messages
in the Mms app were not getting marked as read in certain situations, 
and the notification was not getting cleared when tapped.

More details about these bugs can be found in my original commits to
Carbon:

https://github.com/CarbonDev/android_packages_apps_Mms/commit/b3a831a6e3019d256163b23870e0f4e0134fce16

https://github.com/CarbonDev/android_packages_apps_Mms/commit/21c851e139c56f387c83e11d12d2a2fa8e0c3ff0

Change-Id: If6d716f71d7b6ee5986665c32c0adfab21085a07
Automatic translation import

Change-Id: I78da498d8c135842ee5fdc8440e2218be5d2e1a0
Merge "Mms: Clear notifications and mark messages read in certain situations" into cm-11.0
Merge tag 'android-4.4.3_r1' into HEAD

Android 4.4.3 release 1
Mms: KO translations

Change-Id: Icfc73334b621a61fc4eba2df7d49fbc3c4a3f93f
taskon home

Change-Id: Ib628e06fbd1575bd627f35a70ff6c47c71aaecec
Mms: Update for TRDS Theme

credits to kroz

Change-Id: I88ee2de2069f3a2066e3761d4f335d6694b533dd
Mms Bubbles

Change-Id: Ic0d7bc714cad2464524cf14a3a05306c2b1777d3
transparent triangle

not needed for new bubbles

Change-Id: Ib2defbcd5301daa48f2ccf1b98b950b2e68c6dce