Re-implement orientation aware volume buttons at lower level

Rework of http://review.cyanogenmod.org/31979

Fixes:
1. inconsistent volume button behaviour depending on app in use
   - the buttons not swapped for some NDK/OPENSL ES apps like
   e.g. MX Player
2. the function of volume buttons on external input devices like BT/USB
   keyboards should not be affected by the main unit orientation

This commit finishes http://review.cyanogenmod.org/18273 - use of system
property has been replaced with config push via JNI as suggested during
the original review.

Patch Set 2: Circumvent the need for "keyboard.orientationAware = 1" idc
Patch Set 3: Don't leak implementation details outside InputReader

Change-Id: I19cc60cb0acb0005ab13fa069f52e3d468d694e7
SystemUI: PT-BR update translations

Change-Id: I023fcb09ba7ff5257739fc9535e96249fcf3bc00
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
InputDevices: CA translations

Change-Id: Ide9e03fb72e8f4684267afbc7bac920e5e9e4503
PieService: fix possible race condition.

onPieActivation declared as a oneway function (call to it will not
block code execution). If client calls back to gainTouchFocus or
restoreListenerState very quickly then race condtiion happens
and mActive might be false in gainTouchFocus/restoreListenerState.

Set mActive before calling onPieActivation to avoid race condition and
drop the flag if exception happens.

Change-Id: Ied12b7dcbdc1bae2ba0c9fd4e5fa04169e8b2d22
Fix PhoneWindowManager animationFinished callback.

Change-Id: I86863a44e3e710aa5ea6ad433a42a3fad3bccac1
Merge "Fix PhoneWindowManager animationFinished callback." into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
SystemUI: IT Translation

Change-Id: I77bddd80011ff9af132095cbb07768068263deb3
SystemUI: EL translations

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I9fe8ca062ad34633eeb6429837057beed2d0c0cb
PackageManager: Limit the platform-key protection to test-keys builds

This block (change I7390b3bdf5289411f7a335c69635bed9f74bbfb3) is intended
to protect the system from abuse of well-known keys. That's not the case
if the system is signed with dev or release keys.

Change-Id: Ifb66f775dd28c577447634ae177442732a18b592
Merge "PackageManager: Limit the platform-key protection to test-keys builds" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Merge "SystemUI: EL translations" into cm-10.2
Merge "SystemUI: IT Translation" into cm-10.2
Merge "InputDevices: CA translations" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Merge "Re-implement orientation aware volume buttons at lower level" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
SystemUI: Ignore lint check ProtectedPermissions

Change-Id: Idf8ccd37cfb02e6da136187eb872e97e22b158e6