stagefright: Fix playback for mkv files with lacing

Most mkv files having 'lacing' in their audio section to save space.
Android did not handle this properly, sending all frames in the block
with the same time code, which causes stuttery playback.

Change-Id: I4dc76e7c2a53126c7fbdd3628fe7d339d2e3364e
frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
Add SURFACEFLINGER_FORCE_SCREEN_RELEASE to fix screen off flicker

Needed on (at least) crespo, aries and galaxys2

Change-Id: Iaff5379775b9a19bd3cd8598e885e885cc0e8492
Hiding media from folder with .nomedia file.

This patch allows media files present in a folder with
a .nomedia file to be hidden after these files have been
previously indexed.

Bug: http://code.google.com/p/android/issues/detail?id=24162

Change-Id: Ia42133d0a7b119c76b5eaaffabd054aa1a739817
Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
DexOpt anything on /system in /cache/dalvik-cache

Allow property to disable dexopt on /cache

(cherry-picked commit e2319e46f16b71e71e5e9cd593019edaa48c1be0)

Conflicts:

	cmds/installd/installd.h

Change-Id: I79e5de4b466c6b5175145592f1ca4e6331e4a4ac
telephony: Add SamsungRIL

Patch Set 2: Fix Emergency calling for Samsung CDMA

Patch Set 3: Do not extraneously send RIL poll requests due to extraneous HSDPA update

Patch Set 4: Remove extraneous import accidentally added in Patch Set 3

commit 91cb0a82f785539986ee4f6ef95ccd8c789121d5
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Mon Dec 19 17:53:40 2011 +0700

    SamsungRIL: ignore setCurrentPreferredNetworkType

    Change-Id: Ifa87949da3d807803db932e31c6c2dd053040c9c

commit b578cdb7bf0222a05af65cb09cdfc53aa7457328
Author: Daniel Hillenbrand <info@codeworkx.de>
Date:   Mon Dec 12 18:32:35 2011 +0100

    SamsungRIL: added unknown unsol request 11010

commit 259ccc34d53a0067c730c616814c0ec5fc788d95
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Sun Nov 27 12:06:34 2011 +0700

    SamsungRIL: Always use v3 signal strength

    Our signal processing wouldn't make sense without it anyway.

    Change-Id: Ie101d6b220b00383aa18a9ac2c66e2ef786b7467

commit 1f5730d26e7e0dece905192b4dab6340336a8a21
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Fri Nov 18 21:15:34 2011 +0700

    SamsungRIL: Fix datacall

commit 1838b577a899a1f5259327361d95fe64f706c8e8
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Fri Nov 18 13:50:39 2011 +0700

    SamsungRIL: Fix signal strength

commit 1e23a1d363e7514b32703f604bdc96411cc35330
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Thu Nov 17 17:40:56 2011 +0700

    Brings back SamsungRIL

Change-Id: Ice09e25c8657aad0ddb345d240829789f28d18fb
Fix support for CDMA devices in SamsungRIL.

These fixes are ported from jt1134's fascinatemtd patches and CM7.  For
CM9, the fixes are applied to SamsungRIL directly instead of elsewhere in
the telephony framework.  They include:

- Signal strength reporting: pass raw integer values.
- Voice registration: convert base station values from hex to dec.
- Data call setup/deactivate: start/stop pppd_cdma service and pull network
  parameters from pppd ip-up script.
- CDMA subscription: add missing PRL version from system properties.

Changes from CM7:

Note use of "ril.cdma.data_state" property instead of
"ril.cdma.data_ready".  This property has three states:

- Disconnect(ed): ril.cdma.data_state=0: stop pppd_cdma service.
- Connecting:     ril.cdma.data_state=1: (re)start pppd_cdma.
- Connected:      ril.cdma.data_state=2: pppd_cdma has responded.

The disconnect (0) and connecting (1) states are set by SamsungRIL on the
deactivation and setup, respectively, of a data call.  Prior to setting the
connecting (1) state, SamsungRIL sets the "net.cdma.datalinkinterface" for
pppd_runner's use.

After setting to the connecting (1) state, SamsungRIL waits for pppd_cdma
to respond by (itself) setting the connected (2) state.  This should be
done at the end of a /system/etc/ppp/ip-up script, after that script sets
the following interface values, which SamsungRIL uses to complete the data
call state:

- net.cdma.ppp.interface: $IFNAME (typically "ppp0")
- net.$IFNAME.local-ip:   pppd's local IPv4 address
- net.$IFNAME.remote-ip:  pppd's remote IPv4 address
- net.$IFNAME.dns1:       pppd's primary DNS address
- net.$IFNAME.dns2:       pppd's secondary DNS address