SurfaceFlinger: Let HWC handle an alpha blending
                when either C2D or DYN is set

Before we only use GPU to blend an alpha value.
However C2D can also handle the alpha blending,
when the composition type is set to either C2D or DYN,
use HWC to handle this.
And set the alpha value of C2D to HWC_BLENDING_PREMULT,
so later C2D can set alpha blending parameter.

Change-Id: I53be1d4219fbf2467a6391276d59213858a50058
telephony: fix Network Operators list on Samsung Qualcomm devices

setNetworkSelectionModeManual() and responseOperatorInfos() are overridden
in QualcommSharedRIL with code that breaks Samsung Qualcomm RIL's.
Override them, again, to put back the original functionality found in
RIL.java.

Change-Id: I7ac663a60edf62c80cdac831443ca6cddbe3702c
Disable the IllegalStateException on route del

The frameworks often try to remove routes after deleting interfaces
Ignore this exception to reduce log errors.

Change-Id: I8d11598a83708b7689f1d29014f18784ad8c93f9
Sound preference: Safe volume restore when plugging in a headset (1/2)

When enabled, volumes that were above a threshold (~55%) the previous time
something was connected to the audio jack will be restored to that threshold
rather than their full level.

Affects all sound streams apart from voice call audio.

Change-Id: I0007a09ce75b55c95986e38a4cbb24fe4e8200a9
SystemUI : Dismiss keyguard on powerwidget longpress

Dismiss the keyguard on longpress of toggle similar to settings button

Change-Id: I45b64f3f3ac822f5137a2db263bf2e9c3e8a1a45
Make 'Power button instantly locks' toggle work (1/2 framework)

If your device is secure (uses password/PIN/pattern) then the AOSP timeout settings are used.
But the 'Power button instantly locks' toggle is ignored. 'lockImmediately' in KeyguardViewMediator
is always set to true. This fix together with a settings fix switches to the the AOSP handling of this
setting.

Change-Id: Ic7ce8003f1b16a4feaa60ec81082c7ddfce23105

Conflicts:

	policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
Change APP_SWITCH key event to open Android 4.0 recent apps switcher

Without this patch it opens the old Gingerbread-style recent apps.

Thanks to XDA forum member evilisto for demonstrating how to make this change:
http://forum.xda-developers.com/showthread.php?t=1450138

Patch Set 2: Fixed commit dependencies
Patch Set 3: Open app switcher when key is released rather than when it is
             first pressed, to conform with the behaviour of other keys.

Change-Id: Iea04c3015b773b5f375a01a9ee30c5130de13dff
Xcode 4.3 compatibility checkin

PackageInfo is declared as a class, but is used as a struct in a couple of
places which causes the Xcode 4.3 compiler to fail.

This patch removes the struct usage which is causing the compiler to fail.

Signed-off-by: Al Sutton <al@funkyandroid.com>
CpuGovernorService for all, optional iobusy server thread

This is not QCOM specific, enable the feature for all

- Disable easily the iowait busy feature by a flag
This sysfs ondemand feature requires kernel >= 2.6.35

- Add a DBG flag to remove the on/off spams, only keep the notifications
I/CpuGovernorService( 2332): intent action: android.intent.action.SCREEN_ON
I/CpuGovernorService( 2332): intent action: android.intent.action.SCREEN_OFF

Change-Id: Ib1b393caaa5608f54cc8525ea3657fcab0dbf7fe

Conflicts:

	services/java/com/android/server/SystemServer.java