Adding MPEG2 Decoder support to Stagefright and media

Java layer. Depends on http://review.omapzoom.org/#/c/24924/

Change-Id: I3c040de9bdb8197ef5dcf5df69e2f53b65a8ce2d
Signed-off-by: Sergii Doroshenko <x0163979@ti.com>
cmds/am: Adds support for subintents.

In some situation we need to send broacast message with subintent
inside. So add this feature. Parameters:
 EXTRA_KEY - key for subintent
 EXTRA_SUBINTENT_ACTION - action for subintent
 SUBINTENT_URI_DATA - subintent data in URI format
Example:
 adb shell am broadcast -a com.android.launcher.action.INSTALL_SHORTCUT \
   --es android.intent.extra.shortcut.NAME Example_Name \
   --es android.intent.extra.shortcut.ICON_RESOURCE \
     'com.ui.testapp:drawable/ic_launcher' \
   --ent android.intent.extra.shortcut.INTENT \
     action=android.intent.action.MAIN \
	 'launchFlags=0x14000000;component=com.ui.testapp/.TestAppActivity;'
(This example create shortcut for app 'com.ui.testapp' on home screen)

Change-Id: Icaf0851a7d240d8b2af6caea9f76b9fb26a7f401
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Signed-off-by: Ruslan Shymkevych <x0153342@ti.com>
Add OMAP_ENHANCEMENT definition to SystemProperties

Adding OMAP_ENHANCEMENT defenition.

Change-Id: Idaad47fabbd9cd2140714a2a9d682e8a3f49b446
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
Media: Add support for Windows Media Audio/Video

Java layer. Depends on http://review.omapzoom.org/#/c/24880/

Change-Id: If8ba883577bf7495f6e1fe88a47148a4faa2f082
Signed-off-by: Sergii Doroshenko <x0163979@ti.com>
Merge "Add OMAP_ENHANCEMENT definition to SystemProperties" into p-jb-release
MediaController fix for seek bounce issue

Descripiton# The seek threshold is adjusted to avoid bounce effect
during AV playback seek.We will need this logic to eliminate the multiple
seek events coming from user touch events.
Otherwise this would result in seeking to the same IFrame and hence results
in repeating Video and Audio during AV clip seek.

Validation# AV playback seek and normal playback

Change-Id: I390feb053e792a15d1dbbfa58456e915eded0904
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Jean Johnson <a0271255@ti.com>
Signed-off-by: Sergii Doroshenko <x0163979@ti.com>
Merge "cmds/am: Adds support for subintents." into p-jb-release
FM Rx: Added FM Radio support in Android Framework

Added FM Radio support in Android Framework. FM Radio device
is invoked by sending intent to Audio Service by FM Service
once FM is launched.
Patch :16536 opens the capture and playback path for FM
and informs Audio Flinger to stop playback path going into
standby. Once the FM is turned off the playback handle is
released

Porting patch from ics-mr0 to ics-mr1
Porting patch from ICS to JB

Change-Id: I3e9d426a211f2cf49493770f14d694ebe64735e2
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
FM Tx: Added FM Tx support in Android Framework

FM Tx service sends intent to AudioService about FM Tx device which
informs APM about FM Tx Device.

Porting patch from ics-mr0 to ics-mr1
Porting patch from ICS to JB

Change-Id: Id5dd84d0a2f2e1dac79cc698b570df234777da6b
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Make AID_FMRADIO as shared UID

Ported from ICS to JB

Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com>
Change-Id: Ic4c110067bbac54db0ef88af1f048081db74b913
Base HDMI dimensions on mirroring region property

OMAP_ENHANCEMENT

When Hardware Composer sets up UI mirroring it uses system
property persist.hwc.mirroring.region to determine which part
of the screen that has to be mirrored. Height and width of
this region effectively determine resolution of HDMI display.

Change-Id: I9aed961032d903873e2416fd89b1977e63c4613f
Signed-off-by: Mykola Ostrovskyy <mykola@ti.com>
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Merge "FM Rx: Added FM Radio support in Android Framework" into p-jb-release
Merge "FM Tx: Added FM Tx support in Android Framework" into p-jb-release
Merge "Make AID_FMRADIO as shared UID" into p-jb-release
Bluetooth: Fixed memory leak and file handles leak

After next pairing operation with same Bluetooth device
previous BT state machine never stopped, but new one is created.

Change-Id: I2e9eccd678afaba19770b5ba56dfa5fa0b9487de
Signed-off-by: Anatolii.Shuba <x0158321@ti.com>
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
p2p: reset interface when stopping dhcp server

When switching roles from GO to station the p2p interface retains old
IP address of GO.
Fix it by resetting the interface when stopping dhcp server.

Change-Id: I7c1bd1056302b37c5a603452d7be2b252de3e91c
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Merge "Adding MPEG2 Decoder support to Stagefright and media" into p-jb-release
Override external display dimensions for primary TV

OMAP_ENHANCEMENT

If we're using an HDMI primary display the PhoneWindowManager
still is aware that there is an external display and tries to
get the external width and height.

TI already has a patch to calculate a mirroring region if the
customer wants to specify a sub-region of the display to
present on the external display.

However, for a primary HDMI display it seems we shouldn't need
this and should present just the actual display size.

The platform needs to set the Android property "persist.hwc.primary.tv"
to "true" for this to take effect.

Change-Id: I5a6ec1ab4902c72537bb3feb4788284993bd37a4
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
TabletStatusBar: Render GPU to improve render perf

OMAP_ENHANCEMENT

The StatusBar is normally drawn with the CPU, as mentioned it picks this
format because this is supported by the hardware composer (actually the DSS)
because if drew with the CPU Skia would be used and the format would be either
RGBA or RGBX which isn't supported by the OMAP DSS.

Problem with this, is this only works with 0 degree rotation. When CPU rendering
any rotated (UI) layer would have to be composited with SurfaceFlinger. This
composition is expensive, if we hardware accelerate the StatusBar this means
drawing the layer with the GPU and the trick here is that the EGL driver will
perform any rotation *before* it hits SurfaceFlinger. This means SurfaceFlinger
does not have to draw anything.

The expensive part here is that having SurfaceFlinger use the GPU to draw
as well applications using the GPU is more costly that getting the SystemUI to
exploit GPU rotation itself.

Change-Id: I3033dfe4b52a81f9ead4b0268a6bfb2d1fd4d3dc
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Display: get maximum supported texture size

OMAP_ENHANCEMENT

This patch extends the Android framework to allow wallpaper
manager service to see maximum supported texture size.

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