Remove DEFAULT_THEME_APPLIED_ON_FIRST_BOOT

doApplyDefaultTheme should be able to apply the default theme, if
one exists, whenever applyDefaultTheme() is called.

Change-Id: Ia50b4089d122855a4ddde91a02eef33ed3f9eaf4

Conflicts:
	core/java/android/provider/Settings.java
Add status bar and navigation bar to ThemesContract

Change-Id: I8048c735d7bbbfdb86ee5923b95bece6b4252bf7
Add previews to the themes contract.

Change-Id: I607a6eda1c63a701516d2bc78ca6b705841fbdf7
Revert "Vpn: Setup routes."

This reverts commit 93f9ebe47437d71bf66c8999f7cffc973f5959ed. It
is incompatible with change I5b2bde0ac5459433fc5749f509072a548532f730
and breaks routing on 4.4.3

Change-Id: I6e730ae66c7a5fdca582cc8c05f13ea8b234d848
Recents: Support clearall function for Hardware key devices

Checks for force show navbar (key disabler)

Change-Id: I9173eb817d2ac9b43b1f0e2cc1c8e4edb2ff72ef
Merge remote-tracking branch 'legacy/kitkat' into kitkat
SystemUI: Always show translucent decor on recents panel

Change-Id: Id3e371f841b065ba6ac7693d96b38504354b4fd9
Fix hot reboot in powermenu

Fixes AOSPA-557
Accessing showGlobalActionsDialog() from different threads
(one for broadcasts and one for the actual longpress power button action)
caused a hot reboot when accessing the power menu from quick settings and then from power button.

Change-Id: I4b6efd192404f073c0d1b5655152ae736a398cbd
Pie: Fix navigation icon hints being cleared on reorientation

There is no reason to recreate the PieControlPanel instance if it already exists.

Change-Id: Id7bb4946a8fbd4595e840c605b90b97cab7b38ca
Implement DocumentsProvider.createDocument and deleteDocument

Fixes AOSPA-431
This is needed to delete and create files/folders in DocumentsUI.
Some open questions are:
1. Are the methods implementented according to their description?
E.g I'm not sure whether deleteDocument should be able to delete folders, too.
2. I first didn't want to modify public API, but deleting files from within DocumentsUI somehow doesn't work - file.canWrite() always returns false
3. So is modfying the API this way OK?

Change-Id: Ie3a9d1888decaa0f08de1a5183ffd23760be15b9
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
Fix progress of VolumePanel never refresh

On some occasions when disconnecting a headset it is possible for
the volume slider to enter a state where it is no longer updates.

The cause was that ProgressBar enters a state where a call to
doRefreshProgress no longer updates the progress.

The solution was to make sure mRefreshIsPosted is set to false
when mRefreshProgressRunnable is removed.

Change-Id: I1929e4916a582d09a7ec4911eb4f0052ad7a51ba
Signed-off-by: houst0nn <houstonn@gmail.com>
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