Themes: Add method to "apply all" a theme

Change-Id: Ic8feaeade6c52707e6b5b17921b1b577b94ec8cf
Themes: Add URI for querying previews of applied components.

Change-Id: I97417901f3b03fc82df5a823970991ddd8092df2
Fix ResourceNotFoundException when updating  applied theme
(ThemeService.java only)

If the user has a theme applied and there is an update to that theme,
then the themed apps will crash. This is because the theme's APK path changes,
but the apps do not update their resources. Apps were not updating their resources
because updateConfiguration() determined that the config (which only has pkgName) hasn't changed.
The problem is fixed by first applying the default theme config and then re-applying the
updated theme.

PS1: AICP'fied by removing quicksettings
PS2: Update commit message to clearly indicate the difference from original commit.

Change-Id: I00e32fc1535b4d279fcb37c35f868501ecc1dd19
frameworks: move safe volume warning above expanded volume panel

Fixes JIRA bug BACON-50

Change-Id: I1bc7c4781aa81cccd42281f70b394b7f7d81d3e5
Signed-off-by: Roman Birg <roman@cyngn.com>
WallpaperCropper: load wallpapers in the background

Change-Id: I134d94a85f25bf5db4c15fa9a89265c53e5b0c1d
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix SwiftKey disappearing issue

Change-Id: I3b13acc430d260a6ef56ce581c587650861b19cd
boost hint when waking screen

Change-Id: Icb1eee556506031ca45495e61f9cbdc5d02b65d0

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "Connectivity: Set TCP delayed ACK and User Configuration Flag"

This reverts commit e1a94d487eae78587f660b4baa7b7481b1d84fef.
Logging in LocalTransport on as default

The logging is LocalTransport.java is enabled by
default.

Change default to false to remove logs, as this class
states that it is only for debug.

Change-Id: Iae63c7b62edbd503c606f0aee671a9579e78843d
Framework: Quiet Hours Extra Daily Times (1/2)

Change-Id: I38301d53b57f6b0525edd2a7e13a2bd5022e7a65
Second Clock (1/2)
Disable Immersive Messages [2/2]

Based off Xposed module by GermainZ

https://github.com/GermainZ/ImmersiveModeDontPanic

Change-Id: I4835cac08a9e525ec15aa4d1ee84329970ec6a72

Conflicts:
	core/java/android/provider/Settings.java
Slide Left to Right, Right to Left Animation [1/2]

Change-Id: I885ff2a71c3f32ec81928107d27bf95979eafdac

Conflicts:
	core/res/res/values/symbols.xml
Add Weather Status Bar Header (1/4)

AICPfy:
It was a bitch to get the layout just like I want it.
Pushed bloody SystemUI like 30 times to test
PhoneStatusbar and layouts are done by me, rest is TeamEOS
so they get the credit of course

Change-Id: I1dbddd01584717226dec5393994b1b99681c30f3

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar_expanded.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

FWB: Option to hide weather icon in statusbar (1/2)

Change-Id: Id376f3a3d5aba06cd5ad8dcbefea9f612de14dd3

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Squashed commit of QuickBoot feature from Qualcomm

QuickBoot: don't log boot events when in QuickBoot mode.

Don't need log boot events when booting from QuickBoot mode.

Change-Id: Id381530418c09ac1d650f45e7a368dbd7945aff3

QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a

QuickBoot: filt out alarms that for non-system users

Don't allow alarms for non-system users when under QUickBoot
mode.

Change-Id: I322d08f7236b6895462c4cd3304326c66f67ddd2

QuickBoot: restrict app's auto start under Quickboot mode

Don't let broadcast trigger apps auto start when in Quickboot mode.

Change-Id: I5d156cbea4ef18397ce4569cb74f73a446a6e49b

QuickBoot: remove alarms for killed apps

Device may be woken up by WAKEUP alarms, which have been set
by those killed apps before. Here to get the killed apps list
and remove the alarms from AlarmManagerService.

Change-Id: Ib34f5fc234b834b2fe4528229c267c8693fc76cb

SyncManager: Fix SyncManager null pointer issue under QuickBoot

BOOT_COMPLETED broadcast will cause mBootQueue null pointer issue.
Then system_server will crash. Add protection here to avoid
system_server crash.

Change-Id: I78029dfa90709455e4c2220e06b95640383655f8

QuickBoot: add execption restore mechanism

There may be some exceptions like battery unplugged When device
is put into QuickBoot mode. Then device will be in airplane
mode after next boot. We don't want such kind of things happen.
So start restore task to check if need restore before main
screen shows.

Change-Id: I3d0967c2f446fd71eca87ff085617edca549c984

QuickBoot: switch normal power off to quickboot

Handle power off button when quickboot mode enabled.

Change-Id: I6a668cbe823018b5e508633a76202d0df0381694

QuickBoot: support QuickBoot power on

Support long press power key to power on when in QuickBoot mode.

Change-Id: Id493d352bce73683b9696a2685a6c902f1195799

QuickBoot: Don't handle SHUTDOWN broadcast from QuickBoot

Don't process the ACTION_SHUTDOWN broadcast sent by QuickBoot.
It is only for apps.
Change-Id: I73d1a7b8edda0a898dd052831033806e18b37c99

QuickBoot: rename some intents and broadcasts

Modify some improper names for intents or broadcasts of QuickBoot.

Change-Id: I92357b0110643bb425199452cb03bd75248a5d83

QuickBoot: Support poweroff alarm under QuickBoot mode

Add white list in QuickBoot mode to support poweroff alarm.
    1. Allow original deskclock app and quickboot app to be launched.
    2. Don't filter out deskclock's alarms.

Change-Id: Ie4254e3da45837d3185d3daba625a42c50fd7f52

QuickBoot: enable poweroff charging under QuickBoot mode

control native charger's enable/disable under QuickBoot
mode.

Change-Id: I4f80c74b042e03bddc9f7fe419f4ed1f8b1409d5

QuickBoot: Add wakeup check under QuickBoot mode

We only want QuickBoot application to wakeup screen in QuickBoot
mode. Add wakeup check to filter out other wakeup callers.

Change-Id: Id82a0938003d2a776efda0e39a57877f41fc1ee4

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/content/SyncManager.java
	services/java/com/android/server/power/PowerManagerService.java
quickboot: Only enable QuickBoot if package is installed

 * Also move to Settings.Global

Change-Id: I87e1464d717b41437072523c0ecab52227d7888b

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
ProximityWake : Add support for checking proximity when waking device [1/2]

Change-Id: Ia5ff446d88435773acccc7467e66009000dc20cb

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
Merge pull request #5 from LiquidSmooth/kitkat3

merge latest liquid changes