Revert "Pie: Fix navigation icon hints being cleared on reorientation"

Not recreating every time causes a regression of the hold pie while rotating bug

This reverts commit 148de1e8b7756a01e0d7f3353756fcb49860ba62.

Change-Id: I8dd2b22f257e66586fda018f7a90cfbcc982ba03
PIE: Add themeable colors support

Move colors to xml resources.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Pie: Fix Pie positioning when PIE_ALWAYS_AT_RIGHT

Locking Pie to a single physical side of the screen makes perfect
sense when it's done on the short side of the screen (bottom in
portrait) as then Pie is more easily swipeable in at all times, but
a user might instead prefer being able to quickly swipe in from the
right or left hand side in portrait which becomes cumbersome when the
device is turned to landscape as the user is then forced to reach to
the middle of the long side of the screen which becomes located at
the bottom making it harder to access Pie.

The PIE_ALWAYS_AT_RIGHT value should be used to solve this issue
by forcing Pie to relocate itself to the right hand side just
like with the stock navigation bar.

Change-Id: I9b4dd3cee3fa7d85194389640dcedc02fa522530
Themes: Use INSTALL_LOCATION_INTERNAL_ONLY for legacy icon packs

If an icon pack is currently applied and is installed using forward
locking, the system will crash when the pack is updated.  Several
applications can have the pack attached to their resources and this
causes the system to crash because it cannot unmount the asec container
to finish the post install process.  Installing these packs to internal
storage without forward locking alleviates this issue.

This is done with theme packs as well, including legacy themes.

Change-Id: I155fc0bd671f3f9baaf2565d1c4d654a0a5348dc
Themes: Theme IME switcher alert dialog

Change-Id: I5344e9ddbacb1520080532d9cc1a7a5f5428e131
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "PIE: Add themeable colors support" into kitkat
Merge "Themes: Use INSTALL_LOCATION_INTERNAL_ONLY for legacy icon packs" into kitkat
Merge "Themes: Theme IME switcher alert dialog" into kitkat
Merge "Pie: Fix Pie positioning when PIE_ALWAYS_AT_RIGHT" into kitkat
Merge remote-tracking branch 'aospa/kitkat' into kitkat
Frameworks: apple can do...we can do as well

incredible apple engineers speeded up the overall UI and reduced per default slightly
the animation scales. Well we do as well and reduce it from 1 to 0.75...smooth, looks well
and does not break anything

Change-Id: Icbcc889e49c8d3ab24cf2b1c10bbe0e8bf7e7637
Enable Install Non-Market Apps

* This will allow us to install market apps by default.  I always hate having to go check that silly box everything I'm install something from SDCard!

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Disable Package Verifier

* Besides being an annoyance this might actually suck more battery.  Unless people know what this and actually want it I say disable it!

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Turn advanced devices and file sizes on by default

Tired of turning them on every flash
Add dashclock widget by default
HOVER: Disallow notifications from foreground active app

The Ticker doesn't do this, but Hover can be less intrusive.

making sure original authorship is maintained however:

Code update by @Der-Schubi
https://github.com/LiquidSmooth/android_frameworks_base/commit/f2357de23e3ee544cd465eee62e7f58a167a9575

HOVER: exclude topmost app

Originally taken from Tigger2014:
https://github.com/Tigger2014/android_frameworks_base-1/commit/5af0e1c84e86e9b4e6947163aaf58e9ab541079d

Change-Id: Ibe954e343b7bf47fde684eaa2a65de5018a7f355
HOVER: Match notification width on tablets too

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Do not launch floating window when on default launcher

We only do this when user is on the default launcher
because if the user was on a non-default launcher,
he/she must have been there for some purpose and we
do not want to throw him/her back to the default
launcher incase he/she exits the app with HOME button.
HOVER: Ensure to clear after reparenting all notifications

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I8d3735836952394942f044ebd067d7cc7a82bc2e
HOVER: Fix notification content not being updated

Change-Id: I6f5e95cfff9b78cdabd1d9aa00e0577b0ab78508