MediaScanner behavior on boot (1/3)

Lets you enable/disable/ask (with a notification) media scanning on boot.
Can speed up boot and reduce initial boot lag from MediaScanner

Change-Id: I634ae96b1dcb493b966b4653589cd97523b63da7

Conflicts:
	core/java/android/provider/Settings.java
Revert "just a lil tweakaroonie to make recents draw with hardware acceleration"

Hardware acceleration is a layout parameter, bung hole.

This reverts commit d9c93dcdfc5ef98ea284207d3fc541bbce1a2d91
Frameworks: Add Permissions Management to AOKP [3/4]

Allows the user to revoke individual permissions on a per app basis.  Adapted from
CM7 commits 949eb057d81da7cd0a79fc1fe9cc9c4d989d1c27 and 4a0a352b36b21d0d22713c232baccca84ce13a2d
to work with 4.2.2

Change-Id: Ibc7be45b88838a2fffaff80514e77702d330de0f
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
Fix Watchdog HeartbeatHandler to run on correct thread

The HeartbeatHandler for the System Server Watchdog has been running
on the wrong thread due to a race condition in initialization.  It's
designed to run on ServerThread, so that it can catch lockups in the
main looper of the System Server.  It has been running on
ActivityManagerThread instead, so it does not detect lockups on the
ServerThread as it should.

ActivityManagerService is calling Watchdog.getInstance() before
ServerThread calls Watchdog.getInstance().init(), so the handler is
being bound to the ActivityManagerThread instead of the ServerThread.

Explicitly bind HeartbeatHandler to ServerThread, so that the Watchdog
catches lockups on this critical thread.

Change-Id: Iccb184ac3adb817feb86ed4ee0e50e443bf74636
SystemUI: StayAwake Toggle

Instead of overcomplicating toggle, onLongClick simply takes the user to
Settings$DisplaySettingsActivity instead. onClick (on) sets screen timeout to
int MAX_VALUE(approx 24 days), and restores user value onClick (off).

** Icon Credit to Nitroz(Thanks a ton!)

Change-Id: Ifd2051b2a6e8235160713cad3b4385dbb6d66b8f
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>

Conflicts:
	packages/SystemUI/res/values/strings.xml
Revert "Memory Leak Fix base on CM"

This reverts commit 95c4899298c0a8e0f79ab2d21734bbb7fae3fc81.
Revert "keyguard: enable magnetic target if no custom targets defined"

This reverts commit ee94c8cdb4f113e903481ad84a70b6dc425a49a1.
Revert "LockscreenTargets : Dismiss on target select"

This reverts commit 44fc431d6cb36c28944079b04ec729eabe7cfddd.
Revert "Frameworks: Support advanced lockscreen shortcuts"

This reverts commit 1ed0c607923750f422365fbadc32e643d43412d4.
Revert "Lockscreen Targets: Icon Revamp"

This reverts commit 7b3526b3fbb4a93682cc13e619322e1168fb114e.
Revert "Downsize custom lockscreen target if it is not a tablet / largescreen"

This reverts commit 795604243f00c7555f99a1a3b4653d1ca28c5a18.
Revert "Frameworks: Lockscreen custom shortcuts and 8 targets (1/2)"

This reverts commit 21176a44a2ad97a3b053c51416d7644966f1fc2c.
Revert "Revert "Implement PA's Lockscreen Target (1/2)""

This reverts commit 19b89c15148cfb17286f8fd20804ad25effbb62c.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I1f4cefae425c890c9462211e2e7b4e55ab5c6d06
Revert "Re-implement magnetic targets"

This reverts commit 49392c8879d3c4aa831146d80387a3e460f7c59f.
Revert "Framework : Lockscreen - Customizable shortcuts"

This reverts commit 03160c5fe1cf86c7820646b33cca41fa0a7454e5.

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardSelectorView.java

Change-Id: Ieb2db73eed1adebeb40ad4383a4c5a5a1fedd325
FW: Lockscreen rework WIP

The frameworks side of trhese rework is basiclly adding
Lockscreen targets and removing unneeded and used variable left
in by google.

Patchset 2: fixed landscape issues with phones

Patchset 3: Added null check for uninstalled apps.
            Add some logic for padding if the 6-8 targets are used.

Patchset 4: Removed option for long press challange unlock, I dont think
            this need to be an option it should just be default.

Patchset 5: Fix rings around targets.

Patchset 6/7: Fix big empty icons in the rc ui.
            Fix layout for 6-8 targets again...

Change-Id: Ic9a4b4f85c674dc9d4097541d447723e2dd47956

Conflicts:
	core/java/android/provider/Settings.java
FW: New unlock logic for lockscreen

This lets you move the unlock button and still keep
the magnetic targets...

Change-Id: I4f70036836f44362bfc19ad7a3ab3fb7863ea664
Policy: Lockscreen Targets Unlock speed update

Fixes lag on the classic lockscreen targets and sets up a broadcast
receiver to use those methods from outside of policy like navring
example this commit and the future AOKP Ribbon.

Change-Id: Ia0735aa26a4cd1a2c95d0860992837daf5cacf6d