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>
XFrameworks: Navbar customization (3/3)

This commit is a complete recoded Version of our old one. Implements following feature:

- custom Style
Navbar background color
navbar button color
navbar glow color
navbar button transparency

- custom dimen
navbar height
navbar heidht landscape
navbar width
all have the ability to set to 0 to hide

- custom button
complete system and logic overwork
custom buttons
custom icons
custom applications
longpress actions
complete dynamic
no systemUI restarts

- custom navring
complete system and logic overwork
custom targets
custom icons
custom applications
longpress actions
complete dynamic
no systemUI restarts

- misc
glowpad glow time
show menu location
show menu

TODO: Navbar transparency
and other will be a surprise

PatchSet 2:
- code cleanup
- fix fc without gnow
- shows now up on all devices
- fix custom icon chooser 0 byte issue on some devices

PatchSet3:

- whitespace cleanup

Patchset4:
- fix screenshot navbar
- cleanup code

PatchSet5
- add custim navring icon frameworks part
- fix navring custom application icon size

Patchset 6
- fix not shown navbar on large screen devices landscape

Patchset 7
- fix FC on button qty choose
- fix for mnazim logcat spam

Change-Id: I8e0d25f2379344b068e75dc4d7508c6f8e300a5a

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_brightness.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_search.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_search.png
	packages/SystemUI/res/drawable-xhdpi/ic_lockscreen_silent.png
	packages/SystemUI/res/drawable-xhdpi/ic_lockscreen_soundon.png
	packages/SystemUI/res/drawable-xhdpi/ic_lockscreen_vib.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_search.png
	packages/SystemUI/res/layout-land/status_bar_search_panel.xml
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	policy/src/com/android/internal/policy/impl/keyguard_obsolete/LockScreen.java