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
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
Add EventLog event for logging of attempts to call java.lang.Object.getClass

Bug: 13694467
Change-Id: I886c6ffb3a008d0cf701c1adc16c607cbf7dce39
Merge tag 'android-4.4.4_r1' into HEAD

Android 4.4.4 Release 1
Themes: 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
Themes: Don't create idmap if app doesn't have resources.arsc

Some apps do not have a restable but some legacy themes
try to theme these apps anyways. In this case we skip
the idmap creation process.

Change-Id: I8bc60984299791733d4fe8c9bbcaa75eca6d736b
Themes: Install themes and icon packs for secondary users.

Change-Id: I48ae6835223510a433642fced5b96b6c3954baf6
Themes: 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
Themes: Add status bar and navigation bar to ThemesContract

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

Change-Id: I607a6eda1c63a701516d2bc78ca6b705841fbdf7
Merge "Fix hot reboot in powermenu" into kitkat
Merge "Implement DocumentsProvider.createDocument and deleteDocument" into kitkat
Fix for default USB debugging in eng builds.

* Start adbd on first launch and accept all connections for eng
* Start adbd on first launch and prompt for userdebug
* Do not start adbd for user.

Change-Id: I26d1ef1bb208cec79d45687aea833a1b3e076b83
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
Add "Turn WiFi off" action to "Open networks" notification

Forward ported to kitkat

Squashed:
add "Turn Wi-Fi off" action to the "open networks available"
notification
add missing xhdpi turn wifi off image
WiFi open network notification: fix potential crash

Change-Id: Id1fd4f50755c5172cdc557fc27e2298290edecef
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:
	core/res/res/values/cm_strings.xml
	core/res/res/values/symbols.xml
Merge "Pie: Fix navigation icon hints being cleared on reorientation" into kitkat
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: Ia7c2bc5df11e669ede747ae6f33e2be4abc301d2
Merge remote-tracking branch 'legacy/kitkat' into kitkat