Circular memory indicator for recents panel [2/2]

PS3-4:
- cleanup
- default to off

Change-Id: Iab305f0f496cf62472ffb5ff2fd1bc128818899a
Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>
CarbonFibers: Battery Saver Mode [3/4]

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

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

src/org/omnirom/omnigears/interfacesettings/MoreInterfaceSettings.java

Signed-off-by: STELIX <ssspinni@gmail.com>
Change-Id: I0cd36b081f965aeba922f0cbff8f9b786d1e1365
Add Power Menu QS Tile 2/2

Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>

Change-Id: I59b2b8d5f0a4e12b10cd49bea1fd1f720b4ce2db
QS: add theme switcher tile (TRDS) 2/2

this adds a theme switcher tile

normal click: turn on/off dark/light theme
longpress: switch between the auto modes (manual/light sensor/twilight)

Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>

Change-Id: I5f4bb146e240bf31b6486aeff85b0828ee6fbb09
Merge "Add Power Menu QS Tile 2/2" into kk
Merge "CarbonFibers: Battery Saver Mode [3/4]" into kk
CarbonFibers - Chameleons SeekBar Fix

Change-Id: I172c9ff1aa8953e379f5dc57e053a15190b39e10
Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>
CarbonFibers: set many resources untranslatable

in the arrays.xml file, I set all the arrays that should not have translation (like number array, and arrays which point to other strings with the @)
in the strings.xml I set also the one that should not be translated.

Change-Id: Ic3d052c5c7f8fe2ba500b629d4b6f15ee25ca7e2
Merge "CarbonFibers: set many resources untranslatable" into kk
CarbonFibers - Fix some derps

Change-Id: I2a1d50bfd8ff2e80a993ccfdee50b96576b8d532
Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>
Settings Smart PullDown to SlimActions (2/2)

PS2: Reverse dependency until Recents
	Preload situation decided.

Conflicts:
	res/values/slim_arrays.xml
	res/values/slim_strings.xml

Change-Id: Icacca5c385b843de4e5c690d3cdacdfe003dc948
Settings: Add default value for display color control (2/2)

Change-Id: If6bc4e74bc591437a68b9e7f229600c6261c7ad6
Credits: djMesias
Merge "CarbonFibers - Fix some derps" into kk
[2/2] CarbonFibers: Slims Hardware Key Rebinding

First thanks to CM team for the 2 years where we used their approach for our
custom hw key rebinding. This hardware key rebinding
patches did in the past a good job and we extended it prior 4.3 with a lot
Slim custom stuff.

But it is time to go new way and to do the complete
hardware key rebinding more flexible and more centralized. Especially due
that we have now all possible shortcut actions centralized in 4.4

Possible mapping are:
ACTION_HOME
ACTION_BACK
ACTION_SEARCH (in app search)
ACTION_VOICE_SEARCH
ACTION_MENU_BIG
ACTION_POWER
ACTION_NOTIFICATIONS
ACTION_QS
ACTION_RECENTS
ACTION_SCREENSHOT
ACTION_IME
ACTION_LAST_APP
ACTION_KILL
ACTION_ASSIST
ACTION_VIB
ACTION_SILENT
ACTION_VIB_SILENT
ACTION_POWER_MENU
ACTION_TORCH
ACTION_EXPANDED_DESKTOP
ACTION_THEME_SWITCH

and custom app/shortcut of course

Possible actions on all keys are:
normal tap / longpress / double tap

So to summarize if it is in settings array enabled user can bind whatever of the above
actions to every hardware key action.

Main changes to prior solutions are:
- do not depend anymore on hardcoded integer values. We use now strings. This has
  the advantage that we can save whatever shorcut or intent URI we have into this
  value. And gives us the possibility in future without changing anything on the hw
  key rebinding code to get more options/or modify the options. Actions are holded
  like on all other of our features in ButtonsConstants.java
- All actions are peformed over our SlimActions like all other features. SlimActions
  takes care about all possible solutions the user can run into and sets the right
  open animation, keyguard handling etc etc. As well it is easier to maintain only
  one code base.
- Only observe and update the values on hardware key devices. On non hw key devices
  the complete code is non operational
- Removed in settings the not needed overlay due that we can use the fb one to
  check if it is a hw key device or not.
- Major cleanup of a lot old code.

This patch add as well one new SlimActions action....VOICE_SEARCH

To configure your device you need to add the device overlay as usual:

overlay/frameworks/base/core/res/res/values/config.xml
<!-- Hardware "softkeys" present on the device, stored as a bit field.
         This integer should equal the sum of the corresponding value for each
         of the following keys present:
            1 - Home
            2 - Back
            4 - Menu
            8 - Assistant (search)
           16 - App switch
        For example, a device with Home, Back and Menu keys would set this
        config to 7. -->
    <integer name="config_deviceHardwareKeys">7</integer>

Also requires framework base commit (https://review.carbonrom.org/#/c/500/)
and overlay to function correctly

cheers HCP and kufi

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

Change-Id: Ie9d8237f92ec07b5012a45426f41314460b4e2e5
CarbonFibers - Adding old-school (JB like) battery percents style [2/2]

It has better visibility.
    How does it look like:

https://dl.dropboxusercontent.com/u/66673431/BattModPercentScreen1.jpg

https://dl.dropboxusercontent.com/u/66673431/BattModPercentScreen2.jpg
    Adding "No battery" style
    Fixing menu items locking
    Adding line for circle charging color
    Moving new style to the end to save previous styles order
    Frameworks change: https://gerrit.slimroms.net/#/c/5623/

Change-Id: I5a409293e837ded0d7464825b9b00eee52940b1c
Signed-off-by: MURA Stefano [STELIX PippoX3] <ssspinni@gmail.com>
Merge "Circular memory indicator for recents panel [2/2]" into kk
Merge "QS: add theme switcher tile (TRDS) 2/2" into kk
Merge "CarbonFibers - Adding old-school (JB like) battery percents style [2/2]" into kk
Revert "CarbonFibers - Adding old-school (JB like) battery percents style [2/2]"

This reverts commit 1a08717964955039d8b4598c5883305bdd64e425.

Should not have been merged.

Change-Id: I330b18fb08bae93d383399435a6d268341db608f
Merge "Revert "CarbonFibers - Adding old-school (JB like) battery percents style [2/2]"" into kk