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
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
Bluetooth: SAP: Add framework changes to support SAP.

Bluetooth SIM access server (SAP) profile APIs added to the
framework APIs. As SAP server supports only disconnection
of SAP 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 SAP service which is
implemented in BluetoothExt.APK.

SAP service, and other SAP Application layer is implemented
in BluetoothExt.APK.

Change-Id: I7215f503244c5ee277e83d60d6960f18559acfb9
base: Do not overwrite VIRTUAL_DISPLAY_FLAG_* values

* VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS is
getting read as VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY.
This impacts the content seen on the VD device.

* Ensure that VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS
and VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY are different
values to prevent this.

CRs-Fixed: 653794

Change-Id: Ic0ea99a554ab26f2ff941304d1c6809f976076ef
BT: HF: Control verbose logging at runtime.

Verbose logging in BluetoothHeadset can be
controlled from adb shell.

Change-Id: If63974402a4fc91065c8007a224388af12f49cf7
CRs-Fixed: 601899
Display: Dirty region propagation

Pass Dirty region values from HW renderer to Surface Texture.

Conflicts:
        core/java/android/view/ViewRootImpl.java

Change-Id: Ibd121ed398a1319d3daf26f9fd39a03323bba666
frameworks/base: Call setDirtyRect to update dirty rectangle.

This change updates dirty rectangle instead of dirty region of a
surface.

Change-Id: Ic5c6e68ff644911a596a2432fd14868edbff9b17
wlan: Provide runtime option to enable or disable rssi threshold (base)

RSSI threshold check in AutoJoin feature will not allow
to connect if AP's RSSI is low, this option will allow user
to configure through advance setting application.

Change-Id: If479ab453b4760a196000ce9f72ae2fcee116f87
CRs-Fixed: 710284
Bluetooth-Wipower: Support for Wipower feature.

Wipower feature code is been enabled, This is used to
perform wireless charging over bluetooth low energy.

Change-Id: I47551450a1eac966ae0d2443415888d2fc0c8ef4
CRs-fixed: 698314
Bluetooth: Add interface for A2DP Sink

 - add new constants
 - add new interfaces

Change-Id: I1b9c9544f186d819a40396b7ebaf512f2c76cfb7
MediaRecorder: Add pause interface

- add pause in java level
- add pause in jni level

Change-Id: I19372d496870f3729aa28464326995a71aa72299
CRs-Fixed: 587051
Broadcast upstream interface change event independently for IPv4 & IPv6

On change in tethering upstream interface for IPV4 or IPV6 address,
broadcast an intent with the information viz iface name, ip address
type and update type(i.e add or delete).

Change-Id: Ia80738bcf09692209674a47b6c6c1c082a201b16
CRs-Fixed: 680728
Initial commit for HID Client

This patch is initial commit for HID Client

Change-Id: Ife1f54acce79892414ad71d5488fdb659efede59
Bluetooth: Add support for HID Device Role

This patch adds the HID Device Role support in Bluetooth framework.
Also AIDL and callback related files for HID Device role are added
to provide interface for third party applications to communicate with
HID device Service.

Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2
Add 2 APIs (suspend/resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
  to replace release() which will release the whole player
- API:resume() will just init the decoders again,
  then start() will be called to start to play the streaming

Change-Id: I3e2ffeb50dfe6d156b18416fa8964ff4a3d56a2c
VideoView: Implement the suspend/resume operation in VideoView

- To use the new APIs (suspend/resume) of MediaPlayer
- Add a new status "SUSPENDED"

Change-Id: I7a829b116e5df698fd4b0a5708f06927571d198c
SystemUi: Remove update to Carrier text

Msim makes the carrier text a LinearLayout. Remove the update
to the carrier text which expects it to be a TextView

Change-Id: I1db24a73c500f3443ba024810681325290f58729
Bluetooth: Handle BT state change

Add foreground flag to state change intent. Fix for few profiles
not syncing with the BT adapter state in multiple BT on/off test
case.

CRs-fixed: 709335

Change-Id: Ice042a21f08566cadc9540aa75cde726b2e86575