[2/2] Settings: recover last location state during on/off switch

based on the behaviour change on QS here:

https://gerrit.slimroms.net/#/c/1421

we go now same way in settings. Tbh not sure what the goal is to
force the user after switching off to enable always high accuracy
location. Whatever we use here same attempt like in QS tile....if the
user switches on again it recovers the last enabled state.

Base: https://gerrit.omnirom.org/#/c/4874/

Change-Id: I887e2a94af379770dac7dbedb5d3d8002a554163
Settings: FR translation

PS2: correction
PS3-4: rebase and add new translation

Change-Id: I3273a60fc290c116e3dbe186634cc2f97860d09c
[2/2] Settings: Add ADB Paranoia mode

ADB Paranoia mode will reboot the device in the event of the following:
- The device is locked
- An ADB master device is connected
- ADB Paranoia mode is enabled in Development menu
Used in conjunction with device encryption, this should offer decent
protection against malicious adversaries with basic physical access to
your device. This will not help if your device has hardware level
exploits that can be used without rebooting the device, and without
connecting ADB.

Change-Id: Ia92141dc1eb5c1e337f325b860afe6ee11348e2f
Merge "[2/2] Settings: recover last location state during on/off switch" into android-4.4
[2/2] Settings: Volume panel timeout

Base: https://gerrit.omnirom.org/#/c/5516/

PS6
move it up below volume panel style preference

PS7
added volume panel category

Change-Id: Ic5c09e70ff08ad030119a8b169b885a8053e3a6f
Merge "[2/2] Settings: Volume panel timeout" into android-4.4
Settings: Update DE-Translation

Also removed double included Strings from res/values/custom_strings.xml (L64-70 = L242-248)

Change-Id: I3f55150149d9fc797c084548b402063143b8cd6c
Merge "Settings: FR translation" into android-4.4
Merge "Settings: Update DE-Translation" into android-4.4
[1/2] Settings: SeekBarPreferences tweaks

-added @string support for units
-use SeekBarPreference for button brightness timeout

Change-Id: Ia392c739e035f1c8372b817ba5574ec7be13d5a8
[2/2] Settings: Add custom periods for data usage measurement

PS4
externalize strings and minor layout tweak

Change-Id: I815f6a773375a855514bc9a6517f292ffcc157a2
Settings: Update DE-Translation

Change-Id: I9d55e5865dc3bd18e491c5f4fc59da7d4e88f15f
Settings: fix QuietHour start time

when user decide when quiethour will start/stop using time preference
alarm manager will setup the time, and call stop service in many times
before starting the service

this add some check to prevent call stop service before time to start

fix http://jira.omnirom.org/browse/OMNI-595

Change-Id: Ide4cb7f651ab153e1738d309992628b951e551c1
Merge "Settings: Update DE-Translation" into android-4.4
Settings: add device tree settings hook

Allows devices to hook "advanced settings" into the settings list
by providing an apk that is providing the activity 
org.omnirom.device.DeviceSettings

The activity must be labeled "Advanced settings" to get a unified
look and feel.

PS4:
- This is hidden by default, to show, add
  <bool name="has_advanced_settings">true</bool>
  to overlay/packages/apps/Settings/res/values/bools.xml

PS5/6: fix build (accidentally added <header>)

PS6:
- Better detection if supported (don't need to add bool)
--> Automatically enabled for all supported devices
--> Hidden when app is uninstalled
- Title loaded from package -> no localisation needed

PS7:
- re-arrange advanced settings as first entry in DEVICE Menu

PS8:
- fix major derp :)

PS9:
- Move advanced settings hook to botton of DEVICE menu

Change-Id: Iefbcb0b626ee8df62115d1baa4f0ffadbf9dba36
Revert "[2/3] Settings: Battery Saver mode"

This reverts commit 0f4040795f0acaece53078b30c16e6fc4b1c5a21.
Merge remote-tracking branch 'omnirom/android-4.4' into android-4.4

Conflicts:
	res/values/custom_arrays.xml
	res/values/custom_strings.xml
[2/3] Settings: Battery Saver mode

introduce battery saver mode
this based from what user want or what user do to saving the battery life
this include:
1. Automatically switch mobile network into what user choice and also disable mobile data IF wifi connected to an AP
2. Automatically switch mobile network and disable mobile data IF battery low (battery level can configure)
3. Reduce screen brightness based low battery (this feature will disabled if Auto brightness mode enabled)
4. Not changing network IF on Call or Usb tether enabled or WifiAP enabled
5. Not changing network IF there is Download/upload progress
6. Support For Both GSM and CDMA devices (need someone to test for CDMA devices)
7. every condition has an option :D
8. Restore all network configuration if Smart Radio disabled
9. Add Time Range to start Smart Radio
10. allow device without mobile data support, to using this feature
11. fix inconsistent battery low level
12. rewrite to better performance
13. modified the controller to support battery saver mode
14. add bluetooth, gps, wifi, and mobile data (if support) to be disabled while power saving activated
15. move preference settings into settings => battery settings

Conflicts:
	res/values/custom_strings.xml

Change-Id: I19502c731b74e82a3873f19f51965ee5a88c1f04