bluetoothmsm: This is a combination of 6 commits.

Bluetooth: Defer BT on request till the BOOT complete

There are some cases where the BT on is triggered
before the Boot complete, so added a check to ensure that
Boot is completed.
If the Boot is not yet complete,then defered the BT on
request till the BOOT_COMPLETED event recived.

Change-Id: Idd73be4ed24f8450492cf1c305a5d54420aac774
CRs-fixed: 485281

BT-HF: Add BIND_AUTO_CREATE flag to auto create BluetoothHeadsetService

The patch fixes BT settings crash due to
BluetoothHeadsetService not auto created if it was forced
closed earlier. The flag BIND_AUTO_CREATE allows
BluetoothHeadsetService to be automatically created as
long as binding exists.

CRs-Fixed: 499280
Change-Id: I4463a7b8031edad921eacdc5a4e44709303f058d

Bluetooth: Change intent names

Changed the Intent name from 'com.android' to 'org.codeaurora'

Change-Id: I0696810f9d98bd903322e6f50019ac38b1a0a69d
CRs-Fixed: 411413

Bluetooth: Add a flag to check the BOOT complete

Add a flag FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
to avoid the the exception caused by broadcasting the
the intent before boot complete.

Change-Id: I88eee979cc36583572e1513fd855a6698ec25ab0
CRs-fixed: 490658

Conflicts:

	bluetoothmsm/java/android/server/BluetoothEventLoop.java

Bluetooth: Update PLAYSTATUS_CHANGED for Video Playback

PlaybackStatus Changed event is not sent to headset when user tries to
Plays Video in Video Player or Streaming in Youtube App due to this the
headset always sends PLAY. This change takes care of updating proper
status to Headset for these players.

Change-Id: I91477252fa0ba3d82bff2c8d5f73097bbf866fe0
CRs-Fixed: 493843

Bluetooth: Implemention of isEnabled API in BluetoothManagerService

ShutdownThread uses the isEnabled API when Device is Turning Off to check
bluetooth status and then calls the BluetoothManagerService::disable()
to Turn off Bluetooth and Disconnect Bluetooth Headset.

Change-Id: I10fcc49127d8caf0a6e5755df34e45834c74becb
CRs-Fixed: 532667
Bluetooth: Create A2DP handler with looper

Found an exception due to A2dpHandler whenever Skype tries to load the
MediaPlayer to play Incomming Notification. Associated A2dp handler with
looper.

CRs-fixed: 452283
Change-Id: I73d3a5ff7728383e89da7252ea8db383014feab8
media: Locking mContext for message handler

 - mContext is used for broadcasting the intent which is done
   in message handler.
 - If the mContext is released from another thread before the
   message handler handles the message then there would be
   an exception
 - To avoid this have added syncronisation for all
   the messages so that the mContext is not released
   from any other thread before finishing the message handling

CRs-Fixed: 464905
Change-Id: Iaaec170181c11ff1dbb43f230a0dd3cf14c56d87
Navbar: Fix MDPI & HDPI landscape layout

Before: http://i.imgur.com/89SmFbX.png
After: http://i.imgur.com/UbuAggD.png

Change-Id: I6623cb97881313886de39a67baa98f7bd4b0696a
Merge "Bluetooth: Create A2DP handler with looper" into cm-10.1
Merge "media: Locking mContext for message handler" into cm-10.1
HALO (1/2)

Port HALO from ParanoidAndroid