Fix crash while installing themes rapidly

A theme can be installed on a PM or theme service thread.
If multiple themes are being installed at once and one of
those themes happens to be part of the boot config, then
two themes will try to be installed at the same time. This
causes problems with files like the temp AndroidManfiest.xml
which are not designed to be multi-thread safe.

This patch fixes the issue by making sure a theme is
never installed in a PM thread except during boot.

Change-Id: Ic9a0ffe43d0199a2a893579f3d2dbb6d9340e7b4
Sanity-check paths of files to be restored

(cherry picked from commit 7d51cc701a6735cf455af8479f56c9c0b2109e02)
Bug: 16298491
Change-Id: I0c2d6523c9d152dad4d27d06d3853afd432e5af7
Tether : Update settings app reference

Change-Id: I1726be0de702e688326b74ee262d9f674ff8e014
Update location tile(1/2)

Uncheking all sets to old(default) mode

Change-Id: I5a05d7ebd3f83043763c2d157b6d1ef1643ef1cf
QuickSettings: Invert long click and click actions

Change-Id: I49acc7d3c473debd33b2491f4dde15d185f59c52

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
fixed typo in RIL_UNSOL_CDMA_PRL_CHANGED constant.

Change-Id: I91f965793ba578f3becae4dd38680db363b92cca
[1/2] base: add CPU info overlay

this shows
CPU temp (if available)
for every core governor + online + freq

PS3:
increased font size

PS4:
whitespace cleanup

PS5:
more of that :(

Change-Id: I8e2fd81edd8499eea2b1a6de8c042938387b33ef
gps: adding net_raw gid for IPC permission

for AFW to have permission to call loc api

Conflicts:

	core/java/com/android/internal/os/ZygoteInit.java

Change-Id: Ifc7451659431fa1c1998f5d75bfa5f2018a5d054
[3/3] AudioFX: Add center frequency param to bassboost

Change-Id: I49da8e5ab24502d0de5c09b7fc9f4b8a51bead60
[3/3] AudioEffect: Add a stereo widener effect

Change-Id: Iab2035c5601394b060e7e77e85ad85aca6e4c89f
base: fix external sdcard mountpoint

It needs to add that line on init.xxxx.rc on rootdir folders.

"chown root root /mnt/media_rw"

Needed for devices that has some troubles mounting storages.

Credits: http://forum.xda-developers.com/showthread.php?t=2537793

Change-Id: I0c9e2ae5439c8d8a762904e2760eb6590ce77a62
framework: always show the rotation lock in the status bar

Change-Id: I547b201d5abb135cd74a311eff645126f1159da3
[2/2] base: Set AdvancedReboot to be enabled by default
RE: http://jira.omnirom.org/browse/OMNI-1

Because I am a dufus

Edit 9001: Setting this to be enabled by default for all users

Change-Id: Icd2c10ffd20c172374c51f300912b5c710f73bf8
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>
DocumentsUI: Add a standalone File Manager

This commit adds a standalone mode to the DocumentsUI, to let
it act as a file manager/explorer.
You can browse your storage contents, open files, and delete them,
as well as do everything that the DocumentsUI can do (ie. sort
by name/size/type, list and grid view, recents, search, ...).

This gives us a consistent file browsing UX accross all apps
that uses the new documents API.

Change-Id: If73a3c100f010bdb766c843976d4fd3573ea805c
Quick Settings: remove unneeded casts, update resources when asked

Ported from:
http://review.cyanogenmod.org/#/c/29331
http://review.cyanogenmod.org/#/c/29350

Change-Id: Id00ebdc4e4c5a2a3e7edc21e2e51468d9bc0d59a
base: correct default enablement of battery light

Use default value from config

Change-Id: I50a0e78bf4528ee8991da41aa1fdcfaaa30b107d
[2/2] Framework/base: Configure headset hook

Whether or not to allo headset hook to launch voice commands

Useful with headset control programs

PS3: Dont use getIntForUser directly. It breaks
PS5: Whitespce
PS6: Rebase

Change-Id: Ifc24407b87a469a4baadad098895564f7f9aecb8
googlebackuptransport: fix for google backup and restore

This fixes restore issues with properly done 4.4 gapps

Change-Id: Ib0cec129d138a195e64f5bba36602ac5fdeda42d
QuickSettings: change signal tile to turn on/off mobile data

There is no method to turn on mobile data with 1-2 touches. Every method
implies that you press 3-4 times, and for me this is annoying.

This commit add the action to turn on/off mobile data on signal tile touch
and long touch to go to data usage.

Change-Id: I17e0041464fabb3cf42faf5680b9945bb63b20d9