Settings: Restore functionality of reset in colour and gamma hardware tunables

Change http://review.cyanogenmod.org/#/c/50147/1 introduced a requirement that the user
manually change slider settings in colour and gamma controls before the values would write
to file, breaking the reset behaviour.

Change-Id: I5049631d2fa2a8d3553e8d56f49dc59770ecd6fb
PrivacyGuard : Reimplement to use appops

Re-implement privacy guard to use appops

Change-Id: Id97b6ecf8d4c844d3496adc71eeaba7ea050ce1d
Improve app op details layout.

Change-Id: I38a2c3679633ae85aec61703ab933410775bb336
Save last list position in privacy guard manager.

Change-Id: If04fd42b1a50059996d2a002f0c2451c3cdf82a4
Small fix in HWUI manager after Privacy Guard rework

Change-Id: I5ce49abeffb97f70a340a6863bee777d9cab1794
PAC-Settings: Custom System Animations. Original Work from
Steve K. Spear AOKP 2/2

Allows setting of some system animations.
Current List:
Activity Open
Activity Close
Task Open
Task Close
Task Move to front
Task Move to back
Window Open
Window Close
Window Intra Open
Window Intra Close
Duration Control
Prevent overridePendingTransition option

Change-Id: I525e04c3e5af484fb5a4bea0e4376f3dda4af085
Settings: FR translation

Change-Id: I3ecb619ac5a777907ac2b50f648f1812769b1baa
Animations: Re-size icons

Change-Id: Id956ffb3a0dce773d7555007c57a55f2f6effe2a
DevSettings: Fix the root-access toggle in eng builds

It was being unconditionally removed, put it back

Change-Id: I8eecab7353c59b224d917cc1710124f57656cf47
Derp fix

Change-Id: I45fd917ed9a306ccf106ca721e421cbe2507336b
sound: Enable audio thru dock devices by default

 * This should just work. A user should not be expected to dig thru
   settings in order to make their shiny new dock play some Monster
   Magnet. Turn it on by default.

Change-Id: I7a8f4fd64831e2e7206046fa2af51589060d3383
LockScreen: allow hardware key longpress to put device to sleep

Change-Id: I251e72cda94f88de3715d818ba62e796e3b2ccd0
Camera button support (2/2)

Add new bitmask for Camera button and options to rebind
its functionality.

Change-Id: I803d3b99adcdd6f2d9de15091709fc8c783ed5de
Settings: Use meaningful titles for gamma controls

There is good anecdotal evidence that the values we modify relate
to specific modifications (contrast, brightness, saturation and the
like) of the display, this change allows us to define descriptive
headings.

Change-Id: I2935924fd86f13e95b919e7b7c7a0bc931ac50bb
Add missing variables for camera button handling

Change-Id: I40abd4344800e8cf61285923cc1fac9ba39d652c
Settings: Active Display [2/2]

PS2:
Add pocket mode option, available if the device has
a proximity sensor.

PS3:
Add option to include ongoing and non-clearable notifications.

PS4:
Allow brightness control from 0% to 100%

PS5:
Refactor for release

PAC-man's PS3:
Added Prefrence to Tablet View's xml

PAC-man's PS5:
Rebase

Change-Id: Iae55640a31df68542c2af5d95097811b8fb1f66f
More Active Display stuff

Change-Id: Iaa5d58a0b10240b2e3bc893eb029b3c3423d38d3
Fix button settings

Change-Id: I2d8b52aff0566dcfe6d02fbb03a70cca69ff6e47
Fix blacklist settings

Change-Id: I39204fc06aad104ec94a2dae185944352be88036
FW: Fix Notification Shortcuts

All credits to SlimRoms for their awesome work on the Notifications shortcuts, this commit corrects the PAC code to the SlimRoms 4.3 implementation.

Unable to cherry-pick a commit to correct our code issues but the original commit retains authorship and all credits for this code are solely attributed to the SlimRoms team, I have only corrected the PAC code port of this feature.

Change-Id: Ib74118e85c31778a24fb52ffec68cfef6f5a9d2a