Disable safe headset volume warning

In some countries, regulations require that a warning be displayed
when the media volume is being raised above recommended level while
using a headset. As this is regulation we don't simply remove the
warning, but instead give the user the option to disable it.

In this implementation, the user is presented with the warning at
least once, at which point they are given the option to disable it
completely (via on-the-spot preference).

PS1: initial commit
PS2: update to reflect changes to https://gerrit.paranoidandroid.co/#/c/3702/
PS3: add new drawable (thanks Arz....finally)

Change-Id: Ib29ddb7f0ed5b1d45ed56d13bd6f7e14d005da79
Spanish translations

Change-Id: I82918b674d0289cb37c8aa83d45c9fe9e456a9c5
VolumePanel: Don't force navigation bar

It always annoyed me that when changing volume while in immersive the navigation bar is shown.
Merge "VolumePanel: Don't force navigation bar" into kitkat
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat

Conflicts:
	core/res/res/values/pa_strings.xml

Change-Id: Ib22c4a215b91aa117a281895e1d5a32e6f3d5fbe
Camera button support (1/2)

Add new bitmask for Camera button and "hasCamera" boolean.
For those devices that have dedicated Camera key
(like Sony ZL/ZR/Z1/...)
Change-Id: I1a6681664f9f3fd3f30221ba10b082cb5f8cafca

Camera button support: make it actually work
Previous commits were merged so fast that I didn't even
added the code that actually DOES launch the camera.
Let me fix that.
Change-Id: I4fcb3c46e5fd50e273dcf19fd3eb35a3f9d979e0

Camera button support: useful features & bugfixes (1/2)
Screw the remapping, let's make something more useful!
Replaced the code to actually launch Camera app, not just fire the shutter.
I won't remove it: it's cool to have an option to double-click Home for Camera.
Added:
  * Camera wake (with button half-press) and unlock options
  * "Peek": releasing the half-pressed Camera button will
    turn the screen back off
  * Camera playback control

// AOSPA-LEGACY EDIT -- REMOVED PARTS OF CODE RELATED TO KEYGUARD

Change-Id: Id49e09e20d81cd80d9800ab8ab0f200d44485a09

Conflicts:

	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Remove 'Allow custom buttons' checkbox (1/2)

Let hardware buttons be rebound by default.

Change-Id: Ib4fcae7d93dc63d53490442d7ff44678583b0d9c

Conflicts:

	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "base: fix external sdcard mountpoint"

This reverts commit cba2c6c24b38fb098f0f2fd7e168987ca1f128cb.
VolumePanel: Don't force navigation bar

It always annoyed me that when changing volume while in immersive the navigation bar is shown.
Camera button support (1/2)

Add new bitmask for Camera button and "hasCamera" boolean.
For those devices that have dedicated Camera key
(like Sony ZL/ZR/Z1/...)
Change-Id: I1a6681664f9f3fd3f30221ba10b082cb5f8cafca

Camera button support: make it actually work
Previous commits were merged so fast that I didn't even
added the code that actually DOES launch the camera.
Let me fix that.
Change-Id: I4fcb3c46e5fd50e273dcf19fd3eb35a3f9d979e0

Camera button support: useful features & bugfixes (1/2)
Screw the remapping, let's make something more useful!
Replaced the code to actually launch Camera app, not just fire the shutter.
I won't remove it: it's cool to have an option to double-click Home for Camera.
Added:
  * Camera wake (with button half-press) and unlock options
  * "Peek": releasing the half-pressed Camera button will
    turn the screen back off
  * Camera playback control

// AOSPA-LEGACY EDIT -- REMOVED PARTS OF CODE RELATED TO KEYGUARD

Change-Id: Id49e09e20d81cd80d9800ab8ab0f200d44485a09

Conflicts:

	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Remove 'Allow custom buttons' checkbox (1/2)

Let hardware buttons be rebound by default.

Change-Id: Ib4fcae7d93dc63d53490442d7ff44678583b0d9c

Conflicts:

	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "base: fix external sdcard mountpoint"

This reverts commit cba2c6c24b38fb098f0f2fd7e168987ca1f128cb.
Merge remote-tracking branch 'PA/kitkat' into remix-legacy

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/pa_strings.xml
	core/res/res/values/pa_symbols.xml
	media/java/android/media/AudioService.java
	packages/SystemUI/res/values/pa_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java