Utils : Fix tablet orientation logic

Tablets have orientations for portrait reversed, this commit addresses it.
Add in a few more orientation-aware safety checks to circumvent certain devices
whose default orientation does not match their device type.

Change-Id: Idc627e687ca61ab29f08433664bf77148424bd6d
Settings: IT translations

Change-Id: I898540a256e123a0077dee8d121e3a6f1b2936c1
Settings: ES translations

- Electron Bean animation
- Add NFC translation
- Reorganize some strings same as default

Change-Id: Ib5b1de46bcd40182700dad50ff0c97b44418a209
Settings - add an AlertDialog before to delete APN to avoid fails
[1/2] Permit home button wake to be configurable

To activate, enable bool config_show_homeWake in
device overlay/packages/apps/Settings/res/values

Change-Id: I00afe89ba5bf36d74b93a40b9d15eef2e805611f
Settings: FR translation

-Add new translation
-Patch set 2: rebase and add new translation
-Patch set 3: rebase and add new translation

Change-Id: I8c0e77c5837a87d92ee950c72e45268bcd6cdaef
Fix up remove Wakeup preferences

Follow the bug fix addressed in http://review.cyanogenmod.org/#/c/43544/

This fix the issue both Home key wake and Volume rocker wake preferences will be displayed
if either of them activated in device config.

If both of them are not activated it looks fine because eventually Wakeup category
itself removed,though.

Change-Id: I28b7b45d209c3beb9559ed9e7b89612bf8df8bab
Settings: CS translation

- added new for PIE control
- added new for brightness responsitivity
- removed quotes
- fixed some mistakes
- rebased and added Hangouts
- rebased and added screen off animation strings
- rebased and added APN remove message
- rebased and added Home button awaking

Change-Id: I022b8f76ae5f71eead65687a1e1e26e73f4f54cd
Settings: ES translations

- Confirm delete APN
- Home button wake device

Change-Id: Ic6529ab322dc483915763791f96653b36da80b9e