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 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
SystemUI: Add data type and signal icons

Add data type and signal icons.

Change-Id: Iaa97b2d9477d740686e724d6b1c3d2fcbf30692a
Statusbar: Add some resources of signal icon

Add some resources of the signal icon which used in statusbar.

Change-Id: Ie8823d37485bba0cd50ed90142532fda00f4f71d
Bluetooth: Audio Squashed gerrits for propagation

Bluetooth: pause music player on A2dp service disconnect

When A2dp service disconnects as part of SSR, it marks a2dp state
as unavailable in Audio module but does not pause music player, as
a result when bluedroid stack restarts as part of sub system restart,
media player does not pause and music continues to play on device
speaker.
This change helps to pause the media player, in addition to marking
a2dp as unavailable, so that media player pauses when a2dp service
forcibly disconnects as part of sub system restart with A2dp in
connected state.

CRs-Fixed: 590462
Change-Id: I05ee5bcc808eb438156b64181d54e8ccabe1e186

Bluetooth: Add Total track number.

Add support to add total number of tracks in
Meta-data

Change-Id: I5b1287f791615adcd4f920fe5c7cae0c7c7b04ea
CRs-Fixed: 627869

Bluetooth: use  virtual sco calls for VOIP

 - use virtualvoicesco connection set-up for VOIP calls
 - cannot simply revert c18c9138cee0f0859bcab636a004ce92ca4a9ab5
and 25fc29b3691a1d2a84164988dc74b2e7d301868e changes because
of aidl modifications involved.

Change-Id: Ib49cb01151a9cea2e94bc7a51ad1f58e877271aa
CRs-Fixed: 598072

Send Media button events as foreground Intent

Send foreground intent for Media Button events to Music Player
so that there is no delay in handling these Intents after the
device is rebooted.

Change-Id: I952a8af93586cb96c0a9f6dc910bfb49287f4b9a
CRs-fixed: 611219
Conflicts:
media/java/android/media/AudioService.java
QuickBoot: Don't handle specific broadcasts from QuickBoot

Don't process the BOOT_COMPLETED/SHUTDOWN broadcasts sent by
QuickBoot. They are only for apps.

Change-Id: I1551d0cd73d87b6780dcffd4c1ad5c54a7c76cc8
QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a
QuickBoot: filter alarms that not in whitelist

Don't response to alarms that not in whitelist under QuickBoot mode.

Change-Id: Ib43d13897f11945e0fa8b9b06c68b7949ca456c8
QuickBoot: restrict app's auto start under Quickboot mode

Don't launch apps that not in whitelist under Quickboot mode.

Change-Id: I5d156cbea4ef18397ce4569cb74f73a446a6e49b