Squash Dark UI commits from Slim

Settings: Add new configuration qualifier for UI change on the fly (3/3)

last night I got an idea after 5 weeks of breaking stuff and
doing to much complicated things. Together with mnazim we tried
today to realize this idea. So another absolut new unique SlimBean
feature is born.

The aim we wanted at the end was to give a simple and resource friendly
way to change the complete UI of a rom on the fly. So why not use
the great fallback mechanism of AOSP and change/add a new
qualifier into the AOSP core. To explain how it works.....if you want
to add a new UI just add in /res folder of any app or framework you want
folders with the qualifier "inverted". Eg. drawable-inverted-xhdpi
or values-inverted or layout-port-inverted or whatever you want. Put in
only the files you want to modify thats it.

All qualifier in AOSP are following strict rules. You can read here.
Do not forget the order of qualifier is important. The new "inverted"
qualifier we added to the UIMode qualifier. To get more information
about read here

http://developer.android.com/guide/topics/resources/providing-resources.html

So what this commit does:
- add new qualifier "inverted"
- support for API level 13 and higher
- change the custom UI on the fly
- control default UI Mode over config.xml
- working for all apps. They just need to include folders
  with the new qualifier name
- resource friendly....no resource wasting either programmticaly
  then source blow, because you just need to put in the files you
  want to change
- cause of the qualifier structure compatible with every phone,
  language or whatever qualifier you want to use on top
- 100% compatible to theme manager. If a theme misses drawables
  they are replaced with them from the current UIMode which is set.

What is the benefit why not use just a theme? We started half year
ago TRDS which was inverted gapps system base themed....means we
morphed directly the changes into the framework. This methoed was
on of the reasons why trds got so popular. Points for that are easy
first the system is themed, means each theme you activate over
theme engine works on top the themed system. So you have a base
style and can modify more if you want. The other reason is easy
a lot faster and resource friendly. Now this idea went to the
rom to provide two core system based themes and user
can do on top what they want or not without, like you have

This commit just adds the support for this

cheers

mnazim and kufikugel

Change-Id: I401dabcb3691446aa7886c8601245f2cd2db71b8

Conflicts:
	res/values/strings.xml
	res/xml/settings_headers.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/slim/UserInterface.java

Settings: Kill specific apps on TRDS toggle change

to take 100% effect on the new style

Gmail, email, Playstore and contacts

Patchset:
- cleanup

Change-Id: I563307ecffe47087d19145b90b15dd58438520d8

Settings: Add to be sure also some other apps for TRDS toggle

cheers

Change-Id: I20eafdcf38bf8031d6e6d69c7403fa44bfd220b9

Conflicts:
	res/values/strings.xml
	res/xml/settings_headers.xml
	src/com/android/settings/Settings.java

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/util/CMDProcessor.java
	src/com/android/settings/util/Helpers.java
Settings: TRDS 2.0 (3/3)

After testing with huge success we discovered here
and there small problems (like NFC beam animation is broken,
TRDS was disabled on cardock etc) which mainly was caused
due that we used the already from AOSP introduced uiModes
qualifier which could cause in special conditions this
conflicts. Beside that we want a bit more flexibility.
Result: This commit introduces the inverted qualifier as
complete own qualifier undependent of the already AOSP
used ones.

Beside that it fixes all known issues......features:

- it is now completly working over the AOSP Configuration classes
  Means every app get notice of a change trough onConfiguratioChange
  and restarts it's activity if change was detected.
- app can disable that like some other configuration values
  over AndroidMainfest.xml
- beside "inverted" folder another "notinverted" folder is introduced
  for another themeing (eg white)
- qualifier order is direct before the official uiMode qualifiers
  (see AOSP docs)
- All usual Configuration actions can be used with the inverted
  qualifiers....like BroadcastChange, direct read out from every
  app etc. etc. Note: Only system can change the uiInvertedMode

So as you see a real own qualifier now

NOTE: Apktool as well aapt need to be changed to fit the "new
qualifier"....which means that we need to recompile our gapps
that they react as well on this new behaviour. Think we will get them ready
next 2 or 3 days

Change-Id: I6ac22062e32be902ca834fc7ac2b12fd24e47d44

Conflicts:
	src/com/android/settings/TRDSEnabler.java
Settings: refactor TRDS toggle and add some apps

cheers

Change-Id: I9b0a9b527fd0c2cac20d2b5475c8709a9fda1936
Some fixes in TRDS implementation + original SlimRoms icons for this

Change-Id: I1e4df0b433be49c02c8476672b1855f436c59fd5
Settings: Configure wake on Power, Home or Both [2/2]
Allows users with Home button to specify which buttons to use to wake
device. Options are:

- Power Button only
- Home Button only
- Power or Home Button (default)

Essentially the same as current functionality, but now enables user to
"disable" Wake on Power Button, by selecting "Home Button only".

Note: requires config_home_wakeScreen device overlay:

packages/apps/Settings/res/values/bools.xml

Based on Xposed addon by Daniel Bergløv aka SpazeDog
https://github.com/SpazeDog/xposed-additions

PS 2: change default to Both, refactor

Change-Id: If45e537532d3f877c272e37253de3f70831b67bf
Fix in: "Settings: Configure wake on Power, Home or Both [2/2]"

Change-Id: Ic5ea45791af8d9d63a49d700edb7a007c77b375e
Merge "Settings: ES translations" into cm-10.1
New icons for TRDS

Change-Id: I6464d8c78d08db5af2f42a7de283c4fec2d3b033
Settings: External GPS Support (1/2)

- Ported feature from CM9
- Fixed string/arrays files
- Removed translation

Patch Set 2:    - Removed random tabs

Patch Set 8:    - Renamed method names to match Android
                  Code Guidelines

Patch Set 9:    - Remove some duplicate codes
                - Fix missing string
                - Fix some formatting issues

Patch Set 10:   - Fix string regression introduced on PS9

Patch Set 11:   - Fix white space error

Patch Set 12:   - Rename some strings to make them better
                  understandable to the user
                - Move string out of cm_arrays.xml
                - Some cleanup

Change-Id: I5590b23a6539ae0a9b2fb8a07eed5fabdf290cbf

Conflicts:
	res/values/cm_arrays.xml
Add gesture based lockscreen security. [2/2]

PS2:
Tidy things up a bit.

Change-Id: I83e3ab643e19b2a2d9c8416f4925bbab05bbc896

Conflicts:

	src/com/android/settings/SecuritySettings.java
CellBroadcast: Disable App links on wifi-only devices

PatchSet 2: Remove unnecessary check

Change-Id: I359b5fef2932dfa072b72384edf9ba730a1f71a1
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Settings: EL translations

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ibc616eceede964fa4556f6f585d78131713b8f23
Settings: CS translation

- fixed aapt warning
- added lock screen rotation
- CID rebuild

Change-Id: Ie6a51e0829d32e355542f0adaf4cc9b7f75aced5
Merge "Settings: ES translations" into cm-10.1

Change-Id: Ie15335b9262f5cecd84478c1152c9fd6c212002d
Merge "Settings: EL translations" into cm-10.1

Change-Id: Iaddc1e009345e6e3238a2044fd9423c2c3710b5c
Merge "Settings : FR translation" into cm-10.1
Merge "Settings: update Japanese translation." into cm-10.1
Merge "Settings: CS AOSP translation" into cm-10.1
Merge "Settings: CS translation" into cm-10.1

Change-Id: I19b67b10bd7964802e2f5df9f35437d5c3081160
Merge "Make notification-shade-collapse-after-dismiss behaviour configurable." into cm-10.1
Conflicts:
	res/values-pt/cm_strings.xml
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/xml/notification_drawer.xml
	src/com/android/settings/cyanogenmod/NotificationDrawer.java
	src/com/android/settings/cyanogenmod/StatusBar.java

Change-Id: I6e749f43bdce8cda130c961b78b0fb8970d91dcb