Themes: Get resources with an explicit theme attached.

Change-Id: If04e82a13250f520d70b58991586c8ce38f0ecb1
Don't log an error if we cannot open icon hash

The icons will end up being processed if we cannot access the hash
so let's just fail gracefully and silently.

Change-Id: I6368ee9bb47a9d52351fff22283ffac2de625b71
SystemUI: Update circle battery UI to be in line with CM

Paranoid Android circle battery icon was too thin and had the wrong shade of white.

Fixes: AOSPA-179, community request

Fixed color to match other battery icons

PS2: Fixed spacing

Src: https://gerrit.paranoidandroid.co/#/c/4030/
How it looks/origin: https://paranoidandroid.atlassian.net/browse/AOSPA-179

Change-Id: I084bbacefb37fdf64368f80baa95d79e2bd8e2bc
Revert "Convert all selinux_android_restorecon and _setfilecon calls to new API."

This reverts commit 598e86ccd802fee0567159d74ab4b97351083e44.
Dispatch keys to a device specific key handler

Injects a device key handler into the input path to handle additional
keys (as found on some docks with a hardware keyboard).

Configurable via overlay settings config_deviceKeyHandlerLib and
config_deviceKeyHandlerClass.

Change-Id: I6678c89c7530fdb1d4d516ba4f1d2c9e30ce79a4

DeviceKeyHandle: The device should consume only known keys

When the device receive the key, only should consume it if the device
know about the key. Otherwise, the key must be handle by the active app.
Also make mDeviceKeyHandler private (is not useful outside this class)

Change-Id: I4b9ea57b802e8c8c88c8b93a63d510f5952b0700
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

DeviceKeyHandler : Allow handling keyevents while screen off

Some devices require the keyevents to be processed while the screen
is off, this patchset addresses that by moving the filter up in the call
hierarchy.

Change-Id: If71beecc81aa5e453dcd08aba72b7bea5c210590

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add dummy config for long press menu

Conflicts:
	core/res/res/values/config.xml
Add UUID (re-)scan support for vold-mounted volume (1/2)

Consider the following scenario:
* Using physical primary only storage cofigurations with the sdcard
  daemon
* On first boot, the UUID is plumbed to the framework via vold, but this
  is only done when a volume is mounted (via the extractMetadata()
  function).
* When the framework crashes/restarts, vold does not need to mount any
  volumes (as the sdcard daemon will still be running), which means
  that the UUID is never plumbed to the framework upon restart.
* MediaProvider will continuously crash with an NPE due to the UUID being
  null.

Workaround the issue by adding "scanuuid" to the "vdc volume" command
list, and trigger a scan when the framework detects that a volume is
mounted but the UUID is null.

Change-Id: I01fceadf85dac97fbf19c41eb865abed714fe0f4
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
Revert "Add dummy config for long press menu"

This reverts commit 57073ad8cb9a05a9c2a2f14f6e9db575c6a78248.
Revert "Dispatch keys to a device specific key handler"

This reverts commit 3ccd5cc3bc7afbf80822ff26c5b267abd586a8b7.
Revert "GEL Integration (1/2)"

This reverts commit 71af9456b57c41ee7b9897c90a082ab9b7a50088.
Revert "Add Profiles to SlimActions"

This reverts commit 36e6bb4c5940aec8143e5322bd7203b24701c1bd.
HOVER: Option to exclude topmost app [1/2]

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

Change-Id: I6da9027af4c7bc74945a06b97b876f94cf817844

Conflicts:
	core/java/android/provider/Settings.java
HOVER: Add QS Tile [1/2]

Change-Id: I73b41f80762cb71fa86630314891e9670b43ea87
HOVER: Disabling HOVER isn't necessary at all [1/2] …

as we can just hide the HOVER-Button in StatusBar

Change-Id: Idde34acc859e6191a71239616b2b69f09650ef49

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Fix icon support for secondary users.

This fixes the problem when switching to a secondary user and
icons are currently applied.  Prior to this patch the secondary
user would see droids as their icons and apps would FC at start.

Change-Id: Icd4275eae5868612bf2a81b375ac4d0779a61395
Merge remote-tracking branch 'upstream/kitkat-staging' into kitkat

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java