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.

Change-Id: Ic49b66599fb3c4c500e52295895d708dbc172cc7
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.

Change-Id: I6ce1204ac6138e28ad7486f2855f0f7444ad3886
FW: Swipe to switch

Adds the ability to switch to/from Quick Settings, using a sideways
swipe gesture.
You can turn on or off this feature in RC.
Also includes this patch - http://review.cyanogenmod.org/#/c/30867/

Video demonstration: http://www.youtube.com/watch?v=jZaDVBIFAuA
(Video for the initial Patch Set only)

Change-Id: I49c89d059a98674883dafad11cd90b8557d0fc04
PS10: Fix for doubletap on hidding toggles button
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27
NetStats: Add net stats to system bar.

PS2:
PS3:
Hide net stats view when notification area is disabled.

AICP:
PS2: Fix build by adding a missing networks_stats id

Change-Id: Ib35dd46b026dab00abe73966105806c54266e466
SearchPanel: check if string is null before accessing it

This fixes http://bugs.aokp.co/issues/104

Change-Id: Ib05d473bf6afcaada19c2490bebca18d0ba6fb58
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
AwesomeAction: check if ACTION_ASSIST intent can be handled

This will avoid a force close if no handler is available.

Fixes: http://bugs.aokp.co/issues/95

Change-Id: I041e8739ff9271cc02a73009e3def0585b00ffbc
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SystemUI: hide missing sim icon if hide signal option is enabled

For a cleaner statusbar, if someone is using their device without
a SIM, and they choose to enable the hide signal option, I think
it's safe to assume they would like the SIM icon hidden as well!

Change-Id: I6cba97b97dfb9a67822b54ffce008d2327a0c03b
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Fix double clock on tabletUI when center clock is enabled

Change-Id: I27c1e24746e74c9780ede35a2979b4181ebeffb0
Add Alt net speed to tabletUI

Change-Id: I9a69db92ca6051795faf6cf21eb12ce180c625aa
Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a
Merge branch 'jb-mr2' of https://github.com/AICKP-legacy/frameworks_base into jb-mr2