surfaceflinger: fix pre-rotation

Fix courtesy Jonas.Larsson@ti.com

The method for SurfaceTextureLayer queueBuffer() had the wrong
set of arguments so the parent class (SurfaceTexture) method
was being called without saving the layer transform hint.

Change-Id: Ifcfd7ee616d9d77b0c61997a7133119053a66d8b
Signed-off-by: Tony Lofthouse <a0741364@ti.com>

Conflicts:

	services/surfaceflinger/SurfaceTextureLayer.cpp
	services/surfaceflinger/SurfaceTextureLayer.h
frameworks: systemui: Let image wallpaper to be OVERLAY

By handling rotation intents the wallpaper can be rotated and
does not need rotating by the SurfaceFlinger

Patch fixes issue from CSR OMAPS00262733

Change-Id: I90349d7a5f461c3b8044add00298dc8cf829c9c3
Signed-off-by: Kostiantyn Luzan <x0166170@ti.com>
Signed-off-by: Volodymyr Frolov <volodymyr.frolov@ti.com>
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
MKVExtractor: workaround, adjusting the negative time stamps

Some encoders may set negative shifting for the blocks with audio data,
we can just ignore this and set time stamp to 0 for such frames.

Change-Id: If6e57f2684255be025ee689e980f40e09a5e1d61
Signed-off-by: Illia Ragozin <x0160199@ti.com>
StageFright: Skip zero size chunks in mp4 parser

Some mp4 clips were not playing with error ERROR_MALFORMED
returned from stagefright mp4 parser. These clips had zero
size chunks which the parser was not skipping. The patch
achieves this.

Change-Id: If1eb85a00c603dfa0a038ede9602da916d2271ce
Signed-off-by: Dmytro Dubovyk <dmytro.dubovyk@ti.com>
KDecoderInfo is modified for OMAP3

Change-Id: I44d445e1f4646dde7af9d018e969e59ce60c5898
Signed-off-by: madhuphaniraj <x0172622@ti.com>
OMAP3: KDecoderInfo is Modified for 720p Decoder

Change-Id: I12eb0903fec4522bb1c601f9299fdd24328a3552
Signed-off-by: madhuphaniraj <x0172622@ti.com>
libstagefright : Modifications done for Video recording

Change-Id: Ie62705654d7fe754a6805c3ced2a06e7ba495d17
Signed-off-by: madhuphaniraj <x0172622@ti.com>
Audio HAL changes for Camera Video recording with Audio

Change-Id: Ic030e2d03cd706b74d49c120a8ea6d151a7870ca
Signed-off-by: madhuphaniraj <x0172622@ti.com>
Mpeg4Writer : Changes made to support Video odd dimensions

Change-Id: I6278d3e3a9b28bc6c2ef1432684c3ec834f9a0bc
Signed-off-by: madhuphaniraj <x0172622@ti.com>
libstagefright:Audio Recording Fix

Change-Id: Ib960a5cc4bddd9fd1e3cfb6428b5f39d67d7d65d
Signed-off-by: syam <x0178692@ti.com>
SurfaceFlinger: Removal of NO_RGBX_8888 flag in surface flinger for OMAP3

Removing this will allow color format of surface to be set for RGBX8888 that can
improve performance for 32 bit framebuffer.

Change-Id: If49723d07fcb62a8e803dc376518f111d7102475
Signed-off-by: Raghavendra Rayadurga <x0171697@ti.com>
OMAP3: libstagefright: Adding support for OMX.TI.720P.Encoder for 720p Video Recording.

For Video recording default component is OMX.TI.Video.encoder, so for 720p recording
checking for width*height > MAX_RESOLUTION and returning as UNSUPPORTED, so that
720 recording happens through OMX.TI.720P.Encoder.

Baseline profile streams having level 31 are being routed to TI video decoder.

Change-Id: Ib89bc1dcb1f5f954d5e8f1ee53dd2f7fca52b17c
Signed-off-by: x0175457 <x0175457@ti.com>
OMAP3: libstagefright: Fix for Audio playback of MP4 container Format

OMAP3 Audio playback of MP4 container Format are broken  due to condition check for WMV files with old versions of codecs like wmv2,wmv1.
Flag is added to by pass for OMAP3.

Change-Id: I20fa34ea0c3bd73c806edf27b205e17ffbe8dbd0
Signed-off-by: x0175457 <x0175457@ti.com>
These patches, while verified by TI need to be tested and merged individualy as to not break anything
wifi: send FORCE_STOPPED_STATE delayed message

- to make sure to get out of the DriverStoppingState
  when no supplicant state change event comes
  (driver stopping to sleep while not associated to ap)

Change-Id: I93b8156c8d5b9ac7d55b201de8d4becd311609bc
When use ldpi,the sw must recalculated by density

Change-Id: I1ae3939bd2496c56422647e73cb3a6714be6d8ca
OMXCodec: Update actual number of buffercount during OMXPortreconfig

Description: Fix to avoid calling OMX setParameter during
port reconfiguration and after port is enabled.
The function allocateOutputBuffersFromNativeWindow can call
OMX setParameter to set actual buffer count.This condition
depends on MIN_DEQUEUE_BUFFER requirements of ANativeWindow.
This commit fixes this issue by calculating the number of buffer
to be allocated upfront and calling OMX setparameter (if required)
before enabling the port during port reconfiguration.

Change-Id: Icc3f0a51a163e961cdc3db90e230f7e35ac21e96
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
AudioFlinger: AudioResamplerSpeex: Do not overwrite output buffer

I had a fundamental misunderstanding about AudioResampler-class's role
in AudioFlinger's mixer implementation. The output buffer provided to
the resample-method is a shared final output buffer and should not be
overwritten. Instead the resampled audio should be mixed on top of the
output buffer.

Change-Id: I7d51fcae683437cd84f637b585bd2602ae4fb552
Signed-off-by: Jyri Sarha <jsarha@ti.com>

Conflicts:

	services/audioflinger/AudioResamplerSpeex.cpp
wifi: cleanup comment and log messages

Change-Id: I9f41ac259aa96325b6e89eff8dbb7a3267a4ee3b

Conflicts:

	wifi/java/android/net/wifi/WifiStateMachine.java
Fix: Notification LED will not turn off without Keyguard

The problem is that there are cases where the screen turns on,
but there is no Keyguard:
1) The user disables the LockScreen from the Settings.
2) Following the auto screen-timeout, there is a grace period
   (~10 secs) where the Keyguard will not activate after the
   user presses the POWER key.
In those cases, the LED will continue to flash, with the screen
turned on, until the user explicitly acknowledges the notification.
This is redundant (since the user can see their notifications in
the status bar) and a waste of power.

Change-Id: I9a3319be0c3e6dd3baf5691515259e7f08baf217