[1/2] Base: Hide power menu on lockscreen

Adds an option to enable/disable power menu on lockscreen.

Settings: https://gerrit.omnirom.org/#/c/4702/

Change-Id: I0de1501d0ecedb7b9b08fbb3aebaecd0e63cc09e
Signed-off-by: bart452 <bart4524@gmail.com>
Hardware keys: add gesture panel support

Change-Id: I7f9b712c01a92e1c7d80378960203f22b2e195ad
Revert "Fix a JNI local reference leak in MediaDrm"

This reverts commit d0a3af84edb088cf1e8fa725993700f011f39dab.
QuickSettings: Use plurals for Bluetooth tile

* Some languages need this

Change-Id: I953aee702fcc381dd4bfb3a18fa183341a138ba3

Conflicts:

	packages/SystemUI/res/values/cm_strings.xml
framework: Close system windows when performing 'switch to last app' action

This fixes a bug where performing the action while on the recent apps screen
would cause the next attempt to open recent apps require two presses of the
recent apps button (the first press would toggle it closed, rather than open).

It also prevents the switch from being obscured by the notifications shade.

Change-Id: I2220149ce604a25501121abc29e5d88f8b1cbf4f
core: Add back mistakenly removed string

Change-Id: Ia56f05ebf87f16b9304fe8fa0664874fcc03697c
Automatic translation import

Change-Id: Ie45913a911cf7877a128c3138c347ef31009c91e

Conflicts:

	core/res/res/values-af/cm_strings.xml
	core/res/res/values-ar/cm_caf.xml
	core/res/res/values-ca/cm_caf.xml
	core/res/res/values-ca/cm_strings.xml
	core/res/res/values-cs/cm_caf.xml
	core/res/res/values-cs/cm_strings.xml
	core/res/res/values-de/cm_caf.xml
	core/res/res/values-el/cm_caf.xml
	core/res/res/values-el/cm_strings.xml
	core/res/res/values-es/cm_caf.xml
	core/res/res/values-es/cm_strings.xml
	core/res/res/values-fi/cm_caf.xml
	core/res/res/values-fi/cm_strings.xml
	core/res/res/values-fr/cm_caf.xml
	core/res/res/values-hr/cm_caf.xml
	core/res/res/values-hu/cm_caf.xml
	core/res/res/values-in/cm_caf.xml
	core/res/res/values-it/cm_caf.xml
	core/res/res/values-it/cm_strings.xml
	core/res/res/values-iw/cm_caf.xml
	core/res/res/values-ja/cm_caf.xml
	core/res/res/values-ja/cm_strings.xml
	core/res/res/values-ko/cm_strings.xml
	core/res/res/values-ku/strings.xml
	core/res/res/values-lt/cm_caf.xml
	core/res/res/values-lt/cm_strings.xml
	core/res/res/values-nl/cm_caf.xml
	core/res/res/values-nl/cm_strings.xml
	core/res/res/values-pt-rBR/cm_caf.xml
	core/res/res/values-pt-rBR/cm_strings.xml
	core/res/res/values-pt-rPT/cm_caf.xml
	core/res/res/values-pt-rPT/cm_strings.xml
	core/res/res/values-ru/cm_caf.xml
	core/res/res/values-ru/cm_strings.xml
	core/res/res/values-si/cm_caf.xml
	core/res/res/values-sk/cm_caf.xml
	core/res/res/values-sk/cm_strings.xml
	core/res/res/values-sr/cm_caf.xml
	core/res/res/values-sv/cm_caf.xml
	core/res/res/values-th/cm_caf.xml
	core/res/res/values-tr/cm_caf.xml
	core/res/res/values-uk/cm_caf.xml
	core/res/res/values-uk/cm_strings.xml
	core/res/res/values-zh-rCN/cm_caf.xml
	core/res/res/values-zh-rCN/cm_strings.xml
	packages/Keyguard/res/values-af/cm_strings.xml
	packages/Keyguard/res/values-ca/cm_strings.xml
	packages/Keyguard/res/values-cs/cm_strings.xml
	packages/Keyguard/res/values-da/cm_strings.xml
	packages/Keyguard/res/values-de/cm_strings.xml
	packages/Keyguard/res/values-el/cm_strings.xml
	packages/Keyguard/res/values-fi/cm_strings.xml
	packages/Keyguard/res/values-fr/cm_strings.xml
	packages/Keyguard/res/values-hu/cm_strings.xml
	packages/Keyguard/res/values-it/cm_strings.xml
	packages/Keyguard/res/values-ja/cm_strings.xml
	packages/Keyguard/res/values-ko/cm_strings.xml
	packages/Keyguard/res/values-nb/cm_strings.xml
	packages/Keyguard/res/values-nl/cm_strings.xml
	packages/Keyguard/res/values-pt-rBR/cm_strings.xml
	packages/Keyguard/res/values-pt-rPT/cm_strings.xml
	packages/Keyguard/res/values-ru/cm_strings.xml
	packages/Keyguard/res/values-si/cm_strings.xml
	packages/Keyguard/res/values-sk/cm_strings.xml
	packages/Keyguard/res/values-sr/cm_caf.xml
	packages/Keyguard/res/values-sr/cm_strings.xml
	packages/Keyguard/res/values-tr/cm_caf.xml
	packages/Keyguard/res/values-tr/cm_strings.xml
	packages/Keyguard/res/values-zh-rCN/cm_strings.xml
	packages/Keyguard/res/values-zh-rTW/cm_caf.xml
	packages/SystemUI/res/values-af/cm_strings.xml
	packages/SystemUI/res/values-ar/cm_strings.xml
	packages/SystemUI/res/values-ca/cm_strings.xml
	packages/SystemUI/res/values-cs/cm_strings.xml
	packages/SystemUI/res/values-da/cm_strings.xml
	packages/SystemUI/res/values-de/cm_strings.xml
	packages/SystemUI/res/values-el/cm_strings.xml
	packages/SystemUI/res/values-es-rXA/cm_strings.xml
	packages/SystemUI/res/values-es/cm_strings.xml
	packages/SystemUI/res/values-et/cm_strings.xml
	packages/SystemUI/res/values-fi/cm_strings.xml
	packages/SystemUI/res/values-fr/cm_strings.xml
	packages/SystemUI/res/values-hr/cm_strings.xml
	packages/SystemUI/res/values-hu/cm_strings.xml
	packages/SystemUI/res/values-in/cm_strings.xml
	packages/SystemUI/res/values-it/cm_strings.xml
	packages/SystemUI/res/values-iw/cm_strings.xml
	packages/SystemUI/res/values-ja/cm_strings.xml
	packages/SystemUI/res/values-ku/cm_strings.xml
	packages/SystemUI/res/values-lt/cm_strings.xml
	packages/SystemUI/res/values-nb/cm_strings.xml
	packages/SystemUI/res/values-nl/cm_strings.xml
	packages/SystemUI/res/values-pt-rBR/cm_strings.xml
	packages/SystemUI/res/values-pt-rPT/cm_strings.xml
	packages/SystemUI/res/values-ro/cm_strings.xml
	packages/SystemUI/res/values-ru/cm_strings.xml
	packages/SystemUI/res/values-si/cm_strings.xml
	packages/SystemUI/res/values-sk/cm_strings.xml
	packages/SystemUI/res/values-sr/cm_strings.xml
	packages/SystemUI/res/values-th/cm_strings.xml
	packages/SystemUI/res/values-tr/cm_strings.xml
	packages/SystemUI/res/values-uk/cm_strings.xml
	packages/SystemUI/res/values-zh-rCN/cm_strings.xml
	packages/SystemUI/res/values-zh-rHK/cm_strings.xml
	packages/SystemUI/res/values-zh-rTW/cm_strings.xml
Core: Improve AOSP JA translation

They translated "hotspot" as "アクセスポイント"(access point) but it just gets us confused.
"テザリング"(Tethering) is preferred than "アクセスポイント"(access point) in Japanese translation.
FYI, most vendors fixed these strings e.g. Samsung and Sony.

Change-Id: Ic13ec6d33f411b026d90312600d0150bc3a759b0
Fix search panel not unlocking keybuard

Change-Id: I507e2be08e43d15547531819b5d8a07867d5ef3e
Merge "Fix search panel not unlocking keybuard" into kk44
systemui: Unbreak the planet

 * Not sure who to blame, but it's probably themes... :)

Change-Id: I0c534354a699f756d809aff10843ebea21f3f369

Conflicts:

	packages/SystemUI/proguard.flags
Utils: ViewGroup crawlers for easy view type management

Iterate viewgroups recursively to get all children. Filter by
view type if desired. Convenient for finding dynamically created
custom view classes in a parent.

Change-Id: If93c42605621803bfbca3479b9fbd5b1e739eaff
if ITelephony is null, assume the phone is on the hook.

Change-Id: Iff423e06506a3713214ed72550c0e7c706e9e38d
TelephonyManager: can't be ringing if getITelephony() returns null

Change-Id: I21f17dfe1517a6ece267bcbf0c484162027b16b7
Code cleanup.

Enforce 100 char line length, and remove checks for always-true
conditions.

Change-Id: Ie24d12919859e8269f77fabf93b3d745ece94479

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
frameworks/base: Fix delay in sending AUDIO_BECOMING_NOISY intent

AUDIO_BECOMING_NOISY intent is sent as background intent which causes
delay in receiving pause event. This delay caused audio leak. By
marking the event as FLAG_RECEIVER_FOREGROUND, this intent is
received sooner by Application.

Change-Id: Ib978cf8322dcddbc01f59824f95fa7800f9c35af
CRs-Fixed: 652549
wtf is this?

Change-Id: I5b8ffe39ab3c5c020314f7e199501934e8dc104a
Themes: Let ThemeService handle all theme processing [1/3]

Only themes that are applied will be processed inside of the
PackageManagerService, all others will be sent off to the
ThemeService.

Change-Id: I5f2ec628e1d22a05accc6727efb0c1387455f82f
ThemeManager: handle possible npe in processThemeResources

Change-Id: I987168b75844708853a434d6447573faecc56e90
TF this is keeps icons from being the wrong size when the screen rotates. Revert "wtf is this?"

Is setup lighter than load? obviously. Is setup sufficient for correct handling of layout change? clearly not.

This reverts commit 033fe6d43a1525e05867fec00a31923cd3fe8385.