Frameworks: Add several Slim helper classes and constants back

Change-Id: Ifeaca783c7b455f6846e20dba1aebf08c9226edd
Frameworks: smart pulldown we do not support anymore

No QS nothing smart needed anymore

Change-Id: I5187fd00cf45f28d5749f26acfaefbae45f82be6
Frameworks: Add reboot menu - prepare for Slims Global menu - misc changes

Adding advanced reboot menu like it was on kk4.4
Adding advanced reboot secure option
Move reboot into safe mode from longpress power to longpress reboot
Enable for now per default Airplane mode and sound and reboot till we have imported our SlimActions class to make in configurable

misc changes and adaptions to lp

Change-Id: Idd4f56d985ac51ade5f8deb2597d8f1dda22088a
Fix fr-CA locale AOSP bug

as reported on aosp bug tracker fix for crash from systemUI/keyguard which results in heavy system instabilities.

Change-Id: I30d17e16048b738624523e77da05ca11c575a91b
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