framework:Thread synchronization for UI update

Issue : Framework reboot was observed due to out of sync between
        two threads which inturn causes Null pointer exception
        while updating airplanemode.
Fix : Handled Null pointer exception and the crash is not observed.
CRs-Fixed: 570122

Change-Id: I2e969f6e7726ffcf8648b366ebb54cb2b0afc292
    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: Iad52a35120212c871ffd35df6184aeb678ee44aa
Speed up orientation rotation
increase touch sensitivity

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80

Conflicts:
	core/java/android/view/ViewConfiguration.java
modify config values in frameworks and systemUI

Change-Id: I32b884b032e0ddeb701103e361840559daea2a2b

Conflicts:
	core/res/res/values/config.xml

Conflicts:
	packages/SystemUI/res/values/config.xml
[WIP PS9]framework/base: Bringup expanded desktop and implement per-user configuration.

Change-Id: I27b2a4174f544f3437a5c918581ae599e4c3369b

Conflicts:
	core/java/android/view/WindowManagerPolicyControl.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java