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: Fix not on the screen in some cases.

     1. Fix not on the screen, if user not set any lock way(None in the lock setting) and the screen is off.
     2. Fix not on the screen, If the pop up dialog show, the screen is off again and receive new message.

     Patch Set 3:
         1. Refactor the code format.
         2. Refactor private variant form mPM to mPowerManager.
         3. Remove unnecessary comment for changed code.

Change-Id: I74e040ba25d8d0dc3fa9c3f6405edc0141482239
Mms: Add new feature 'Add SMS to Calendar remind'.

     I always receive the SMS from my bank. It to tell me how many money need I repay for my credit card.
     But I always forget it or other import SMS I will forget. So I add such feature to put the SMS content to Calendar to notice me.

     Snapshot
     https://docs.google.com/open?id=0B7x96l8QY1apZ1psVURoZW93RTA
     https://docs.google.com/open?id=0B7x96l8QY1apalBZZnpEc2hPVlU

     Patch Set 3:
         Add the lost menu item process funciton.

     Patch Set 4:
         Remove unnecessary white space.

     Patch Set 5:
         Use final static string to instead of the dynamic string variant.

     Patch Set 6:
         1. Fix the commit for 'dd SMS to calendar remind' to 'Add SMS
to calendar reminder'.
         2. Fix the mistake use description as title in the create
event.
         3. Use 'Intent.ACTION_INSERT' to instead of 'Intent.ACTION_EDIT' to keep compatibility with third part calendar application.

     Patch Set 7:
         1. Change the function name from 'addToCalendarRemind' to "addEventToCalendar".
         2. Reuse the define in android.provider.CalendarContract and android.provider.CalendarContract.Events.
         3. Remove the extra brace that will break the compile.

     Patch Set 8:
         Add a blank line after the first line and before the rest of the text for each comment.

     Patch Set 9:
         Add blank line in comment message.

     Patch Set 10:
         Remove Patch Set 9 depend on an abandoned change.

Change-Id: I7fd4165aa90258951d8adbfd13ef438c66634075

Conflicts:

	res/values-zh-rCN/strings.xml
Mms: added the option to change the soft keyboard type when composing messages

	This commit gives the user the option to change the keyboard from Emoji
to enter for a new line or enter to send.
The setting has no effect on the hardware keyboard.

Change-Id: I9bd661dac747652ad01e3b002aa294f691b87a37
Messaging and QuickMessage: Fix Keyboard type handling

This commit fixes several issues with Keyboard type selection
and handling:
  - Cleanup of the preferences xml file (for readability)
  - Removal of the non-functioning 'Enter to send' option
  - Better descriptive text for the remaining 2 options
  - Make the preference follow the Design guidelines
  - QuickMessage now uses the selected keyboard type

Patch set 1-2: Initial commit
Patch set 3  : Remove unused import

Change-Id: I5fe4c4d73cc32539c19541f87e572eea187eb91e

Conflicts:

	res/xml/preferences.xml
fix commit 88a272ccf4c7b8717758d2288054784bc8b236ba