Revert "Framework: fix disable screen-off animation"

This reverts commit feae4aad85aca09ceabcf94b6c9d425e518e4eff.
Revert "CM11 Themes: Delay setting default theme"

This reverts commit 60a31260b66594fe286cbe1024897ece77b0e73a.
Revert "WallpaperCropper requires these permission."

This reverts commit 548e657239bbb17dac10c18b5994f522e641bc42.
WallpaperCropper requires these permission.

Without these it just crashes lockscreen wallpaper.

Change-Id: I25c676244a919ed355e02664828ddd79dd327062
idmap: reduce CREATING STRING CACHE verbosity

Change-Id: I7febe358b3b302427650edc1d00772fc9d2d547c
Fix resource leaks

Change-Id: I3a201cfd924e467d605351782bd06874c2af725e
WallpaperCropper: do not display null bitmaps

It is possible that themes can include a corrupted bitmap,
and the lockscreen will try and display a NULL image resulting in an
empty thumbnail and applying it will cause the app to crash.

Change-Id: Ie0770486a9d58050a5f296a219d844a39937421e
Signed-off-by: Roman Birg <roman@cyngn.com>
Change defaultDreams to com.android namespace

Change-Id: I80f6a163084ef1e03e6e3168ecf40ac701e34519
Correct stride for drawing to cached glyph bitmap

fixes the glyph cachebuffer index to account for pixelbuffer
format size.

issue: in launcher home screen create icon group and rename the
group to some text string with emo-icons (smilies). without this
change the drop shadows for emo-icons will look bad.

Change-Id: I525a9219d35f4541363fd64e7fc5fd1053269725
Signed-off-by: Digish Pandya <digishp@codeaurora.org>

Conflicts:
	libs/hwui/font/Font.cpp
Use alpha channel instead of red in drawCachedGlyphBitmap

the correct value to copy in bitmap is alpha component from
the cachebuffer. currently it is offset to red channel if format is
RGBA which is wrong.

this is followup fix for https://android-review.googlesource.com/#/c/93943/

Change-Id: I96b5ba35df5ccaef44caf2542d35d6585ba1df80
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
RE: Themes: Avoid compiling icon packs every boot

Change-Id: I51c7effdd4592a302f457822a05cbebee6cde06b

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java
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
Show owner info creation if no owner is set for UserTile

Change-Id: I43575946023676a1b75b67e1ae1996a0a3a35b88

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.java
SystemUI: Update UserTile from Google 4.4 code

Change-Id: I867167b83897636a3e28d08849e018a3b25caad7

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.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
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
Install themes and icon packs for secondary users.

Change-Id: I48ae6835223510a433642fced5b96b6c3954baf6
Add status bar and navigation bar to ThemesContract

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

Change-Id: I607a6eda1c63a701516d2bc78ca6b705841fbdf7