bootanim: Don't cache textures if they're expected to use a lot of VRAM

bootanimation cached all the textures generated until the animation
was completed.
For Hi-res animations with lots of frames (like the new CM9 anim on
xhdpi devices), this implied using large amounts of video RAM, more
than most devices actually have available, causing the animation to
stall (and in some cases, gralloc to lock up); so if an animation is
expected to use a lot of RAM (rough estimation based on frame size
and number of frames), disable cache entirely and generate the textures
on demand

Change-Id: I157e5cdde2aab1d82d980d77cbedd9f127c83a1d

Conflicts:

	cmds/bootanimation/BootAnimation.cpp
bootanimation: performance enhancements

This patch implements two simple performance enhancements, which
might benefit devices. They are completely opt-in by setting
the following variables.

  * TARGET_BOOTANIMATION_PRELOAD: will preload the bootanimation
    zip to memory; this is handy on devices where the storage
    might be slow. By preloading it, we get quick access to the
    zip file, and the animation doesn't stutter.

  * TARGET_BOOTANIMATION_TEXTURE_CACHE: allows maintainers to
    force texture cache on/off.

Also fixes the sign warnings related to int / size_t comparison

Change-Id: Ie92d1b0aa90b43ba39c368a2a33657a60c3a64b5

Conflicts:

	cmds/bootanimation/BootAnimation.cpp
bootanimation: fix usage of LOGW

Change-Id: I1d59df9f44f414d80058a532644cbbb40e22c701
QualcommSharedRIL: Fix JB init sequence

This basically skips the whole qcom-specific initialization state
machine, since the JB states _are_ qcom's.
The Icc thread and setRadioState hooks will almost surely be possible
to delete once JB work settles down

Change-Id: Iea32cc8f4fa3aa2b12a3c44cd2939ec93878e43c
input: Add workaround for broken hardware keyboard support

 * Add workaround var for devices with broken kernels

Change-Id: I5bcda9c0464f75cc080c224382eaecbf48613bf0
Add RIL class for D2 GSM devices with Samsung video call field.

Add a new RIL class with responseCallList that handles the Samsung video call
field. Fixes stuck on hangup and missed incoming call on d2att.

Change-Id: I3204283876a0d1c8af4c6df1c04d8c34c3a6131f
telephony: support for setting add. audioparams for incall audio

Changepick-Id: Ic6f72fba542e1421631826d9bcd86340064c942b

telephony: allow to specify on and off values for setting additional audioparams

Change-Id: I574c0315f0cadc65b064aa621e0f35160a369b2d
Add customized parameters for qcom camera features.

Squashed commit of the following submissions to CAF:

camera: add custom camera parameters to hardware java file.

Change-Id: Ic2b363df6d25a0c3a49aed30e717d10874f533ae

Camera: Add support for wavelet denoise

Change-Id: I97be72615fe5909987ac430034bbdc16f2d20509

Camera : Add support for histogram in frameworks

Change-Id: Ibf751c3b2d488f4be0afaaa3e994372bafeffbe7

Camera: Add ZSL support in framework.

Change-Id: I4e863020d7d407d9c3936beb83dc7abf385c4654

Camera: Add touch AF/AEC support in ICS framework

In, ICS the old touch AF/AEC functions getTouchIndexAf(),
setTouchIndexAf() etc  are no longer valid. Added new functions  to get
the center of touched area.

Change-Id: I37d00040f895cd8a4de2e2a438971aa2d9c1a045

Camera: Add support for Red eye reduction

Change-Id: Iada280ac33aee8b1114dc40d8d79e0e47ad5c2fd

Conflicts:

	api/current.txt

Camera: Enable streaming texture and YV12 feature

Change-Id: I814c92b469e0f25baef0ce80338761d1e6443085

Camera: Add frameworks support for high frame rate

Change-Id: I9722e9b7e61433651ab5f76f76208853eb1fd849

Camera: Simplify ASD menu and best mode menu.

Change-Id: Ia7a1eca9268eec021a6e2c3f7ce2a932e8819d50

Camera : Macro definition change. PIXEL_FORMAT_YV12 to "yuv420p"

Why: CTS testcase is expecting "yuv420p" as the format string for YV12 mode.

CRs-Fixed: 328252
(cherry picked from commit 0a263f67b75497e4b95b9de8c370ed9496ab59ef)

Change-Id: I66f418a52775a969d81bcb332bbe500370e3ab7c

Camera: Changes for face detection

Change-Id: I7b2172e8690d6e23762e42f5888fecbfda15ba61

Camera: Add support for burst count

Change-Id: I4488a5eac1eebb0b5c8e2cc7cbbe7be0c7301be7

Camera: enable HDR feature

(cherry picked from commit e40770bbdadd925fc1e07a08249a15981b961570)

Change-Id: Ie9ca3066e8e53710bf292d047a3724aefc029854

Camera : Add API to find fullsize liveshot support

Change-Id: I3c2fc3578decbe5cf87fded5362f317df0b40b5e
(cherry picked from commit 65d80f04892776eec1c19c844eacb8c454b4bd1a)

Camera: Set default camera area string

The default invalid value for KEY_FOCUS_AREA and
KEY_METERING_AREA is changed to "(0,0,0,0,0)"
CRs-fixed: 334934

Change-Id: I354802c8611ee5c00a591b96b1a1ca04926969cb

Camera: Change the scenemode names in framework

To comply with ICS API Specification,
SCENE_MODE_AUTO changed to SCENE_MODE_ASD
SCENE_MODE_OFF changed to SCENE_MODE_AUTO

Change-Id: I8e744f10c728f469923b09f69d6d64bc5c7c6850

Camera : Framework changes for camcorder UI menu

Change-Id: Iff9e9021da44b67f81a24c828b960113ee249248

Camera : Remove unwanted video resolution in Framework

- FWVGA, WQVGA resolution UI options are removed for camcorder.

Change-Id: If621140966b01dbc8c30a4d161e6771528b8adda

Camera : Enable FWVGA and WQVGA resolutions in camcorder media profiles

Change-Id: Iad9cc33f7b6d8eb7de21df372c016edeef0b99ba

Unlock camera AWB lock only when white-balance is changed.

bug:5633546
Change-Id: I90bb4b5b445daedf38a64e2f8fb980fc0f0aaa81

Change-Id: Ie3cc15132489502e64321776d49d96846b5705d6
Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I8f891fc9a3ee48845b11b8b77dab33c8d12c0e51
Make Norwegian use HH:MM time format instead of HH.MM.

Fixes bug #3798.
Telephony: Add reading of perso_unblock_retries to QC CDMA RIL

VZW Icc applications require this. Otherwise when reading multiple
SIM entries a failure occurs on the second failure since the package
readings are offset.

Change-Id: Id0fbe1c1490ea4508d517841bb65b01ffc8a9ba4
Adjust kernel data stack TCP parameters to optimize performance

Enhance Android MobileDataStateTracker class to identify technology
EVDO rev B separate from earlier releases.  This permits use of
separate TCP buffer size for higher bandwidth technology.

Change-Id: Ib8dfa315c4485c36c66b2c66950c42ccb81fe9e5
CRs-Fixed: 260740
frameworks/base: Fix screen stretch issue for NuPlayer

- Fixes screen not moving to full screen after suspend resume during RTSP
  streaming in landscape mode.
- If there is an incorrect height and width, it saves the video height and
  width and then does the correction to have proper width and height.

Change-Id: Icb4b9b71f21d138b85f200dc82a1fbe58342866f
Wifi: Fix the resume problem with wpa6 devices, for jb

Change-Id: I721d25a3d2de7794c80cc69114bdde83a8f40214
HTCQualcommRIL: use ICS style RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED

HTC 8960 radios fail to init without the initialization this state
performs.

Change-Id: I73e61c01406794368eadf1f3fb5cb0a8333e5f82
Fix initial telephony FC for PIN locked SIMs
This fixes misplaced substring operation causing
unhandled exception occuring before SIM is PIN
unlocked.

Change-Id: Id7acc3d4627a6183889fc02fb36c37cdd35e9bf3
samsung ril: add UNSOL_AM implementation

* The Samsung RIL will sometimes send up an UNSOL_AM
request which is to be handled by the "am" service.
(For example when the RIL resets)

Change-Id: Ifc8ead91f2dbc39456c4a502b9623c608c796224
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd
input: Fix workaround for broken hardware keyboard support

Using a wrong reference to mHardKeyboardAvailable caused device config
to never report physical keyboards.

Change-Id: I9b64e2d89512436c17fa8929464e2b727fba1cf3
SamsungRIL: cleanup

Removed unneeded states and forward them to RIL. In ics, this had
the side-effect of allowing STK to work due to the Samsung STK
implementation already in place

cherry-picked from ics

stk functionality for SamsungRIL

* Implemented SMS based SIM application functionality
* PatchSet 3: Added fix so unknown unsolicited response are sent to super class
* PatchSet 4: Removed "import android.content.resources" - not needed any more
* PatchSet 5: processUnsolicited cleanup, using super class standard states where possible
* Patchset 6: Rebased

Change-Id: I9bf844da1480fe442f851fb20d99b530b96cfa4c