WifiController: fix high perf lock sometimes not respected

When the device screen is turned off, the state is DeviceActive for
15 minutes. In this time, high perf lock is not respected and
Wi-Fi power-saving mode will be turned on because screen is off.

Fix by adding a new DeviceActiveHighPerfState.

Change-Id: I71074beec4d41286dea0861107d7931da205aca2
JIRA: CYAN-2860
(cherry picked from commit 74cdd8254d28bc5f1166bacac1c4211d935b5157)
AppOps: track op persistence by name instead of id

On XML write, include the op name.  On XML read, map
the name back to op id (if it exists).

Persistent AppOp state now follows the op name instead
numeric id.  This allows upgrades between versions of
android that have different code<>name mappings.

Change-Id: Iffc02095b6838a34ff999f8db51c2c6739dd0db8
(cherry picked from commit e1e943c0776c2ad9b1c62016424bc475ef35b3bd)
SystemUI: Cleanup and enhance notification drawer header

- Crop properly images on tablets and landscale
- Use a separate layer instead of breaking header background
- Fix bug where you couldn't turn header back on after turning it off
- Added a gradient overlay

Change-Id: Ife399b82a3f272fb2ecc8e738c5f274f7682a556

Conflicts:

	packages/SystemUI/res/layout/status_bar_expanded_header.xml

(cherry picked from commit 41290fd2e4d843a93738fb16fc58b121a56aca7c)
base: NL translations

Change-Id: I12f577f751c23a9dc1837aa4603c12e58aadc558
(cherry picked from commit f3530e77c717732f7d6177facaf51c223fc2e19b)
SystemUI: NL translations

Change-Id: I850e4d41c1d671bbdbbabadc90a5f4ed53fefdda
(cherry picked from commit 63935e5c9993f8893357b50963512a7689743708)
framework/base: IT translations

Change-Id: I26ab7f41d8458e3caab9f8b823a9fb7df709be22
(cherry picked from commit ad12320a258ca5e98744fa11cf729e81d1e27efa)
core: Add support for Asturian

Change-Id: I01892a3743affd7449f0c87859ff7b151f630f1c
(cherry picked from commit 99056940ad787f09c56f0849e88781c5a6d73897)
Revert "[WIP] LockScreen: allow long-press actions from hardware keys (1/2)"

This reverts commit b358c20721b13688d37bc43455ca8e738fb5af3c.

(cherry picked from commit c7b76165aaf31756c389f8b2ca81e5885b783785)
LockScreen: allow long-press actions from hardware keys (1/2)

Allow following actions with button long-presses on lockscreen:
- toggle flashlight (if available)
- play/pause/next/previous track selection
- toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Ported from CM10
Change-Id: Iff32736d00ca5d4122f64a6a861bbb0a1de9cca9

Fix home/menu unlock with long press hardware key
- Forward port of commit 2a572ee
Change-Id: Ic2eb85542f8052fe1662244fe5e72ba12a98608b

Keyguard: Fix for home wake/unlock
sometimes device is waking and unlocking during the same keypress.
Change-Id: I72ea7611d39aac0cd03dfd5aa7036aeef7600140

Use sticky broadcast to convey torch state (1/2).
It doesn't really make sense to store the (non-persistent) state of the
torch in a (persistent) setting. As the torch is sending a broadcast
anyway, make that broadcast sticky and use it to convey the state.

Also unify the torch constants (actions, extras, activity names) at a
common place.
Change-Id: If845bef27cc79990794aa748dce18cfea3bac1f5

Fix Home/Menu/Back keys' unlock
Change-Id: Ibd3842b6ad8e037a2a9f8eb581e7c55900017b0f

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

Patchset: 4
http://review.cyanogenmod.org/#/c/56346/
(cherry picked from commit e6649cc5a1dca1fb2105ba3cc908e8b2ad08132d)
googlebackuptransport: fix for google backup and restore

This fixes restore issues with properly done 4.4 gapps

Change-Id: Ib0cec129d138a195e64f5bba36602ac5fdeda42d
(cherry picked from commit fa3f74e68aff1c74317d77dd1dcf7217d7e35a8e)
framework/base: IT translations

Change-Id: I912695bf6b92cd226cbbc75772b934295e55aaab
(cherry picked from commit 4e0f4ff9fb8d6eb0ee4cb82abf6e8df6f4a2d81f)
base: LT translations

Change-Id: I9598f89973a01444f787b62c644f35e6da56ed1b
(cherry picked from commit 71137c40f0a15aa1cd3c6e8e007f3b0309b6f53a)
frameworks_base: ES translations

- core
- packages/InputDevices
- packages/SystemUI

Change-Id: I17385b430078571e16aa73a00f01503070ebc419
(cherry picked from commit e93fe57b68f23abc6c87df479e0b4899d04fc1ee)
SystemUI: ES translations

- Screenshot delete action

Change-Id: I8e3b31e967f95be1c2cf829904f514e7b8464b7b
(cherry picked from commit 5f3b83c3f0977fb6a9636f888bf7b687f2863f0b)
Handle backup transport registration dynamically

Bug 11369873

Change-Id: I9bbdcc21ce25159c6645690123b5d03c553b0ddc
(cherry picked from commit 013d01bb2c2cd54121d74fb52f5c85e1d2865c3d)
Framework: Custom Tiles (1/2)

PS1: Reinvent logic from initial
	implementation
PS3: Clean-up and unlock/collapse
	options.
PS4: Small fix.
PS5: Remove unlock option.
	Too complex for average usage.
PS6: Allow reset button to reset last
	drawable/label.

Change-Id: Ifdfa60b8257290c07e1861903e26c5dea715d036

Patchset: 10
https://gerrit.slimroms.net/#/c/1336/
(cherry picked from commit 7f03d90415b34d2e4548b13d1bb70d6bfacf1e94)
Fixed stylus eraser being rejected by palm rejection

The stylus eraser appeared not to work, i.e. Android did not respond to
input from the eraser. It turned out that all input except stylus input
is rejected when palm rejection is activated. The problem was that the
eraser itself activates palm rejection when it hovers. The solution is
to allow the eraser during palm rejection. This solution makes sense
because the eraser input works in the exact same way as normal stylus
input.

Change-Id: I90824500be7613af4f00427c59ce828528b632f7

Patchset: 2
http://review.cyanogenmod.org/#/c/56424/
(cherry picked from commit 0f84636afe4723753fa6238776beb6ca1cf7eadd)