Add double tap sleep feature to secure lockscreens.

In its current state double tap works on the status bar on unsecure
lockscreens this adds the feature to pin, password, and pattern
lockscreens.

 - pin and password: double tap the text entry view.
 - pattern: double tap anywhere on the pattern view.

Patch Set 3:
 - add to slide lockscreen(glowpad): double tap glow pad to sleep
 - update commit message

Change-Id: I70eeae4acaa61b44feab661082bcfdbac7b9dfc3
Signed-off-by: baked <travp624@gmail.com>

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardAbsKeyInputView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java

(cherry picked from commit d114c426b8f09abce262c1f5b49eb146a5d8f46e)
Fixed race condition in Spinner.DialogPopup on null reference.

NullPointerException is triggered when DialogPopup is
dismissed due to object mPopup being null when not showing.
Race condition is triggered when dialog is dismissed before
touch event to dismiss dialog has been processed properly.

Fixed by adding a null check prior to accessing mPopup object.

Change-Id: I3c4fe9c279d92a7103fb4f68189d1d42beedc606
(cherry picked from commit 91b6fcac0cbb18cb7e6baaebc1ea0b044db0d3ae)
Hide additional AppOps function

Change-Id: Ife06bea56a2907acc9a7ab024e9b9aa30835652f
(cherry picked from commit 86b5ab0ae1d634281d46eb6f552ab4a8f92eb321)
server: Treat non-default route as host route

When constructing ip route command in addRouteWithMetric,
we used to check whether the given route is a host route.
In some cases, the isHostRoute() check can return false for
non-default routes. To make this check more foolproof,
check whether a route is non-default in order to treat it
as a host route.

Change-Id: I5e396e67e1c82bbe22600c47f1e52cc7c750cdc6
(cherry picked from commit 6ca9b98b43ab2eb9715227988b5a7744469d4110)
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
unbinding of HID device service on unsuccessful unbinding.
Handling java Illegal Argument exception while unbinding
HID device service solves this issue.

Change-Id: I61a5620e756119d25f2a235e67d6404b216f4cbf
CRs-Fixed: 601533
(cherry picked from commit b8e044624fba1ff88e75be931e1a5d842d8c02d2)
ProcessCpuTracker: Fix ArrayIndexOutofBoundsException in tempSpeeds

If time_in_state file is not available mCpuSpeeds is created with size 0
and subsequent call if the file becomes available there is an
ArrayIndexOutofBoundsException.
This change avoids the crash by breaking out of the loop, also adds error
logging

CRs-Fixed: 553569
Change-Id: Id5e219ca1cd3f058f714aecd5902ec2f6c11ae03
(cherry picked from commit 8427f34c9a5cafbc19d3b7ccd3dde31f78af60d1)