Camera: Added property to disable Camcorder/Camera audio at run-time

Disables Camera and camcorder sounds at run-time by setting the android
property "persist.camera.shutter.disable".

Disable sounds using the adb shell command
  setprop persist.camera.shutter.disable 1

To re-enable sounds use the command:
  setprop persist.camera.shutter.disable 0

CRs-Fixed: 334573
Change-Id: I9576c8e188093ad85d070bb6ae2f3ea14d7f6d1f
libstagefright: Fix timestamp for MP3 frames in TS container.

- No AV sync and video playback is not smooth for URL's which
  are having mp3 audio.
- Issue is that all the mp3 frames in the TS packets are assigned
  same timestamp.
- Solution is to incrementally add frame time with the PES time stamp
  from 2nd frame onward

CRs-fixed: 331478
(cherry picked from commit 40d2d824f819d055aa825cc3778f0ec3d6f3d844)

Conflicts:

	media/libstagefright/mpeg2ts/ESQueue.cpp

Change-Id: I85ae1b62989e09dd23e791ea55598334dd33cec5
Telephony: Cleanup partial retry state when enabling or disabling APN

When an APN is disabled/enabled, reset its partial retry state.
This stops incorrect retries on the APN when it is enabled
again.

Change-Id: Ic0548b6e1c7be3819602daa6f3b29ec8f578d79f
CRs-Fixed: 360563
(cherry picked from commit e4d25f5fd5d746f155402463badb0f8ad1b8ad3f)
Camera: Change QVGA code to follow Google's specification

- QVGA resolution code was assigned as 11 and expected value is 7.

Change-Id: I623f32093299b37daee22f15db1945227f402c7e
Merge "Camera: Change QVGA code to follow Google's specification" into ics_chocolate
Bluetooth: GATT server error may include optional handle value

Some GATT errors require a handle value to be returned.
Qualification specification for LE servers introduce new requirements
that specific errors be returned in some test cases.

Change-Id: I83fb1aa750c8851938545d0c72580d03856bfcf8
Crs-fixed: 356719
(cherry picked from commit 4189b4e6d82df3fbeb52a137b31e3322d82bdc3c)
frameworks/base:Fix for screen not in full screen after suspend/resume using RTSP (landscape mode)

- 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: Ibdc6d6668a9abec2f2ac07a2ccbc226e11e49724
CRs-Fixed: 361177
(cherry picked from commit 40d79414a28ceb1056a950c24ec60a57e7931837)
GPS: Fixes an exception condition on non XTRA-T targets

Adds additional safeguards in the listenener logic for
settings updates in the case where certain settings in
the Data Base have not been created.

Change-Id: Id1ed9a2fc2b90afcba5e94ef0295ed037c23aab6
CRs-Fixed: 362489
(cherry picked from commit d0b04e8cf9b7c2b2d0002b5abdd169745c8a611a)
Merge "Bluetooth: GATT server error may include optional handle value" into ics_chocolate
Merge "GPS: Fixes an exception condition on non XTRA-T targets" into ics_chocolate
Telephony: Do not display the data icon if data is not connected.

CRs-Fixed: 356684
(cherry picked from commit 37ff401914528f0f7761209b448bda8667d92298)

Change-Id: I8b2d2a4e24b41cc4d1c12efcaddb4b763ccb39fb
Telephony/QoS: Handle release of QoS from the network

CRs-Fixed: 356033
(cherry picked from commit 12b0697c61522cd97eb338baa5b59607c56cd6ab)

Change-Id: I906baeb3f2e21f0eb5823cee388bfd52dc9cbc02
Bluetooth: Keep state of locally registered GATT servers

Allow GATT apps register with frameworks as many times as they need to.
However, the registration call will not proceed to Bluez
if the app (object path) has been previously registered with BlueZ.

CRs-Fixed: 352662

Change-Id: I98598891bd508fd3b35dbf8908c27611090dd5f5
(cherry picked from commit 2e3a99704118455e468dba3957e54d31594d1d7a)
Bluetooth: Change names of several GATT server APIs

APIs names have been changed to reflect the actual GATT spec commands.
thus making it less confusing for profile/application developers.
The following APIs have been renamed:

onGattWriteRequest -> onGattWriteCommand
onGattReliableWriteRequest -> onGattWriteRequest
onGattDiscoverCharacteristicDescriptorsRequest -> onGattFindInfoRequest
discoverCharacteristicDescriptorsResponse -> findInfoResponse

Also, unused APIs have been removed:
addPrimaryAdv
addPrimarySdp

Change-Id: I7fc6c2c940d9fdcd553ddef3ce9ae877ec568db5
CRs-Fixed: 358334
GPS Provider NTP and XTRA download not in background yet

the previous fix was CR 320853, but the downloads were still
in the main thread. The thread didn't get started.

Change-Id: I8429e6bd27a1b3afc2d05532864d4b33fd2d7c4b
CRs-Fixed: 320853,350767,361378
(cherry picked from commit c081377f7e18c57c5f2e6852ccb0a0ce9f21af9e)
gps: adding net_raw gid for IPC permission

Change-Id: Ibfc8af2192cbf8a3cdb93aedeedf41af5b204ca6
(cherry picked from commit 681a9abc7182fa632713301ea7346e8c46ad4364)
libstagefright: Fix for ASSERT failures while Playing Unsupported Conent in HLS

When we play unsupported content, the Setup  Video
Decoder fails. This results in a Check failure in ConfigureCodec.
The change allows graceful exit whenever we try to play unsupported
content.

CRs-Fixed: 349549
(cherry picked from commit c54e2ae2b87be8dd0a846017ac5884fcb9a2dbf2)

Change-Id: I1de49369988fb2638146551c93ed467f65a3c040
Merge "gps: adding net_raw gid for IPC permission" into ics_chocolate
Merge "Camera: Added property to disable Camcorder/Camera audio at run-time" into ics_chocolate
surfaceflinger: Fix top-bottom UI composition with S3D.

-Fix the scissor computation for top and bottom frame in S3D.
-Fix the artifacts seen in top-bottom case by clearing the
 color buffer with scissor applied.

CRs-fixed: 346986
(cherry picked from commit 241b5b6b41fa4e1b2eca3565fd27b454a6aff262)

Change-Id: I8fb98007f67351009762c4494e260142b998ddb5