Settings: Mirroring layout on RTL languages [2/2]

changed the strings for RTL languages (Hebrew and Arabic).
Now the meaning is that the layout is forced for LTR layout instead of not changing.

Change-Id: Ibfc7e8411370049b412e64284022c6b5fda7cc55
Settings: QuierHours service: call with qualified user and introduce controller

This commit fixes 2 issues:

1. Call the service with a qualified user.

2. Complete overwork of the handling. Currently the SmsCallHellper is doing
   way to much work. Especially when time change broadcasts trigger the service
   update. Which ended in certain cases to a complete system overload.
   To fix it we use now a single tone controller to take care of this all

Change-Id: Iee4c988f206c9efe90c06114a9030637ba5bac97
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	src/com/android/settings/beanstalk/QuietHours.java
	src/com/android/settings/beanstalk/service/SmsCallHelper.java
	src/com/android/settings/beanstalk/service/SmsCallService.java
	src/com/android/settings/slim/service/SmsCallController.java
	src/com/android/settings/slim/service/SmsCallHelper.java
Settings: calendar is not a single tone

uh man should not fix stuff on 4am morning :/

as well fix a logic derp

and another one :/

Change-Id: I6f2555ec2d1aa6b729f7ec519371b99f0906a41c
Settings: Fix possible illegal argument exception

User reported this exception during toggle settings from QS
Just check if receiver where attached before unregister them.

Change-Id: I184042bd05af28dc2ad2272fba25b650ccd2c8c1

Conflicts:
	src/com/android/settings/Settings.java
Settings: let the controller handle all

observer should update the service.

Fix ANR for schedulService() loop on start service
	command issued

PS:
After Juba fixed the root cause and the loop the boolean check is not needed anymore

Change-Id: Ic74239fc785c3590fe8a6dd030c71cb653c43bf8
Settings: Update QuietHours Checkbox on Toggle

Register observer to listen to outside changes
	to QH state

Change-Id: I5caf9c1492e6cdd616ac58841ba1e8a6439becd1
Settings: Prevent GC from grabbing observer

Change-Id: I3c35b18550243c5e31364cac5e6ccc9ec41201ec
Settings: Add screen color settings

Add "Screen Color" item in settings.
This function support set Hue, Saturation, Contrast and Intensity value,
and screen color will be changed by this settings.

Change-Id: If6f6e7ee7f28862476a8b955cd3252175fefa2a1
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	Android.mk
	res/values/colors.xml
	src/com/android/settings/DisplaySettings.java
Settings: Integrate Voice+ into Settings (1/2)

Change-Id: I4778443c219cd29a463e9c4dab60783dca251f0f
Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/WirelessSettings.java

Conflicts:
	res/values/cm_strings.xml
Revert "Status Bar Color [2/2]"

This reverts commit 7196d5b743097474ee8734f194c33e47691a41f3.

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/values/bs_strings.xml

Change-Id: Ibb379796b77811e44221bed3c192ebcc78d765ea
[2/2] Squashed: 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 battery saver mode disabled
9. Add Time Range to start battery saver mode
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. fix build QuickSettings because of LocationController change
16. rewrite to better performance
17. fix brightness value
18. rewrite (again) to allow add more saving mode
19. do delay changing only for POWER SAVING not NORMAL mode
20. add Cpu power saving mode
21. fix Cpu freq value
22. fix call saving state for non user configuration mode
23. fix NPE
24. add kill all task
25. add disable sync

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/values/custom_strings.xml

Change-Id: I19502c731b74e82a3873f19f51965ee5a88c1f04

Conflicts:
	AndroidManifest.xml
	res/values/custom_strings.xml
	src/com/android/settings/fuelgauge/PowerUsageSummary.java

[3/3] OmniGears: 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 battery saver mode disabled
9. Add Time Range to start battery saver mode
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. fix build QuickSettings because of LocationController change
16. rewrite to better performance
17. fix brightness value
18. rewrite (again) to allow add more saving mode
19. do delay changing only for POWER SAVING not NORMAL mode
20. add Cpu power saving mode
21. fix Cpu freq value
22. fix call saving state for non user configuration mode
23. fix NPE
24. add kill all task
25. add disable sync
26. add disable vibrate
27. add disable led

Conflicts:
	res/values/custom_arrays.xml
	res/values/custom_strings.xml

Change-Id: Id289090fa20a38d4fc43c40240148e5f276eb4b6

Conflicts:
	res/layout/separator_label.xml
	res/values/custom_arrays.xml
	res/values/custom_strings.xml
	src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java

Conflicts:
	AndroidManifest.xml
	res/values/liquid_arrays.xml
	res/values/liquid_strings.xml
	res/xml/ose_advanced_settings.xml

Conflicts:
	res/values/bs_strings.xml
	res/values/config.xml
	res/xml/liquid_interface_settings.xml
	res/xml/power_usage_summary.xml
	src/com/android/settings/fuelgauge/PowerUsageSummary.java
	src/com/android/settings/util/CMDProcessor.java
	src/com/android/settings/util/Helpers.java

Conflicts:
	res/xml/beanstalk_interface_settings.xml
Add On-The-Go Toggle [2/2]

Change-Id: Ia77e806e3b7fc4ab9956b3ffe890c830030788a0
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	res/values/ose_strings.xml
	src/com/android/settings/slim/quicksettings/QuickSettingsUtil.java

Conflicts:
	res/values/ose_strings.xml

Conflicts:
	src/com/android/settings/liquid/quicksettings/QuickSettingsUtil.java

Conflicts:
	src/com/android/settings/beanstalk/quicksettings/QuickSettingsUtil.java

Conflicts:
	res/values/bs_strings.xml
	src/com/android/settings/beanstalk/quicksettings/QuickSettingsUtil.java
fixes for battery saver mode

Change-Id: I7190d439542425fbf6635416845e67fb02a9fa6c
Signed-off-by: scott <scott@ubuntu>