Framework: Adding support for Auto HDR

Adding support for Auto HDR for camera

CRs-fixed: 629556

Change-Id: Ie5e4718524d2ed799f1f9af1f76e89c01d743ac8
Telephony: Add support for tune away and priority sub

Add constants for tune away and priority subscription

Change-Id: I790cfdcd9a1dee946502349084a4d8138d2144ec
CRs-fixed: 464483
idmap: Use local long variable to get the crc value from zip.

As the size of the long is 8 on the 64bit system and it is different from
the uint32_t as it's size is 4. So we need use a local variable of long to
get the crc value from the zip file.

Change-Id: I033251dac0b9478b638e5d68733d74f2fc2f4d8a
base: Add support for FLAG_SUPPORTS_PROTECTED_BUFFERS

For the clients (WFD) which need secure HWC composition,
FLAG_SUPPORTS_PROTECTED_BUFFERS need to be set.
- Define new flag VIRTUAL_DISPLAY_SUPPORTS_PROTECTED_BUFFERS
- In VirtualDisplayAdapter, add support for the flag
FLAG_SUPPORTS_PROTECTED_BUFFERS.

CRs-Fixed: 653794
Change-Id: Ib954943f3e27067b2805188771f951c115833237
Add support for send Message with messaging options

Add support for following messaging options.

1.Add support for message priority in 3gpp2

2.Add link control support while sending multiple messages.

3.Add validity period support in 3gpp.

Change-Id: I19f4fbc5a3b6922884196b301d30280acd9e501e
Bluetooth: HID: Add support for Set Idle and Get Idle Commands

This patch provides an interface for application to send Set Idle
and Get Idle commands to remote HID Device. Support for these
two commands was missing from exisitng code, so existing code
design is reused to add support for these two commands.

Change-Id: I548362cc328498920b2dae740f1a76b2cc2d6a67
CRs-Fixed: 522511
Bluetooth: Add Get/Set socket option to the Bluetooth Socket

Introduced Get/Set socket option to the Bluetooth Socket.
For these APIs it will directly call the APIs of Adapter
Service.The corresponding APIs have been implemented in
the Adapter service of native Bluetooth APK.

CRs-Fixed: 557180
Change-Id: Ic49b66599fb3c4c500e52295895d708dbc172cc7
Conflicts:
core/java/android/bluetooth/IBluetooth.aidl
Bluetooth: DUN: Add framework changes to support DUN

Bluetooth DUN profile APIs added to the framework APIs.
As DUN server supports only disconnection of DUN profile
level connection this API is implemeted along with other
APIs.

It registers bluetooth state changed callback with the
adapter service,once there is a change in the bluetooth
state,it will bind/unbind the DUN service which is
implemented in BluetoothExt.APK.

DUN service, and other DUN Application layer are mplemented
in BluetoothExt.APK.

CRs-Fixed: 557180

Conflicts:
	core/java/android/bluetooth/BluetoothProfile.java

Change-Id: I3363411ca7547107fd2e832569dd749d1a1432e3
Bluetooth: Fix resource leak in OPP (1/3)

This patch adds support for ACTION_DEVICE_NOT_SELECTED intent to
be broadcasted when no device is selected from DevicePicker activity.

Change-Id: I8e7ef1aaf7631240df794b5cea2bba30ce8bdbac
CRs-Fixed: 662147
Bluetooth: Fix to avoid framework reboot during monkey.

A case where monkey is running & sometimes framework is
disconnected due to unhandled java Exception during the
binding of PAN service on unsuccessful binding. So it never
handled. Handing java exception while binding PAN service
to solve this issue.

Change-Id: Idea710593a3f9496305f636042605303e73e7749
CRs-Fixed: 564709
Bluetooth: Introduce custom APIs for L2cap socket for Obex over L2cap

Introduce custom APIs for the L2CAP socket for the obex over l2cap
feature.

The applications which uses obex over L2cap feature can make use
of these APIs to create L2cap socket.

CRs-Fixed: 639499
Change-Id: I423ae95ec4e1dc02712609e7c25d2274c5816149
OBEX: Support BTOBEX lib.

Add javax.btobex lib to support Obex Over L2CAP
features in further steps.

Add base files from AOSP OBEX lib to btobex folder
at frameworks/base/btobex project for now.

CRs-Fixed: 639499
Change-Id: I983830bce32fbd1446500b9656978e090ca9f259
OBEX: OBEX L2CAP feature and bug fix(es).

Squashed commit of the following:

commit 39b512ae6f81de0e972eef1d47e7340e6b7b1e50
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date: Wed Jun 18 12:45:09 2014 +0530

    OBEX: Update default OBEX version parameter to 1.0.

    Update default OBEX protocol version to 1.0 for
    OBEX CONNECT Request parameter.

    Change-Id: If38dccc8e9bab1761b9d1e96b18f5dd27dff60b7
    CRs-fixed: 680975

commit 0c17893a272252aa0314494db5a323494ac6dc61
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Tue Mar 25 19:04:34 2014 +0530

    OBEX: Support OBEX L2CAP features.

    OBEX Over L2CAP features from javax.btobex.
    Includes SRM and SRMP features support.

    Includes existing issue fixes from javax.obex lib.

    CRs-Fixed: 639499
    Change-Id: I70c2a4bfa3bc66532af56dfdb6e1f762aed8e71e

Change-Id: I673082f036c9abe47536c4723fc96b86ec8ad7df
Bluetooth: update SCO paramerter on Hfp service disconnect.

When hfp service disconnects as part of SSR, it should mark hfp state
as unavailable in Audio module

CRs-Fixed: 661652
Change-Id: Ib0bae2026a9c7f70ab384523d444668aceeb3f15
Camera: QCFace AOST copyrights fixed

AOST files copyright data must not be updated to 2014

CRs-Fixed: 587195
Change-Id: I0cd603da674152c9f47350e571ec3e230b61f8dd
Camera: Adds support for meta data callbacks

- This change adds a new type of callback
  that will be called when there are pending
  meta data notifications.

Change-Id: I190971b2d0d4d189e8f4edee8204ef65b62cd453
Cherrypicked from 9706034f16d23f96966dbd060f1bb85c5a4d976a
Camera: Adds support for longshot configuration

- The Camera API is extended with one additional
  call for longshot mode configuration.

(cherrypicked from commit 867c4865b2a61a8e844e2784c41b7aafc392aec0 )

Change-Id: Idb91a21dc0d9fa9d22b4a6bbcc0b2eebfc2cb6db
Camera: use single KEY for set/get manual 3A parameters.

Instead of using different KEYs, we can share one same key,
for set/get 3A parameters from APK.

Change-Id: Ie3216ee4e1b8f62fcdd57a0be119d4b8dcdd81b3
Camera: make HW-Capture key can not waken up the screen

When HW-Capture key is pressed,
will generate KEYCODE_FOCUS key event which wakes up the screen.

make KEYCODE_FOCUS key event not to wake up the screen.

CRs-Fixed: 516900

Change-Id: I53beb28b9981141b02fd9fc1223e97efd1ab400e
media: Configure audio encode parameters only for valid audio codec.

Added extra check for audio codec in profile
(Cherrypicked from commit eed39d0053dee6649424867418e511b918b3c634)

Change-Id: Ie1ac5252e3d544ce61af2b3ae5080ec9c6966e44