SurfaceFlinger: Skip composition when rotation is not completed

When rotating, each layer's buffer is already changed to
new orientation before SurfaceFlinger gets the signal from
Window Manager. If the orientations of all the buffers are
changed to new orientation, then that's fine. But, sometimes,
only one buffer is changed and others remain the same.
In this case, skip composition.

Change-Id: I850fe8ee6d806e21833e6811f95878fcfb6f7c40
CRs-fixed: 338034
(cherry picked from commit aa15a84003562f2f00660aa05f8baacfd769a425)
Telephony: Add "singlepdp" RIL feature

ICS appears to assume the radio implementation is capable of multiple
simultaneous PDP contexts; maguro, for instance, brings up a second
interface (rmnet1) alongside the primary rmnet0 whenever another APN
is needed.
Other devices (including, from tests, crespo) don't accept this, and
react in unpredictable ways when a SETUP_DATA_CALL request is made before
tearing down any other active context (making it impossible, or at
least hard, to switch APNs).

Since the old setup/deactivateDefaultPDP methods are gone, this patch
adds a back-compatibility "singlepdp" option to the ro.telephony.ril.v3
property, which enforces disabling the default PDP whenever another one
is enabled.

Change-Id: Ib4b030e3f1a32445102ac72aeb68715ef8cebd88
frameworks/base: Dual-pane options part (2/2)

Conflicts:

	core/java/android/provider/Settings.java
Telephony: Make the compat-flag verification method available everywhere

Export needsOldRilFeature() through the commands interface to make it
available to other parts of the telephony stack

Change-Id: I0e6fec083f5208795bf5067f8c73e35660e942ed
libstagefright: State checks before calling OMX_FreeBuffer for multiaac decoder

-- For some of the isdbt clips port setting changed event is recevied
during middle of playback and omx client goes into error state which
is not handled properly.

-- Added state checks for multiaac decoder component based on OMX IL
specification before calling OMX_FreeBuffer

CRs-fixed: 336159
(cherry picked from commit f974af96cd47771bd68d8b10b400dd477df9c514)

Change-Id: I4f2c63b86bbfc82dd3186d4d30c40083a0a93a4c
libstagefright: Fix for playback error during multiple play and pause

- When H/W decoder is used, in pause state empty this buffer is
not called from drainInputBuffer which blocks sending input
buffers to the omx component.
- When all the input buffers are processed by the omx component,
it keeps waiting for the new input buffers after resume.
- As the input buffers are not sent after resume, omx component
do not sent output since it does not have any input buffers to
decode. This is resulting in timeout on the output port.
- Modified IL client to fill all the empty input buffers at omx
start in case of H/W decoder.

CRs-Fixed: 340761
(cherry picked from commit 1ecd319917b0197c23fc53968065aac9380bad6b)

Change-Id: I530a4a91d91c01dd98fe6b818fe458dedb2ac9e0
SurfaceFlinger: notify HWC when layer is in asynchronous mode
SurfaceFlinger: Prevent screencap command from failure

For secure windows, screen capture fails, and the screencap command
falls back to reading from the framebuffer directly.

Instead, draw a black screen on the framebuffer object if there is a
secure session, so that secure layers cannot be captured.

(cherry picked from commit b200317466a3c6f139b333c86bcda4760a431d1b)

Change-Id: Ica31de58cdc42f9e759f1d6821a8e7da308047df
CRs-Fixed: 338570
View: Handle and log NullPointerException in SurfaceView.

Add NullPointerException handling to an existing try block in
SurfaceView::updateWindow(). This is needed to handle an exception
state that could occur if this view is detached from a window while
performing updateWindow().

CRs-Fixed: 329432
(cherry picked from commit f681e6473d361f02ad6b4ac7849f2f6a748f0fe1)

Change-Id: I9dd0bb0203f78d42a81c926d989803487497dfb0
Support for Virgin Mobile MMS.

Code cleaned up and reformatted to be closer to Android coding style.
Credit: progmanos CM9 port of inferiorhumanorgans CM7 VM MMS.

Change-Id: I25a7d8d21abca4318ccb901ff9755644a0e928b0
Update Turkish translations

Change-Id: Idf4c6e41622f93dab8d2cd59baa6d32c5b455700
bootanimation: implement BOARD_CACHE_BOOTANIM

This change slows down bootanimation on certain devices; condition it.

Change-Id: I050c49472b9098daaaeafb80a415a5cca260bd41
elGR - Added missing strings

Change-Id: I32e38e84ea3f8b4f5ace5763fc0cdea7cfee43b1
Adds Traditional Toggles layout.
add aosp slider lockscreen
weather was missing from lockscreen color settings
aosp slider lock: update resources on sound trigger so icon updates appropriately (thanks syaoran12!)
add upcoming events to lockscreen
fix teh usual -.-

Conflicts:

	core/res/res/layout/keyguard_screen_password_landscape.xml
	core/res/res/layout/keyguard_screen_password_portrait.xml
	core/res/res/layout/keyguard_screen_tab_octounlock.xml
	core/res/res/layout/keyguard_screen_tab_octounlock_land.xml
	core/res/res/layout/keyguard_screen_tab_unlock.xml
	core/res/res/layout/keyguard_screen_tab_unlock_land.xml
	core/res/res/layout/keyguard_screen_unlock_landscape.xml
	core/res/res/layout/keyguard_screen_unlock_portrait.xml
aosp slider lock: add lockscreen wallpapers, weather & minor adjustments