Bugfix: Dock events can have state greater than 1

On Samsung devices the USB audio is being routed for every dock event
It is ignoring the checkbox (in advanced settings) to not route audio

This bug was introduced with this patch
http://review.cyanogenmod.com/#/c/24830/

The state of an event can be 2 or 4 depending on the dock type

This patch switches for looking for state > 0 rather than  state ==1

Change-Id: I978d18ec36e74e821a6d300136377158901cdf50
Merge "Bugfix: Dock events can have state greater than 1" into jellybean
Call to equals() comparing different types

I have found the bug with the FindBugs tool (http://findbugs.sourceforge.net)

Call to String.equals(android.content.ComponentName)
at ActivityManagerService.java [line 8874]
in method dumpActivitesLocked(..)

Change-Id: I99851de024b55b53f1b206f0645b6fe29f865784
Revert "LockscreenShortcuts : Fix minor bugs"

This reverts commit 1af21b8c926459fba968d9b2f62c73ec5ded1265.
Revert "Lockscreen : Update camera availability check"

This reverts commit 0dcfa1637eeaeae684e7f0a49209ebec2f9efe37.
Revert "Lockscreen : Background customization (Remaining bits)"

This reverts commit a876433fa7c920803ecddcdcc444793155b145f3.
revert: Framework : Lockscreen - Customizable shortcuts

Change-Id: I5721b84514540b3cca48584c9b48c662fdce78ed
NullPointerException in UsbStorageActivity and SQLiteSession

FindBugs description:

Null pointer dereference
A null pointer is dereferenced here. 
This will lead to a NullPointerException when the code is executed.

Bug kind and pattern: NP - NP_ALWAYS_NULL

Change-Id: I292a29058de1828f376564188a2e00c61ea194b0
Merge changes I292a2905,I99851de0 into jellybean

* changes:
  NullPointerException in UsbStorageActivity and SQLiteSession
  Call to equals() comparing different types
custom blackberry 10 lockscreen...not working properly

Change-Id: I0de421aa3df811c9b4e4eef4acfa6907ced077ad
Revert "custom blackberry 10 lockscreen...not working properly"

This reverts commit fbf7805d8149511958c762a83320ae4e86bfe144.
custom lockscreen selection from evervolv...settings part missing currently

Change-Id: Ia1f3fa850d57aaf25b4d1b0d59b78a3e70d5da6e
Framework : Lockscreen - Customizable shortcuts

also activated custom lockscreenstyle switch

Allow users to choose lockscreen shortcuts / icons :
	Phone - 1-5 targets
	Tablets - 1-8 targets

CM10 port
---------
Patchset 1-8: Initial port
Patchset 9  : Revert to CM9 drawables
Patchset 10 : Rebase

Change-Id: I9b163efeef8f47b1d21f7f61552ebe424049cfeb
Lockscreen : Background customization (Remaining bits)

Bring over remaining bits of lockscreen background customization

Change background selection for lockscreen to be more
consistant on Tablets (2/2)

Change-Id: Ia1a703ce213fa7698a2fb8e1679eefccd521962b

Change-Id: I970e6737bee037a2ada337dd1c527e339e33a5c2
Revert "Revert "Lockscreen : Update camera availability check""

This reverts commit 07201e95f75d7641a834c35f1343c52b4548519b.
Revert "Revert "LockscreenShortcuts : Fix minor bugs""

This reverts commit b99a340b9b7eb92dfb4d9fd4d1905a792879d9b9.
kill-all and task manager button for sense4, placed task manager button on top

Change-Id: I6810abf19abe6a1bdaf116aa8cd4b0736da7eedd
task manger button: open manage all apps, thx to kasper_h for pointing me to launcher.java

Change-Id: I01073f5d566799d762a50cfd51b0f8270d29c028
Only update the navigation bar if it is not null

Change-Id: I158cbadaf1768264202e8257ace382836e4da6db
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_base into cm_merge