LocationManagerService ProximityAlert

Reimplement ProximityAlert with HW GeoFence
(from ics change https://review-android.quicinc.com/#/c/102644)

Change-Id: Id738f2808691c35e5507e1d557bc5351456953ad
GeoFence: returning set geofence result code

(from ics change https://review-android.quicinc.com/#/c/114892)

Change-Id: I40ccb2ff600e3300683c2ce5762348e35efc09f3
Supporting IPv4v6 and IPv6 bearer types for ATL

Change-Id: Ife8c72d9975ac58b9e4091cb95ad5a9763e01c3f
Crs-Fixed: 348884
Telephony: Fix setup_data in a loop

Pass partial retry flag as an argument to bringUp function call
instead of passing it inside apn (apn can be touched from different
threads)

When sending EVENT_TRY_SETUP_DATA in onRatChanged method due to
having partial failure - set the flag accordingly

Change-Id: Ia5eebe92e8e68720f319ccf711e6cef099e0c400
CRs-Fixed: 351626
Merge "Telephony: Fix setup_data in a loop" into ics_chocolate
frameworks: Add unique UID for BLUETOOTH user

Change-Id: I1b583aa31fd06b5f3bc7c733df3ab7e3241547bb
(cherry picked from commit 45acb20279a158a04f5569197934f4dee5e83182)
Wifi: Make updating V6 addresses asynchronous

Add a new command that will be handled in the Connected State
to update the link properties with the IPv6 addresses and
route.

When the link properties are to be updated, don't wait for the
IPv6 related information, instead post the above command to
be handled at a later time.

Also handle IPv6 renewal when lease time expires.

Change-Id: Ic1cb7d307d1f0bf5485c9a931784237995fa6232
CRs-Fixed: 349943
(cherry picked from commit 2e79416b936739e8af1a2534153869fb3d7bb8e6)
Merge "frameworks: Add unique UID for BLUETOOTH user" into ics_chocolate
Merge "Wifi: Make updating V6 addresses asynchronous" into ics_chocolate
Bluetooth: Fix for BT icon status change on Gatt connection

When Gatt client is connected the BT icon will change status
to connected.

CRs-fixed: 343844
(cherry picked from commit 4b6c7ddb27aa3fe832019d0c4c2fc10e2b6cb1d3)

Change-Id: I19b4d3958419608a450a0fe7c69703cda5719289
CatService: Alpha ID fix for OPEN_CHANNEL and other p-commands

p-cmds that support the below mentioned scenarios:
- SETUP CALL
- OPEN CHANNEL
- SEND DTMF
- SEND SMS
- SEND SS
- SEND USSD
- LAUNCH BROWSER
- PLAY TONE
- SELECT ITEM

Senarios handled :
- NO ALPHA ID : Introduce a new configurable sys prop
  "persist.atel.noalpha.usrcnf".
   --  Allow display of default UI confirmation if prop is set to true
   --  No UI confirmation to be show if prop is set to false
- NULL ALPHA ID (len = 0 ) :
   -- NO UI confirmation to be displayed

Change-Id: Ie211c9765a21c9c584ce8420b51cfe59476234cc
CRs-Fixed: 344570
(cherry picked from commit cb59e482b83fbecf7e9da3393f5dc93770255b9c)
Merge "CatService: Alpha ID fix for OPEN_CHANNEL and other p-commands" into ics_chocolate
Bluetooth: Schedule BTC start in HotOff state

Start BTC in Hotoff state instead of on USER_TURN_ON to avoid
unneccessary dbus messages from the bluez which may stop the BTC
module. Change inline with the quick switch feature disabling for
8x55 and 7627a.

CRs-fixed: 335875
(cherry picked from commit 31d08431fb071b58e3b7f4b43c131a5b69834819)

Change-Id: I462673c3696e64ee994e12c2299a1d4e44341a1b
frameworks/base: Added more log messages in LPAPlayer

- Added more log messages in LPAPlayer for better debugging

(cherry picked from commit 585d32158ab2c13009dbb015f47551c235cdb1f3)

Change-Id: I8f7968da367aaefe2ead70b848237cdc452e8842
Merge "frameworks/base: Added more log messages in LPAPlayer" into ics_chocolate
SurfaceTexture: Reset buffer values on disconnect.

When the surface texture client disconnects, reset the values set
for buffer width, height, transform and format. This is to ensure
that the same surface texture can be used by another client with
different parameters without any corruptions.

Change-Id: I1e158f4641d7b06cea9976ad2827c7b12c95f538
CRs-Fixed: 347382
Revert "libhwui: Correct transform used for drawing text-shadow."

This reverts commit d4c8be8416c6c3064e43ed80ebacb2a177be3019.

Change-Id: Ib0dea91060d16b9c870cb30668b19c2326b43a3b
CRs-fixed: 350636
(cherry picked from commit e2c11bb26a359921ecd8eb4a69fbf11407728cc2)
ligstagefright: New flag GRALLOC_USAGE_PRIVATE_CP_BUFFER used for securing buffers.

GRALLOC_USAGE_PROTECTED is being used by Surface flinger for protecting screen
shot. For WV L3 secure buffers are not being used, so we need a different flag
to set use or not use secure buffers.

CRs-fixed: 348454
(cherry picked from commit 01c5d8e96c91905a7e9b3b7d36c81fd7ff103b24)

Change-Id: I71db905661b4d360a96853768dac8dc0c557346d
media: audio: Remove Pause IOCTL from seekTo

-Pause is now being handled in LPA kernel
driver incase of FLUSH, hence remove it
from seekTo routine.

CRs-Fixed: 342560
(cherry picked from commit 04a8cbf79658184887dc67716d9f11f915e4349b)

Change-Id: I3d04828624d861520dce50235540fff686c9bb01
Bluetooth: Catch generic exception when calling GATT client callbacks.

Catch generic exception (not just RemoteException) when issuing
a callback to GATT client service app to avoid calling into
a closed object.

CRs-Fixed: 344140

(cherry picked from commit b65490fa12d5b450f78ade9de051f41b9c0791e8)

Change-Id: Ib64762478bea488ace29c9096a294100280bbf65