Cleanup Security/Privacy settings code

Cleanup:
* Mismerges
* Code style
* Copyright headers
* File permissions

Change-Id: I6c34586680f0ccbaa613a0acfee366113c32a81c

(cherry picked from commit 2b069e71e66fb127663a72a7fd09dd1dd750773a)
Settings: use CMHW serial number

See http://review.cyanogenmod.org/57164

Change-Id: If328ca7b487435b88246d1f8c47b04770183f09e
(cherry picked from commit bc431ac92e4b771cd4021781d2c02cd1a935ea7b)

Conflicts:
	src/com/android/settings/deviceinfo/Status.java

(cherry picked from commit 0ca3733f1eea765d3b024c6ccfd826b9ef2df04c)
Settings: allow home button to wake device [2/2]

Change-Id: I5c887422636f8bc51cb324339b3cdcac7af54400

Conflicts:
	res/values/cm_strings.xml

(cherry picked from commit aeef635e27ebdb3021c9aadc4909abc9f1f2ef84)
[1/2] Settings AppOps: show/hide app type and allow/deny counters

Squash of:

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Thu Oct 3 13:51:31 2013 -0700
AppOps: menu options to show/hide user and system apps
Change-Id: Ia55364c361db949a891e4b53a757ee4dff519eb6

Author: Sam Mortimer <sam@mortimer.me.uk>
Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Oct 2 22:24:14 2013 -0700
[1/2] AppOps: Show allowed/ignored counts
Change-Id: Ia27737155c33e934df9a2a1fcff88379240fd096

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sun Dec 1 21:39:07 2013 -0800
AppOps: only apply app type filters to summary screen
    *) If buildState() is called for a single package, do
       not apply hide user/system app filters.
    *) Fixes show detail display when called via
       long press in privacyguard and an AppOp hide
       filter is ticked.
Change-Id: If31d094fb989836ab6829daeefe820695032c0ed

Change-Id: I4d6f37b3923eb9bc98d67101d6f0ef481a427682

(cherry picked from commit 888b6eaae0fd30a13c4faabf2ed07c6606e02e7f)
profiles: Make the actions wizard buttons show up

The "back" and "finish" buttons weren't being shown at all in this
layout, which made it impossible to add profiles.

Change-Id: Ib6b52430c25ed7445ca8e3c1249b7fccd21c3c69

(cherry picked from commit 9752a6de10caf3bd650ce01f4365496d4f64eeb8)
profiles: Make the floating action button more material-y

This makes the FAB look consistent with other fabs across the system,
it adds animated elevation, changes the icon color to white but mainly
fixes the size which was completly wrong.

Change-Id: Ib8b2d54869a6a10958c24bcc0fab1224fd07fadd

(cherry picked from commit 3ae43e3f79f48fbcc30284101d83bd5a36e9213d)
TrustedCredentials: Don't crash when the activity is paused

If you press Settings -> Security -> Trusted Credentials, then press
 back before the loading finishes, the loader async task will still
try to dereference the activity which will cause an NPE.

This patch fixes that by getting and holding a reference to the
context in the beggining and bailing early if it is null.

Change-Id: Ie03734d5f184821df5d8729fc4a16eb51cdeebf5

(cherry picked from commit c417c22da8fadf2eb7f542908de1831ca0a536fa)
Answer call with hardware HOME button (1/2)

Squashed commit of the following:

Author: Oleksandr Byelkin <sanja.byelkin@gmail.com>
Adds ability to answer call with hardware HOME button
preparation to winter time
Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec

Author: Michael Bestas <mikeioannina@gmail.com>
Settings: Move home answer & power end call options

Move 'Home answers call' & 'Power ends call' options to button settings
Change-Id: I2f365a3d278b0845b7c5ffcfe70c54160a00c24e

Conflicts:
	res/values/cm_strings.xml
	res/xml/accessibility_settings.xml
	src/com/android/settings/ButtonSettings.java
	src/com/android/settings/accessibility/AccessibilitySettings.java

(cherry picked from commit 871c410374130a1969df990219aeeb0b417c1f73)