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
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
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 "SystemUI: EL translations" into cm-10.2
Merge "SystemUI: IT Translation" into cm-10.2
Merge "InputDevices: CA translations" into cm-10.2
Merge "Re-implement orientation aware volume buttons at lower level" into cm-10.2
merge changes from CyanogenMod 10.2 into local branch
Traffic meter: received bytes by time elapsed rather than fixed value

Also:

- avoid unnecessary object initialization
- improved display logic for B/KB/MB

I'll probably further improve by disabling everything if traffic meter is disabled. As it is, the traffic meter runs (but does not display) even if it's disabled. Also, the update logic is unnecessarily circuitous…
Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Traffic.java

Change-Id: I663e3fbcf53c43277649a2bd7acad53e83fbb91c