[1/2] Base: Add custom periods for data usage measurement

This commit adds week and day periods for data usage
measurement, instead of just months.

Change-Id: Ibd0067418435442d8cff922faf8ef0f6a5a28761
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Conflicts:

	core/res/res/values/public.xml
	services/java/com/android/server/NetworkManagementService.java

Change-Id: I7912e12d30597cf50a5cf7a443c9d6b0b4dfda69
Merge "[1/2] Base: Add custom periods for data usage measurement" into android-4.4
[1/3] Base: 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. fix build QuickSettings because of LocationController change
16. rewrite to better performance

Change-Id: I9d86ef1425228e11cadd85d37c5b6e8b20e50fb0

Conflicts:
	packages/SystemUI/src/com/android/systemui/batterysaver/BatterySaverService.java
Merge branch 'android-4.4' into cherry-picks