Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>
Revert "remove navigation bar customization"

This reverts commit 4b58b80587a3e562bcc516940c02c8435a417541.

Conflicts:
	packages/SystemUI/res/values/ras_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
Properly null check all button usages.

Users might have hidden them.

Change-Id: I7f52d570cf4ef0833c6bde9159475345d581a00f

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
navbar fix

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
fix search textfield

Change-Id: I1255434e1e42973afd8d9907459dcd8795e96c4b
fix number picker blue line and highlight

Change-Id: I473c855a0e2cd068e62cd2ec4b807c04215b1c81

Conflicts:
	core/res/res/values/colors.xml
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

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
fix build round 2
fix errors (double tap)
Appears black screen fix for a while

This issue is side-effect of added google patch on KK MR1.

Fix a couple of issues with mOpeningApps.
https://android.googlesource.com/platform/frameworks/base/+/a8ee262c04749db4f32f73d2b9e7f58989c4638b%5E%21/#F0

[Reproduce path]
Settings -> Location -> Location OFF -> Location ON -> "Location consent Dialog" Popup-> "Agree btn" press
-> Black screen appears for a while

Change-Id: I14efdce87e8d78d38f9aae48568f69937e4fe1fa
[2/2] frameworks/base: Enable quick unlock

Automatically unlock the lockscreen when the correct pin/password is keyed.

Change-Id: I3c1df4b573321a9343d1c339055577d5ca737f14

Conflicts:
	core/java/android/provider/Settings.java
Show confirmation for deleted screenshot.

http://review.cyanogenmod.org/#/c/56804/

Conflicts:
	packages/SystemUI/res/values/purity_strings.xml
	packages/SystemUI/src/com/android/systemui/screenshot/DeleteScreenshot.java
Lockscreen: Enable-Disable power menu
ported from omnirom

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add back increasing ring feature.

Change-Id: Id950d3c19a05e4efb9ed0b36be6a7482dd173965

Conflicts:
	core/java/android/preference/VolumePreference.java
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
Revert "Make action bar media router icons blue again."

This reverts commit 7647d861ad7085d47986305f308cfe69368842ae.

Because we want blue gone
Power menu: standarize capitalization for Screen record
Frameworks: Navigation bar button color (1/2)

 - add color tint to navbar buttons

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

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Open source google dialer and more (4/5)

This is an open source variant of the well known google Dialer which gives the
ability to show nearby places and revese lookup. It uses default the Google
engine to do this. As well you have the ability to use other providers.

Providers which are currently available:

lookup/nearby places:
Google
OpenStreetMap

Reverse lookup:
Google
OpenCnam (US-only)
WhitePages (US-only)
YellowPages (US-only)
ZabaSearch (US-only)

Change-Id: I4fbb61048bb40723b6f0e282b88a34bf66d7cb19

Conflicts:
	core/java/android/provider/Settings.java
Recents: Always show translucent decor
Unbreak RecentsPanel with translucent decors.
cm original commit adapted for purity