Add support for Samsung extended AGPS

The AGPS implementation in the GPS chipset used in some Samsung devices
(i9100, i9300) can make use of the Psc field. Adapt the relevant
functions hiding the changes incompatible with other devices under the
AGPS_USE_PSC #define.

Credit to Qaweck from xda-developers forum for finding the meaning
of the field.

Change-Id: Ie4691c79ca379a1f5c0a87500c1b06b56ae7ac0d
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>
Frameworks: Listanimation views and interpolator (1/2)

thanks team ThinkingBridge for it. Difference to original implementation

- code cleanup
- some smaller code fixes
- remove of rotation animation due it is to laggy
- multiuser support

Change-Id: Id439a284dc3a42687fec5d49914ca1119a6e9215
Frameworks: fix possible NPE on SlimPIE

some activity chooser (from launchers) give the user choices which do not
exist and would give back a null drawable. To prevend the NPE
check the drawable for null

Change-Id: I3c2c1e1ddff32b383f1ee24e41de22a9a4524ff3
Frameworks: dynamic PIE menu button + navbar menu logic cleanup (1/2)

at least the whole menu button stuff is from android version to android
version more depreciated and will go more and more away. So let us do it
like google:

- clean up the messy old AOKP navbar menu code
- make it only selectable when the menu button is really there
  and not as well when it is completly hidden
- remove the menu button action with big icon due off redundancy
- switch between modes: default jb (shows only on request), always and none
- All the above as well now in PIE...small button in first row is added
  same selectable modes for the menu lover lol
- smaller adjustments
- settings adjustments

Change-Id: Ie383843990ea40e52ef2fbe90401a3c38375d740
Frameworks: write packageinfo bits in the right order

unbelievable merge derp

Change-Id: I603a57004d8002f0ed55b2e27fbf360dfc2d2c73
Merge branch 'slim-4.3' into jb43

Conflicts:
	core/java/android/widget/AbsListView.java