Improve scrolling cache (ported from ICS)

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch automatically
disables scrolling cache when long flings are made.

ported from ICS commit, http://review.cyanogenmod.com/#change,12537

Change-Id: I120a5ac50b36dfcdab16ef77aed5ac40930a2dc5
framework/base: tr: CM Turkish Translations

* Profile names
* Reboot options
* Application groups
* Phone goggles permissions

Change-Id: Icd6ac4e0f6a4e8e0b5bec78ee6542652509bc904
Notification power widget mobiledata auto 2g/3g

Adds an option for the notification power widget mobiledata button to
automatically switch to GSM/2G only when mobile data is disabled and
WCDMA/3G pref when mobile data is enabled.
Saves battery/screen estate/manual effort for users who only turn
mobiledata+3G on when needed.

Change-Id: I2e365a339ad23dc8dee2de43eb0f26ea32363efe
Merge "Fix mDeskModeKeepsScreenOn logic" into gingerbread
additional landscape layout for sim pin unlock

- without this patch, if the phone is in car dock (landscape,
hw keyboard hidden), the sim pin unlock screen is cropped, making
it impossible to unlock the sim without taking the phone out from
the dock, which can be quite dangerous while driving. (You can be
presented with the sim pin unlock screen e.g. when the phone reboots
during navigation.)

Change-Id: Icc4d170fdcc0dabc4ab4aa5c664e4cc389b17513
Add notification type constants.
telephony: Display Supplementary Service Notifications.

telephony: Display Supplementary Service Notifications.

CallManager registers for supplementary service notifications
with Phone to notify Phone App.

Change-Id: I20c1c908200a9a2ced017e14821cb65249521708
Add safety net for notification swipe handling.
Furtherly fix up notification swipe handling.

- Add debug code
- Fix up 'handled' flag return handling
- Fix remaining paths that could leave mItem set
Fix battery charging detection in NotificationManagerService

Battery charging should be detected via the status intent extra
instead of merely checking to see if the phone is plugged.

See r.cyanogenmod.com/7986

Change-Id: I39f6caf6183a866d6061b07e0f62c21a4df71aef
Merge "additional landscape layout for sim pin unlock" into gingerbread
Merge "Add notification type constants." into gingerbread
Merge "framework/base: tr: CM Turkish Translations" into gingerbread
Fix display freeze happening when changing device orientation while
screen is off.

In that case, we inhibited the rotation animation and freezed the screen
directly. When turning on the screen again, we forgot to unfreeze the
screen, though.

How to reproduce issue:
- Start application using orientation sensor (e.g. messaging)
- Put phone to landscape
- Switch off screen
- Put phone to portrait
- Switch on screen
- Result: Some seconds of delay until turning on screen again
Merge "Add missing translation in copy'n'paste menu." into gingerbread
LGEStarRIL: fix DST handling exception

current implementation of NITZ assumes that it is in the form of OFFSET,"DATE,TIME,DST"
and split it into OFFSET and "DATE,TIME" and "DST" and assign DST to parcelextra.
some carriers send NITZ without DST flag, string parsing splits DATE and TIME
and assign TIME for DST, which leads to throwing integer parsing exception,
and then possibly RIL crash
this commit utilize String.split(",") to split NITZ and reconstruct it correctly,
and handle DST as optional.
(also moved offset evaluation to inside only where it is needed.)

Change-Id: I9e2a7d992b3054be0782216152a3e4c04f87fdcb
Add Motorola Wrigley 3G RIL.

The RIL of those devices signals incoming forwarded calls incorrectly.
Instead of sending a supplementary service notification with type = MT
and code2 = 0, it sends code2 = 10.
This RIL class works around that.

Change-Id: I8654663daab084c486fe787e50b9dde01e67895f
Fix screen hang after dismissing a landscape alarm.

This is a squash commit of 3 ICS commits backported to gingerbread:

- Always unfreeze display.

Commit 161dc80ea754d987a905bc5814872168d581040d
AOSP-Change-Id: I7a0f3be49fe723fe59cf6268861bc5fe7f49bc62

- Fix issue #3330037: Unnecessary orientations appear...

...when the device's physical orientation is portrait.

We now hold off on computing app token orientation while preparing
to open or close app tokens.

Also clean up a few other little issues.

Commit 94cb2ebfc3e789384a4c32b24ac1522cdcb3ae79
AOSP-Change-Id: Iae125a975c7706fb4d068c872fd172e69854ff15

Fix issue #5508024: Rotation jank seen in live wallpapers

Fix a few places where we would unfreeze the screen too early.
Now that we are no longer relying on surface flinger freezing, we
can't depend on it keeping the screen frozen until surfaces get
drawn.

Commit 3ec891ae8067dd7afac5c0b5a8af0b726f4a4726
AOSP-Change-Id: Icb03bf30c9599a5e2016817bfa5ca6458adc7249

Change-Id: I8e716c71bb135d198fc5e9802ed13628461f11a9
frameworks: Added Dutch translations

Change-Id: Iedf357afd93611bf6e33f6513c69cdd914b625a6
Why are we updating current.xml? Platform packages can use @hidden internal classes. It seems because the build erroneously says to run make update-api, people are updating the API every time they add a new method or class. I am reverting current.xml to stock Android, because we should NOT be extending the public API that Android provides. Extending the public API and adding new internal classes are different things. Regardless, people are NOT using the CM SDK, so no is using these new "APIs" anyways. This will cause build breaks in the new Jenkins setup (hell, it was broken already, which is why I discovered this). We need to fix this.

Change-Id: Ie18bcb883cd16debbd00d31e9ea5597a3817c523