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
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>
Fix sluggish to launch an app

The new trace feature/code in 4.0.4, which will dump the app stack
trace every 500ms if an app can't be launched within 500ms, is
holding the global ActivityManagerService lock unnecessarily. It
slows down the app's startup.

Change-Id: I91fbb043912b4d1fcf3e80d8ac4e61cd20ad89d1
Solution: move the trace file write operations out of sync block.
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
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>
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: Ivaylo Spasov <ispasov@ti.com>
Telephony: Check SmsTracker's mSentIntent for null

When SmsManager's sendMultipartTextMessage is invoked with null sentIntents,
the SmsTracker object is initialized with mSentIntent as null.
This causes NullPointerException.

Change-Id: I7d5bafcc95cfda517a34739d70afd0101eb690c8
Revert "Background data allowed with Restrict Background data setting enabled"

This reverts commit 32f8bf8c742fd5f6f5968547a394334d322aa995.
Add "OMAP buffers are interlaced, try to accomidate this functionality" to reduce the number of google chrome errors