Themes: Use INSTALL_LOCATION_INTERNAL_ONLY for legacy icon packs

If an icon pack is currently applied and is installed using forward
locking, the system will crash when the pack is updated.  Several
applications can have the pack attached to their resources and this
causes the system to crash because it cannot unmount the asec container
to finish the post install process.  Installing these packs to internal
storage without forward locking alleviates this issue.

This is done with theme packs as well, including legacy themes.

Change-Id: I155fc0bd671f3f9baaf2565d1c4d654a0a5348dc
(cherry picked from commit 793c13db1fb31ad67e34323b7c31dde843571284)
Theme IME switcher alert dialog

Change-Id: I5344e9ddbacb1520080532d9cc1a7a5f5428e131
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
(cherry picked from commit b555f89626dc360ef7e47f84c2565481e9caa151)
Automatic translation import

Change-Id: If9fc62896381bb38ac2034965a113efc0f482835
(cherry picked from commit 861e6cb0cbd84d6a8bd42357626f01ddf314410a)
accounts: don't remove accounts while device is in safe mode

Userspace apps are not available in safe mode, so authenticators are not available when
the system starts and checks all accounts. Just ignore these accounts and not add them
to the list of accounts.

JIRA: CYAN-4074
Issue: https://jira.cyanogenmod.org/browse/CYAN-4074
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Change-Id: I9cac5084c29fe33a0215ab4a9e693f58712438ac
(cherry picked from commit b6164b37082b043d63a914a3861199aabf2f0467)
Merge "Fix frontOfTask assignment." into cm-11.0
(cherry picked from commit 9ccdd82b58a88eb5e8e8347f9e4227bd83320a3b)
Keyguard: fix NPE setting lockscreen wallpaper

After boot the view might not be laid out and so getWidth() and
getHeight() return 0 and will cause a NullPointerException in
createBitmap().

Change-Id: Ibacf4199a69709dc34d21695732c2a5360533a23
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
(cherry picked from commit dcd847bf4362d9315d363d72bced6a45e0fd2cfa)