CM11 Themes: load wp from apk if uri is null

When setting a default theme on first start, the provider may
not have processed the theme and the uri for the wp will be null.
If this happens try to load the wallpaper from the themes assets.

Change-Id: I883b9dd796920e66e4729e78d41cd8899916fa42
Themes: Map themed icon to app after upgrade

Before this patch, applying an icon theme and then upgrading an app would
cause the app to lose its themed icon.

Change-Id: Ia76a33d0fb731720aa735e9dd9596bc5d2e75d9f
add a getter for the x and y offsets of the wallpaper window

Change-Id: I35294bcac664e85cc5d344b50b5c4335a60d3f37
Automatic translation import

Change-Id: Ie73ec7956594b8a5892507e3c6b49aa5748a23aa
Make KeyguardMultiUserAvatar fully themeable

Create the animation color for the username text based on the final
color.

Change-Id: I4b1beb70160e178264c32f3b33c6c0c7c51f70c5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
CM11 Themes: Use package name from AndroidManifest

It is possible for an apk to have a different package
name for the resources than what is defined in the
AndroidManifest.xml of the apk.  Using the resource's
package name for the base package name causes themed
resources to not be properly loaded.

Instead of returning the resource package name we return
the apps package name from AssetManager.

A good example of this is Trebuchet.  The system sees
it as com.cyanogenmod.trebuchet but it's resources use
com.android.launcher3.

Change-Id: Id57e68b27b3c7509e3358a7fd12ae73a03dd6cdf
CM11 Themes: Use sendBroadcastAsUser in ThemeService

Change-Id: I2a283318357ece9f6195a9bb825748b4549396af
SystemUI: Make wifi combo margin themable

Change-Id: Ie77b13cee84d5b472f878dba6388f3e168f5a249
Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae
quiethours: fix vibrate option

Change-Id: I4108bdde0fd6745325bf6c6ca99524de7378d5f6
JIRA: CYAN-3731
Issue: https://jira.cyanogenmod.org/browse/CYAN-3731
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
base: fix fc in zh-rCN and zh-rTW language

Change-Id: Ifc049c2096c4bf595f83cde604f38ca0aaed75f6
JIRA: CYAN-4136
Issue: https://jira.cyanogenmod.org/browse/CYAN-4136
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
framework: Add equalizer tile

Shows the current visualizer of current
audio output of device.

Should not show up for remote-playing device, such
as Chromecasts.

Clicking the tile opens the current EQ app.

Change-Id: Id7d073699764eacbe1d769a18c249eb80feb2a88
Signed-off-by: Roman Birg <roman@cyngn.com>
CM11 Themes: Delay setting default theme

Change-Id: I56c0ae7a8b6868a1e81b6c7a72c0dd4a079cd7ba
wm: Underp menu key release processing

Change Iacfedf711d43f6637023c87c00e6c6b8b8a437dc made key release perform
the assigned action regardless of alternate modes, but the keypress
processing depended on said modes. Make it consistent.

Change-Id: I4be44b065f775f0304aa9770778c8fee82ef8ef1
DocumentsUI: Allow open files instead of URIs

Check files' real path and mime type to open them only in standalone mode.
This allows, for example, installing apks.

Change-Id: I4501c694db84b8595cd3928752254a8914539972
wm: Simplify menu action decision paths

Since the action is performed directly from the handler, remove all
fallback paths and "if not default action" checks; these are superfluous,
and can send the wrong events to apps implementing their own input handlers.

Change-Id: Iaafe9c7a1ab0ab75ae93f1c8a6e1efb6c7a616cb
CM11 Themes: Add themeChange config change to manifest

Change-Id: Ia84c0089a79637906e4f75fa38a56e8ff3b21a2b
CM11 Themes: Don't kill setup wizards

Change-Id: Ib68dbf08b5b65f66e73f2f22882932ced0851093
Do not kill our setupwizard as well

Change-Id: I5591085ad819074d86f062e773fc78daadba1383
Revert "CM11 Themes: Delay setting default theme"

This reverts commit 293d7e8547a05bcb17042402c18849571cd1edcf.

Change-Id: Ib36dd5f649b985238724dac06cbd0dca2eccb2cf